diff --git a/dotfiles/vim/vimrc b/dotfiles/vim/vimrc index 1b3a632..de458ad 100644 --- a/dotfiles/vim/vimrc +++ b/dotfiles/vim/vimrc @@ -134,12 +134,6 @@ let &t_SI = "\e[5 q" " cursor beam on insert mode let &t_SR = "\e[3 q" " cursor underline on replace mode let &t_EI = "\e[2 q" " cursor block otherwise -" reset cursor on start: -augroup cursorgroup - autocmd! - autocmd VimEnter * silent !echo -e "\e[2 q" -augroup END - set number " show line numbers set showcmd " show command in bottom bar set cursorline " highlight current line @@ -191,8 +185,15 @@ nnoremap gV `[v`] " set language-specific settings for certain filetype/file extensions " augroup makes the command only apply once " autocmd! directive clears all the autocmds for the current group + augroup configgroup autocmd! + + " reset cursor on start: + autocmd VimEnter * silent !echo -en "\e[2 q" + " echo a blank line to avoid cluttering up the statusline + autocmd VimEnter * silent !echo + autocmd VimEnter * highlight clear SignColumn " Automatically open NERDTree when vim starts up without files specified