From f5d2e74f21e8875e8bcc1cc1d5d0c091d5167527 Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Tue, 27 Nov 2018 09:33:43 -0400 Subject: [PATCH] Remove outdated file --- keybindings.md | 82 -------------------------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 keybindings.md diff --git a/keybindings.md b/keybindings.md deleted file mode 100644 index 1087cfd..0000000 --- a/keybindings.md +++ /dev/null @@ -1,82 +0,0 @@ -# Cross application keybindings -I spend most of my time in a terminal emulator. For that reason, I have tried to keep the keybindings similar for different terminal applications just with different modifiers. I am often in vim under tmux. I move around in vim more so vim's keybindings don't have a modifier. The alt modifier will trigger a similar command in tmux and the super modifier will trigger it in bspwm. For example: in vim \` switches to the most recent buffer, in tmux, alt-\` switches to the most recent window, and in bspwm, super-\` switches to the most recent workspace. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
functionvimtmuxbspwmnotes
last buffer/window/node`
:e #\<CR>
alt-`
last-window
super-`
bspc node -f last
previous buffer/window/desktop{
:bp\<CR>
alt-{
previous-window
supder-[
bspc desktop -f prev
vim and tmux use { and } to switch buffers/windows. bspwm uses [ and ] to change desktops and { and } to move nodes to the previous and next desktop respectively. The reason for this is to avoid conflicts in vim and tmux.
next buffer/window/desktop}
:bn\<CR>
alt-}
next-window
super-]
bspc desktop -f next
move node to previous desktop--super-{
desktop -f prev
move node to next desktop--supder-}
desktop -f next
focus pane/node in directionctrl-{h,j,k,l}
<C-w><C-{h,j,k,l}>
alt-{h,j,k,l}
select-pane -{L,D,U,R}
super-{h,j,k,l}
bspc node -f {west,south,north,east}
focus nth buffer/window/desktop{0-99}-leader
:b {0-99}
alt-{1-9,0}
select-window -t {1-9,10}
super-{1-9,0}
bspc desktop -f '^{1-9,10}'
- -# Vim keybindings -## Vanilla vim -| description | keybinding |function | -|--------------------------------------|--------------------------------|----------------------------------------------------------------------------------| -| hide search results | leader-/ | `:noh` | -| close buffer | leader-q | `:bpspbnbd` | -| empty line without deleting it | leader-dd | `0d$` | -| insert single character at cursor | s | `:exec "normal i".RepeatChar(nr2char(getchar()), v:count1)` | -| insert single character after cursor | S | `:exec "normal a".RepeatChar(nr2char(getchar()), v:count1)` | - -## FZF -| description | keybinding |function | -|--------------------------------------|--------------------------------|----------------------------------------------------------------------------------| -| open fuzzy file finder | ctrl-p | `:FZF` | - -## NERDTree -| description | keybinding |function | -|--------------------------------------|--------------------------------|----------------------------------------------------------------------------------| -| toggle | leader-n | `:NERDTreeToggle` |