def CurrentLineAndColumn():
 (line, column) = vim.current.window.cursor
 line -= 1
 return (line, column)

def CurrentLineAndColumn ( ) : ( line , column ) = vim . current . window . cursor line -= 1 return ( line , column )
returns the 0-based current line and 0-based current column .