In Vim there is the leader key, which is by default __ , but you can change it in any time.
| Action | Hotkey |
|---|---|
| ▶ File operations | |
| Recent Files List | leader m |
| FuzzyFinder fo files | leader ; |
| Ack/Grep | leader / |
| Show current file in NERDtree in a split | leader f |
| ▶ JShint/CSSlint navigation | |
| Show error window | leader ll |
| Go to the next line with error/warning | ] |
| Go to the previous line with error/warning | [ |
| ▶ Advanced Javascript features (if Tern is available) | |
| Find all refs for the variable under cursor | leader tr |
| Smart rename a variable and all references to it | leader tn |
| ▶ Code completion | |
| Start autocompletion | tab |
| Undo autocompletion | ctrl+e |
| Expand snippet | Enter |
| ▶ Integration with Git | |
| Git blame on the current line or all selected line | leader b |
| Git status | leader gst |
| Git add/checkout file | leader gw |
| Git diff | leader gd |
| Git commit | leader gc |
| Git commit all | leader gca |
| Git commit -a --amend | leader gcf |
| ▶ Other | |
| Toggle comment on the current line | gcc |
| Toggle comments | gc in visual mode, or gc + motion |
| Change surrounding symbols (like [ or ") | cs (what)(to what) |
| Toggle folding | space |
| Toggle insert mode | leader p |
| Yanking history with Quick navigation | leader h |
| Replace | leader s |
| Move between splits | leader w |
| ESC | j+k (simultaneously) |
| Quick tab navigation | leader ' |
| Action | Hotkey |
|---|---|
| Открыть/закрыть каталог в дереве, открыть файл и перейти в окно с файлом | o |
| Открыть файл, но курсор остается на NERD | go |
| Открыть файл в отдельном окне, разделение идет по горизонтали | i |
| То же самое что и i, но курсор остается на NERD | gi |
| Сделать корнем текущую директорию | C |
| Сделать корнем директорию выше текущей | u |
| Изменить CWD на директорию, на которую указывает курсор | cd |
| Action | Hotkey |
|---|---|
| ▶ Sessions | |
| Start new | tmux, :new |
| Start new with session name | tmux new -s myname |
| Attach | tmux a # (or at, or attach) |
| Attach to named | tmux a -t myname |
| Attach to named | tmux ls, s |
| Kill session | , |
| Kill all the tmux sessions | & |
| Name sessions | $ |
| ▶ Windows (tabs) | |
| Create window | c |
| List windows | w |
| Next windows | C-n |
| Previous windows | C-p |
| Find windows | f |
| Name windows | , |
| Kill windows | & |
| ▶ Panes (splits) | |
| vertical split | V |
| horizontal split | H |
| swap panes | tab |
| kill pane | x |
| ▶??? | |
| Move the current pane left | { |
| Move the current pane right | } |
| Toggle pane zoom | z |
| Break pane into window (e.g. to select text by mouse to copy) | + |
| restore pane from window | - |
| Toggle between layouts | space |
| Show pane numbers, when the numbers show up type the key to go to that pane | q |
| Kill pane | Enter |
| Alias | Command |
|---|---|
| g | git |
| ga | git add |
| gaa | git add --all |
| gb | git branch |
| gba | git branch -a |
| gcmsg | git commit -m |
| gcam | git commit -a -m |
| gco | git checkout |
| gcb | git checkout -b |
| gcm | git checkout master |
| gcf | git config --list |
| gd | git diff |
| gf | git fetch |
| gfo | git fetch origin |
| gl | git pull |
| gm | git merge |
| gmom | git merge origin/master |
| gmtvim | git mergetool --no-prompt --tool = vimdiff |
| gmum | git merge upstream/master |
| gp | git push |
| gpu | git push upstream |
| gst | git status |
| gss | git status -s |
| gsb | git status -sb |
| gsta | git stash |
| gstaa | git stash apply |
| gstd | git stash drop |
| gstl | git stash list |
## ZSH Arch aliases
Rereplace pac by ya for yaourt
| Alias | Description |
|---|---|
| pacin | Install specific package(s) from the repositories |
| pacins | Install specific package not from the repositories but from a file |
| pacre | Remove the specified package(s), retaining its configuration(s) and required dependencies |
| pacrem | Remove the specified package(s), its configuration(s) and unneeded dependencies |
| pacrep | Display information about a given package in the repositories |
| pacreps | Search for package(s) in the repositories |
| pacloc | Display information about a given package in the local database |
| paclocs | Search for package(s) in the local database |
| pacupd | Update and refresh the local package and ABS databases against repositories |
| pacupg | Update the local database and upgrade packages |
| pacinsd | Install given package(s) as dependencies of another package |
| pacmir | Force refresh of all package lists after updating /etc/pacman.d/mirrorlist |
| Function | Description |
|---|---|
| paclist | List all installed packages with a short description |
| paclsorphans | List all orphaned packages |