More refactoring, leveraging after/ftplugin

This commit is contained in:
Vasili Sviridov
2020-08-10 15:29:04 -07:00
parent e12d093365
commit 4a9f7be2ef
6 changed files with 72 additions and 125 deletions

View File

@@ -4,7 +4,7 @@ noremap <silent><leader>w :update<cr>
inoremap <silent><leader>w <Esc>:update<cr>a
cmap w!! w !sudo tee % >/dev/null
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:p:h') . '/' : '%%'
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:p:h') . '\' : '%%'
cnoremap <expr> %b getcmdtype() == ':' ? expand('%:p:r') : '%b'
"Remove search highlight when <Esc> is pressed