junegunn / junegunn/vim-easy-align

Suggestion: Provide a delimiter for comments

Open
#122 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vim Script
Stars
4.2k
Forks
122
PR merge metrics
No merged PRs in 30d

Description

I often have trouble using regular expressions with easy-align and I think I've tracked it down to #53: it's probably always with aligning comments.

Could easy-align provide a comment delimiter that uses `commentstring` to determine the pattern?

Something like this:

" Provide a / delimiter for the current filetype's comment marker.
augroup easyalign_comment
au!
au BufEnter * let g:easy_align_delimiters['/'] = { 'pattern': substitute(&commentstring, '%s.*', '', ''), 'ignore_groups': ['!Comment'] }
augroup END

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.