How Can I Get vi Editor Commands History



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

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

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



Website Stats


Post a Comment


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) Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer