Chiel ten Brinke
f9cc5ff1b3
Merge branch 'master' into dev
2015-12-23 17:01:37 +01:00
Chiel ten Brinke
7902a12391
Cleanup and update README.
2015-12-15 13:15:05 +01:00
MeLody
37a6b7f979
add swith to default gg=G
2015-12-14 16:41:01 +08:00
frtmelody
b01c85e8f7
Update autoformat.vim
...
disable gg=G
2015-12-13 16:59:33 +08:00
Chiel ten Brinke
d704fd1647
Add config file detection for clang-format.
...
Also
- add CurrentFormatter command.
- more verbosity.
- update readme.
2015-12-04 09:59:23 +01:00
Chiel ten Brinke
67222e2a2f
Substitute \n with os.linesep. Cleanup change log.
2015-11-12 11:30:59 +01:00
Chiel ten Brinke
289c66899f
Append newline to text before sending to formatter.
2015-11-11 18:21:35 +01:00
Chiel ten Brinke
1243463143
Also take different eols into account for removing last empty line
2015-10-29 17:25:39 +01:00
Chiel ten Brinke
735d709e84
Fix python3 support.
2015-10-29 12:22:48 +01:00
Chiel ten Brinke
e6ecfff004
Merge master.
2015-10-28 13:59:03 +01:00
Chiel ten Brinke
10e80a996c
Merge branch 'master' into dev
2015-10-28 13:57:45 +01:00
Chiel ten Brinke
8a740ab186
Try all possible new line characters to split on.
2015-10-28 13:57:22 +01:00
Chris Coe
27abe69588
quick fix for both if and else conditions
2015-10-10 07:41:51 -04:00
Chris Coe
62554bd2b0
fix endline in python3
2015-10-08 17:06:58 -04:00
Chiel92
e1e082a970
attempt crossplatform line endings
2015-08-31 21:11:15 +02:00
Chiel92
0ea8377eaa
Cleanup
2015-08-08 14:37:21 +02:00
Fredrik Hansson
9545f0cfcf
fix for using the default gg=G on files without formatting definitions at all
2015-08-08 14:01:26 +02:00
Chiel92
a5b99fa608
Remove pendent newline from formatter output. Fix #61 .
2015-08-01 05:57:54 +02:00
Chiel92
509f982da6
Update readme
2015-06-22 09:18:49 +02:00
Chiel92
47bd95f672
Ugly hack to support +python3
2015-06-19 23:17:31 +02:00
Chiel92
9107b620f4
Fix previous commit
2015-06-19 13:58:09 +02:00
Chiel92
977500d769
Allow vim with +python3 as well.
2015-06-19 13:38:20 +02:00
Chiel92
f7e872f15a
Move window state recall outside TryFormatter
2015-06-12 14:29:33 +02:00
Chiel92
ba12dfc1b7
Add note about python support in README. Related to #54 .
2015-06-11 09:51:51 +02:00
Sergiy Borodych
716813ee2d
add check if vim has no support for python
...
it is necessary to verify the custom formatter
if no support show a notional warning message
2015-06-11 10:23:20 +03:00
Chiel92
bafaadaaee
Clean up, update readme
2015-06-06 11:54:30 +02:00
Chiel92
ff8deba487
Cover jscs in README
2015-05-31 22:10:33 +02:00
Chiel92
f256d815e7
Automatically check for supertype formatters, as requested in #50
2015-05-31 21:56:00 +02:00
Chiel92
b553cd17de
Add possibility to extend $PATH for formatters. Update README.
2015-05-31 20:58:14 +02:00
Chiel92
c6e2dc21c1
Warn for out-of-date configuration
2015-05-30 21:00:16 +02:00
Chiel92
2232436991
Fix bug in translating verbose flag to python
2015-05-30 16:18:30 +02:00
Chiel92
495dc9651d
Support python cli-version of js-beautify by default
2015-05-30 16:11:37 +02:00
Chiel92
b1b6b87309
Update readme. Ranged do not need separate definition.
2015-05-30 11:12:02 +02:00
Chiel92
55fca18a96
Providing range for autopep8 works.
2015-05-30 11:02:07 +02:00
Chiel92
a4533d1769
Update default definitions. Readme update.
2015-05-23 14:25:29 +02:00
Chiel92
2ed8f00bb5
Try all available formatters until one works
2015-05-23 10:02:05 +02:00
Chiel92
dfd9461f23
Multiple formatters. Don't write errors to buffer.
...
Using python we can check for formatter errors instead of writing the
errors to the buffer. Multiple formatters can be supplied by lists now.
Backward compatibility breaks:
- Variable names have changed
- Formatter is specified as one expression
- gq has been removed, Autoformat should accept ranges
- python has to be compiled in
To be done:
- Find easy way to selected default formatter out of available formatter
- Make autoformat accept ranges
2015-05-18 19:27:00 +02:00
Chiel92
c16a053519
Take &verbose variable into account. Fix #48 .
2015-04-09 10:59:54 +02:00
Chiel92
b25b08fd5f
Add support for composite filetypes. Fix #37 .
2015-01-12 14:17:27 +01:00
Shane Smith
5a17715cfc
Optional file type argument to Autoformat command
2014-06-29 15:30:05 -04:00
Chiel92
66995c00d1
Fix #13 and some cleanup.
2013-12-20 20:34:38 +01:00
Chiel92
1e20517276
removed obsolete reset of formatprg
2013-08-18 15:57:04 +02:00
Chiel92
f5e60b5266
compatibilty with default gq functionality
2013-03-26 23:03:15 +01:00
Chiel92
b14ce7d6c7
gq remap works for visual mode
...
verbose mode implemented
2013-03-16 10:36:16 +01:00
Chiel92
78e0e3c292
conditional remap gq works
2013-03-15 23:12:09 +01:00
Chiel92
7f461bc84d
test
2013-03-15 20:59:46 +01:00
Chiel92
1b7a90437c
tried to remap gq, only little success
2013-03-14 18:50:31 +01:00
Chiel92
01539b7d76
a little try
2013-03-13 18:51:26 +01:00
Chiel92
993d2c6325
make sure cursor stays at position when reindenting
2013-03-10 20:03:48 +01:00
Chiel92
c792912358
Perform auto indentation when no formatprg available
2013-03-10 19:51:39 +01:00