Last active
February 22, 2019 08:51
-
-
Save c02y/2d24879cbda405535f01481bc5585519 to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
change | |
Plugin 'gmarik/Vundle.vim' | |
to | |
Plugin 'VundleVim/Vundle.vim' | |
" this fix the errors(like Error detected while processing function) when using VundleInstall/Update | |
set shell=/bin/bash | |
Plugin 'liuchengxu/vim-which-key' | |
nnoremap <silent> <leader> :WhichKey '<leader>'<CR> | |
" By default timeoutlen is 1000 ms | |
set timeoutlen=500 | |
change | |
nnoremap <Leader>. :e<Space> | |
nnoremap <Leader>v :e<Space>~/.vimrc<CR> | |
to | |
nnoremap <Leader>v :e<Space>~/.vim/vimrc<CR> | |
change | |
function ShowFileFormatFlag | |
to | |
function! ShowFileFormatFlag | |
" Reload vimrc without restarting vim | |
" Source vim configuration upon save | |
if has ('autocmd') " Remain compatible with earlier versions | |
augroup vimrc | |
autocmd! BufWritePost $MYVIMRC source % | echom "Reloaded " . $MYVIMRC | redraw | |
autocmd! BufWritePost $MYGVIMRC if has('gui_running') | so % | echom "Reloaded " . $MYGVIMRC | endif | redraw | |
augroup END | |
endif " has autocmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment