Refactored the single-line commenting toggle to use vimscript functions