mirror of
https://github.com/gryf/python.vim.git
synced 2025-12-17 19:40:28 +01:00
Version 1.7: Use <Down> instead of 'j', so it should work when j is mapped.
This commit is contained in:
committed by
Able Scraper
parent
dc9722e464
commit
7a5bb2412f
@@ -1,8 +1,8 @@
|
|||||||
" -*- vim -*-
|
" -*- vim -*-
|
||||||
" FILE: python.vim
|
" FILE: python.vim
|
||||||
" LAST MODIFICATION: 2003/06/12 08:19
|
" LAST MODIFICATION: 2003/07/25 19:00
|
||||||
" (C) Copyright 2001-2003 Mikael Berthe <mikael.b@netcourrier.com>
|
" (C) Copyright 2001-2003 Mikael Berthe <mikael.b@netcourrier.com>
|
||||||
" Version: 1.6
|
" Version: 1.7
|
||||||
|
|
||||||
" USAGE:
|
" USAGE:
|
||||||
"
|
"
|
||||||
@@ -191,7 +191,7 @@ function! PythonCommentSelection() range
|
|||||||
if strlen(getline(cl))
|
if strlen(getline(cl))
|
||||||
execute "normal ".ind."|i".commentString
|
execute "normal ".ind."|i".commentString
|
||||||
endif
|
endif
|
||||||
execute "normal j"
|
execute "normal \<Down>"
|
||||||
let cl = cl + 1
|
let cl = cl + 1
|
||||||
endwhile
|
endwhile
|
||||||
endfunction
|
endfunction
|
||||||
@@ -247,7 +247,7 @@ function! PythonSelectObject(obj)
|
|||||||
execute "normal V".cl."G"
|
execute "normal V".cl."G"
|
||||||
else
|
else
|
||||||
" Select the whole block
|
" Select the whole block
|
||||||
normal j
|
execute "normal \<Down>"
|
||||||
let cl = line('.')
|
let cl = line('.')
|
||||||
execute ":".beg
|
execute ":".beg
|
||||||
execute "normal V".PythonBoB(cl, 1, 0)."G"
|
execute "normal V".PythonBoB(cl, 1, 0)."G"
|
||||||
|
|||||||
Reference in New Issue
Block a user