I'm learning my way around the vim and got around to copy-paste. Or yank-paste. Now when I try to paste a yanked piece of text, it pushes previous content to the right and squeezes in on the left.I took 2 screenshots to show you what behaviour I mean.And before pasting:after pasting:I don't think that my .vimrc affects pasting behaviour:execute pathogen#infect()set numberset tabstop=3 tabs are 3 spaces big (smaller than default)set shiftwidth=3 3 spaces are also used with auto indentset smartindent You'll keep the indentation on the next line when you press enter.auto complete bracketsinoremap { {}<Esc>i inoremap [ []<Esc>iinoremap ( ()<Esc>ilet g:solarized_termcolors=256syntax onset t_Co=256colorscheme solarizedset background=lightremap CTRL-c in visual mode for copy to clipboardvnoremap <C-c> +yLet vim change the working directory automatically (so you can open files from the current path)set autochdirOpen new split panes to right and bottom, which feels more natural than Vims default:set splitbelowset splitrightmap a key to maximize current screenmap <F5> <C-W>_<C-W><Bar>map <F6> <C-W>=
Pasting with vim squeezes content in between previous content and margin
ubuntu;vim;paste
In vim there's various ways to copy/paste. (In the enumeration below I'm just showing the three variants using first marking the text then copy/pasting.)Select a range of whole lines: type V, move to end of range, type y. Then go to the target position and use p to print the text below the current line or use P to print it above.Select a range of text with accuracy of characters: type v, move to the end of the area (which may be on another line), type y. Then go to the target position and use p to print the copied text after the current charater or P to print it before. (Existing line breaks are preserved.)Select a block of text: type Ctrl-V, move to the end of the rectangular block, type y. If this block is pasted inside existing text then that existing text will be shifted to the right to make place for the new text.Your copy/paste method seems to have been 3. - Use one of the other methods that fits your needs best.