https://github.com/haensl/vimdoc
A collection of vim commands & tricks.
https://github.com/haensl/vimdoc
commands documentation tricks vim
Last synced: 9 months ago
JSON representation
A collection of vim commands & tricks.
- Host: GitHub
- URL: https://github.com/haensl/vimdoc
- Owner: haensl
- Created: 2017-02-10T11:44:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-09T12:42:01.000Z (over 8 years ago)
- Last Synced: 2025-10-12T01:09:32.707Z (9 months ago)
- Topics: commands, documentation, tricks, vim
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VIMDOC
A collection of vim commands & tricks.
### Operate on tags (e.g. `
...
`)
```bash
cit # (change-in-tag)
dat # (delete tag and contents)
```
### View manpage of command under cursor
```bash
K # (in command mode)
```
### Revert document to an earlier/later version
```bash
:earlier 15m
:later 15m
```
### Dump output of command into current buffer
```bash
:.! ls
```
### To upper-/lowercase
```bash
viwu
viwU
```
### View changelist
```bash
:changes
```
### Move through changelist
```bash
g;
g,
```
### Hex mode
```bash
:%!xxd
:%!xxd -r # back to normal mode
```
### Reselect last visual selection
```bash
gv
```
### Create HTML rendering of current buffer
```bash
:%TOhtml
```
### Open file that's currently under the cursor
```bash
gf
gF # recognises [file name]:[line number]
```
### Go to last/next position
```bash
ctrl+o # last
ctrl+i # next
```
### Autocomplete file name
```bash
ctrl+x ctrl+f
```
### Autocomplete line
```bash
ctrl+x ctrl+l
```
### Go to shell
```bash
ctrl+z
fg # go back to vim
```
### Autoindent block
```bash
=% # place cursor on brace and indent until closing brace
```
### Paste word under line in command
```bash
# with cursor over word
ctrl+r ctrl+w
```
### Join lines
```bash
J
```