How Can I Get vi Editor Commands History

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
Option 1:
        Open vim editor and press then (colon Key) :
        Use up and down arrows to see the previous command history.
Option 2:
        Open vi editor and press then :history
        This will list around 20+ commands in the screen.
Option 3
        Open the .viminfo file in the home directory which will give you the list of commands which got executed preiously.

vi ~/.viminfo
# Value of 'encoding' when this file was written
*encoding=utf-8


# hlsearch on (H) or off (h):
~H
# Last Search Pattern:
~MSle0~/memory_target

# Command Line History (newest to oldest):
:q
:history
:wq1
:1
::q
:wq
:set ic
:q!
:w
:.,$d
:wq!
:!date
:s
:!pwd
:WQ
:/  //g
:q1

:Q!

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer