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:
Arjun Karangiya
2022-03-29 06:54:57 +05:30
committed by GitHub
parent 06b7e28be3
commit 4ba50116d9
2 changed files with 11 additions and 3 deletions

View File

@@ -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