是否有一个Vim插件可以处理智能分号插入,就像Eclipse中的插件一样?
示例(管道符是插入光标):
foobar(|)
Run Code Online (Sandbox Code Playgroud)
我输入一个分号:
foobar();|
Run Code Online (Sandbox Code Playgroud)
同理:
foobar("blah|")
Run Code Online (Sandbox Code Playgroud)
我输入一个分号:
foobar("blah");|
Run Code Online (Sandbox Code Playgroud)
如果我想在原始光标位置使用分号,请在智能重新定位后按退格键:
foobar("hello|")
foobar("hello");|
foobar("hello;|")
Run Code Online (Sandbox Code Playgroud) 我是Sublime Text键绑定的新手.有没有办法,当插入符号不在行尾时,在末尾插入分号?在宏中我猜它是:去eol - > insert; - >回来.但我不知道如何回归部分.
谢谢.