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

Made live mode more intuitive to use #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sslater11
Copy link

@sslater11 sslater11 commented Sep 20, 2019

I have setup my vim to use 'ga' as live mode, and hated typing ctrl-p to exit it. So I've made some changes and also made it feel a bit more fluid when changing our minds :D.

We can press any of these keys several times to see our alignments change in real time
I changed the Enter key to accept the changes, instead of the old Ctrl-P, which felt clunky and odd.
We now cycle through different alignments using the 'a' key.
We can enter regex mode by typing / at an point.
We can align by columns 1-9 by pressing the keys 1-9 at any time.
We can align by ALL columns by pressing '*' at any time.
We can align just the last column by pressing '-' at any time.

Edit: This is my first time reading and modifying vimscript, and I believe it is error free, but would love a professional's opinion.

We can press any of these keys several times to see our alignments change in real time
I changed the Enter key to accept the changes, instead of the old Ctrl-P, which felt clunky and odd.
We now cycle through different alignments using the 'a' key.
We can enter regex mode by typing / at an point.
We can align by columns 1-9 by pressing the keys 1-9 at any time.
We can say align by ALL columns by pressing '*' at any time.
We can align just the last column by pressing '-' at any time.
Probably personal preference, but I tend to want to match all the columns up every time I use this, so I set it to default.
Not sure if this is the proper way to do it, but it seems to work well for me at least :).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant