Add leader motions for quickly opening jai files
This commit is contained in:
parent
7d928a25ea
commit
a2c5c8a4d6
4
.vimrc
4
.vimrc
|
@ -762,6 +762,10 @@ call Cabbrev('WQ', 'call WriteCurrentFileAndCreateCtagsThenQuit()')
|
|||
" Faster way to open a file in the same directory.
|
||||
" <tab> will autocomplete the expansion here because we set wildcharm to <tab>.
|
||||
nnoremap <leader>e :e %:p:h/<tab>
|
||||
" Jai folders
|
||||
nnoremap <leader>ee :e <C-r>=g:campo_jai_path<CR>/<tab>
|
||||
nnoremap <leader>em :e <C-r>=g:campo_jai_path<CR>/modules/<tab>
|
||||
nnoremap <leader>eh :e <C-r>=g:campo_jai_path<CR>/how_to/<tab>
|
||||
|
||||
nnoremap <leader>w :call WriteCurrentFileAndCreateCtags()<cr>
|
||||
nnoremap <leader>x :call WriteCurrentFileAndCreateCtagsThenQuit()<cr>
|
||||
|
|
Loading…
Reference in New Issue
Block a user