You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
enter ctrl-d
now, the cursor will be moved to beginning of the line
enter 3 tabs
enter shift-tab
now the cursor will be moved one tab space to the left
What you have done to solve the issue
added below in
~/.jupyter/custom/custom.js
without help
CodeMirror.Vim.map("Ctrl-D", "shift-tab", "insert");
or
CodeMirror.Vim.map("C-D", "shift-tab", "insert");
or
CodeMirror.Vim.map("Ctrl-D", "Shift-Tab", "insert");
or
CodeMirror.Vim.map("C-D", "Shift-Tab", "insert");
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summary
in VIM, i am using ctrl-d to enable single shift+tab in insert mode (default vim behavior)
is there anyway to enable that?
default ctrl-d currently is to remove all empty spaces of current line and moved the cursor to the beginning of the line
Environment
Behavior
ctrl-d in vim is default to single shift+tab
Expected
expected to have same behavior for ctrl-d in vim and vim_binding in jupyter notebook
Actual
currently when we do ctrl-d, it is deleting all empty spaces and move cursor to beginning of the line
Step by step procedure
Start local Jupyter Notebook by
jupyter notebook
Access http://localhost:8888/
create a cell
enter 3 tabs
enter ctrl-d
now, the cursor will be moved to beginning of the line
enter 3 tabs
enter shift-tab
now the cursor will be moved one tab space to the left
What you have done to solve the issue
added below in
~/.jupyter/custom/custom.js
without help
CodeMirror.Vim.map("Ctrl-D", "shift-tab", "insert");
or
CodeMirror.Vim.map("C-D", "shift-tab", "insert");
or
CodeMirror.Vim.map("Ctrl-D", "Shift-Tab", "insert");
or
CodeMirror.Vim.map("C-D", "Shift-Tab", "insert");
The text was updated successfully, but these errors were encountered: