vim - Set keybindings in a local vimrc file -
vim - Set keybindings in a local vimrc file -
i have been unable create keybinding in local _vimrc file though have next settings in global vimrc file:
set exrc " enable per-directory vimrc files "set secure " disable unsafe commands in local vimrc files i have local vimrc files each of workspaces, , depending on workspace want able nail <f8> key , automatically grep string in particular file. in global vimrc file next works fine:
nnoremap <f8> :grep <c-r><c-w> c:\workspace\projectdirectory\subdirectory\flagsfile.h<cr> but have in local vimrc file in project root directory (c:\workspace\projectdirectory) , allow filename different in each of project directories. when set keymapping in local vimrc file , nail <f8> doesn't though have allowed unsafe commands.
can please explain right way this?
vim
Comments
Post a Comment