Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Quickly open to file and position a cursor with vim

Answer:

To open a file and automatically move the cursor to a particular line number

# vi +80 test.txt

The vim will move the cursor to line 80 when opened the file.

  1. Move cursor to the end of file in VIM
  2. Open UTF-8 file with Vim
  3. Are there any Linux equivalent of the Mac OS X “open” command?
  4. Save a file in vim without the needed permissions
  5. Increase the maximum number of open files / file descriptors

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>