Shortcuts in vim command line from bm-dirs/files (#1073)
This will allow using the mappings in the vim command line.
Here the leader is ";"
So here `:e ;cfz` typed fast will expand into
`:e /home/user/.config/zsh/.zshrc`.
This is more helpful with :sp, :vs, :cd or anywhere where a file or
a directory is expected in the vim command line.
This commit is contained in:
@@ -149,3 +149,8 @@ function! ToggleHiddenAll()
|
||||
endif
|
||||
endfunction
|
||||
nnoremap <leader>h :call ToggleHiddenAll()<CR>
|
||||
" Load command shortcuts generated from bm-dirs and bm-files via shortcuts script.
|
||||
" Here leader is ";".
|
||||
" So ":vs ;cfz" will expand into ":vs /home/<user>/.config/zsh/.zshrc"
|
||||
" if typed fast without the timeout.
|
||||
source ~/.config/nvim/shortcuts.vim
|
||||
|
||||
Reference in New Issue
Block a user