On 2013-04-12 08:50, lidawe...@gmail.com wrote: > I just installed macvim in my mac pro 13 and I met a problem that > when I quit vim, it does not restore the previous commands I typed > in terminal. > > For example, > > $ls > a.data b.data > $vim a.data > > this is a story > > Then I quit a.data, it still shows: > > this is a story > $ > > How should I change settings so the previous commands like "ls" > will restore?
This may depend on your termcap for terminal. By default, I believe Vim does this if it knows how. You can read up at :help xterm-screens the behavior of which is controlled by the 't_ti' and 't_te' settings. They're likely blank. If so, and your terminal supports swapping banked screens, you set the corresponding escape-sequences in your vimrc (perhaps wrapped in an if...endif block to detect your particular environment). Alternatively, perhaps at one point you set these to blank values in your vimrc, and you can just remove the overriding lines to restore factory behavior. -tim -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.