1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

docs: add section on custom commands

This commit is contained in:
jdhao 2021-12-31 12:30:23 +08:00
parent 77a5dfacd6
commit 67d59bfc2c

View File

@ -172,6 +172,17 @@ represents ASCII character `,`.
| `ctrl-t` | Insert | Linux/macOS/Win | Turn word under cursor to title case |
| `jk` | Insert | Linux/macOS/Win | Return to Normal mode without lagging |
# Custom commands
In addition to commands provided by various plugins, I have also created
several custom commands for personal use.
| command | description | example |
|------------|-------------------------------------------------------------------------|--------------------------------|
| `Redir` | capture command output to a tabpage for easier inspection. | `Redir hi` |
| `Edit` | edit multiple files at the same time, supports globing | `Edit *.vim` |
| `Datetime` | print current date and time or convert Unix time stamp to date and time | `Datetime 12345` or `Datetime` |
# Trouble shooting
If you come across an issue, you can first use `:checkhealth` command provided