There was a wonderful package called Compline for Sublime Text 2, which allowed completing whole lines, similar to variable/word autocompletion. I doesn't work in ST3*, so I'm looking for alternatives.
From Compline's README:
Full line completion known from VIM as ctrl+x, ctrl+l shortcut
Simply begin to write a line, press the shortcut (default it ctrl+,) and Sublime will let you chose similar lines to complete.
Edit: *by "doesn't work" I mean it can be installed, but the actual line completion never happens. The possible list of completions is visible, but selecting one "does nothing". The error message in the console is:
Traceback (most recent call last):
File "/home/karel/.config/sublime-text-3/Packages/Compline/Compline.py", line 35, in foo
self.view.replace(edit, sublime.Region(begin, self.view.sel()[i].end()), matches[index])
File "/opt/sublime_text/sublime.py", line 657, in replace
raise ValueError("Edit objects may not be used after the TextCommand's run method has returned")
ValueError: Edit objects may not be used after the TextCommand's run method has returned
Edit2: uploaded screenshots