I'm trying to make a match in vim to insert comments (for example, "#" - a space with a space) while observing the indentation. So, instead of comments like:
class MyFrame(wx.Frame): def __init__(self, title, pos, size):
I would enter "#" in code like this,
class MyFrame(wx.Frame): def __init__(self, title, pos, size):
therefore, observing the indentation (which may be tabs or a space).
I tried to get it to work with the vim 0 (zero) command, which takes you to the first character in the string, but failed. Please help. I would be grateful for all the ideas and practical suggestions.
vim
Thomas Geritzma
source share