3 ms·
Do this to prevent yourself from learning the arrow keys while learning: map <down> <nop> map <left> <nop> map <right> <nop> map <up> <nop> imap
by tsally 17y ago
Do this to prevent yourself from learning the arrow keys while learning:
map <down> <nop>
map <left> <nop>
map <right> <nop>
map <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
imap <up> <nop>
(There's actually a recently reported bug that causes the up arrow to do some strange things, but you get the idea).
- nfnaaron 17y agoAs you say, that's a good way to force your fingers to learn the way of h, j, k and l. I started with vi so long ago that I remember being surprised around five years ago when I accidentally discovered that vim knows about the arrow keys. So I've never had to un-learn the arrow keys. You may want to turn them back on eventually. It's nice to be able to move the cursor without thinking about it, whether your hands are on the keyboard, over the arrow keys or on the mouse, sort of like being able to play the chord you want no matter where your hand is on the fretboard. As for my .vimrc, there are years of settings and commands I never use and can't remember what for, like junk DNA. I enjoy discovering and sharing the occasional treat, but I've gone pretty much meat and potatoes over the years. Depending on your setup, your ruler (:set ruler) may or may not always show the file. This will make it always show: set statusline=%<%F\ %h%m%r%=%-14.(%l,%c%V%)\ %P I like the tabula colorscheme, which you can find on vim.org: colorscheme tabula I like smartcase: set ic set smartcase and I like the ability to override it when I search: /\Cfindonlylowercaseinstances (:help, and then look in chapter usr_27.txt)