A plugin which could help you quickly jump to specific file with completion.
Just set variable like following:
" this is the default setting
let g:file_jumper_command = {
\ "Gbin": {'dir': expand("$HOME/bin"), 'extension': ''},
\ "Gwiki": {'dir': g:myvimwikidir, 'extension': '.wiki', 'keymap': '<Leader>wg'},
\ }
dir
specifiy which directory should the command look file forextension
will automatically appended to the filenamekeymap
will define keymap for the command
Then command Gbin
and Gwiki
will be defined. Now you can jump to file ~/bin/pyserver
with command
Gbin pyserver
. Moreover, the file name could be completed if you press tab
key:
Any vim command could be appended to open file in different window.
For example, execute Gbin pyserver vnew
is same with vnew ~/bin/pyserver
.
Other command like bot vnew
could also be used.