vi recent command history


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users vi recent command history
# 1  
Old 02-24-2010
vi recent command history

How do you get your recent vi command history to show up? I keep randomly getting like my previous 5 commands and can't figure out how I'm doing it. I think it has something to do with the shift key and another button.
# 2  
Old 02-24-2010
try the following:

<ESC>: (Hit Escape key, then colon key)

then

use up-down arrows to recall previous commands
# 3  
Old 02-24-2010
Quote:
Originally Posted by pchang
try the following:

<ESC>: (Hit Escape key, then colon key)

then

use up-down arrows to recall previous commands
I know that. I wanna know how I keep on getting that list to appear.
# 4  
Old 02-25-2010
MySQL use this

use the following,

:history

- It will give you the command history.
# 5  
Old 02-25-2010
You can also get the history of the command list inside vim by using the following.

Go to Escape mode by pressing ESC key.Then,press q and followed by colon.It will also give the history.
# 6  
Old 02-25-2010
For your additional information the file .viminfo will contain the commands that you have executed inside vim and as well as additional information.
This file will be there under your home directory.
# 7  
Old 02-26-2010
Quote:
Originally Posted by vivekraj
You can also get the history of the command list inside vim by using the following.

Go to Escape mode by pressing ESC key.Then,press q and followed by colon.It will also give the history.

Exactly Smilie. Thx for that. It was driving me crazy that I couldn't figure it out.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP command to get most recent file

Hello Experts... dir of FTP will list all the files in the directory. Is there any command or option of dir that will give me the most recent file only? Since I couldn't find any such thing, I thought of creating a log file (of FTP results) and work on this log file to determine the most recent... (2 Replies)
Discussion started by: juzz4fun
2 Replies

2. AIX

History command

How to get the other user history file. I would like to check the commands issues from my teammate. (1 Reply)
Discussion started by: Mariappan.m
1 Replies

3. Shell Programming and Scripting

Recent History

Could some let me know the command used to view the commands that I have entered 2 days ago. I am able to perform a command fc -l but its yielding me only last 10 recent events. I need to know the history of the commands that i have entered 2 days ago. Is there anyway that I can get the information... (5 Replies)
Discussion started by: bobby1015
5 Replies

4. UNIX for Dummies Questions & Answers

The history command: See other users command history

Can anyone tell this: If two users are logged into the same server from different locations. Is there a way to see the history command of the other user? I tried the history command, but it is showing me only the commands I used. Thanks in advance for your help. Iamnew2solaris (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

5. UNIX for Dummies Questions & Answers

command to find most recent file

Hi, Here is my problem: I try to write a script to find data in a file named "data" for exemple. Let's say I am in the directory /x/y/z, there are several sub-directories in the "z" directory (each sub-directory has a file "data") and I am searching for the word "help". So I use this... (9 Replies)
Discussion started by: StephB
9 Replies

6. UNIX for Dummies Questions & Answers

vi command history

How do you look at the whole list of previous commands you have used in VI? I know you can use the up and down arrows, but I know there's a way to see the full list. (5 Replies)
Discussion started by: cokedude
5 Replies

7. Filesystems, Disks and Memory

History command

I am working on solaris and audit is not configured on server. I get last commands used on server by HISTORY command, but I want some extra information like by which user command fired & by which host id Because same time we have many people use one login & fire commands & want History command... (2 Replies)
Discussion started by: akash_wagh
2 Replies

8. Linux

tail most recent file command

I have only been working with Linux for a few years now so bear with my noob question. I was wondering if there is a way to tail the most recent file that has a file name like 'scrubsncoa%'. There will be at least 2 files in the directory that start with 'scrubsncoa' and a few other different... (2 Replies)
Discussion started by: RyanD
2 Replies

9. Shell Programming and Scripting

need help in history Command

in my system history command is set to 60 how to remove all the command status even if i give history command. i mean: if i give history command in unix it should not show anything.........how to achieve this (2 Replies)
Discussion started by: ali560045
2 Replies

10. UNIX for Dummies Questions & Answers

History Command

Hi I am using ksh shell, and I am unable to use the command !n (where n is the number in the history list). Please help me... :confused: (2 Replies)
Discussion started by: jack
2 Replies
Login or Register to Ask a Question