You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for the excellent plugin. I use it for quite well, now I want to do some customization. However, I do not know the grammar of vimscript. I also search around and did not find the corrected answer.
The specific customization is changing call append(l + 7, g:file_copyright_comment_mid_prefix." Last Modified : ".strftime("%Y-%m-%d %H:%M"))
to call append(l + 13, g:file_copyright_comment_mid_prefix." \\date ".strftime("%Y/%m/%d %H:%M"))
And I also change let regline = '^'.g:file_copyright_comment_mid_prefix.'\s*\S*Last\sModified\s*:\s*\S*.*$' execute '/'.g:file_copyright_comment_mid_prefix.'\s*\S*Last\sModified\s*:/s@:.*$@\=strftime(": %Y-%m-%d %H:%M")@'
to let regline = '^'.g:file_copyright_comment_mid_prefix.'\s*\\date\s*\s*.*$' execute '/'.g:file_copyright_comment_mid_prefix.'\s*\\date\s*/s@*$@\=strftime("%Y/%m/%d %H:%M")@'
for update
The changes works well, but when I use "CopyrightUpdate", It seems something wrong with string match, and resulting double title. Could you please help me correcting the matching pattern?
thanks in advance
The text was updated successfully, but these errors were encountered:
Hi authors,
Thanks a lot for the excellent plugin. I use it for quite well, now I want to do some customization. However, I do not know the grammar of vimscript. I also search around and did not find the corrected answer.
The specific customization is changing
call append(l + 7, g:file_copyright_comment_mid_prefix." Last Modified : ".strftime("%Y-%m-%d %H:%M"))
to
call append(l + 13, g:file_copyright_comment_mid_prefix." \\date ".strftime("%Y/%m/%d %H:%M"))
And I also change
let regline = '^'.g:file_copyright_comment_mid_prefix.'\s*\S*Last\sModified\s*:\s*\S*.*$'
execute '/'.g:file_copyright_comment_mid_prefix.'\s*\S*Last\sModified\s*:/s@:.*$@\=strftime(": %Y-%m-%d %H:%M")@'
to
let regline = '^'.g:file_copyright_comment_mid_prefix.'\s*\\date\s*\s*.*$'
execute '/'.g:file_copyright_comment_mid_prefix.'\s*\\date\s*/s@*$@\=strftime("%Y/%m/%d %H:%M")@'
for update
The changes works well, but when I use "CopyrightUpdate", It seems something wrong with string match, and resulting double title. Could you please help me correcting the matching pattern?
thanks in advance
The text was updated successfully, but these errors were encountered: