Want to change your termcap, you can add these lines to your. NOTE 2: If you want to disable the screen switching, and you don't NOTE 1: If you recompile Vim with FEAT_XTERM_SAVE defined inįeature.h, the builtin xterm will include the mentioned "te" and "ti" The complete termcap and terminfo database for consistency. PS: If you find any difference, someone (your sysadmin?) should better Xterm terminfo entry (retrieved with "infocmp -C xterm"). Thus these two variables are the correct place where the aboveĬompare your xterm termcap entry (found in /etc/termcap) with your When exiting, it echoes te (terminfo: rmcup). On startup, vim echoes the value of the termcap variable ti (terminfo: (My notation ^[ means the ESC character, further down you'll As a quick workaround a command sequence likeĮcho -n "^[[?47h" vim. These switch between xterms alternate and main In your particular problem, you are looking for the control sequences When of the programs in question one uses terminfo and the other uses This can cause differences when the entries differ AND You should be aware that there are two databasesįor describing attributes of a particular type of terminal: termcapĪnd terminfo. They not necessarily do the same thing, as this may be a termcap vs. I assume though that vim and viĭo :the same thing as each other for a given xterm setup. Way to :> restore the screen after exiting vim or other vi likeĮditors, :> I just don't know how. I see the editor and I can write text, at the bottom line there is a label 'recording'. I started vi on my Ubuntu machine and I can't quit. The output from my previous like "ls" were Ask Question Asked 12 years, 7 months ago Modified 2 years, 2 months ago Viewed 277k times 89 I'm new to vi. the contents of the file I was viewing (editing) was :> Another question is that after exiting vim, the screen is left as (From comp.editors, by Juergen Weigert, in reply to a question) The gory details are explained at :h xterm-screens (pasted below) If Vim is compiled with support for switching xterm-screens, it can do this by default, if you set the t_ti and t_te (Vim usually figures out, to what values this needs to be set by itsself).
0 Comments
Leave a Reply. |