Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Starefossen
Created March 9, 2016 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Starefossen/d7393420280a1ac9e1ba to your computer and use it in GitHub Desktop.
Save Starefossen/d7393420280a1ac9e1ba to your computer and use it in GitHub Desktop.
VIM: Copy lines

Yank lines 81-91

:81,91y<enter>

If your fingers don't like to find the : and , keys, this would work as well (go to line 81, yank 11 lines)

81gg11yy 

My only use of g is 5gg. To go to the 5th line. 22gg: 22nd line. As jimbo said, it's really only a modifier for some other commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment