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

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:

s:indent_like_previous_line: switch conditions
authorDaniel Hahler <git@thequod.de>
Fri, 16 Nov 2018 09:33:14 +0000 (10:33 +0100)
committerDaniel Hahler <git@thequod.de>
Fri, 16 Nov 2018 09:33:14 +0000 (10:33 +0100)
indent/python.vim

index b3631a1f38bf9b360a09400e4400b2054ff1f74f..501a88abd65a86b405c8ca2c726f60cc9f9f364a 100644 (file)
@@ -289,7 +289,7 @@ function! s:indent_like_previous_line(lnum)
     while 1
         let curpos = getpos('.')[2]
         if curpos == 1 | break | endif
-        if eval(s:skip_special_chars) || text[curpos-1] =~# '\s'
+        if text[curpos-1] =~# '\s' || eval(s:skip_special_chars)
             normal! h
             continue
         elseif text[curpos-1] ==# ':'