dotfiles/.vimrc

80 lines
2.2 KiB
VimL

set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Keep Plugin commands between vundle#begin/end.
Plugin 'VundleVim/Vundle.vim'
" Git wrapper
Plugin 'tpope/vim-fugitive'
" status/tabline
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" base16 color scheme
"Plugin 'chriskempson/base16-vim'
Plugin 'dracula/vim', { 'name': 'dracula' }
" gruvbox color scheme
" https://github.com/morhetz/gruvbox/wiki/Installation
"Plugin 'morhetz/gruvbox'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
" :PluginUpdate - Updates plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" airline theme
"let g:airline_theme='violet'
"let g:airline_theme='gruvbox'
let g:airline_theme='dracula'
set t_Co=256
"colorscheme base16-codeschool
"colorscheme base16-atelier-dune-light
"colorscheme base16-darktooth
"colorscheme gruvbox
"colorscheme dracula
colorscheme industry
syntax on
" enable vim modelines
set modeline
set tabstop=2 shiftwidth=2 expandtab
set background=light
set showcmd
" highlight searches
set hlsearch
" case insensitive searches
set incsearch
" Putty reg file: https://github.com/benjojo/base-16-putty
" iTerm2: https://github.com/martinlindhe/base16-iterm2
" Highlight 80 column
set colorcolumn=80,120
highlight ColorColumn ctermbg=238
" Highlight additional flags in comments
augroup vimrc_todo
au!
au Syntax * syn match MyTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE|XXX|INFO|IDEA|CHANGED|BUG|HACK|TRICKY):/
\ containedin=.*Comment,vimCommentTitle
augroup END
hi def link MyTodo Todo