Enhance vim native commands
Inspired by :only
command
Only
: only keep 1 window in current tab and close others tabsOnly n
: only keep n vertical windows in current tab and close others tabsOnlyWin
: likeOnly
, but not close others tabsOnlyWin n
: likeOnly n
, but not close others tabs
Inspired by :e
command
E
: edit the folder that contains current fileE fileName
: edit/create the file that is relative with current file, support fuzzy find
Inspired by :cfdo
command
The fowlloing commands is supported.
wrapper command | original command |
---|---|
Cdo |
cdo |
Cfdo |
cfdo |
Ldo |
ldo |
Lfdo |
lfdo |
Bufdo |
bufdo |
Tabdo |
tabdo |
Argdo |
argdo |
Windo |
windo |
For better performance, before calling cfdo
/cdo
/..., the fowlloing status will be set:
set eventignore=all
let g:ale_fix_on_save=0
let g:ale_enabled=0
After calling cfdo
/cfo
/..., the status should be restored as before calling.