How I can rebind escape key in vsvim (in Visual Studio 2015)? Now, I use esc or ctrl + [ to enter command mode, but I want to use df
keys instead. How I can rebind them?
I find out that I need to create .vsvimrc
file in my HOME directory and write there some command similar to nmap <df> :vsc MyCommand
. Is it right?
But I don't understand what exactly command must be instead "MyCommand".
You do need a .vimrc
file. On a mac or linux computer it would go in your home directory. I'm guessing from your question that you might be on Windows. A brief google search indicates that the HOME directory on Windows is also probably right. If you want to check for sure, open vim, type :echo $HOME
, and press enter. It will print the file path. Also, on Windows this file should be called _vimrc
.
Once you've created your vimrc file include this line
inoremap df <esc>
You'll have to close vim and reopen it for the command work.