linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
linux [2025/06/01 22:44] – [Macros in Vim] root | linux [2025/06/01 22:44] (current) – [Macros in Vim] root | ||
---|---|---|---|
Line 15: | Line 15: | ||
But, you need to format it to look like this: | But, you need to format it to look like this: | ||
< | < | ||
- | No problem right? It should only take around 30 seconds in a regular text editor (I tried it myself). Now image this, you have to do this [[movies#movies_in_my_watchlist|over a hundred times]]. Now, it seems like it would be a problem. | + | No problem right? It should only take around 30 seconds in a regular text editor (I tried it myself). Now image this, you have to do this [[movies#List of Movies I Have Watched|over a hundred times]]. Now, it seems like it would be a problem. |
Now yes, you could just ask ChatGPT to do it for you, and it will do it with a very high degree of accuracy. However, you may have many valid reasons not to do so. Instead, you could use a vim macro. How it works is, you start recording a macro, perform the exact series of keyboard inputs, then save the macro. Then, you run it n number of times, and the macro will perform that exact operation on every single line you run it on. You have just saved over half an hour! | Now yes, you could just ask ChatGPT to do it for you, and it will do it with a very high degree of accuracy. However, you may have many valid reasons not to do so. Instead, you could use a vim macro. How it works is, you start recording a macro, perform the exact series of keyboard inputs, then save the macro. Then, you run it n number of times, and the macro will perform that exact operation on every single line you run it on. You have just saved over half an hour! |
linux.1748817856.txt.gz · Last modified: by root