X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=0f51857368e923e6984d869de6108727af0efcc3;hb=9f600768a235bc0f4c2fe1e2e76582baec921130;hp=c7c26bddb2db44c57dc8bd11d391bf297e72ad25;hpb=55df2f7a6e3c90e597ea21c0b21e472aaa176df1;p=dotfiles.git diff --git a/.vimrc b/.vimrc index c7c26bd..0f51857 100644 --- a/.vimrc +++ b/.vimrc @@ -209,14 +209,14 @@ else endif if (&term =~ "linux") - set = + execute 'set t_kb=' . nr2char(127) else highlight MoreMsg cterm=bold ctermfg=NONE highlight Question cterm=bold ctermfg=NONE endif if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100") - set = + execute 'set t_kb=' . nr2char(127) " 'autoselect' to always put selected text on the clipboard; " 'unnamed' to use the * register like unnamed register '*' @@ -725,7 +725,14 @@ command! UName call Uname() endif " ---------- -autocmd BufReadPost * redraw " Redraw screen after all macros +augroup redraw-once +autocmd! +" Redraw screen after all macros in ~/.vimrc and ~/.vim/ +autocmd BufReadPost * redraw +" Remove the redraw autocommand (it's only needed once) and the autgroup +autocmd BufReadPost * autocmd! redraw-once +autocmd BufReadPost * augroup! redraw-once +augroup END " This has to go to the very end of ~/.vimrc to allow reading the .vimrc set secure " safer working with script files in the current directory