vim: Use more verbose names in config
This commit is contained in:
parent
b3319de5ee
commit
299a5c21b1
26
home/.vimrc
26
home/.vimrc
|
@ -1,4 +1,4 @@
|
||||||
" require vim
|
" Require vim
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
" Plugins
|
" Plugins
|
||||||
|
@ -18,7 +18,7 @@ Plug 'posva/vim-vue', { 'for': 'vue' }
|
||||||
Plug 'altercation/vim-colors-solarized'
|
Plug 'altercation/vim-colors-solarized'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" statusline
|
" Powerline
|
||||||
if !has('nvim')
|
if !has('nvim')
|
||||||
silent! python3 from powerline.vim import setup as powerline_setup
|
silent! python3 from powerline.vim import setup as powerline_setup
|
||||||
silent! python3 powerline_setup()
|
silent! python3 powerline_setup()
|
||||||
|
@ -26,41 +26,41 @@ if !has('nvim')
|
||||||
set laststatus=2 " always show powerline
|
set laststatus=2 " always show powerline
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" line numbers
|
" Basic display
|
||||||
set number
|
set number
|
||||||
" show line after 80 chars
|
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
|
|
||||||
" solarized theme
|
" Solarized theme
|
||||||
set background=dark
|
set background=dark
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
|
|
||||||
" persistent undo
|
" Persistent undo
|
||||||
set undofile
|
set undofile
|
||||||
set undodir=$HOME/.vim/undo
|
set undodir=$HOME/.vim/undo
|
||||||
set undolevels=4096
|
set undolevels=4096
|
||||||
set undoreload=16384
|
set undoreload=16384
|
||||||
|
|
||||||
" highlight and ignore case at search
|
" Search
|
||||||
set hls ic
|
set hlsearch
|
||||||
|
set ignorecase
|
||||||
|
|
||||||
" Autoload settings from file bottom
|
" Autoload settings from file
|
||||||
set modeline
|
set modeline
|
||||||
|
|
||||||
" Highlight trailing spaces and spaces before tabs
|
" Highlight trailing spaces and spaces before tabs
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||||
autocmd BufWinEnter * match ExtraWhitespace /\s\+$\| \+\ze\t/
|
autocmd BufWinEnter * match ExtraWhitespace /\s\+$\| \+\ze\t/
|
||||||
|
|
||||||
" tab settings
|
" Tab settings
|
||||||
set ai
|
set autoindent
|
||||||
|
|
||||||
" jump to the last position
|
" Jump to the last position
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
||||||
\| exe "normal! g`\"" | endif
|
\| exe "normal! g`\"" | endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Set gvim font
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
set guifont=Terminess\ Powerline
|
set guifont=Terminess\ Powerline
|
||||||
endif
|
endif
|
||||||
|
|
Reference in a new issue