Skip to content

Instantly share code, notes, and snippets.

@Maple-pro
Last active September 24, 2024 12:28
Show Gist options
  • Select an option

  • Save Maple-pro/988bbfc01e39c8b110cf988a22e54f8f to your computer and use it in GitHub Desktop.

Select an option

Save Maple-pro/988bbfc01e39c8b110cf988a22e54f8f to your computer and use it in GitHub Desktop.
Commonly used shortcuts

Shortcuts

IdeaVim

<leader> key is ,

Key Mappings Details
J ideajoin: Join a selected block of text together.
<leader>f{char} easymotion: Find {char} to the right.
<leader>s{char} easymotion: Find {char} forward and backward.
<leader>j easymotion: Line downward.
<leader>k easymotion: Line upward.
cs{oldChar}{newChar} surround: Change the surroundings in pairs.
ds{char} surround: Remove the surroundings in pairs.
ysiw{char} surround: Surround the word with the {char}.
yss{char} surround: Surround the line with the {char}.
S{...} surround: Press V to enter visual line mode, surround the selected block with a string.
gcc commentary: Comment the line.

Tmux

<leader> key is <Ctrl>-B

Key Mappings Details
tmux [new -s name] Start a new session.
tmux ls List existing sessions.
tmux at [-t name] Attach to session.
tmux kill-sesssion -t name Kill a sessioin by name.
<leader>d Detach from the current session.
<leader>c Create a new window.
<leader>s Swith between sessions.
<leader>w Switch between sessions and windows.
<leader>:new Create a new session.
<leader>$ Rename current session.
<leader>n Next window.
<leader>p Previous window.
<leader>" Split pane vertically.
<leader>% Split pane horizentally.
<leader>{num} Go to target window.
<leader>q{num} Go to target pane.
<leader>x Close current pane.
<leader>& Close current window.
<leader>I Install plugins with TPM.
<leader>U Update plugins with TPM.
<leader> <Alt>-u Remove plugins with TPM.
<leader> <Ctrl>-s Save the current environment.
<leader> <Ctrl>-r Restore the saved environment.

NVim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment