diff --git a/data/vim/map.vim b/data/vim/map.vim index 0cdd525..d3cb354 100644 --- a/data/vim/map.vim +++ b/data/vim/map.vim @@ -6,6 +6,9 @@ let mapleader = "s" " usually we move to the end of a word to begin editing there nnoremap e ea +" toggle list +nnoremap :set list! + " call :make nnoremap m :make diff --git a/data/vim/option.vim b/data/vim/option.vim index 0320421..8712eaf 100644 --- a/data/vim/option.vim +++ b/data/vim/option.vim @@ -1,13 +1,20 @@ "" option.vim set autowrite -set expandtab set path+=/usr/bin,/usr/local/bin set secure -set shiftwidth=4 set tags+=./tags,tags set wildmode=list:longest +" Linux Kernel +set tabstop=8 +set shiftwidth=8 +set noexpandtab +set cindent +" disable indentation for labels +set cinoptions=:0 +set listchars=tab:>-,trail:ยท + if has('termguicolors') set termguicolors endif