December 31, 2022

Switching to Neovim

I’ve been using Vim for almost 4 years now - I’ve began my journey by reading Mastering Vim Quickly, which I highly recommend, to upskill and become more confident in using Vim. The book is a fine balance between explanations, examples and tips. I’ve tried sublime, vscode and vscodium(vscode without Miscosoft telemetry) with the Vim extension which were, however, clunky to use. Though I liked the vscode/vscodium interface, I missed Vim’s keyboard and text centrism, and editing effiency. Read more

August 24, 2022

Journaling in vim

I came across this interesting post called journaling in vim by Danish Prakash which uses built-in functionality in Vim to make a painless digital journal workflow. The write-up is clear and I’ve been able to set up my workflow. Following is what I’ve learned during the process. Vim templates Vim templates allow you to specify a template to be used for new files with a certain extension. A template is a . Read more

August 1, 2022

Vimgolf 5f1e0217becb80000692b9c4

Link: Rural post Simple challenge to remove all but the post code on each line Start file RD 5 Gore 9775 RD 6 Gore 9776 RD 7 Gore 9777 RD 1 Great Barrier Island 0991 RD 1 Greta Valley 7387 RD 1 Greytown 5794 RD 1 Hamilton 3281 RD 2 Hamilton 3282 End file 9775 9776 9777 0991 7387 5794 3281 3282 Solution: .,$norm $bd0j Explanation: .,$ - every line from current one till end of file norm - normal mode $ - go to end of line b - go to start of word d0 - delete till start of line j - move one line down RECAP Ranges: Here are the most interesting ranges you can use: * <number> - Any number <number> in your range refers to a line number. Read more

July 31, 2022

Vimgolf 5ba020f91abf2d000951055c Com(m)a Trouble Someone was real stupid when placing his commas. Can you fix it? Start file ,0,1,2,3,4,5,6,7,89 ,1,2,3,4,5,6,7,8,90 ,2,3,4,5,6,7,8,9,01 ,3,4,5,6,7,8,9,0,12 ,4,5,6,7,8,9,0,1,23 56,7,8,9,0,1,2,3,4, 67,8,9,0,1,2,3,4,5, 78,9,0,1,2,3,4,5,6, 89,0,1,2,3,4,5,6,7, 90,1,2,3,4,5,6,7,8, End file 0,1,2,3,4,5,6,7,8,9 1,2,3,4,5,6,7,8,9,0 2,3,4,5,6,7,8,9,0,1 3,4,5,6,7,8,9,0,1,2 4,5,6,7,8,9,0,1,2,3 5,6,7,8,9,0,1,2,3,4 6,7,8,9,0,1,2,3,4,5 7,8,9,0,1,2,3,4,5,6 8,9,0,1,2,3,4,5,6,7 9,0,1,2,3,4,5,6,7,8 Solution: <C-V>Md6E.0p{EPZZ Explanation: <C-V> - visual mode M - Go to the first non-blank characterwise d - delete selected text 6E - Move to the end of the 6th line below . Read more

Powered by Hugo & Kiss.