rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

ConEmu cannot save text after vim quit #1414

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Required information!
OS version: WinXP   SP3   x86
ConEmu version: 1207
Far version (if you are using Far Manager): none

*Bug description*
I add "set t_ti= t_te= " in my _vimrc file in order to show text after vim quit.
in cmd it works well, but not in ConEmu.
for more information
see http://www.shallowsky.com/linux/noaltscreen.html

*Steps to reproduction*
1.
2.
3.

Original issue reported on code.google.com by mingguop...@gmail.com on 30 Dec 2013 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
it also happens in my laptop(win7 sp1 x64)

Original comment by mingguop...@gmail.com on 30 Dec 2013 at 9:46

GoogleCodeExporter commented 9 years ago
Works fine for me.

ConEmu version 131225
Vim version 7.3.46

Try updating ConEmu.

Original comment by mb97...@gmail.com on 30 Dec 2013 at 11:35

GoogleCodeExporter commented 9 years ago
But that really may happens.
Most probably, you are using xterm in vim. But vim does not send correct 
sequences to switch buffer and tries to handle it himself. ConEmu catch that on 
vim startup and process buffer internally. Also, xterm256 is available not only 
without scrolling (at the bottom of scroll buffer actually).

Try to run "vim -cur_console:i your_file"

Original comment by ConEmu.Maximus5 on 30 Dec 2013 at 11:42

GoogleCodeExporter commented 9 years ago
But comment #2 is absolutely correct. Update ConEmu!

Original comment by ConEmu.Maximus5 on 30 Dec 2013 at 11:42

GoogleCodeExporter commented 9 years ago
I have updated Conemu, my vim is ms-windows version, not the cygwin's. and I 
have tried "vim -cur_console:i your_file", it works well. I key ":set term" in 
vim, vim says term=win32.  Also I find that if I directly run "vim file", 
ConEmu donot clear the screen, but the text color disapears.

Original comment by mingguop...@gmail.com on 31 Dec 2013 at 1:14

Attachments:

GoogleCodeExporter commented 9 years ago
After I run vim, the bufferhight mode is off. It is very annoying.

Original comment by mingguop...@gmail.com on 31 Dec 2013 at 2:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Apparently, some difference between vim 7.3 and vim 7.4 is causing a problem 
with ConEmuHk.

Using the same vim 7.4 (compiled Aug 10 2013 by mool@tororo) from
  ftp://ftp.vim.org/pub/vim/pc/
or a patched vim 7.4.110 from
  https://sourceforge.net/projects/cream/files/Vim/
leads to unexpected results (without -cur_console:i).

Even when running 'vim --version' ConEmu will clear the lines between the first 
and second shell prompt. This behaviour is independent of t_ti, t_te and 
restorescreen settings in vimrc.

When running vim 7.4 with -cur_console:i the results are as for vim 7.3 without 
-cur_console:i, with the exception that the scroll buffer mode remains off 
after exiting vim 7.4. This appears to be an (unwanted) side effect of the 
cur_console:i option.

ConEmu settings as ConEmu.xml posted in issue 1412, _vimrc (minus digraph 
definitions):

set directory=$TMPDIR\Vim,$TEMP\Vim,$TMPDIR,$TEMP,.
"set norestorescreen t_ti= t_te=
"set norestorescreen
set t_ti= t_te=
set fileformats=dos,unix
set nobackup
set modeline
let &termencoding = &encoding
set encoding=UTF-8
set whichwrap=
set autoindent
set smartindent
set ignorecase
set smartcase
set showmatch
set hlsearch
set wrapscan
set digraph
set nowrap
set ruler
syntax on

Original comment by mb97...@gmail.com on 1 Jan 2014 at 7:33

GoogleCodeExporter commented 9 years ago
I have tried vim 7.3 with "vim file", scroll buffer mode is off after quiting 
vim

mingguopeng@gmail.com

From: conemu-maximus5
Date: 2014-01-01 15:15
To: mingguopeng
Subject: Re: Issue 1414 in conemu-maximus5: ConEmu cannot save text after vim 
quit

Original comment by mingguop...@gmail.com on 2 Jan 2014 at 3:33