When I paste something in
To solve this issue just go to command mode by pressing
Then paste your code. Note that the text in the tooltip now says
You can set a keyboard shortcut for it (here F5):
#editor #vim #nopaste #paste #pastetoggle
vim
all lines get indentation:line
line
line
To solve this issue just go to command mode by pressing
ESC
on your keyboard now type::set paste
Then paste your code. Note that the text in the tooltip now says
-- INSERT (paste) --
.NOTE:
After you pasted your code, turn off the paste-mode, so that auto-indenting when you type works correctly again.:set nopaste
You can set a keyboard shortcut for it (here F5):
set pastetoggle=<F5>
#editor #vim #nopaste #paste #pastetoggle