This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.vimrc

71 lines
1.4 KiB
VimL
Raw Normal View History

2018-03-14 15:30:44 +01:00
" require vim
set nocompatible
""" BEGIN VUNDLE
filetype off
" initialize Vundle.vim
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"" BEGIN VUNDLE PLUGINS
" Install plugins with :PluginInstall
Plugin 'VundleVim/Vundle.vim' " require vundle itself
2018-06-19 20:46:24 +02:00
Plugin 'ElmCast/elm-vim'
Plugin 'Glench/Vim-Jinja2-Syntax'
Plugin 'cespare/vim-toml'
2018-03-14 15:30:44 +01:00
Plugin 'dart-lang/dart-vim-plugin'
2018-09-16 19:11:01 +02:00
Plugin 'mechatroner/rainbow_csv'
2018-03-14 15:30:44 +01:00
Plugin 'posva/vim-vue'
"" END VUNDLE PLUGINS
call vundle#end()
filetype plugin indent on
""" END VUNDLE
2018-05-05 14:52:52 +02:00
" statusline
2019-06-09 00:23:36 +02:00
if !has('nvim')
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set laststatus=2 " always show powerline
endif
2018-05-05 14:52:52 +02:00
2018-03-14 15:30:44 +01:00
" line numbers
set number
" show line after 80 chars
set colorcolumn=80
" syntax highlighting
syntax enable
" solarized theme
set t_Co=256
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
" tab support
map <F7> :tabp<CR>
map <F8> :tabn<CR>
map <F9> :tabe
" 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/
2018-03-14 15:30:44 +01:00
" tab settings
set ai
if has("gui_running")
2018-05-06 12:04:48 +02:00
set guifont=Terminess\ Powerline
2018-03-14 15:30:44 +01:00
endif