Skip to content

Instantly share code, notes, and snippets.

@strokirk
Created June 23, 2015 17:12
Show Gist options
  • Select an option

  • Save strokirk/4459da220cdbd967edc0 to your computer and use it in GitHub Desktop.

Select an option

Save strokirk/4459da220cdbd967edc0 to your computer and use it in GitHub Desktop.
Proposed default alternative to t_CTRL-\_CTRL-n
Proposed default alternative to t_CTRL-\_CTRL-n:
<c-x><c-c> or <c-x>c
Benefits:
No conflicts in default vim or bash.
Easily available on all QWERTY, AZERTY and QWERTZ keyboard layouts.
For reference:
Default Ctrl-keys in bash/readline
(C-@, M-<space>) set-mark
(C-]) character-search
(C-_, C-x C-u) undo
(C-a) beginning-of-line
(C-b) backward-char
(C-d) delete-char
(C-e) end-of-line
(C-f) forward-char
(C-g) abort
(C-k) kill-line
(C-l) clear-screen
(C-n) next-history
(C-o) operate-and-get-next
(C-p) previous-history
(C-q, C-v) quoted-insert
(C-r) reverse-search-history
(C-s) forward-search-history
(C-t) transpose-chars
(C-u) unix-line-discard
(C-v TAB) tab-insert
(C-w) unix-word-rubout
(C-x !) possible-command-completions
(C-x $) possible-variable-completions
(C-x () start-kbd-macro
(C-x )) end-kbd-macro
(C-x *) glob-expand-word
(C-x /) possible-filename-completions
(C-x @) possible-hostname-completions
(C-x C-r) re-read-init-file
(C-x C-v) display-shell-version
(C-x C-x) exchange-point-and-mark
(C-x Rubout) backward-kill-line
(C-x e) call-last-kbd-macro
(C-x g) glob-list-expansions
(C-x ~) possible-username-completions
(C-xC-e) edit-and-execute-command
(C-y) yank
Default Ctrl-keys in vim insertmode
i_CTRL-@
i_CTRL-[
i_CTRL-]
i_CTRL-^
i_CTRL-_
i_CTRL-A
i_CTRL-C
i_CTRL-D
i_CTRL-E
i_CTRL-F
i_CTRL-H
i_CTRL-I
i_CTRL-J
i_CTRL-K
i_CTRL-L
i_CTRL-M
i_CTRL-N
i_CTRL-O
i_CTRL-P
i_CTRL-Q
i_CTRL-R
i_CTRL-T
i_CTRL-U
i_CTRL-V
i_CTRL-W
i_CTRL-X
i_CTRL-Y
i_CTRL-Z
i_CTRL-R_=
i_CTRL-G_S
i_CTRL-G_s
i_CTRL-G_j
i_CTRL-G_k
i_CTRL-G_u
i_CTRL-X_s
i_CTRL-G_<Up>
i_CTRL-G_<Down>
i_CTRL-X_CTRL-]
i_CTRL-_CTRL-G
i_CTRL-_CTRL-N
i_CTRL-_CTRL-O
i_CTRL-V_digit
i_CTRL-X_index
i_CTRL-<PageUp>
i_CTRL-G_CTRL-J
i_CTRL-G_CTRL-K
i_CTRL-R_CTRL-O
i_CTRL-R_CTRL-P
i_CTRL-R_CTRL-R
i_CTRL-X_CTRL-D
i_CTRL-X_CTRL-E
i_CTRL-X_CTRL-F
i_CTRL-X_CTRL-I
i_CTRL-X_CTRL-K
i_CTRL-X_CTRL-L
i_CTRL-X_CTRL-N
i_CTRL-X_CTRL-O
i_CTRL-X_CTRL-P
i_CTRL-X_CTRL-S
i_CTRL-X_CTRL-T
i_CTRL-X_CTRL-U
i_CTRL-X_CTRL-V
i_CTRL-X_CTRL-Y
i_CTRL-<PageDown>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment