2 ms·
" Edit another file in the same directory as the current file " uses expression to extract path from current file's path map <leader>e :e <C-R>=expand("%:p:h"
by indrekju 13y ago
" Edit another file in the same directory as the current file
" uses expression to extract path from current file's path
map <leader>e :e <C-R>=expand("%:p:h") . '/'<CR><C-M>
map <leader>s :split <C-R>=expand("%:p:h") . '/'<CR><C-M>
map <leader>v :vnew <C-R>=expand("%:p:h") . '/'<CR><C-M>