From 1551c7e572bc68de791db8a8fd3aa0cbd276f5dc Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 7 Apr 2023 12:53:38 +0200 Subject: [PATCH] update vim indention and concealing --- profiles/base/.vimrc | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/profiles/base/.vimrc b/profiles/base/.vimrc index d5df918..d2e8443 100644 --- a/profiles/base/.vimrc +++ b/profiles/base/.vimrc @@ -1,12 +1,20 @@ call plug#begin() +" ** style ** Plug 'vim-airline/vim-airline' +Plug 'morhetz/gruvbox' + +"Plug 'Yggdroot/indentLine' +Plug 'nathanaelkane/vim-indent-guides' + +" ** features ** +Plug 'godlygeek/tabular' +Plug 'preservim/nerdcommenter' + +" ** syntax ** +Plug 'elzr/vim-json' Plug 'lervag/vimtex' Plug 'ibab/vim-snakemake' -Plug 'Yggdroot/indentLine' -Plug 'godlygeek/tabular' Plug 'plasticboy/vim-markdown' -Plug 'morhetz/gruvbox' -Plug 'preservim/nerdcommenter' call plug#end() " Always show statusline @@ -18,11 +26,17 @@ set t_Co=256 " show linenumber set number - let g:vim_markdown_folding_disabled = 1 syntax on -set softtabstop=4 + +filetype plugin indent on +" show tabs with 4 spaces width +set tabstop=4 +" use 4 space to indent with '>' +set shiftwidth=4 +" insert 4 spaces instead of tab +set expandtab set colorcolumn=80,100,120 @@ -32,3 +46,13 @@ set background=dark " nerdcommenter filetype plugin on + +" use conceals, but not on inserted lines +set conceallevel=2 +set concealcursor=nc + +let g:indent_guides_enable_on_vim_startup = 1 +let g:indent_guides_start_level = 2 +let g:indent_guides_guide_size = 1 + +set cursorline