Skip to content

Commit 05b9f88

Browse files
lukasx999smjonas
authored andcommitted
docs: add vim alias info to readme
1 parent b072369 commit 05b9f88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ require("live-command").setup {
7272
Each command you want to preview needs a name (which must be uppercase) and
7373
an existing command to run on each keypress, specified via the `cmd` field.
7474

75+
If you want to keep the name of existing commands, you can assign an alias like so:
76+
77+
```lua
78+
vim.cmd("cnoreabbrev norm Norm")
79+
```
80+
7581
## :gear: Customization
7682

7783
If you wish to customize the plugin, supply any settings that differ from the defaults

0 commit comments

Comments
 (0)