Skip to content

Instantly share code, notes, and snippets.

@klebermagno
Last active December 12, 2022 18:03
Show Gist options
  • Save klebermagno/04056ff791a01f0d043aa43eb1adad63 to your computer and use it in GitHub Desktop.
Save klebermagno/04056ff791a01f0d043aa43eb1adad63 to your computer and use it in GitHub Desktop.
Space vim navigation instructions
https://github.com/Jackiexiao/10-minutes-to-SpaceVim
| Shortcuts | Description |
| ---------------- | ------------------------------------------------------|
| Basic |
| `<F3> / spc f t` | trigger file tree |
| `spc t t` | Open tab manager |
| `F2` | Open tagbar |
| `<Leader> [1-9]` | switch to different tabs or buffers |
| `spc [1-9]` | switch to different windows |
| `ctrl j/h/k/l` | switch to different windows |
| Filetree | [Link](https://spacevim.org/documentation/#file-tree) |
| `spc f o` | open file tree and locate to current directory |
| `s g` | open file and split window horizontally |
| `s v` | open file split window vertically |
| Comment code | [Link](https://spacevim.org/documentation/#commenting)|
| `spc c l` | comment/uncomment current line |
| `spc c p/P` | comment/uncomment current paragraph |
| `spc ; [num] j` | comment *num* lines |
| Tab Manager | [Link](https://spacevim.org/documentation/#tabline) |
| `spc t t` | open tab manager |
| `spc w F` | open a new tab, equal to `spc t t + n` |
| `spc w o` | switch tab |
| Display | [Link](https://spacevim.org/documentation/#ui-toggles)|
| `spc s c` | clear search highlight |
| `SPC t 8` | highlight any character past the 80th column |
| `SPC t h h` | toggle highlight of the current line |
| `SPC t h c` | toggle highlight indentation current column |
| Search | [Link](https://spacevim.org/documentation/#searching) |
| `spc s s` | Searching in current file |
| `spc s d` | Searching in current directory |
| `spc s b` | Searching in all loaded buffers |
| `spc s p` | Searching in current proj, equal to `spc /` |
| Useful shortcuts | [Link](https://spacevim.org/documentation/#unimpaired-|
| `[ spc` | insert space above |
| `] spc` | insert space below |
=======================================================
ge b w e
<- <- ---> --->
This is-a line, with special/septed/words (and more). ~
<----- <----- --------------------> ----->
gE B W E
=======================================================
^
<------------
.....This is a line with example text ~
<----------------- --------------->
0 $
=======================================================
Fh
<---------------------
To err is human. To really foul up you need. ~
---------->--------------->
fh fy
=======================================================
%
<----->
if (a == (b * c) / d) ~
<---------------->
%
=======================================================
| first line of a file ^
H -> | text text text text |
| text text text text | gg
7G | text text text text |
| text text text text
M -> | text text text text
V text text text text |
90% text text text text | G
L -> text text text text |
last line of a file V
:%s/<\/gs:\(\w*\)>/<gs:\1y><\/gs:\1y>/g
:%s/[A-Z]/\L&/g
:%s/^/<gs:/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment