3 ms·
I can't believe vim allows executing commands when pasting text. Who on earth thought it was a good idea?
by Grue3 10y ago
I can't believe vim allows executing commands when pasting text. Who on earth thought it was a good idea?
- exclusiv 10y agoI just used it today to run 200 commands I generated from Excel.
- Nyubis 10y agoIt's not something that vim explicitly allows, it's a side-effect of running the editor in a terminal. When you paste into a terminal, it's as if the keys are actually being pressed, rather than just text inserted. The proper way of pasting into vim, which doesn't have this problem, is "+p (as mentioned in the article).
- oftenwrong 10y agoor :set paste