2014-01-11 16 views
21

Wie aktiviere ich Vim-Modus in Light Table 0.6.0. Die Dokumente sagen im Editor-Modus geben Sie einfach "vim" und es wird automatisch abgeschlossen, aber jetzt ist es nicht? Was füge ich meinem Benutzerverhalten hinzu?Wie stelle ich den Vim-Modus in Light Table ein?

{:+ { 
;; 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 []}} 

Antwort

29

hatte das gleiche Problem, von 0.6.0 changelog:

CHANGE: Emacs und Vim sind jetzt beide Plugins über den Plugin-Manager

es herunterladen heruntergeladen werden, neu zu starten, und jetzt autocompletes es, wenn Sie vim eingeben.

10

Für Standardeinstellung:

:editor [:lt.objs.editor/no-wrap 
     (:lt.objs.style/set-theme "default") 
     :lt.plugins.vim/activate-vim] 

es anzupassen:

: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"})] 

Für alle Vim-Modus keybindings siehe: https://github.com/marijnh/CodeMirror/blob/master/keymap/vim.js

Verwandte Themen