Live data from Hacker News

Efficient Editing With vim

jmcpherson.org

121–125 of 125 posts

Re: Efficient Editing With vim

#121

Earlier quoted context omitted.

For those who prefer alt navigation, you can add to your gvimrc " tab navigation map 1gt map 2gt map 3gt map 4gt map 5gt map 6gt map 7gt map 8gt map 9gt map 10gt

What is that heretical "g" doing in front of "vimrc"?

Maybe it's some config he only uses in gvim.

Re: Efficient Editing With vim

#122

remapping capslock -> esc will make editing so much easier and faster. being able to easily enter command mode has increased my speed more than anything else, it's also really useful in other interfaces, to be able to quickly hit escape instead of reaching over to the top of the keyboard. add xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' to your ~/.xinitrc on linux

Remapping capslock to another control will make editing even easier and faster. Especially when you realize escape can be entered with ctrl-[ and sometimes ctrl-3.

Re: Efficient Editing With vim

#123

Earlier quoted context omitted.

I once wrote ":tabnew something.js" in my IM window and sent it before I realized that the wrong window had focus. The person replied with, "bash: :tabnew: command not found." I told him, "I was hoping you were vim, actually".

HA! Also using vim will cause your escape key to be heavily hit constantly after typing anything especially if you are not sure what mode you are in, then only realizing you are not in vim period.

  inoremap jj 

Re: Efficient Editing With vim

#125

Earlier quoted context omitted.

For those who prefer alt navigation, you can add to your gvimrc " tab navigation map 1gt map 2gt map 3gt map 4gt map 5gt map 6gt map 7gt map 8gt map 9gt map 10gt

What is that heretical "g" doing in front of "vimrc"?

You know, if I had a terminal emulator that I could run vim with 24-bit colour depth in, that would go a long way towards turning me from the path of heresy.
Post reply on HN