easier access to settings

This commit is contained in:
2017-12-02 13:02:46 +01:00
parent 00485841df
commit 319c7a1820

View File

@@ -90,8 +90,15 @@ nnoremap qh :helpclose<cr>
nnoremap qN :NERDTreeClose<cr> nnoremap qN :NERDTreeClose<cr>
nnoremap qT :TagbarClose<cr> nnoremap qT :TagbarClose<cr>
nnoremap <leader>ss :tabe $MYVIMRC<cr> if has('win32')
nnoremap <leader>sv :source $MYVIMRC<cr> let my_settings_file = "$HOME/vimfiles/plugin/settings.vim"
else
let my_settings_file = "$HOME/.vim/plugin/settings.vim"
endif
nnoremap <leader>sl :tabe $MYVIMRC<cr>
nnoremap <leader>ss :execute 'tabe' my_settings_file<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>:execute 'source' my_settings_file<cr>
nnoremap <leader>n :noh<cr> nnoremap <leader>n :noh<cr>
nnoremap <leader>k <c-w><c-k> nnoremap <leader>k <c-w><c-k>
nnoremap <leader>j <c-w><c-j> nnoremap <leader>j <c-w><c-j>
@@ -111,7 +118,6 @@ onoremap qs i'
"Mappings for Plugins "Mappings for Plugins
"{{{ "{{{
nnoremap <leader>N :NERDTree<cr> nnoremap <leader>N :NERDTree<cr>
nnoremap <leader>r :AirlineRefresh<cr>
nnoremap <leader>] :YcmCompleter GoTo<cr> nnoremap <leader>] :YcmCompleter GoTo<cr>
nnoremap <leader>ye :YcmShowDetailedDiagnostic<cr> nnoremap <leader>ye :YcmShowDetailedDiagnostic<cr>
nnoremap <leader>yf :YcmCompleter FixIt<cr>:ccl<cr> nnoremap <leader>yf :YcmCompleter FixIt<cr>:ccl<cr>