如何在Light Table 0.6.0中激活vim模式。文档在编辑器模式中说只是键入“vim”并且它将自动完成,但现在它没有?我该如何添加到用户行为中?
{:+ {
;; The app tag is kind of like global scope. You assign behaviors that affect
;; all of Light Table here
:app [(:lt.objs.style/set-skin "dark")]
;; The editor tag is applied to all editors
:editor [:lt.objs.editor/no-wrap
(:lt.objs.style/set-theme "default")]
;; Here we can add behaviors to just clojure editors
:editor.clojure [(:lt.objs.langs.clj/print-length 1000)]}
;; You can use the subtract key to remove behavior that may get added by
;; another diff
:- {:app []}}
答案 0 :(得分:29)
有相同的问题,来自0.6.0更改日志:
更改:Emacs和Vim现在都是通过插件管理器下载的插件
下载,重新启动,现在键入vim时自动填充。
答案 1 :(得分:10)
默认设置:
:editor [:lt.objs.editor/no-wrap
(:lt.objs.style/set-theme "default")
:lt.plugins.vim/activate-vim]
要自定义它:
:editor [:lt.objs.editor/no-wrap
(:lt.objs.style/set-theme "default")
:lt.plugins.vim/activate-vim
(:lt.plugins.vim/map-keys {"K" "{",
"J" "}",
"L" "$",
"H" "^",
"-" "$",
"0" "^",
"<BS>" "<PageUp>",
"<Space>" "<PageDown>",
"jj" "jj",
"j" "gj",
"k" "gk"})]
对于所有Vim模式键绑定,请参阅:https://github.com/marijnh/CodeMirror/blob/master/keymap/vim.js