Friday, August 27, 2010

Re: History doesn't work !

On 08/27/10 10:12, Tintin72 wrote:
> Thanks for your responses.
>
> > For #1 and #2, you can check the output of
>>
>> :version
>>
>> to make sure it was built with +cmdline_hist
>
> It's ok, +cmdline_hist is mentioned.
>
>> For #3, try control+P and control+N to see if they work.
>
> They don't.
>
>> I would first try
>> sudo update-alternatives --config vim
>
> Here's the output:
>
> There is just one « alternative » in the vim's link group : /usr/bin/
> vim.gtk.
> Nothing to configure.

Okay, you have vim.gtk as your vim (good), built with the option
for command-line history (+cmdline_hist...good), and ^N/^P don't
work either. The only thing left I can imagine is that for some
reason your 'history' option is set to 0 to prevent it from
remembering your history. Check

:set history?

and see what it returns. If it's "0", then some place has
instructed vim not to remember history. According to

:help 'history'

it should default to 20 for Vim and 0 for vi (which may or may
not be effected by 'cp' settings). You can use

:verbose set history?

to see where it was last set, and hopefully override it in your
vimrc to something you prefer like

set history=50

-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

No comments: