def TextBeforeCursor():
 return ToUnicode(vim.current.line[:CurrentColumn()])

def TextBeforeCursor ( ) : return ToUnicode ( vim . current . line [ : CurrentColumn ( ) ] )
returns the text before currentcolumn .