fREWdiculous!
30 Jan
Today I am just going to talk about my favorite vim “stuff.” A lot of this I have gathered over the past 3-5 years of serious vim usage. I used vim before that, but not with this heavy of customization. I’ll start with the simple stuff and move up from there.
Basic settings:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | " Enable Line Numbers set number " Ignore case for searches set ignorecase " Unless you type an uppercase letter set smartcase " Incremental searching is sexy set incsearch " Highlight things that we find with the search set hlsearch " This is totally awesome - remap jj to escape " in insert mode. You'll never type jj anyway, " so it's great! inoremap jj <Esc> " If you have caps lock on disable too many J's nnoremap JJJJ <Nop> " Set off the other paren highlight MatchParen ctermbg=4 " no longer press shift to enter commands nnoremap ; : nnoremap : ; vnoremap ; : vnoremap : ; |
I also highly recommend the InkPot color scheme for gui mode and metacosm for console mode. Here’s some code to pull that off:
1 2 3 4 5 6 | " Favorite Color Scheme if has("gui_running") colorscheme inkpot else colorscheme metacosm endif |
I also use some plugins to make my life easier.
Do you have any suggestions for killer additions to vim?