I am learning Vim and should do the following: Suppose I typed this:
class MyClass
private
end
After input, gg=G
I want to private
stay at the level with the class declaration, for example:
class MyClass
private
end
But it looks wrong (the indent moves private
to the right):
class MyClass
private
end
How can I add a custom rule to auto-detect private?
source
share