" require vim set nocompatible " Plugins call plug#begin('~/.vim/plugged') " Features Plug 'MarcWeber/vim-addon-local-vimrc' " Syntax highlighting/Language support Plug 'ElmCast/elm-vim', { 'for': 'elm' } Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' } Plug 'cespare/vim-toml', { 'for': 'toml' } Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' } Plug 'mechatroner/rainbow_csv', { 'for': ['csv', 'tsv'] } Plug 'posva/vim-vue', { 'for': 'vue' } " Color schemes Plug 'altercation/vim-colors-solarized' call plug#end() " statusline if !has('nvim') silent! python3 from powerline.vim import setup as powerline_setup silent! python3 powerline_setup() silent! python3 del powerline_setup set laststatus=2 " always show powerline endif " line numbers set number " show line after 80 chars set colorcolumn=80 " solarized theme set background=dark colorscheme solarized " persistent undo set undofile set undodir=$HOME/.vim/undo set undolevels=4096 set undoreload=16384 " highlight and ignore case at search set hls ic " Autoload settings from file bottom set modeline " Highlight trailing spaces and spaces before tabs highlight ExtraWhitespace ctermbg=red guibg=red autocmd BufWinEnter * match ExtraWhitespace /\s\+$\| \+\ze\t/ " tab settings set ai " jump to the last position if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal! g`\"" | endif endif if has("gui_running") set guifont=Terminess\ Powerline endif