VsVim / VsVim

Vim Emulator Plugin for Visual Studio 2015+
Other
3.67k stars 401 forks source link

Home key should be "smart" and alternate between hard and soft BOL #1130

Closed pckujawa closed 6 years ago

pckujawa commented 11 years ago

The normal behavior in VS is that Home goes to the soft beginning of line (BOL) unless the cursor is already there, in which case it brings you to the hard BOL (all the way left). Then, if the cursor is at hard BOL, hitting Home again brings you to soft BOL and so on.

In my vimrc file, I have

set vsvim_useeditordefaults
" Make hard BOL into soft BOL
map 0 ^

Neither setting causes the desire Home behavior, unfortunately (although I can use 0 to get to soft BOL if I remember).

jaredpar commented 6 years ago

This should now match the vim behavior.