> Hi,
> I would like to perform some checks on a line after pressing <enter>. Ex:
> in
> c++ i want to check whether ";" present at the end of the line, otherwise
> print some error or suggestion.
> Please let me know how to do this.
you can possibly bind enter in insert mode to a function, that performs
your checks and returns <Enter> afterwards.
See :h map-expression
regards,
Christian
--
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
No comments:
Post a Comment