The short version: you can't. There are ways around it, but they aren't necessarily simpler. Longer version follows.
Vim has three ways of marking regions of text: linewise (you start this mode when you press V), characterwise (triggered when you press v), and blockwise (when you press Ctrl-v). The marked region is copied to a register, and this register has an attribute, the "type", that reflects the way you did the marking, linewise, characterwise, or blockwise. What happens when you paste from a register depends on this type.
Now, when you copy from system's clipboard the result is stored in the *
register, and the type is always set to linewise. Thus you can't paste a column mode "without extra step". You can however set the type of the *
register to blockwise before pasting:
call setreg('*', @*, 'b')
Thus, replacing the list of your proxies would go something like this:
- copy the new list to clipboard, from the mail message
- run
:call setreg('*', @*, 'b')
to set the type of the *
register to blockwise
- go to the old list, press Ctrl-v and mark it; assuming there's nothing else in the file aside from the proxies, a Vim golfer's way of doing that might be something along the lines of:
- f" - go to the first
"
- Ctrl-v - start marking
- ?;Enter - go to the last
;
- paste the new list over the selection, with "*p.
You can simplify the last step a little, by making the *
and +
registers always refer to the same value. To do that, add this to your vimrc:
set clipboard=unnamedplus,autoselect,exclude:cons\\\\|linux
With this setting the incantation becomes:
- copy the new list from mail
- run
:call setreg('+', @+, 'b')
- go to the old list and mark it with Ctrl-v as above
- press p to paste the new list over it.
You don't need this dance if you have the new list in a file that you can open with Vim:
- open the file with the old list
- open the file with the new list in a separate copy of Vim
- mark the new proxies with Ctrl-v and yank them with y
- in the other Vim mark the old list with Ctrl-v and paste the new one over it with p.
This still involves using the system clipboard under the hood, but the second copy of Vim takes care of setting the type of the relevant register to blockwise.