I tried using CTRL + V for pasting contents in a VI editor document, but CTRL + V is not interpreted as a paste.
|
First, make sure you're in edit mode (press i). Then you can paste with Ctrl+Shift+V, if you're in a terminal emulator like You can also type Also check this question on stackoverflow.com for more information. If you want to copy/paste lines in |
|||||||||
|
|
Vi (and Vim) works very differently compared to a normal text editor such as Gedit. It also has a pretty steep learning curve. If you want to learn some basic commands, start with this interactive tutorial. However, to answer you question. The system clipboard's content can be accessed through the plus register. So to paste something from the system clipboard you can, from the Normal mode, press: "+p (Not at the same time, but one after another). |
|||||||||||
|
|
Use the center button of the mouse to insert text you've highlighted elsewhere. Useful when you don't have access to your system clipboard (eg. in a remote ssh session) Must be in edit/insert mode for vim |
|||
|
|
|
|||
|
|
|
I always use Shift+Insert when I want to paste text into the terminal, works in all terminal programs. (Which is also the reason why I never get a laptop where you can't press Insert without pressing a secondary key) |
|||||
|
|
|
Once you enter vi, press |
|||||||
|
vimtutorIt will get you up to speed to where it's usable to you in about 45 minutes. – Ben Mordecai Feb 16 at 18:58