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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
vim-endwise does this (I’ve been happy enough with it to not uninstall it, so I guess that’s an endorsement even).