Junegunn Choi
2fa6a040f6
Change option name and shorthand notations
...
- `mode_sequence` (`ms`) -> `align` (`a`)
- `stick_to_left` (`<` / `s01`)
This commit does not break backward compatibility.
`mode_sequence` is still allowed.
2014-07-23 22:15:01 +09:00
Junegunn Choi
fc9555cd65
Allow negation operator in ignore_groups option
...
e.g. ig['!String']
2014-06-24 00:09:51 +09:00
Junegunn Choi
a98c1ccc99
Add '#'-rule ( #30 )
...
For Ruby/Python comments. This new '#' rule will only match
'#' characters that are highlighted as comments.
2014-06-20 10:36:37 +09:00
Junegunn Choi
ba54df53ca
Better handling of tab characters using strdisplaywidth
2014-04-11 10:39:39 +09:00
Junegunn Choi
4929841a7a
Remove +float dependency
2014-01-20 01:30:31 +09:00
Junegunn Choi
dc4786841e
Workaround for Vim bug: using Float as a String in gvim ( #27 )
2013-12-19 10:20:04 +09:00
Junegunn Choi
46abd8fb92
Add set cpo&vim for compatible mode
2013-12-19 10:04:03 +09:00
Junegunn Choi
d3eec7fa8b
Remove an unnecessary function call
2013-12-05 20:50:46 +09:00
Junegunn Choi
da284f908e
<Plug>(EasyAlign) / <Plug>(LiveEasyAlign) for vim-repeat integration
2013-12-01 22:58:13 +09:00
Junegunn Choi
3921d0bab3
Fix #20 - Alignment with tabs inserting spaces
2013-11-20 07:27:39 +09:00
Junegunn Choi
2daae46a43
Fix indentation option to work with hard tabs ( #19 )
2013-10-31 12:32:07 +09:00
Junegunn Choi
2b119f9bb6
Fix issue #19 (hard tab indentation)
2013-10-31 11:08:02 +09:00
Junegunn Choi
2832a76cea
Implement filter option ( #16 , #17 )
...
This commit implements filter option which can be used to filter lines within
the range based on the given pattern. The value of filter option should be
either `g/pattern/` or `v/pattern/`. The former aligns lines that match the
pattern, the latter aligns lines that do not match the pattern.
2013-10-27 03:10:04 +09:00
Junegunn Choi
1a232ac19b
Revert "Make user confirm regular expression on live interactive mode"
...
This reverts commit a76cfdb8ae .
2013-10-25 02:17:52 +09:00
Junegunn Choi
a76cfdb8ae
Make user confirm regular expression on live interactive mode
2013-10-25 02:11:43 +09:00
Junegunn Choi
3cc564bd68
Do not attach margin_left string before phantom token
2013-10-19 19:49:11 +09:00
Junegunn Choi
6e2264672a
Implement live interactive mode ( #15 )
...
This commit adds LiveEasyAlign command. (The name was chosen not to introduce
ambiguity when typing in only the prefix of the command: e.g. `:EasyA*|`)
In live interactive mode, the selected text is aligned on-the-fly as the user
type in. In order to finalize the alignment, the user has to type in the
same delimiter key again. (Or CTRL-X on regular expressions)
2013-10-19 19:21:23 +09:00
Junegunn Choi
831cecdaf2
Implement g:easy_align_bypass_fold switch ( #14 ) with a small fix
2013-10-15 23:00:43 +09:00
Junegunn Choi
37fa908d04
Remove s:max function
...
Sadly function calls are rather slow in Vimscript.
Test shows that this commit reduces the response time by 10%.
2013-10-13 12:16:58 +09:00
Junegunn Choi
256e5b83ab
Remove recursion not to fail in case of many delimiters (> maxfuncdepth)
2013-10-13 03:31:05 +09:00
Junegunn Choi
cb7306341c
Use function() instead of a forwarding function
2013-10-13 02:10:33 +09:00
Junegunn Choi
7b82a1e496
Fix: right margin sometimes not attached in partial alignment
2013-10-13 02:09:06 +09:00
Junegunn Choi
ad2df21039
Add alignment rule for LaTeX tables ( #13 )
2013-10-10 22:15:23 +09:00
Junegunn Choi
133588b181
Testing with Vader.vim
2013-10-09 20:16:58 +09:00
Junegunn Choi
2bf1b2164d
Allow shorthand option notation when using delimiter key
...
e.g. :EasyAlign=l2r2dlmlr**
2013-10-07 21:09:37 +09:00
Junegunn Choi
fa26fd7b42
Remove option value after every cycle
2013-10-05 15:27:50 +09:00
Junegunn Choi
a4a1e27395
Apply ignore_unmatched option on R/C mode if explicitly set
...
By default, unmatched trailing token from each line is also aligned in
right and center alignment modes unlike in left alignment mode. If
ignore_unmatched option is explicitly set to 1 by user, they will be ignored
even in right/center modes.
2013-10-05 12:23:44 +09:00
Junegunn Choi
98bd9fe6f0
Shorthand notation for ignore_groups/ignore_unmatched
...
e.g. ig['String']iu0
2013-10-04 02:29:24 +09:00
Junegunn Choi
f944f5bf29
Set g:easy_align_last_command
2013-10-04 02:07:35 +09:00
Junegunn Choi
9d3afa6206
Merge option values in dictionary and shortcut expression
2013-10-04 01:36:55 +09:00
Junegunn Choi
4c6a8c174d
Implement shortcut expression for options
2013-10-03 21:59:51 +09:00
Junegunn Choi
3304f4e95a
Make <Down> set both left and right margin to zero
...
(Undocumented) <Up> will clear *UP* left_margin, right_margin, and stick_to_left
2013-10-03 16:06:23 +09:00
Junegunn Choi
2d575bcc25
Underscore between parens
2013-09-22 22:56:27 +09:00
Junegunn Choi
5230a2402f
Disallow 0 as the first character of N-th
2013-09-22 21:58:31 +09:00
Junegunn Choi
94a750e03e
Remove unnecessary prev output wipe
2013-09-22 21:48:14 +09:00
Junegunn Choi
afc95b5ed7
Forgiving interactive mode: Do not terminate on invalid input
2013-09-22 21:17:02 +09:00
Junegunn Choi
1d2c58c06a
Field index -> N-th parameter
2013-09-22 03:52:36 +09:00
Junegunn Choi
2797baca6c
Disallow non-printable character input
2013-09-21 12:04:56 +09:00
Junegunn Choi
663264ed39
Fix center-alignment
...
= = eee = eee = f
= = gg &&= gg
= = fff
= = eee = eee = f
= = gg &&= gg
= = f f
2013-09-21 03:31:34 +09:00
Junegunn Choi
df75520f72
Colored, replayable output
2013-09-21 03:11:20 +09:00
Junegunn Choi
a2d52611ee
Fix invalid type conversion
2013-09-20 23:19:32 +09:00
Junegunn Choi
fce0a103ff
Use try-finally for reverting the setup
2013-09-19 17:27:26 +09:00
Junegunn Choi
1752bf567b
Improve message output
...
- Error message highlighting
- Wipe previous message if needed
- No line wrap on narrow terminal
2013-09-19 17:10:00 +09:00
Junegunn Choi
9cf4fde00c
Use number as margins (same effect, but easier to read)
2013-09-17 03:12:30 +09:00
Junegunn Choi
d3803b927d
Heuristically determine if the user was in visual mode
2013-09-14 23:15:03 +09:00
Junegunn Choi
40a06e3d36
Left arrow key will also set left_margin to zero
...
- Right arrow key will set left_margin to one
- Up and Down arrow will clear the values of stick_to_left and left_margin
2013-09-14 17:30:51 +09:00
Junegunn Choi
9f9d18ca71
Fix #8 , #9 , and #10 .
...
- <Left> and <Right> key to toggle stick_to_left option
- <CTRL-X> in addition to <CTRL-/> to take regular expression
- Retain visual selection display on <CTRL-O/L/R/X>
2013-09-14 12:31:01 +09:00
Junegunn Choi
301bdbcfc7
Regular expression in interactive mode ( #8 )
2013-09-14 00:40:16 +09:00
Junegunn Choi
56e498a57d
Implement mode_sequence expansion ( #7 )
2013-09-14 00:05:08 +09:00
Junegunn Choi
6cac16dc3d
Include =~# and =~? in = rule (Vimscript)
2013-08-25 23:03:30 +09:00