Last active
August 29, 2015 14:25
-
-
Save Johnytran/a656db209bfc0adb376f to your computer and use it in GitHub Desktop.
copy all line in vim to vim buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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