diff options
| author | Arjun Karangiya <kar.9990@gmail.com> | 2022-03-29 06:54:57 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-29 01:24:57 +0000 |
| commit | 4ba50116d9228496ebbb32bfa2bc0ef7c5fefc8e (patch) | |
| tree | 0af811701e410c2693e0eb7860da41f5ff2cf578 /.config | |
| parent | 06b7e28be3aa8d642e2d786873671a785a93187e (diff) | |
| download | eibhear-4ba50116d9228496ebbb32bfa2bc0ef7c5fefc8e.tar.gz eibhear-4ba50116d9228496ebbb32bfa2bc0ef7c5fefc8e.tar.zst eibhear-4ba50116d9228496ebbb32bfa2bc0ef7c5fefc8e.zip | |
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.
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/init.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 09610fd..5707eae 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 |
