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

replace plugin Smart-Tabs with vim-easy-align #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

replace plugin Smart-Tabs with vim-easy-align #66

wants to merge 1 commit into from

Conversation

salcode
Copy link
Contributor

@salcode salcode commented Sep 3, 2014

The drive to make this swap was to correct the issue outlined in #57 but
overall I think this is an improvement. EasyAlign plugin

Reminder: you'll need to run :BundleInstall! to update your plugins after applying this code

Other modifications:

  • Remap :A to align on the symbol (as it did
    with Smart-Tabs).
  • Add a mapping for in visual mode that triggers EasyAlign
    interactive mode for the selected lines
  • Add a mapping for a, which then takes a motion/text object
    that triggers EasyAlign interactive mode for the motion/text object
    (e.g. a5j will select 5 lines and trigger EasyAlign
    interactive mode)

Fixes #57

The drive to make this swap was to correct the issue outlined in #57 but
overall I think this is an improvement.

Other modifications:
- Remap :A <symbol> to align on the symbol (as it did
with Smart-Tabs).
- Add a mapping for <Enter> in visual mode that triggers EasyAlign
  interactive mode for the selected lines
- Add a mapping for <leader>a, which then takes a motion/text object
  that triggers EasyAlign interactive mode for the motion/text object
  (e.g. <leader>a5j will select 5 lines and  trigger EasyAlign
  interactive mode)

Fixes #57
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.

hitting enter midline when in insert mode puts cursor at end of next line
1 participant