vimviconemu

Keep ConEmu screen buffer after exiting vim


screenshot from conEmu settingsI am using ConEmu/cmder on my windows 10 machine, Whenever I open/edit a file using vim and exit the screen gets cleared and doesn't save the previous state/contents. Is there a way to resume my work where I left from. It works well on my Ubuntu machine with Terminal as well as Terminator.

There is no .vimrc or _vimrc file in my %HOME% directory or anywhere else, any suggestions. The vimrc is located under "C:\Users\\Downloads\cmder\vendor\git-for-windows\etc\vimrc"

but any changes to that doesn't seem to be taking any effect.

So far I have't found any specific post or solution to this problem

Here is one post I am referring to: https://superuser.com/questions/196055/how-to-replace-vim-screen-buffer-with-previous-bash-activity-after-quitting


Solution

  • I found a temporary solution to my problem:

    conemu + ssh clears console history did the trick , it's just that for me the following worked :

    $ export TERM=xterm
    $ vim
    $ # the screen before is restored
    $ export TERM=cygwin
    $ vim
    $ # the screen buffer is cleared
    

    My default TERM was set to cygwin after changing it to xterm ConEmu works as expected.