]> 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:

make test works on Windows
authorHiroshi Shrirosaki <h.shirosaki@gmail.com>
Sun, 17 Jan 2016 02:58:02 +0000 (11:58 +0900)
committerHiroshi Shrirosaki <h.shirosaki@gmail.com>
Sun, 17 Jan 2016 02:58:02 +0000 (11:58 +0900)
test/vimrc

index 59c61630f84e09bd346c93d4215a8101c52121fb..524fe6c0f101ab644f555ccd718de7638617ae36 100644 (file)
@@ -2,6 +2,7 @@ set nocompatible
 set rtp+=../
 set rtp+=../build/tabular/
 set rtp+=../build/vader.vim/
 set rtp+=../
 set rtp+=../build/tabular/
 set rtp+=../build/vader.vim/
+let $LANG='en_US'
 filetype on
 filetype plugin on
 filetype indent on
 filetype on
 filetype plugin on
 filetype indent on
@@ -14,7 +15,7 @@ function! Markdown_GetScriptID(fname) abort
     redir END
     let a:mx = '^\s*\(\d\+\):\s*\(.*\)$'
     for a:line in split(a:snlist, "\n")
     redir END
     let a:mx = '^\s*\(\d\+\):\s*\(.*\)$'
     for a:line in split(a:snlist, "\n")
-        if stridx(a:line, a:fname) >= 0
+        if stridx(substitute(a:line, '\\', '/', 'g'), a:fname) >= 0
             return substitute(a:line, a:mx, '\1', '')
         endif
     endfor
             return substitute(a:line, a:mx, '\1', '')
         endif
     endfor