21 lines
1.1 KiB
Markdown
21 lines
1.1 KiB
Markdown
|
---
|
||
|
banner: "https://cdn.discordapp.com/attachments/1050995657797816341/1090929816112468031/Triston_neovim_astrovim_128baf61-ab17-4aab-86c8-46ecc9643ca3.png"
|
||
|
---
|
||
|
|
||
|
up:: [[Terminal]]
|
||
|
|
||
|
### Change word and all occurances
|
||
|
the following key combonations select the current word under the cursor, then uses `cw` to `change word`. You input the new word, then press `esc` key, followed by `n` key for `next` and a `.` key to apply new word to current word
|
||
|
```ts
|
||
|
* cw <new_name> esc n .
|
||
|
```
|
||
|
|
||
|
### Setting new macro
|
||
|
pressing `q<letter>` will open a new macro on that letters "storage", whatever its called. You then press all the keys you want to record, for example the tip above this one, and then press `q` again to quit the macro recording..
|
||
|
```ts
|
||
|
q<letter> <record steps> q
|
||
|
```
|
||
|
Now that a macro is recorded, you can press `@<letter` to run the macro stored on that letter storage
|
||
|
|
||
|
### create file/dir in neo-tree
|
||
|
Super simple, put cursor on directory you want to create a file/dir on, and then press the `a` key. A popup will appear, in which you can type `fileName.extension` or `directoryName/` to create a file or directory
|