Quickly open other file located in same dir

1 Point

Timothée Gauthier Timothée Gauthier

9 years ago

Same as Snippet #136 but for normal mod.

Quickly open an other file located in the same dir of current file.

Since I add this map I no more use :Explore

nnoremap <leader>e :e <C-R>=expand("%:p:h") . "/" <CR>

" If you need current path in insert mode :
inoremap j% <C-R>=expand("%:p:h") . "/" <CR>