mirror of
https://github.com/gryf/python.vim.git
synced 2025-12-17 19:40:28 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0877af4dff | - |
@@ -1,9 +1,9 @@
|
|||||||
" -*- vim -*-
|
" -*- vim -*-
|
||||||
" FILE: python.vim
|
" FILE: python_fn.vim
|
||||||
" LAST MODIFICATION: 2008-05-17 6:29pm
|
" LAST MODIFICATION: 2008-08-28 8:19pm
|
||||||
" (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net>
|
" (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net>
|
||||||
" Maintained by Jon Franklin <jvfranklin@gmail.com>
|
" Maintained by Jon Franklin <jvfranklin@gmail.com>
|
||||||
" Version: 1.12
|
" Version: 1.13
|
||||||
|
|
||||||
" USAGE:
|
" USAGE:
|
||||||
"
|
"
|
||||||
@@ -341,7 +341,7 @@ function! MenuBuilder()
|
|||||||
let parentclass = ""
|
let parentclass = ""
|
||||||
while line(".") < line("$")
|
while line(".") < line("$")
|
||||||
" search for a class or function
|
" search for a class or function
|
||||||
if match ( getline("."), '^\s*class\s\+[_a-zA-Z].*:\|^\s*def\s\+[_a-zA-Z].*:' ) != -1
|
if match ( getline("."), '^\s*class\s\+[_a-zA-Z].*\|^\s*def\s\+[_a-zA-Z].*' ) != -1
|
||||||
norm ^
|
norm ^
|
||||||
let linenum = line('.')
|
let linenum = line('.')
|
||||||
let indentcol = col('.')
|
let indentcol = col('.')
|
||||||
|
|||||||
Reference in New Issue
Block a user