Hacker News new | ask | show | jobs
by ichinaski 4868 days ago
My favourite ones:

" Make Y behave like other capitals

nnoremap Y y$

" Reselect visual block after indent/outdent

vnoremap < <gv

vnoremap > >gv

1 comments

Curious - what's the point of retaining the selection after indenting?
Sometimes you want to indent more than once. This remap is fine, but the idiomatic way to do this is just to use a period to repeat the last command. It doesn't hurt to get used to that.
Enter a number then any command to repeat it as many times as you want.
Sometimes it's easier to see things line up.