Skip to content

Instantly share code, notes, and snippets.

@Johnytran
Last active August 29, 2015 14:25
Show Gist options
  • Save Johnytran/a656db209bfc0adb376f to your computer and use it in GitHub Desktop.
Save Johnytran/a656db209bfc0adb376f to your computer and use it in GitHub Desktop.
copy all line in vim to vim buffer
Use:
:%y+
to yank all lines.
Explanation:
% to refer the next command to work on all the lines
y to yank those lines
+ to copy to the system clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment