cl <TAB>输出console.log(': ', );
如何将默认行为从使用单引号更改为双引号?最好能在我的.vimrc文件中设置一个设置。
如果没有,那么也许可以自己修补~/.vim/bundle/vim-snippets/snippets/javascript/javascript.snippets:
235 snippet cl "console.log"
236 console.log(${0});我看不到任何单引号,我可以用双引号代替。知道怎么解决这个问题吗?
发布于 2017-12-28 13:39:56
预期的行为是:
cl type 'cl'
<Tab> press '<Tab>'
console.log(|); replace the 'cl' stub with 'console.log()',
with the cursor between the parentheses.在开始键入之前,您根本不应该在括号之间看到任何内容。
要么是…
1. look up the output of `:verbose imap`, `:verbose smap`, and `:verbose vmap`,
2. disable your mappings and autocommands to see if the problem persists.
1. disable all your plugin to see if the faulty behaviour changes,
2. if it does, try bisecting your plugins until you find the culprit… and act accordingly.
1. set up a minimal reproducible case,
2. use the plugin's issue tracker to report the bug and help getting it fixed.
https://stackoverflow.com/questions/48004137
复制相似问题