linux
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux [2025/05/31 01:39] – created root | linux [2025/06/01 22:44] (current) – [Macros in Vim] root | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Text Editor ===== | ===== Text Editor ===== | ||
- | Vim and Neovim all the way. I wrote my college application essay, and programmed my thesis application, | + | Vim and Neovim all the way. I wrote my college application essay, and programmed my thesis application, |
+ | |||
+ | ==== Macros in Vim ==== | ||
+ | Place yourself in the following scenario. You have a this .csv style line:\\ | ||
+ | < | ||
+ | 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# | ||
+ | |||
+ | 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.1748655562.txt.gz · Last modified: by root