How Can I Get vi Editor Commands History

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

# hlsearch on (H) or off (h):
# Last Search Pattern:

# Command Line History (newest to oldest):
:set ic
:/  //g


DBA Tips Data Pump Reference


Post a Comment


dba topics. Copyright 2011-17 All Rights Reserved | Site Map | Contact | Disclaimer | Google