".vimrc set nocompatible " Use Vim defaults set term=ansi set background=dark filetype on syntax on " set hlsearch " set autoindent " always set autoindenting on " set smartindent set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time set showcmd " display incomplete commands " set incsearch " do incremental searching set sw=3 " indent 4 spaces " set tw=60 " word-wrap at 72 set showmatch " shows paren/bracket matches. set matchtime=2 " 2 tenths of a second. " Set status line, lastchange so there will always be a status line. set statusline=%1*%F%*\ %y\ %2*%r%m%*\ %1*%=%l/%L\ (%p%%)%* set laststatus=2 " allow backspacing over everything in insert mode set backspace=indent,eol,start " act differently (and better) for different sorts of files. if has("autocmd") filetype plugin indent on autocmd FileType text setlocal textwidth=78 endif " maybe latter... "noremap :so `vimspell.sh %` "noremap :syntax clear SpellErrors " Always keep one line between the cursor " and the top or bottom of the screen set scrolloff=1 "Typing K by mistake can be irritating map K " CTRL-X is cut to register * vmap "*x " CTRL-Y is copy to register * vmap "*y " ^M removes those bloody ^M's map ^M :%s/^V^V^V^M//g^M^M " Insert one character " map I :i$<> " map I :i$^[r " spelling "source ~/.vim/vimispell.vim