-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin_settings.vim
65 lines (56 loc) · 1.91 KB
/
plugin_settings.vim
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
" nertree
"autocmd vimenter * NERDTree
map <C-n> :NERDTreeToggle<CR>
nmap <leader>t :NERDTreeFind<CR>
" open a NERDTree automatically when vim starts up if no files were specified?
"autocmd StdinReadPre * let s:std_in=1
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
"close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" open file in current window by default
" let g:NERDTreeMapActivateNode = ''
let g:NERDTreeMapOpenInTab = 'o'
" nerdcommenter
" " ,/ to invert comment on the current line/selection
nmap <leader>/ :call NERDComment(0, "invert")<cr>
vmap <leader>/ :call NERDComment(0, "invert")<cr>
" syntastic
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" ctrlp
let g:ctrlp_map = '<leader>o'
let g:ctrlp_cmd = 'CtrlPMixed'
nmap <leader>O :CtrlPTag<cr>
nmap <c-o> :CtrlPClearCache<cr>:CtrlPMixed<cr>
" nmap <leader>l :CtrlPLine<cr>
" nmap <leader>b :CtrlPBuff<cr>
"nmap <leader>M :CtrlPBufTagAll<cr>
let g:ctrlp_working_path_mode = 'ra'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,tags " MacOSX/Linux
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn|tags)$'
"solarized
if has('gui_running')
set background=light
else
set background=light
let g:solarized_termcolors=256
endif
colorscheme solarized
" YouCompleteMe
if !empty(glob('/usr/local/bin/python'))
let g:ycm_path_to_python_interpreter = '/usr/local/bin/python'
else
let g:ycm_path_to_python_interpreter = '/usr/bin/python'
endif
" vim-action-ag
" use * to search current word in normal mode
nmap <c-f> <Plug>AgActionWord
" " use * to search selected text in visual mode
vmap <c-f> <Plug>AgActionVisual
"pyhton mode
let g:pymode_python = 'python3'