Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 630 Bytes

File metadata and controls

35 lines (31 loc) · 630 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
open-file-at-line-number-with-vim
vim
public
2022-11-16 09:19:31 -0800
2022-11-16 09:19:31 -0800
false
20221116171931
false
false
file
line-number
open
vim
Open a File at Specified Line Number with Vim
tech-note

You can provide a line number as an argument when opening a file in Vim and Vim will open the file and put the cursor at that line number.

vim +<line_number> <filename>

With a real example, the above becomes:

vim +82 playbook.yml