]> git.phdru.name Git - dotfiles.git/commitdiff
Use nr2char(127)
authorOleg Broytman <phd@phdru.name>
Sun, 13 Jul 2014 18:49:23 +0000 (22:49 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 13 Jul 2014 18:49:23 +0000 (22:49 +0400)
Don't include a control character in a text file.

.vimrc

diff --git a/.vimrc b/.vimrc
index bf75518fcad5ae091449954f5664fed6b728080b..0f51857368e923e6984d869de6108727af0efcc3 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -209,14 +209,14 @@ else
    endif
 
    if (&term =~ "linux")
    endif
 
    if (&term =~ "linux")
-      set <BS>=\7f
+      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")
    else
       highlight MoreMsg cterm=bold ctermfg=NONE
       highlight Question cterm=bold ctermfg=NONE
    endif
 
    if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100")
-      set <BS>=\7f
+      execute 'set t_kb=' . nr2char(127)
 
       " 'autoselect' to always put selected text on the clipboard;
       " 'unnamed' to use the * register like unnamed register '*'
 
       " 'autoselect' to always put selected text on the clipboard;
       " 'unnamed' to use the * register like unnamed register '*'