Code: Select all
" I don't want vim to act like vi. I just don't. set nocompatible " These four lines give me soft-wrapping to the screen length. I know all about " the purists, but they can do what they want. set wrap set nolist set linebreak set textwidth=0 "These two lines are the built-in spell-check. "Adding stuff to the user dictionary is as easy "as a zg in command mode and looking for corrections is z=. set spelllang=en_us set spellfile=/home/launfal/.vim-spell.add "I wished they had an option that would handle the first line like they do the last, but I take what I can get. set display=lastline " Just because the default is boring. Not that I notice much difference, but still. set background=dark colorscheme elflord "Now comes some keybindings to get me away from using the arrows and page keys "to navigate around. I want to get better with Vim-centric keys, since a lot of "stuff is configured to use them, so I want to start learning the basic ones. " These two lines scroll by screen-lines, saving a keystroke. map j gj map k gk " This one is huge. I save a keystroke *every* time I need to enter a command. map ; : " These six lines disable the movement keys in command mode " but leave them alone in insert mode whee I still need them. map <up> <nop> map <down> <nop> map <left> <nop> map <right> <nop> map <PageUp> <nop> map <PageDown> <nop>
Edited: previous version was unusable because of incorrect comment symbol/placement.