From f88edb4c11357e431dea86b30035af1ebbe307dc Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 2 May 2020 21:53:13 +0200 Subject: [PATCH] Add blank line to avoid cluttering the status line --- dotfiles/vim/vimrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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