Isso permite que você faça as coisas rapidamente “dentro” e “ao redor” do “|” e objetos de texto “/”. Como alterar / excluir / arrancar e entrar no visual.
Adicione ao seu ~ / .vimrc:
" Fake '|' as text object
nnoremap di| T|d,
nnoremap da| F|d,
nnoremap ci| T|c,
nnoremap ca| F|c,
nnoremap yi| T|y,
nnoremap ya| F|y,
nnoremap vi| T|v,
nnoremap va| F|v,
" Fake '/' as text object
nnoremap di/ T/d,
nnoremap da/ F/d,
nnoremap ci/ T/c,
nnoremap ca/ F/c,
nnoremap yi/ T/y,
nnoremap ya/ F/y,
nnoremap vi/ T/v,
nnoremap va/ F/v,