Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
break undo sequence on first invocation #41
and first of all thanks for this great plugin. It really speeds my work up and makes it more fun...
Nevertheless i have a suggestion to improve supertab further. For justification i describe two common situations that could easily be simplified by someone who see through the source code (i've tried it by myself but failed pitiful)
Once in a while the following situations arises:
After that an undo would discard all changes since the last undo break sequence. So instead of invoking undo one have to delete the changes by hand (what definitely sucks ;) ).
It would be great if a 'u' (see :help i_CTRL-G_u) could be added before a first invocation of supertab with regard to one completion cycle, so a simple undo discard only the last completion.
Maybe one can add a new global variable, that toggles this behavior (for example 'g:SuperTabBreakUndoSequence').
It would be great if somebody could add this feature or can give me a hint where the appropriate code section for this feature is.
With best regards
PS: i asked a related question on the vim-user mailing-list (see: Here)