Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to align // style comments #114

Closed
neybar opened this issue Aug 28, 2017 · 2 comments
Closed

How to align // style comments #114

neybar opened this issue Aug 28, 2017 · 2 comments
Labels

Comments

@neybar
Copy link

neybar commented Aug 28, 2017

I have code like this:

var foo = "1"; // foo variable
var foofoo = "22"; // foofoo variable

I'm having a hard time getting the comments to actually align. I've tried variations on the following sequence: gavip; ctrl-x; / For the actual regex, I've tried /, \/, and so on.

@rod-stuchi
Copy link

Have you tried by command-line:

:EasyAling/\/\//

@junegunn
Copy link
Owner

-<space> (around the last whitespaces) is the easiest way to achieve this, since whitespaces in comment (after //) are ignored by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants