You need to use the clipboard register, which is *
, so to copy a line of text into clipboard:
"*yy
To paste a line of text from the clipboard:
"*p
More Related Contents:
- How do I exit the Vim editor?
- How to replace a character by a newline in Vim
- What is your most productive shortcut with Vim?
- Why do Vim experts prefer buffers over tabs? [closed]
- How do I exit Vim?
- Indent multiple lines quickly in vi
- Make Vim show ALL white spaces as a character
- How do I use vim registers?
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- How to paste over without overwriting register
- Move entire line up and down in Vim
- How to include forward slash in vi search & replace
- Copy all the lines to clipboard
- How do I tidy up an HTML file’s indentation in VI?
- How to effectively work with multiple files in Vim
- Traversing text in Insert mode
- Best way to insert timestamp in Vim?
- Find and replace strings in vim on multiple lines
- What are the dark corners of Vim your mom never told you about? [closed]
- Vim delete blank lines
- How do I fix the indentation of an entire file in Vi?
- Replace tabs with spaces in vim
- Setting the Vim background colors
- How do I use vi keys in ipython under *nix?
- Linux vi arrow keys broken in insert mode
- Removing BOM characters using Java [duplicate]