set smartindent "tab settings set expandtab set tabstop=4 "set tabstop=3 set shiftwidth=4 set lbr "set number set nocompatible setlocal wrap linebreak nolist set virtualedit= setlocal display+=lastline " up and down move through the visible lines rather than actual lines - avoids " skipping around on a wrapped line :) noremap gk noremap gj noremap g noremap g inoremap gk inoremap gj inoremap g inoremap g set background=dark " After years of maintaining both a .gvimrc and .vimrc for the sake of my " colorscheme, I just thought this was damned nifty if has("gui_running") colorscheme inkpot else colorscheme midnight2 endif " To save, press ctrl-s. nmap :w imap :wa " Search as you type. set incsearch " Ignore case when searching. set ignorecase " Show autocomplete menus. set wildmenu " Show editing mode set showmode " Error bells are displayed visually. set visualbell " Create directories/files on the fly au BufNewFile * :exe ': !mkdir -p ' . escape(fnamemodify(bufname('%'),':p:h'),'#% \\') filetype plugin indent on set spell "Read the :help project for the full list of possible flags and what they mean let g:proj_flags="bgilmst" " Word count! map :!wc -w %; sleep 3