New answers tagged cut-copy-paste
1
vote
Paste word on new line with indentation from current line
Use o to create a new line, then use <c-r> to enter register mode in insert mode, and finally press " to invoke the unnamed register to paste the copied content.
0
votes
How do I copy and paste between two Vim instances - shared clipboard?
I use a temporary file:
Put these lines in .vimrc for both users:
function! Write2Tmp()
silent! '<,'>w! /tmp/tmp.txt
call system('chmod 0777 /tmp/tmp.txt > /dev/null 2>&1')
...
2
votes
Yank lines without leading whitespace
Let me provide a multiline version of the answer by @theonlygusti. This version does not rely on anti-quotations and global variables so I hope it might be considered more readable. When executed, it ...
Top 50 recent answers are included
Related Tags
cut-copy-paste × 488register × 49
os-clipboard × 41
visual-mode × 33
key-bindings × 31
neovim × 29
vimrc × 25
visual-block × 22
cursor-motions × 20
vimscript × 18
normal-mode × 15
replace × 13
terminal × 12
indentation × 12
cursor-movement × 11
search × 10
gvim × 10
insert-mode × 10
command-line × 9
linux × 9
macos × 9
repeated-commands × 7
mouse × 7
substitute × 6
tmux × 6