Hi Christian,

2013/11/27(Wed) 0:10:35 UTC+9 Christian Brabandt:
> I don't have anything to contribute except for this part of the patch:
> 
> 
> 
> > +if has("gui_win32") && !exists("b:browsefilter")
> 
> > +        let b:browsefilter = "Python Files (*.py)\t*.py\n" .
> 
> > +                        \ "All Files (*.*)\t*.*\n"
> 
> > +endif
> 
> 
> 
> BTW: b:browsefilter is also supported by the GTK Gui. You can check by
> 
> :echo has("browsefilter")
Oh! That's right. Thanks for your advice.
I update a patch.

Best regards,
Hirohito Higashi


> 
> 
> 
> Best,
> 
> Christian

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
diff -r 58bcf8fa172f runtime/ftplugin/python.vim
--- a/runtime/ftplugin/python.vim	Sun Nov 17 20:32:54 2013 +0100
+++ b/runtime/ftplugin/python.vim	Wed Nov 27 00:17:00 2013 +0900
@@ -26,25 +26,6 @@
 nnoremap <silent> <buffer> ]m :call <SID>Python_jump('/^\s*\(class\\|def\)')<cr>
 nnoremap <silent> <buffer> [m :call <SID>Python_jump('?^\s*\(class\\|def\)')<cr>
 
-if exists('*<SID>Python_jump') | finish | endif
-
-fun! <SID>Python_jump(motion) range
-    let cnt = v:count1
-    let save = @/    " save last search pattern
-    mark '
-    while cnt > 0
-	silent! exe a:motion
-	let cnt = cnt - 1
-    endwhile
-    call histdel('/', -1)
-    let @/ = save    " restore last search pattern
-endfun
-
-if has("gui_win32") && !exists("b:browsefilter")
-    let b:browsefilter = "Python Files (*.py)\t*.py\n" .
-		       \ "All Files (*.*)\t*.*\n"
-endif
-
 " As suggested by PEP8.
 setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
 
@@ -61,5 +42,24 @@
     setlocal keywordprg=pydoc
 endif
 
+if has("browsefilter")
+	let b:browsefilter = "Python Files (*.py)\t*.py\n" .
+			\ "All Files (*.*)\t*.*\n"
+endif
+
+if !exists('*<SID>Python_jump') 
+	fun! <SID>Python_jump(motion) range
+		let cnt = v:count1
+		let save = @/    " save last search pattern
+		mark '
+		while cnt > 0
+		silent! exe a:motion
+		let cnt = cnt - 1
+		endwhile
+		call histdel('/', -1)
+		let @/ = save    " restore last search pattern
+	endfun
+endif
+
 let &cpo = s:keepcpo
 unlet s:keepcpo

Raspunde prin e-mail lui