Closed habamax closed 5 years ago
Basically in s:go
function:
...
else
if exists("b:comment_linestart")
let comment_strip = '^'
else
let comment_strip = '^\s*'
endif
let line = substitute(line,'^\%('.matchstr(getline(lnum1),comment_strip).'\|\s*\)\zs.*\S\@<=','\=l.submatch(0).r','')
endif
...
Then I can setup b:comment_linestart
for asciidoctor filetype.
Would you accept a PR?
Fixed
Is it possible to setup it the way comment chars are inserted to beginning of line?
For Asciidoctor, comments should start with
//
at first column: