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
*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!

DBA Tips Data Pump Reference

0 comments:

Post a Comment

 

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