vim: Use more verbose names in config

This commit is contained in:
Simon Bruder 2020-04-22 20:08:20 +00:00
parent b3319de5ee
commit 299a5c21b1
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -1,4 +1,4 @@
" require vim
" Require vim
set nocompatible
" Plugins
@ -18,7 +18,7 @@ Plug 'posva/vim-vue', { 'for': 'vue' }
Plug 'altercation/vim-colors-solarized'
call plug#end()
" statusline
" Powerline
if !has('nvim')
silent! python3 from powerline.vim import setup as powerline_setup
silent! python3 powerline_setup()
@ -26,41 +26,41 @@ if !has('nvim')
set laststatus=2 " always show powerline
endif
" line numbers
" Basic display
set number
" show line after 80 chars
set colorcolumn=80
" solarized theme
" Solarized theme
set background=dark
colorscheme solarized
" persistent undo
" Persistent undo
set undofile
set undodir=$HOME/.vim/undo
set undolevels=4096
set undoreload=16384
" highlight and ignore case at search
set hls ic
" Search
set hlsearch
set ignorecase
" Autoload settings from file bottom
" Autoload settings from file
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
" Tab settings
set autoindent
" jump to the last position
" Jump to the last position
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif
endif
" Set gvim font
if has("gui_running")
set guifont=Terminess\ Powerline
endif