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
|
||||
|
||||
" 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
|
||||
|
|
Reference in a new issue