Instead of inside the PuTTY session, you'd ssh -X into your server, and launch Vim in a Linux terminal, or GVIM directly. Then, yanking via "+y will work as you'd expect. Alternatively, if you want to keep using PuTTY, you'd have to use some workaround, like :writeing...
And below are some of the simple and elegant commands used to indent lines quickly in Vim or gVim. To indent the all the lines below the current line =G To indent the current line == To indent n lines below the current line n== For example, to indent 4 lines below the current...
Try using GUI version (gvim) and compare its scrolling performance. You can give a try to Activity Monitor's CPU monitoring (with shortest update interval possible) to see if it shows any major CPU consuming processes during scrolling in Vim. Share Improve this answer...
6. Add the following lines to install the color scheme plugin. For example, to install thegruvboxcolor scheme call plug#begin('~/.vim/plugged') Plug 'morhetz/gruvbox' call plug#end() colorscheme gruvbox 7. Open Vim and run the following command to install the plugins defined in your.vim...
If anyone wants to 4-color map theorem this, I’ll gladly update it. Some of these zones are non-contiguous, so I drew black lines connecting the corresponding parts. Each of these 8-pixel parts translate into one byte of data in an alphanumeric QR code. Now, the million dollar questio...
4. Copy the 1st line to 2nd line to have two lines with 1 . as shown below Type: Esc yy followed by p yy will copy the current line p will paste the line that was just copied $ vim sequence-test.txt 1. 1. Note:Vim will still show recording at the bottom as shown below. ...
We can remove all blank lines in a filename as well. For example, I have the following file. $ lsClouds of Sunset.mp3 To remove all blank spaces in the above filename, run: $ rename "s/ *//g" * Now, the filename doesn't have any blank spaces. ...
Define a search pattern manually: :let @/ = 'foo' cf. :help :let Note that doing that, you needn't to escape / in the pattern. However you need to double all single quotes of course. Copy all lines beginning with foo, and afterwards all lines containing bar to clipboard, chain thes...
For conflicts that involve more than a few lines, it's easier to see what's going on in an external GUI tool. I like opendiff -- Git also supports vimdiff, gvimdiff, kdiff3, tkdiff, meld, xxdiff, emerge out of the box and you can install others: git config merge.tool "your.too...