vim: add various improvement
This commit is contained in:
parent
bf9da4f95d
commit
df0783b604
17
.vimrc
17
.vimrc
@ -409,8 +409,8 @@ else
|
|||||||
endif
|
endif
|
||||||
cnoremap sudow w !sudo tee % >/dev/null
|
cnoremap sudow w !sudo tee % >/dev/null
|
||||||
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
||||||
cmap w!! w !sudo tee > /dev/null %
|
"cmap w!! w !sudo tee > /dev/null %
|
||||||
|
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||||
"""""""""""
|
"""""""""""
|
||||||
" NerdTree
|
" NerdTree
|
||||||
"""""""""""
|
"""""""""""
|
||||||
@ -439,6 +439,10 @@ if filereadable(expand('~/.vimrc.local'))
|
|||||||
let g:local_plugins = 0
|
let g:local_plugins = 0
|
||||||
let g:local_settings = 1
|
let g:local_settings = 1
|
||||||
source ~/.vimrc.local
|
source ~/.vimrc.local
|
||||||
|
" Look for .vimrc in working dir
|
||||||
|
" Restrict cmdline as this could be seen as security issue
|
||||||
|
set exrc
|
||||||
|
set secure
|
||||||
endif
|
endif
|
||||||
|
|
||||||
""""""""""
|
""""""""""
|
||||||
@ -475,6 +479,9 @@ set spelllang=fr,en
|
|||||||
" Ctrl-L correct last error
|
" Ctrl-L correct last error
|
||||||
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
||||||
|
|
||||||
|
"set list
|
||||||
|
"set listchars=eol:⏎,tab:▸·,trail:␠,nbsp:⎵
|
||||||
|
|
||||||
"""""""""
|
"""""""""
|
||||||
" Plugin"
|
" Plugin"
|
||||||
"""""""""
|
"""""""""
|
||||||
@ -557,6 +564,12 @@ else
|
|||||||
"let g:syntastic_cpp_compiler = 'clang++'
|
"let g:syntastic_cpp_compiler = 'clang++'
|
||||||
"let g:syntastic_cpp_compiler_options = '-std=c++14'
|
"let g:syntastic_cpp_compiler_options = '-std=c++14'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
"Android integration
|
||||||
|
"Plugin 'hsanson/vim-android'
|
||||||
|
" let g:android_sdk_path="~/Android/Sdk/"
|
||||||
|
"background task
|
||||||
|
Plugin 'tpope/vim-dispatch'
|
||||||
"Completion (need more configuration for python, c# ...)
|
"Completion (need more configuration for python, c# ...)
|
||||||
"Plugin 'Valloric/YouCompleteMe'
|
"Plugin 'Valloric/YouCompleteMe'
|
||||||
" VimWiki
|
" VimWiki
|
||||||
|
Loading…
Reference in New Issue
Block a user