1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 10:53:23 -07:00

alias :W to :w in vim

this was a long time coming
This commit is contained in:
Connor Olding 2019-06-05 19:09:25 -07:00
parent 8c4f76a583
commit 5d81bc00a1

View File

@ -302,6 +302,9 @@ nn _ :E <c-r>=expand('%:h')<cr><cr>
nn <Leader>f :E .<cr>
nn <Leader>F :E <c-r>=expand('%:h')<cr><cr>
" alias :W to :w, via https://stackoverflow.com/a/3879737
cnoreabbrev <expr> W ((getcmdtype() is# ':' && getcmdline() is# 'W')?('w'):('W'))
" extension binds {{{1
map <silent> <c-n> :CtrlPBuffer<cr>