Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道是否有办法在 Vim 中自动完成方法?对于 Ruby 中的示例,如果我键入:
def my_method
然后按 Enter 键,它将填写end并将光标移动到 x 所在的位置:
end
def my_method x end
vim-endwise这样做(我已经很高兴不卸载它,所以我想这甚至是一种认可)。