[UPDATE][VIM] Cosmetic changes
Added section titles and made all assignments the same style.
This commit is contained in:
parent
df48553a84
commit
d496c519c2
23
vim/.vimrc
23
vim/.vimrc
|
@ -6,7 +6,8 @@
|
||||||
" Don't try to be compatible with Vi
|
" Don't try to be compatible with Vi
|
||||||
set nocompatible
|
set nocompatible
|
||||||
" Use UTF-8
|
" Use UTF-8
|
||||||
set encoding=utf-8 fileencodings=utf-8
|
set encoding=utf-8
|
||||||
|
set fileencodings=utf-8
|
||||||
|
|
||||||
" Use space by default
|
" Use space by default
|
||||||
set expandtab
|
set expandtab
|
||||||
|
@ -153,22 +154,28 @@ set smartcase
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Plugin parameters
|
" Plugin parameters
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" BetterWhitespace settings
|
||||||
|
"""""""""""""""""""""""""""
|
||||||
" Enable trailing whitespace high-lighting
|
" Enable trailing whitespace high-lighting
|
||||||
let g:better_whitespace_enabled=1
|
let g:better_whitespace_enabled=1
|
||||||
" Strip trailing whitespace on file-save
|
" Strip trailing whitespace on file-save
|
||||||
let g:strip_whitespace_on_save=1
|
let g:strip_whitespace_on_save=1
|
||||||
|
|
||||||
|
" GutenTags settings
|
||||||
|
""""""""""""""""""""
|
||||||
" Enable gutentags
|
" Enable gutentags
|
||||||
let g:gutentags_enabled=1
|
let g:gutentags_enabled=1
|
||||||
" enable gtags module
|
" enable gtags module
|
||||||
let g:gutentags_modules = ['ctags', 'gtags_cscope']
|
let g:gutentags_modules=['ctags', 'gtags_cscope']
|
||||||
" config project root markers.
|
" config project root markers.
|
||||||
let g:gutentags_project_root = ['.root', 'Makefile']
|
let g:gutentags_project_root=['.root', 'Makefile']
|
||||||
" generate datebases in my cache directory, prevent gtags files polluting my project
|
" generate datebases in my cache directory, prevent gtags files polluting my project
|
||||||
let g:gutentags_cache_dir = expand('~/.cache/tags')
|
let g:gutentags_cache_dir=expand('~/.cache/tags')
|
||||||
" forbid gutentags adding gtags databases
|
" forbid gutentags adding gtags databases
|
||||||
let g:gutentags_auto_add_gtags_cscope = 0
|
let g:gutentags_auto_add_gtags_cscope=0
|
||||||
|
|
||||||
|
" Theme settings
|
||||||
|
""""""""""""""""
|
||||||
" Use a slightly darker background color to differentiate with the status line
|
" Use a slightly darker background color to differentiate with the status line
|
||||||
let g:jellybeans_background_color_256='232'
|
let g:jellybeans_background_color_256='232'
|
||||||
" colorscheme jellybeans
|
" colorscheme jellybeans
|
||||||
|
@ -176,11 +183,13 @@ let g:jellybeans_background_color_256='232'
|
||||||
|
|
||||||
" Set dark mode by default
|
" Set dark mode by default
|
||||||
set background=dark
|
set background=dark
|
||||||
let g:gruvbox_contrast_dark = '(hard)'
|
let g:gruvbox_contrast_dark='(hard)'
|
||||||
" Enable italics because urxvt supports them
|
" Enable italics because urxvt supports them
|
||||||
let g:gruvbox_italic=1
|
let g:gruvbox_italic=1
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
|
|
||||||
|
" UltiSnips settings
|
||||||
|
""""""""""""""""""""
|
||||||
" Insert mode trigger for expansion
|
" Insert mode trigger for expansion
|
||||||
let g:UltiSnipsExpandTrigger="<Tab>"
|
let g:UltiSnipsExpandTrigger="<Tab>"
|
||||||
" Jump forward and backwards in place-holder list with Ctrl-f and Ctrl-b
|
" Jump forward and backwards in place-holder list with Ctrl-f and Ctrl-b
|
||||||
|
@ -268,7 +277,7 @@ set statusline+=%{gutentags#statusline()}
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Import settings when inside a git repository
|
" Import settings when inside a git repository
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
let git_settings = system("git config --get vim.settings")
|
let git_settings=system("git config --get vim.settings")
|
||||||
if strlen(git_settings)
|
if strlen(git_settings)
|
||||||
exe "set" git_settings
|
exe "set" git_settings
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue