Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (64 sloc) 1.91 KB
" use vim not vi
set nocompatible
" Color stuff
set t_Co=8
set t_Sf=[3%p1%dm
set t_Sb=[4%p1%dm
syntax on " syntax hilighting is good
set autoindent " autoindentation is good
set backspace=2 " make backspace work
set tabstop=4 " decent tabsize
set shiftwidth=4 " matches tabsize for autoindent
set nowrap " don't wrap lines
set ruler " show cursor position
set vb " no more bell
set laststatus=2 " statusline
set shell=/bin/bash " bash is our shell
set showmatch " matches }, ), ], etc ...
set autowrite " write
set esckeys " allow meta in command mode
set incsearch " incremental searching
set hlsearch " hilight search matches
set modelines=5 " first 5 lines of the file are interpreted
set expandtab " expand tabs
" <Ctrl>-T toggles paste mode
set pt=<c-t>p
" Convenience mappings for diff mode
map <c-f>g :diffget<CR>
map <c-f>p :diffput<CR>
" Move around in the tag stack a bit easier
map <c-t>k :ta<CR>
map <c-t>j :po<CR>
map <c-t>h :tprevious<CR>
map <c-t>l :tnext<CR>
runtime! modules/*.vim
" Set up Solarized colorscheme
set background=dark
let g:solarized_termcolors=16
colorscheme solarized
" Hilight trailing whitespace
highlight TrailingWhitespace ctermfg=7 ctermbg=1
autocmd BufEnter * match TrailingWhitespace /\s\+$/
autocmd BufLeave * match TrailingWhitespace /\s\+$/
autocmd WinLeave * match TrailingWhitespace /\s\+$/
autocmd WinEnter * match TrailingWhitespace /\s\+$/
" Vundle
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'pep8'
Plugin 'ludovicchabant/vim-lawrencium'
let g:jedi#completions_command = "<C-N>"
let g:jedi#popup_on_dot = 0
Plugin 'https://github.com/davidhalter/jedi-vim'
call vundle#end()
filetype plugin indent on
" Set up QuickFix bindings for LanguageTool
fun! CheckBufferLT()
set efm=\"%f\":%l:%c\ %m
cex system("lt-vim " . expand("%%"))
copen
endfun
map <c-f>l :call CheckBufferLT()<CR>