From 4ba50116d9228496ebbb32bfa2bc0ef7c5fefc8e Mon Sep 17 00:00:00 2001 From: Arjun Karangiya Date: Tue, 29 Mar 2022 06:54:57 +0530 Subject: 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. --- .config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/nvim/init.vim') 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 h :call ToggleHiddenAll() +" Load command shortcuts generated from bm-dirs and bm-files via shortcuts script. +" Here leader is ";". +" So ":vs ;cfz" will expand into ":vs /home//.config/zsh/.zshrc" +" if typed fast without the timeout. +source ~/.config/nvim/shortcuts.vim -- cgit v1.3.1