Skip to content

Instantly share code, notes, and snippets.

@notexactlyawe
Last active August 18, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notexactlyawe/42f633a8f425700a6d5c2c9a7128d2ee to your computer and use it in GitHub Desktop.
Save notexactlyawe/42f633a8f425700a6d5c2c9a7128d2ee to your computer and use it in GitHub Desktop.
My vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'elixir-lang/vim-elixir'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'vim-scripts/taglist.vim'
Plugin 'scrooloose/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'pthrasher/conqueterm-vim'
Plugin 'ctrlpvim/ctrlp.vim'
call vundle#end()
let python_highlight_all=1
syntax on
filetype plugin indent on
set foldmethod=indent
set nofoldenable
set foldlevelstart=1
set foldignore=
set nu
set laststatus=2
set backspace=2
set splitright
set tabstop=4
set shiftwidth=4
set expandtab
nnoremap <space> za
nmap <S-Enter> O<Esc>j
nmap <CR> o<Esc>k
highlight BadWhitespace ctermbg=red guibg=darkred
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
set encoding=utf-8
function! s:DiffWithSaved()
let filetype=&ft
diffthis
vnew | r # | normal! 1Gdd
diffthis
exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype
endfunction
com! DiffSaved call s:DiffWithSaved()
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_loc_list_height = 5
let g:syntastic_c_include_dirs = ['inc', '../inc', 'include', '../include']
set tags=tags;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment