问题
Does anyone know if there's a way to autocomplete a method in Vim? For an example in Ruby, if I type:
def my_method
and hit Enter, it would fill in the end and move the cursor to where the x is:
def my_method
x
end
回答1:
vim-endwise does this (I've been happy enough with it to not uninstall it, so I guess that's an endorsement even).
来源:https://stackoverflow.com/questions/11498492/autocomplete-method-structure-in-vim