3 ms·
I spent 10 hours learning enough vimscript to make a command to check if a line is commented, comment it if not, or uncomment if it is, be able to handle multip
by the_jeremy 5y ago
I spent 10 hours learning enough vimscript to make a command to check if a line is commented, comment it if not, or uncomment if it is, be able to handle multiple filetype and comment chars, and be able to handle proper indentation and multi-line selection.
I have to imagine it would be simpler in other languages. Vimscript is hard.
- psalminen 5y agoOut of curiosity, does your's have any benefits over NERDCommenter?
- the_jeremy 5y agoI'm sure mine's strictly worse. It was written when I was working in an environment where it was easier to spend 10 hours on something than it was to get permission / access to download vim plugins from the internet.
- revscat 5y agoGov?
- the_jeremy 5y agogovernment contractor, yeah. It is insane how much effort there is put into getting butts in chairs for the right number of hours and how little effort goes to actually building something useful.
- johnchristopher 5y agoNow that calls for story time.