Hello,
How can I keep stored the commands of vi from call to call? cf. 1,$s/ //
I would like to have it back next time that I edit other file.
Thank.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Maybe it's just my installation but doesn't vanilla vim do that per default? Just press : and up-arrow and old commands should appear.
-- ds
-----Ursprungligt meddelande----- Från: Patrick Dupre [mailto:pdupre@gmx.com] Skickat: den 28 september 2017 13:05 Till: fedora users@lists.fedoraproject.org Ämne: vi
Hello,
How can I keep stored the commands of vi from call to call? cf. 1,$s/ //
I would like to have it back next time that I edit other file.
Thank.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France =========================================================================== _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Thu, Sep 28, 2017 at 7:04 AM, Patrick Dupre pdupre@gmx.com wrote:
Hello,
How can I keep stored the commands of vi from call to call?
Within vim, enter command mode and type:
:help history
for pointers on how to do this.
thank you very much.
Actually you need to use wim
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Sent: Thursday, September 28, 2017 at 4:09 PM From: "Gordon Messmer" gordon.messmer@gmail.com To: users@lists.fedoraproject.org Subject: Re: vi
On 09/28/2017 04:04 AM, Patrick Dupre wrote:
How can I keep stored the commands of vi from call to call?
Make sure you have the "vim-enhanced" package installed. IIRC, on core installs you'll only get the "vim-minimal" package. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
Yes, but as long as you have the "vim-enhanced" package installed, "vi" should be an alias for "vim" _______________________________________________
I do not think so: viw-enhanced rovides:
/etc/profile.d/vim.csh /etc/profile.d/vim.sh /usr/bin/rvim /usr/bin/vim /usr/bin/vimdiff /usr/bin/vimtutor
only /etc/profile.d/vim.sh provide the alias to vi
Am I right?
On 09/28/2017 10:28 AM, Patrick Dupre wrote:
Yes, but as long as you have the "vim-enhanced" package installed, "vi" should be an alias for "vim"
I do not think so: viw-enhanced rovides: /etc/profile.d/vim.sh
only /etc/profile.d/vim.sh provide the alias to vi
Am I right?
I guess I'm not sure what you're asking. The "vim-enhanced" package provides /etc/profile.d/vim.sh (and a csh equivalent). That file should be sourced by your shell, and alias "vi" to "vim". Thus, as long as you have the "vim-enhanced" package installed, "vi" should be an alias for "vim".
Why do you not think so?