1
0
mirror of https://github.com/gryf/python.vim.git synced 2025-12-17 11:30:22 +01:00

Clean up indentation and commented code

This commit is contained in:
2017-05-28 14:26:28 +02:00
parent e799ed8118
commit 47a79f4251

View File

@@ -7,11 +7,7 @@
" USAGE: " USAGE:
" "
" Save this file to $VIMFILES/ftplugin/python.vim. You can have multiple " See README for installation.
" python ftplugins by creating $VIMFILES/ftplugin/python and saving your
" ftplugins in that directory. If saving this to the global ftplugin
" directory, this is the recommended method, since vim ships with an
" ftplugin/python.vim file already.
" You can set the global variable "g:py_select_leading_comments" to 0 " You can set the global variable "g:py_select_leading_comments" to 0
" if you don't want to select comments preceding a declaration (these " if you don't want to select comments preceding a declaration (these
" are usually the description of the function/class). " are usually the description of the function/class).
@@ -84,8 +80,6 @@ vmap ]F :call PythonDec("function", -1)<CR>
map ]f :call PythonDec("function", 1)<CR> map ]f :call PythonDec("function", 1)<CR>
vmap ]f :call PythonDec("function", 1)<CR> vmap ]f :call PythonDec("function", 1)<CR>
" Menu entries " Menu entries
nmenu <silent> &Python.Update\ IM-Python\ Menu nmenu <silent> &Python.Update\ IM-Python\ Menu
\:call UpdateMenu()<CR> \:call UpdateMenu()<CR>
@@ -432,15 +426,4 @@ function! s:JumpToAndUnfold(line)
endif endif
endfunction endfunction
"" This one will work only on vim 6.2 because of the try/catch expressions.
" function! s:JumpToAndUnfoldWithExceptions(line)
" try
" execute 'normal '.a:line.'gg15zo'
" catch /^Vim\((\a\+)\)\=:E490:/
" " Do nothing, just consume the error
" endtry
"endfunction
" vim:set et sts=2 sw=2: " vim:set et sts=2 sw=2: