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