Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 9547e6a6657991fb1c3894e4a376763b14e3cf82 1 parent 5fcbc11
@fs111 fs111 authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 pydoc.vim
View
7 pydoc.vim
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.