triston-notes/Cards/dev/Vim Tips.md
2023-10-21 18:52:54 -05:00

1.1 KiB

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

* 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..

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