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