Thanks for the suggestion Chris. I was considering a command triggered by iabbr <enter>
This command will look to see if the character immediately to the left of the cursor belongs to a certain character class (like \w) and then inserts a `.' and a newline. Then it is easy for me to check if this was what I want or not and delete the period (full atop) if necessary and then press arrow-down to avoid triggering the iabbr again. How could this be implemented as efficiently as possible? PS. at a next stage, I guess one could implement more fine grained checks in order to make better guesses on whether a full stop is wanted or not. At a cost of course. Thanks for an suggestions. -- Eric Smith Chris Schneider wrote on Wed-06-Feb 13 12:01AM > %s/\v(\w)$/\1./ - find any line ending in an alphanumeric, and replace it > with that same alpha and a period. > > > On Tue, Feb 5, 2013 at 3:29 PM, Eric Smith <[email protected]> wrote: > Do you have a suggestion for an (efficient) function to put a dot > after every combination of an alphanumeric char and a newline? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
