Autocomplete method structure in Vim

旧巷老猫 提交于 2019-12-20 02:09:10

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!