]> git.madduck.net Git - etc/vim.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

etc/vim.git
6 years agoFix some typos
Donovan Glover [Wed, 21 Mar 2018 23:03:29 +0000 (19:03 -0400)]
Fix some typos

6 years ago18.3a3
Łukasz Langa [Wed, 21 Mar 2018 02:05:51 +0000 (19:05 -0700)]
18.3a3

6 years agoFix tests on 3.7
Łukasz Langa [Wed, 21 Mar 2018 02:04:49 +0000 (19:04 -0700)]
Fix tests on 3.7

6 years agoMention joslarson.black-vscode
Łukasz Langa [Wed, 21 Mar 2018 01:57:33 +0000 (18:57 -0700)]
Mention joslarson.black-vscode

Fixes #45

6 years agoTreat comments less magically
Łukasz Langa [Wed, 21 Mar 2018 01:42:29 +0000 (18:42 -0700)]
Treat comments less magically

6 years agoSupport skipping AST printing on test failure
Łukasz Langa [Wed, 21 Mar 2018 01:40:20 +0000 (18:40 -0700)]
Support skipping AST printing on test failure

6 years agoDon't write back stdin to stdout when --check is passed
Łukasz Langa [Wed, 21 Mar 2018 01:20:20 +0000 (18:20 -0700)]
Don't write back stdin to stdout when --check is passed

6 years agoFix numpy-style array indexing for real
Łukasz Langa [Wed, 21 Mar 2018 01:17:20 +0000 (18:17 -0700)]
Fix numpy-style array indexing for real

Fixes #33

6 years agoDon't remove single empty lines outside of bracketed expressions
Łukasz Langa [Wed, 21 Mar 2018 01:15:20 +0000 (18:15 -0700)]
Don't remove single empty lines outside of bracketed expressions

Fixes #19

6 years agoRestore ability to format code with legacy usage of `async` as a name
Łukasz Langa [Wed, 21 Mar 2018 01:05:20 +0000 (18:05 -0700)]
Restore ability to format code with legacy usage of `async` as a name

Fixes #20
Fixes #42

6 years agoUpdate README with stdin information
Łukasz Langa [Wed, 21 Mar 2018 01:00:20 +0000 (18:00 -0700)]
Update README with stdin information

6 years agoAdd piping from stdin to stdout with a - (#25)
treuherz [Mon, 19 Mar 2018 18:07:10 +0000 (18:07 +0000)]
Add piping from stdin to stdout with a - (#25)

Being able to format code by piping it through the formatter makes it much easier to integrate with tools like google/vim-codefmt or Chiel92/vim-autoformat.

6 years agoMerge pull request #363 from smancill/buffer-local-autocommands
Hiroshi Shirosaki [Mon, 19 Mar 2018 05:22:19 +0000 (14:22 +0900)]
Merge pull request #363 from smancill/buffer-local-autocommands

Make autocommands buffer-local

6 years agoMore support for numpy tuple indexing
Łukasz Langa [Sat, 17 Mar 2018 09:39:53 +0000 (02:39 -0700)]
More support for numpy tuple indexing

6 years agoUpdate formatting example
Łukasz Langa [Sat, 17 Mar 2018 09:13:11 +0000 (02:13 -0700)]
Update formatting example

6 years ago18.3a2
Łukasz Langa [Sat, 17 Mar 2018 08:06:22 +0000 (01:06 -0700)]
18.3a2

6 years agoNative README.md support on PyPI \o/
Łukasz Langa [Sat, 17 Mar 2018 08:25:59 +0000 (01:25 -0700)]
Native README.md support on PyPI \o/

See: https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi

6 years agoSet a 3.6+ python-tag for the wheel
Łukasz Langa [Sat, 17 Mar 2018 08:15:46 +0000 (01:15 -0700)]
Set a 3.6+ python-tag for the wheel

Fixes #37

6 years agoDon't fold postscriptum standalone comment into last statement
Łukasz Langa [Sat, 17 Mar 2018 07:54:30 +0000 (00:54 -0700)]
Don't fold postscriptum standalone comment into last statement

This happened when the last statement was a simple statement.

Fixes #18
Fixes #28

6 years agoConsolidate empty line handling in EmptyLineTracker
Łukasz Langa [Sat, 17 Mar 2018 07:40:21 +0000 (00:40 -0700)]
Consolidate empty line handling in EmptyLineTracker

Previously, extra newlines left on imports were handled sort of by accident.
Now it's all handled uniformly in one place.

6 years agoDon't put four empty lines between top-level functions split by a comment
Łukasz Langa [Sat, 17 Mar 2018 05:14:43 +0000 (22:14 -0700)]
Don't put four empty lines between top-level functions split by a comment

6 years agoDescribe fix for #21 in README
Łukasz Langa [Sat, 17 Mar 2018 04:55:41 +0000 (21:55 -0700)]
Describe fix for #21 in README

6 years agoblib2to3: Never put prefixes on DEDENT leaves
Łukasz Langa [Sat, 17 Mar 2018 04:47:15 +0000 (21:47 -0700)]
blib2to3: Never put prefixes on DEDENT leaves

6 years agoLine breaks before logical operators (#36)
Mika⠙ [Sat, 17 Mar 2018 04:45:51 +0000 (05:45 +0100)]
Line breaks before logical operators (#36)

Fixes #21

6 years agoUse implicit defaults for auto_attribs
Łukasz Langa [Sat, 17 Mar 2018 00:42:57 +0000 (17:42 -0700)]
Use implicit defaults for auto_attribs

It reads much nicer.

6 years agoRemove the trailing comma if there is only one argument to a call
Łukasz Langa [Sat, 17 Mar 2018 00:32:55 +0000 (17:32 -0700)]
Remove the trailing comma if there is only one argument to a call

This makes it consistent with removing the trailing comma when multiple
arguments to a call fit in a single line. It also makes it a tiny bit more
likely that an expression will fit a line that didn't use to.

6 years agoIgnore empty bracket pairs while splitting
Łukasz Langa [Sat, 17 Mar 2018 00:09:23 +0000 (17:09 -0700)]
Ignore empty bracket pairs while splitting

Fixes #35

6 years agoAdd words
Łukasz Langa [Fri, 16 Mar 2018 08:05:36 +0000 (01:05 -0700)]
Add words

6 years agoAdd flake8 to CI, too
Łukasz Langa [Fri, 16 Mar 2018 07:42:15 +0000 (00:42 -0700)]
Add flake8 to CI, too

6 years agoBump version, update README with current fixes
Łukasz Langa [Fri, 16 Mar 2018 07:01:22 +0000 (00:01 -0700)]
Bump version, update README with current fixes

6 years agoFix spurious space after star-based unary expression
Łukasz Langa [Fri, 16 Mar 2018 06:56:30 +0000 (23:56 -0700)]
Fix spurious space after star-based unary expression

This happened when the operand was a complex expression.

Fixes #31

6 years agoAlso run mypy on test_black.py
Łukasz Langa [Fri, 16 Mar 2018 06:55:22 +0000 (23:55 -0700)]
Also run mypy on test_black.py

6 years agoFix numpy-style array indexing
Łukasz Langa [Fri, 16 Mar 2018 06:39:45 +0000 (23:39 -0700)]
Fix numpy-style array indexing

Fixes #33

6 years agoClean up typing ignores, fix build
Łukasz Langa [Fri, 16 Mar 2018 06:26:56 +0000 (23:26 -0700)]
Clean up typing ignores, fix build

6 years agoAdd mypy to CI
Łukasz Langa [Fri, 16 Mar 2018 06:17:02 +0000 (23:17 -0700)]
Add mypy to CI

6 years agoOnly use trailing commas in function signatures when it's safe
Łukasz Langa [Fri, 16 Mar 2018 02:25:23 +0000 (19:25 -0700)]
Only use trailing commas in function signatures when it's safe

Trailing commas after * or ** in a function signature are only safe for Python 3.6
code.  So now Black checks whether the file was already Python 3.6 to begin
with.  If so, trailing commas are used in such cases.  Otherwise, they're not.

When * and ** don't appear in a function signature, the trailing comma is
always safe.

Fixes #8

6 years agoDon't split on for-loop variable unpacks
Łukasz Langa [Fri, 16 Mar 2018 02:20:42 +0000 (19:20 -0700)]
Don't split on for-loop variable unpacks

Fixes #23

6 years agoFix tests after introducing --check
Łukasz Langa [Fri, 16 Mar 2018 00:05:59 +0000 (17:05 -0700)]
Fix tests after introducing --check

6 years agoAdd --check
Łukasz Langa [Thu, 15 Mar 2018 23:01:57 +0000 (16:01 -0700)]
Add --check

Fixes #9

6 years agoFixed malformed link to pathlib
Osaetin Daniel [Thu, 15 Mar 2018 21:37:21 +0000 (22:37 +0100)]
Fixed malformed link to pathlib

6 years agoFix spurious space after unary expression
Łukasz Langa [Thu, 15 Mar 2018 21:54:37 +0000 (14:54 -0700)]
Fix spurious space after unary expression

This happened when the operand was a complex expression.

Fixes #15

6 years agoFix spurious extra spaces after opening parentheses and in default arguments
Łukasz Langa [Thu, 15 Mar 2018 18:50:58 +0000 (11:50 -0700)]
Fix spurious extra spaces after opening parentheses and in default arguments

Fixes #14
Fixes #17

6 years agoFix spurious space in parenthesized set expressions
Łukasz Langa [Thu, 15 Mar 2018 18:28:59 +0000 (11:28 -0700)]
Fix spurious space in parenthesized set expressions

Fixes #7

6 years agoFix invalid spacing of dots in relative imports
Łukasz Langa [Thu, 15 Mar 2018 18:21:53 +0000 (11:21 -0700)]
Fix invalid spacing of dots in relative imports

Fixes #6
Fixes #13

6 years agoAdd Python 3-only classifier
Hugo [Thu, 15 Mar 2018 06:41:32 +0000 (08:41 +0200)]
Add Python 3-only classifier

https://pypi.python.org/pypi?%3Aaction=list_classifiers

6 years agoUse HTTPS
Hugo [Thu, 15 Mar 2018 07:11:35 +0000 (09:11 +0200)]
Use HTTPS

6 years agoMention *args and **kwargs backport
Łukasz Langa [Thu, 15 Mar 2018 17:12:46 +0000 (10:12 -0700)]
Mention *args and **kwargs backport

6 years agoUpdate code formatting
Hugo [Thu, 15 Mar 2018 08:09:47 +0000 (10:09 +0200)]
Update code formatting

!XXX doesn't render as code formatting, XXX does

6 years agotestimonials += 1 # kennethreitz
Łukasz Langa [Wed, 14 Mar 2018 21:38:33 +0000 (14:38 -0700)]
testimonials += 1  # kennethreitz

6 years agoBummer, Python 3.8 builds don't work yet
Łukasz Langa [Wed, 14 Mar 2018 21:26:14 +0000 (14:26 -0700)]
Bummer, Python 3.8 builds don't work yet

6 years agoActually use the bundled Grammar.txt
Łukasz Langa [Wed, 14 Mar 2018 21:20:16 +0000 (14:20 -0700)]
Actually use the bundled Grammar.txt

6 years agoInclude Grammar.txt in the distribution
Łukasz Langa [Wed, 14 Mar 2018 21:16:34 +0000 (14:16 -0700)]
Include Grammar.txt in the distribution

6 years agoInitial commit
Łukasz Langa [Wed, 14 Mar 2018 19:55:32 +0000 (12:55 -0700)]
Initial commit

6 years agoMake autocommands buffer-local
Sebastián Mancilla [Sat, 3 Mar 2018 00:06:38 +0000 (21:06 -0300)]
Make autocommands buffer-local

Ensure the commands are executed only for Markdown buffers.

6 years agoMerge pull request #354 from codybuell/master
Hiroshi Shirosaki [Sat, 20 Jan 2018 11:56:57 +0000 (20:56 +0900)]
Merge pull request #354 from codybuell/master

Add support to modify default file extension.

6 years agoInitialize empty l:ext in case no ext opt set
codybuell [Fri, 19 Jan 2018 17:17:21 +0000 (12:17 -0500)]
Initialize empty l:ext in case no ext opt set

6 years agoCorrect escaping
codybuell [Wed, 17 Jan 2018 20:10:11 +0000 (15:10 -0500)]
Correct escaping

6 years agoAdd documentation for changing file extensions
codybuell [Wed, 17 Jan 2018 20:09:58 +0000 (15:09 -0500)]
Add documentation for changing file extensions

6 years agoMerge remote-tracking branch 'upstream/master'
codybuell [Wed, 17 Jan 2018 19:42:20 +0000 (14:42 -0500)]
Merge remote-tracking branch 'upstream/master'

6 years agoAdd a test for link title highlighting #343
Hiroshi Shirosaki [Thu, 21 Dec 2017 12:55:04 +0000 (21:55 +0900)]
Add a test for link title highlighting #343

6 years agov0.9
Andy Wokula [Fri, 15 Dec 2017 18:22:52 +0000 (19:22 +0100)]
v0.9

6 years agoUse sudo on OSX on travis
Hiroshi Shirosaki [Fri, 15 Dec 2017 06:54:49 +0000 (15:54 +0900)]
Use sudo on OSX on travis

6 years agoInstall pip on OSX on travis
Hiroshi Shirosaki [Fri, 15 Dec 2017 06:49:48 +0000 (15:49 +0900)]
Install pip on OSX on travis

6 years agoFix pip install on OSX on travis
Hiroshi Shirosaki [Fri, 15 Dec 2017 06:45:48 +0000 (15:45 +0900)]
Fix pip install on OSX on travis

6 years agoInstall python on OSX on travis
Hiroshi Shirosaki [Fri, 15 Dec 2017 05:03:48 +0000 (14:03 +0900)]
Install python on OSX on travis

https://github.com/travis-ci/travis-ci/issues/2312

6 years agoAdd python path with OSX on travis
Hiroshi Shirosaki [Fri, 15 Dec 2017 04:51:25 +0000 (13:51 +0900)]
Add python path with OSX on travis

https://github.com/travis-ci/travis-ci/issues/5030

6 years agoUpdate doc for Follow named anchors
Hiroshi Shirosaki [Fri, 15 Dec 2017 04:43:21 +0000 (13:43 +0900)]
Update doc for Follow named anchors

6 years agoMerge pull request #335 from spearman/horiz-rule-syntax
Hiroshi Shirosaki [Fri, 15 Dec 2017 04:40:32 +0000 (13:40 +0900)]
Merge pull request #335 from spearman/horiz-rule-syntax

Change mkdRule match syntax to be more liberal

6 years agoMerge pull request #312 from memeplex/namedanchor
Hiroshi Shirosaki [Fri, 15 Dec 2017 04:31:17 +0000 (13:31 +0900)]
Merge pull request #312 from memeplex/namedanchor

Follow named anchors with ge

7 years agoRevert "Improve s:find_start_of_multiline_statement: only look for round parens"...
Daniel Hahler [Fri, 17 Nov 2017 13:58:22 +0000 (14:58 +0100)]
Revert "Improve s:find_start_of_multiline_statement: only look for round parens" (#95)

This reverts commit 922268fbd89a49991b5b5b73e969f8daa8a10263.

Add a regression test.

Conflicts:
indent/python.vim

7 years agoMerge pull request #91 from Vimjas/maxoff-by-type
Daniel Hahler [Thu, 16 Nov 2017 17:47:52 +0000 (18:47 +0100)]
Merge pull request #91 from Vimjas/maxoff-by-type

Intermediate fix for indenting huge dicts

7 years agouse 50 for round parens, add tests
Daniel Hahler [Thu, 16 Nov 2017 16:28:46 +0000 (17:28 +0100)]
use 50 for round parens, add tests

7 years agogitignore
Andy Wokula [Sat, 21 Oct 2017 15:51:17 +0000 (17:51 +0200)]
gitignore

7 years agoadded \{...\}
Andy Wokula [Sat, 21 Oct 2017 15:47:30 +0000 (17:47 +0200)]
added \{...\}

7 years agoextend flp to work on itemised lists too
martin f. krafft [Wed, 18 Oct 2017 13:15:43 +0000 (15:15 +0200)]
extend flp to work on itemised lists too

7 years agoImprove s:find_start_of_multiline_statement: only look for round parens
Daniel Hahler [Mon, 9 Oct 2017 02:18:35 +0000 (04:18 +0200)]
Improve s:find_start_of_multiline_statement: only look for round parens

7 years agos:find_opening_paren: use known nearest for stopline
Daniel Hahler [Thu, 5 Oct 2017 21:20:50 +0000 (23:20 +0200)]
s:find_opening_paren: use known nearest for stopline

7 years agoIntermediate fix for indenting huge dicts
Daniel Hahler [Thu, 5 Oct 2017 21:12:24 +0000 (23:12 +0200)]
Intermediate fix for indenting huge dicts

This uses different offsets for the type of pairs: '()' and '[]' will
only look for just 20 lines above, while 1000 lines are used for '{}',
which might be a huge dict.

Ref: https://github.com/Vimjas/vim-python-pep8-indent/pull/64.

7 years agoImprove tests (#93)
Daniel Hahler [Sat, 7 Oct 2017 19:45:40 +0000 (21:45 +0200)]
Improve tests (#93)

* Travis: use "make test"

* Travis: do not start Xvfb

* Makefile: make test fast, add test_slow

7 years agotests: explicitly enable old "should" syntax to fix deprecation warnings (#92)
Daniel Hahler [Sat, 7 Oct 2017 19:29:10 +0000 (21:29 +0200)]
tests: explicitly enable old "should" syntax to fix deprecation warnings (#92)

> Deprecation Warnings:
>
> Using `should` from rspec-expectations' old `:should` syntax without
> explicitly enabling the syntax is deprecated. Use the new `:expect`
> syntax or explicitly enable `:should` with `config.expect_with(:rspec) {
> |c| c.syntax = :should }` instead. Called from
> …/vim-python-pep8-indent/spec/indent/indent_spec.rb:141:in
> `block (3 levels) in <top (required)>'.

7 years agomake zsh integration depend on vim being installed
martin f. krafft [Wed, 4 Oct 2017 09:47:55 +0000 (11:47 +0200)]
make zsh integration depend on vim being installed

7 years agoAdd some documentation
memeplex [Thu, 28 Sep 2017 01:51:01 +0000 (22:51 -0300)]
Add some documentation

7 years agoIndent next line if prev line is empty (+tests) (#88)
Ivan Smirnov [Mon, 21 Aug 2017 15:59:17 +0000 (16:59 +0100)]
Indent next line if prev line is empty (+tests) (#88)

7 years agoupdated to v0.7 (2013)
Andy Wokula [Sun, 6 Aug 2017 17:41:53 +0000 (19:41 +0200)]
updated to v0.7 (2013)

7 years agoTravis: update config (#87)
Daniel Hahler [Sun, 30 Jul 2017 14:34:15 +0000 (16:34 +0200)]
Travis: update config (#87)

* Travis: update config based on splitjoin's config
* rvm: 2.4.1
* Add VIMRUNNER_REUSE_SERVER, and a wrapper Makefile
* Travis: VIMRUNNER_REUSE_SERVER=1
* Start Xvfb manually

7 years agotests: insert blank lines before each test (#89)
Daniel Hahler [Sun, 30 Jul 2017 14:17:23 +0000 (16:17 +0200)]
tests: insert blank lines before each test (#89)

This is required with reuse_server.

7 years agoREADME: add g: prefix to config section
Daniel Hahler [Sat, 29 Jul 2017 13:43:28 +0000 (15:43 +0200)]
README: add g: prefix to config section

7 years agoUpgrade vimrunner to 0.3.3 (#85)
Daniel Hahler [Sat, 29 Jul 2017 13:28:39 +0000 (15:28 +0200)]
Upgrade vimrunner to 0.3.3 (#85)

7 years agoTravis: run vint, build only master branch
Daniel Hahler [Sat, 29 Jul 2017 12:50:37 +0000 (14:50 +0200)]
Travis: run vint, build only master branch

7 years agoLint fixes (vint)
Daniel Hahler [Sat, 29 Jul 2017 12:35:28 +0000 (14:35 +0200)]
Lint fixes (vint)

7 years agoDo not set expandtab, (soft)tabstop, shiftwidth (#83)
Daniel Hahler [Sat, 29 Jul 2017 13:10:07 +0000 (15:10 +0200)]
Do not set expandtab, (soft)tabstop, shiftwidth (#83)

It is not the job of an indent plugin to set those.

Closes https://github.com/Vimjas/vim-python-pep8-indent/pull/70.
Closes https://github.com/Vimjas/vim-python-pep8-indent/pull/80.

7 years agoIndent empty lines inside blocks (#81)
Ivan Smirnov [Sat, 29 Jul 2017 13:09:18 +0000 (14:09 +0100)]
Indent empty lines inside blocks (#81)

7 years agoAdd a symlink for cython (#74)
Daniel Hahler [Sat, 29 Jul 2017 12:24:37 +0000 (14:24 +0200)]
Add a symlink for cython (#74)

Fixes https://github.com/Vimjas/vim-python-pep8-indent/issues/73.

7 years agoChange mkdRule match syntax to be more liberal
Shane Pearman [Fri, 30 Jun 2017 00:19:54 +0000 (17:19 -0700)]
Change mkdRule match syntax to be more liberal

Consider any line beginning with 3 or more of '*', '-', or '_' with
possible spaces before and between, possibly followed by zero or more of
the previously matched symbols or spaces to be a horizontal rule.

7 years agoCorrect spelling to global variable name
codybuell [Tue, 27 Jun 2017 01:34:29 +0000 (21:34 -0400)]
Correct spelling to global variable name

7 years agoAdd support for another extension
codybuell [Mon, 26 Jun 2017 17:49:01 +0000 (13:49 -0400)]
Add support for another extension

7 years agoUpdate gitignore
martin f. krafft [Fri, 23 Jun 2017 14:53:24 +0000 (07:53 -0700)]
Update gitignore

7 years agoMerge pull request #326 from memeplex/escapemath
Hiroshi Shirosaki [Wed, 10 May 2017 03:54:22 +0000 (12:54 +0900)]
Merge pull request #326 from memeplex/escapemath

Skip escaped $ inside math

7 years agoSkip escaped $ inside math
memeplex [Fri, 28 Apr 2017 17:56:38 +0000 (14:56 -0300)]
Skip escaped $ inside math

7 years agoswitch vimperator hook to pentadactyl
martin f. krafft [Thu, 16 Mar 2017 19:52:45 +0000 (08:52 +1300)]
switch vimperator hook to pentadactyl