[indiana-discuss] Unwanted control chars ghost lines when using vim

Harry Putnam reader at newsguy.com
Thu Mar 5 18:58:22 PST 2009


Shawn Walker <swalker at opensolaris.org> writes:

[...]

> I have the following in my .vimrc and I've never had this issue:
>
> set term=xtermc
>
> " {{{ Terminal fixes
> if &term ==? "xterm"
>   set t_Sb=^[4%dm
>   set t_Sf=^[3%dm
>   set ttymouse=xterm2
> endif

> if &term ==? "gnome" && has("eval")
>   " Set useful keys that vim doesn't discover via termcap but are in the
>   " builtin xterm termcap. See bug #122562. We use exec to avoid having to
>   " include raw escapes in the file.
>   exec "set <C-Left>=\eO5D"
>   exec "set <C-Right>=\eO5C"
> endif
> " }}}

Haa... thats one of the nicer things I've been tipped off about
lately.   That was really getting annoying.  Thanks




More information about the indiana-discuss mailing list