#NEWLINE# def add_line_to_location_list( line_number , text = '' , type = '' ) : #NEWLINE# #INDENT# vim . eval ( ( "setloclist(0, [{'bufnr': %s, 'lnum': %s, 'text': '%s', 'type': '%s'}], 'a')" % ( vim . current . buffer . number , line_number , text , type ) ) )