-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc
More file actions
118 lines (96 loc) · 2.49 KB
/
vimrc
File metadata and controls
118 lines (96 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
execute pathogen#infect()
" list of usage plugin
"kien/ctrlp.vim
"Lokaltog/vim-easymotion
"yearofmoo/Vim-Darkmate #colorscheme
"Raimondi/delimitMate
"ervandew/supertab
"jelera/vim-javascript-syntax
"scrooloose/nerdcommenter
"tomasr/molokai #colorscheme
"nanotech/jellybeans.vim #colorscheme
"scrooloose/nerdtree
"groenewege/vim-less
"mattn/emmet-vim
"klen/python-mode
"elixir-lang/vim-elixir
"nanotech/jellybeans.vim
" set syntax highlight
syntax on
" set line number
set number
" set search
set incsearch hlsearch
filetype plugin indent on
" Remove top toolbar, left/right hand scroll bar
set guioptions-=T
set guioptions-=r
set go-=L
" Autosave when not focus on GVIM
au FocusLost * silent! wa
" Easy motion setting
let mapleader = " "
let g:EasyMotion_leader_key = '<Leader>'
let g:ctrlp_map = '<c-p>'
" color scheme configuration
colorscheme darkmate
set t_Co=256
" set color scheme for vimdiff
if &diff
colorscheme jellybeans
endif
" set tab configuration
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
" set turn off swap
set nobackup
set nowb
set noswapfile
" set autoreload buffer
set autoread
" html configuration
autocmd FileType html setlocal shiftwidth=4 tabstop=4
" JavaScript configuration
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2
" JavaScript Syntax enhance
" au FileType javascript call JavaScriptFold()
" NERDTree configuration
if !&diff
autocmd vimenter * NERDTree
autocmd vimenter * if !argc() | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
let NERDTreeIgnore=[ '\.pyc$', '\.pyo$', '\.py\$class$', '\.obj$',
\ '\.o$', '\.so$', '\.egg$', '^\.git$' ]
endif
let NERDTreeShowHidden=1
" set ignore compiled files
set wildignore=*.o,*~,*.pyc
" set navigation between windows
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
" airline font configuration
let g:airline_powerline_fonts = 1
"let g:airliine_symbols = 'fancy'
let g:airline_theme = 'light'
set encoding=utf-8
set laststatus=2
" Remove trailing spaces on save
autocmd BufWritePre * :%s/\s\+$//e
" set new lead key for emmet-vim
" FORNOW use default lead key which is ctrl + y + ,
" let g:user_emmet_leader_key='<C-Z>'
" Settings for python-mode
let g:pymode_syntax = 1
let g:pymode_syntax_builtin_objs = 1
let g:pymode_syntax_builtin_funcs = 1
let g:pymode_folding = 0
let g:pymode_breakpoint = 0
let g:pymode_breakpoint_bind = '<leader>b'
let g:pymode_lint = 0
let g:pymode_rope = 0
let g:pymode_rope_complete_on_dot = 0
let g:pymode_rope_lookup_project = 0