Permalink
Browse files

disabled call to "syn on" in Highlight, since that seems to interfere…

… with NERDTree and also avoid using global variables, as suggested by Jason Mills
  • Loading branch information...
fs111 committed Nov 22, 2010
1 parent 5d89c81 commit 30382dd08bbd5f212ac8d80e81fdb96c90a240b2
Showing with 4 additions and 4 deletions.
  1. +4 −4 pydoc.vim
View
@@ -85,16 +85,16 @@ function! ShowPyDoc(name, type)
endif
endfunction
-
+"highlighting
function! Highlight(name)
execute "sb __doc__"
set filetype=man
- syn on
- execute 'syntax keyword pydoc '.s:name2
+ let l = input("i" . &syntax)
+ "syn on
+ execute 'syntax keyword pydoc '.a:name
hi pydoc gui=reverse
endfunction
-
"mappings
au FileType python,man map <buffer> <leader>pw :call ShowPyDoc('<C-R><C-W>', 1)<CR>
au FileType python,man map <buffer> <leader>pW :call ShowPyDoc('<C-R><C-A>', 1)<CR>

0 comments on commit 30382dd

Please sign in to comment.