#NEWLINE# def vi_pos_back_short( line , index = 0 , count = 1 ) : #NEWLINE# #INDENT# line = vi_list ( line ) #NEWLINE# try : #NEWLINE# #INDENT# for i in range ( count ) : #NEWLINE# #INDENT# index -= 1 #NEWLINE# while vi_is_space ( line [ index ] ) : #NEWLINE# #INDENT# index -= 1 #NEWLINE# #UNINDENT# in_word = vi_is_word ( line [ index ] ) #NEWLINE# if in_word : #NEWLINE# #INDENT# while vi_is_word ( line [ index ] ) : #NEWLINE# #INDENT# index -= 1 #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# while ( not vi_is_word_or_space ( line [ index ] ) ) : #NEWLINE# #INDENT# index -= 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ( index + 1 ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# return 0