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 5fcbc11 commit 9547e6a6657991fb1c3894e4a376763b14e3cf82
Showing with 3 additions and 4 deletions.
  1. +3 −4 pydoc.vim
View
@@ -85,16 +85,15 @@ function! ShowPyDoc(name, type)
endif
endfunction
-
+"highlighting
function! Highlight(name)
execute "sb __doc__"
set filetype=man
- syn on
- execute 'syntax keyword pydoc '.s:name2
+ "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 9547e6a

Please sign in to comment.