[CentOS] No "last command" in VIM?

Sean Hart boardnutz at blacklight.net
Thu Oct 21 17:02:50 UTC 2010


On 10/21/10 9:48 AM, John Kennedy wrote:
> Is there an alias hanging around that is redirecting you?
> John
>
> On Thu, Oct 21, 2010 at 12:36, Scott Robbins <scottro at nyc.rr.com 
> <mailto:scottro at nyc.rr.com>> wrote:
>
>     On Thu, Oct 21, 2010 at 06:19:54PM +0200, Dotan Cohen wrote:
>     > Although I made sure that vim-enhanced.i386 is installed, pressing :
>     > then upArrow does not show me the last command that I've typed.
>     Might
>     > I still be using vim-minimal erroneously? How to fix that? I
>     don't see
>     > any mention of this in google or the past few months of fine
>     archives.
>
>     One possible guess, but it's a guess only and I don't have high hopes
>     for it....
>
>
>     Is there possibly a /bin/vi which takes precedence over /usr/bin/vim?
>     (Or is the command "vim-enhanced"?)
>
If you do "which vim" it should show you the path of exactly which vim 
you are using...  There is a history optin in vimrc, is it possible you 
set this to 0?  I believe it sets the number of lines to keep in history.

Cheers,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101021/db1a1fb3/attachment.html>


More information about the CentOS mailing list