]> 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
10 years agoUn-indent for "else" after "for" and "try/except"
Hynek Schlawack [Fri, 3 Jan 2014 19:36:41 +0000 (20:36 +0100)]
Un-indent for "else" after "for" and "try/except"

Fixes #21

10 years agoMerge pull request #19 from kljohann/tests
Hynek Schlawack [Sat, 9 Nov 2013 15:08:57 +0000 (07:08 -0800)]
Merge pull request #19 from kljohann/tests

Run test cases for different sets of settings

While we care only about 4 spaces, running it with both may uncover subtle bugs.

10 years agorun test cases for different settings
Johann Klähn [Fri, 8 Nov 2013 19:52:17 +0000 (20:52 +0100)]
run test cases for different settings

10 years agoIndent correctly after lines with '#'s in strings
LeoMao [Sun, 21 Jul 2013 13:33:11 +0000 (21:33 +0800)]
Indent correctly after lines with '#'s in strings

Fixes #5.

11 years agoFix issue #5 (Correct indent after end of block)
has2k1 [Thu, 31 Oct 2013 10:17:16 +0000 (05:17 -0500)]
Fix issue #5 (Correct indent after end of block)

Problem
-------
Given two adjacent blocks where the 2nd block has
an equal or smaller indentation level compared to the 1st
block. If the blocks are not separated by an empty line,
the 2nd block will be placed (indented) inside the 1st
block.

This changes the meaning of code that already adheres to the
pep8 standard.

Solution
--------
Do not inherit indentation of the previous line if the current line
has less indentation but is valid.

11 years agoExpand Hassan's name
Hynek Schlawack [Tue, 29 Oct 2013 09:39:10 +0000 (10:39 +0100)]
Expand Hassan's name

11 years agoMerge pull request #16 from has2k1/commented-out-tests
Hynek Schlawack [Sun, 27 Oct 2013 18:03:58 +0000 (11:03 -0700)]
Merge pull request #16 from has2k1/commented-out-tests

Fix failing commented out tests

11 years agoFix failing commented out tests
has2k1 [Tue, 13 Aug 2013 03:47:02 +0000 (22:47 -0500)]
Fix failing commented out tests

Related commits
---------------
- #6e60ef0

Reason
------
The indent functions, in this case
      GetPythonPEPIndent()
can modify the cursor position. There is nothing wrong with that
consequence, vim takes it into account and restores the cursor
position (see References below). For the tests vim is not doing
the calling, so the cursor is not restored.

Solution
--------
Restore the cursor position after calling the indent function.

11 years agoAdd some polish and has2k1 to AUTHORS
Hynek Schlawack [Tue, 24 Sep 2013 08:16:33 +0000 (10:16 +0200)]
Add some polish and has2k1 to AUTHORS

11 years agoAdd some info. about the ruby based test framework
has2k1 [Tue, 13 Aug 2013 01:10:18 +0000 (20:10 -0500)]
Add some info. about the ruby based test framework

11 years agoMerge branch 'clayg-fix-10'
Hynek Schlawack [Tue, 24 Sep 2013 08:10:43 +0000 (10:10 +0200)]
Merge branch 'clayg-fix-10'

Fixes #10

11 years agoAdd Clay to AUTHORS and tweak some comments
Hynek Schlawack [Tue, 24 Sep 2013 08:02:24 +0000 (10:02 +0200)]
Add Clay to AUTHORS and tweak some comments

11 years agoadd some tests
Clay Gerrard [Wed, 18 Sep 2013 08:53:25 +0000 (01:53 -0700)]
add some tests

11 years agoconform with pep8's preferences on explicit line continuation
Clay Gerrard [Tue, 17 Sep 2013 02:20:25 +0000 (19:20 -0700)]
conform with pep8's preferences on explicit line continuation

11 years agoFix double "of" in README.rst
Hynek Schlawack [Mon, 17 Jun 2013 07:53:20 +0000 (09:53 +0200)]
Fix double "of" in README.rst

11 years agoAdd CONTRIBUTING.md and AUTHORS.rst
Hynek Schlawack [Mon, 17 Jun 2013 07:40:01 +0000 (09:40 +0200)]
Add CONTRIBUTING.md and AUTHORS.rst

11 years agoAdd Travis
Hynek Schlawack [Mon, 17 Jun 2013 07:22:13 +0000 (09:22 +0200)]
Add Travis

11 years agoComment out failing test case
Hynek Schlawack [Mon, 17 Jun 2013 06:15:27 +0000 (08:15 +0200)]
Comment out failing test case

11 years agoadd basic test suite using vimrunner
Johann Klähn [Sun, 16 Jun 2013 21:47:13 +0000 (23:47 +0200)]
add basic test suite using vimrunner

11 years agoAdd warning about python-mode shadowing
Hynek Schlawack [Sun, 20 Jan 2013 11:33:05 +0000 (12:33 +0100)]
Add warning about python-mode shadowing

11 years agoMerge pull request #4 from ElectronicRU/master
Hynek Schlawack [Sun, 20 Jan 2013 11:26:29 +0000 (03:26 -0800)]
Merge pull request #4 from ElectronicRU/master

Better colon handling

Fix regression that made vim not indent if there was a comment at the end of
a line.

11 years agoBetter end-of-line colon handling.
Alexander Sedov [Sat, 19 Jan 2013 12:35:21 +0000 (16:35 +0400)]
Better end-of-line colon handling.

12 years agoDo not indent after comment line with colon
Joseph Irwin [Sat, 18 Aug 2012 04:18:25 +0000 (13:18 +0900)]
Do not indent after comment line with colon

When checking for a line ending with a colon, this commit adds a
condition to avoid matching comments. A comment line ending with a colon
should not indent a new block.

This changes the current behavior from this::

    \#<some comment>:
        <cursor>

To this::

    \#<some comment>:
    <cursor>

12 years agoUpdate README to reflect pathogen
Hynek Schlawack [Sat, 30 Jun 2012 07:04:54 +0000 (09:04 +0200)]
Update README to reflect pathogen

12 years agoMerge pull request #1 from soli/master
Hynek Schlawack [Fri, 29 Jun 2012 19:33:18 +0000 (12:33 -0700)]
Merge pull request #1 from soli/master

move python.vim to indent subdirectory for easier pathogen (and such) management

12 years agomove python.vim to indent subdirectory for easier pathogen (and such) management
Sylvain Soliman [Fri, 29 Jun 2012 19:27:09 +0000 (21:27 +0200)]
move python.vim to indent subdirectory for easier pathogen (and such) management

--HG--
rename : python.vim => indent/python.vim

12 years agoInitial import
Hynek Schlawack [Tue, 26 Jun 2012 12:07:20 +0000 (14:07 +0200)]
Initial import