set nocompatible " be iMproved, required filetype off " required set autochdir set showcmd set backspace=indent,eol,start set backupdir=/tmp set directory=/tmp set expandtab set hidden set history=1000 " set ignorecase set linebreak set nobackup set noerrorbells set nowrap set number set printoptions=paper:letter set ruler set scrolloff=3 set shiftwidth=2 set smartcase set tabstop=2 set tags=tags;~/ set title set wildmenu set wildmode=list:longest set foldmethod=marker set dictionary="/usr/dict/words" set noic syntax on set undofile " Save undo's after file closes set undodir=$HOME/.vimundo " where to save undo histories set undolevels=1000 " How many undos set undoreload=10000 " number of lines to save for undo " Search options set hlsearch set incsearch " set ignorecase set smartcase set nows "====[ Make the 81st column stand out ]==================== "highlight ColorColumn ctermbg=magenta guibg=magenta "call matchadd('ColorColumn', '\%62v', 100) set splitbelow set splitright if has('gui_running') set encoding=utf-8 " Turn off toolbar and menu set guioptions-=T set guioptions-=m set guioptions=br " set guifont=Hermit " set cursorline end "runtime macros/matchit.vim :nmap \w :setlocal wrap! :nmap \s :setlocal spell! spelllang=en_us :nmap \h :setlocal hls! :nmap \l :setlocal cursorline! :nmap \n :setlocal number! :nmap \c :NeoCompleteToggle :nmap j gj :nmap k gk :nmap :bnext :nmap :bprev " Window split navigation shortcuts nnoremap nnoremap nnoremap nnoremap map + :tabnew map :tabn map :tabp map ^ "inoremap =InsertTabWrapper() "func InsertTabWrapper() " let col = col('.') - 1 " if !col || getline('.')[col - 1] !~ '\k' " return "\" " else " return "\" " endif "endfunc