LightTable / LightTable Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Ctrl+C copy selection while in vim-mode #688
Comments
|
I am on a mac so I use CMD + C, but this behavior works for me. I can copy the whole file by:
It may be something on your end. |
|
Ctrl+C is a default vim binding for escaping insert mode. You can easily rebind this yourself though. In your user keymap: :editor.keys.vim {"ctrl-c" [:editor.copy]} |
|
Great, thanks for the tip. |
|
Solved: This issue should be closed. |
|
Got directed here from codemirror/CodeMirror#3075 and was grateful for the tip. I don't know whether the original config structure still works but I did the following successfully and have pasted it in here case any noobs find it useful. ;; User keymap
[
[:editor.keys.vim "ctrl-c" :editor.copy]
[:editor.keys.vim "ctrl-x" :editor.cut]
[:editor.keys.vim "ctrl-v" :editor.paste]
[:editor.keys.vim "ctrl-z" :editor.undo]
[:editor.keys.vim "ctrl-y" :editor.redo]
;; ...
] |
I don't know about you guys, but old habits die slow and one keystroke combination in particular I've found myself returning to is, while typing text in LightTable with vim on, is to
Shift+HomeorHome, Shift+Endand then close up with aCtrl+Cto copy the whole thing.It seems that at the moment, it doesn't do anything, I was wondering if it were possible to, while maintaining also of course the yank
yin normal-mode of vim, to enable theCtrl+Ccopy behaviour also when in vim insert-modei. Not sure if it's possible though... or even desirable?Thanks for your work,
Rob
The text was updated successfully, but these errors were encountered: