3 ms·
inoremap # X<BS># This has been annoying me forever, but I never got around to fixing it. Not sure how the solution works, but it does!
by robbles 15y ago
inoremap # X<BS>#
This has been annoying me forever, but I never got around to fixing it. Not sure how the solution works, but it does!
- graywh 15y agoThis is probably b/c you're using 'smartindent' or 'cindent' all the time. Don't. The former is deprecated by the latter and they're only for C-like syntax--hence why # belongs in column 0. If you want filetype-specific indenting, you just need "filetype indent on".
- stevelosh 15y agoIt's (sort of) explained in :help smartindent.