Skip to main content
3 events
when toggle format what by license comment
Aug 1, 2022 at 7:54 comment added mattb Thanks @D.BenKnoble! This part of my .vimrc hails from a time when I was less informed (and if it 'worked' I would declare success and leave it at that :) I'll play around with it and update the answer soon. Thanks once again.
Aug 1, 2022 at 2:32 comment added D. Ben Knoble execute "normal! j" can be just normal! j or even -; similar for other cases. Also, if you’re putting from a register, I don’t think setting paste has any effect (it’s specifically for when you actually paste from a clipboard using OS controls in insert mode and don’t want the text to trigger anything in Vim). So something like "*p'[='] should do fine, though you may need to adjust to paste linewise (perhaps :put * then '[=']?)
Jul 31, 2022 at 20:49 history answered mattb CC BY-SA 4.0