diff --git a/.config/vim/vimrc b/.config/vim/vimrc index be75ac1..307d03d 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -41,6 +41,11 @@ highlight CursorLineNr cterm=bold highlight clear SpellBad highlight SpellBad ctermbg=8 ctermfg=15 +" Cursor shape +let &t_SI = "\[6 q" +let &t_SR = "\[4 q" +let &t_EI = "\[2 q" + " Indentation set autoindent filetype indent on @@ -94,7 +99,7 @@ let g:vimtex_view_method = 'zathura' " Remove trailing whitespace in the following filetypes augroup TrailingWhitespace - autocmd! FileType c,cpp,ino,java,py,php,sh,tex autocmd BufWritePre %s/\s\+$//e + autocmd! FileType c,cpp,h,ino,java,py,php,sh,tex autocmd BufWritePre %s/\s\+$//e augroup END " Close vim if only window is NERD Tree @@ -154,4 +159,3 @@ nmap 1 lightline#bufferline#go(1) " Toggle NERD Tree nnoremap :NERDTreeToggle -