Paste register contents into command mode with Ctrl-r
A bit of a nitpick: "Command mode" in the documentation is an alias for "Normal mode". Check `:help command-mode`. What the article refers to is "Command-line mode" (`:help Command-line-mode`)
This is a great tip IF vim has been compiled with the clipboard option.
You can check this by running 'vim --version' and looking for the clipboard entry
-clipboard = no clipboard support
+clipboard = clipboard support
Unfortunately, some linux distros (I'm talking about YOU AWS) don't have this turned on.
Another interesting thing I discovered is that you can test, for example, a function you have on the clipboard by doing this:
:@+ Enter
:call FunctionName()
And we can also substitute registers, for example:
Let's say you have a series of lies with numbers, you select these lines an copy to the clipboard, you can then do:
let @a=substitute(@+, 'c-V c-J', '+', 'g')
ic-R=c-R+ Enter
Total = 69.5
NOTE: c-V c-J must be typed
A bit of a nitpick: "Command mode" in the documentation is an alias for "Normal mode". Check `:help command-mode`. What the article refers to is "Command-line mode" (`:help Command-line-mode`)
This is a great tip IF vim has been compiled with the clipboard option.
You can check this by running 'vim --version' and looking for the clipboard entry
-clipboard = no clipboard support
+clipboard = clipboard support
Unfortunately, some linux distros (I'm talking about YOU AWS) don't have this turned on.
Another interesting thing I discovered is that you can test, for example, a function you have on the clipboard by doing this:
:@+ Enter
:call FunctionName()
And we can also substitute registers, for example:
Let's say you have a series of lies with numbers, you select these lines an copy to the clipboard, you can then do:
let @a=substitute(@+, 'c-V c-J', '+', 'g')
ic-R=c-R+ Enter
Total = 69.5
NOTE: c-V c-J must be typed