Sponsored Content
Top Forums UNIX for Dummies Questions & Answers remember last visited line in vim Post 302074599 by spopuri on Wednesday 24th of May 2006 11:07:25 AM
Old 05-24-2006
remember last visited line in vim

hi, I know we can do this; but dont know how..

I open a file using vim..browse thru it and then say :wq after reaching some line;

The next time I open the same file, I want vim to position the cursor on the line where I left last time;

anyone?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vim as command line editor

Here is my problem, I manage a SunOs 5.8 Server, vi is the default command line editor, I have a line on each users .kshrc profile as follows: export EDITOR=/bin/vi I want to use vim as the command line editor, the below line doesn't work export EDITOR=/bin/vim Thank you (1 Reply)
Discussion started by: tony3101
1 Replies

2. UNIX for Advanced & Expert Users

line completion in vim

how we achive line completion and word completion in vim editor? (2 Replies)
Discussion started by: lakshmananindia
2 Replies

3. UNIX for Advanced & Expert Users

how to go previous line in vim

hi, suppose my cursor is on 15 th line in vim i want to go 105 th line and directly come to 15 line from there is any shot key in vim to come directly to previous line ? (2 Replies)
Discussion started by: useless79
2 Replies

4. UNIX for Dummies Questions & Answers

visited websites

Hi guys, Im just wondering on where a network admin would view a list of visited websites in unix and where to block some websites? (3 Replies)
Discussion started by: jake2891
3 Replies

5. UNIX for Dummies Questions & Answers

go to previously visited directory

Is there a way to go back to the previously visited directory? say im in /dir1 then went to /dir2 and wanted to go back to /dir1. besides from aliasing every directory i have, i was wondering if there's a way to maybe alias a command to go to the previously visited directory just to make it more... (8 Replies)
Discussion started by: swag:þ
8 Replies

6. UNIX for Advanced & Expert Users

vim editor -> uncounted new line

Hi, I entered the following text in a new file through vim: "Four score and seven years ago" saved and exit. When I looked at the file size, it was 31B, although is supposed to be 30. I reedited the file (again with vim) to check for errors, but everything seemed fine. When I opened the file... (3 Replies)
Discussion started by: prostiiinet
3 Replies

7. Shell Programming and Scripting

parse a log file and remember last line

Hi all: I'm working on a HPUX 11.23 system and I am needing to parse a tomcat-jakarta log file for memory use. Getting the desired data is easy, assuming the log file does not grow. This file grows constantly and I want to check it q 5 min. The next check will pick up from where it left off 5... (4 Replies)
Discussion started by: raggmopp
4 Replies

8. UNIX for Advanced & Expert Users

How to take visited Website log?

I want to take logs for all the visited websites. If any user enter a URL in browser address bar I want to take the log after I want to proceed to access the website and I want to block some websites for my users. I'm using Linux machine. How to do this ? (4 Replies)
Discussion started by: ungalnanban
4 Replies

9. UNIX for Dummies Questions & Answers

vim copy line and paste at the beginning, middle, and end of another line

How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies

10. OS X (Apple)

Vim line length...

The vi(m) text editor... Google is not my friend here... I have already found out that it is possible to save a pure text file without the '0x0A' newline character at the very end of the file but I can't find anything on the next question. I have written a raw audio file to quantised pure... (6 Replies)
Discussion started by: wisecracker
6 Replies
VIMTUTOR(1)						      General Commands Manual						       VIMTUTOR(1)

NAME
vimtutor - the Vim tutor SYNOPSIS
vimtutor [-g] [language] DESCRIPTION
Vimtutor starts the Vim tutor. It copies the tutor file first, so that it can be modified without changing the original file. The Vimtutor is useful for people that want to learn their first Vim commands. The optional argument -g starts vimtutor with gvim rather than vim, if the GUI version of vim is available, or falls back to Vim if gvim is not found. The optional [language] argument is the two-letter name of a language, like "it" or "es". If the [language] argument is missing, the lan- guage of the current locale will be used. If a tutor in this language is available, it will be used. Otherwise the English version will be used. Vim is always started in Vi compatible mode. FILES
/usr/share/vim/vim73/tutor/tutor[.language] The Vimtutor text file(s). /usr/share/vim/vim73/tutor/tutor.vim The Vim script used to copy the Vimtutor text file. AUTHOR
The Vimtutor was originally written for Vi by Michael C. Pierce and Robert K. Ware, Colorado School of Mines using ideas supplied by Charles Smith, Colorado State University. E-mail: bware@mines.colorado.edu. It was modified for Vim by Bram Moolenaar. For the names of the translators see the tutor files. SEE ALSO
vim(1) 2001 April 2 VIMTUTOR(1)
All times are GMT -4. The time now is 04:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy