New answers tagged

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.
蔡政特's user avatar
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') ...
guest's user avatar
  • 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 ...
Grwlf's user avatar
  • 121

Top 50 recent answers are included