Re:A Vim Guide for Advanced Users
by rualca on Saturday February 27, 2021 @09:48AM
(#26285172)
Superb submission! I've been using vim for over a decade and I never knew about gx or gf. Thanks!
[ Parent
| on HN ]
Related, gF will also scroll down to the line number if specified as:
File.txt:45
Very handy when using a terminal from within vim and looking at compiler errors/warnings or log files etc.
Nice one. Didn't know that. I'll add it to the article :)
I was meant to write a blog post like this since forever. Anyway, if you want really advanced stuff this[0] is definitely a way to go. As for ```gx``` since I'm using aerc as my email client, a trick I found very useful to open links using only the keyboard is to open an email then rq (reply with quote) search for the link and gx.
0: https://www.ele.uri.edu/faculty/vetter/Other-stuff/vi/009-in...
Edit: add the bit about aerc
Do you have any more aerc tricks? I use it and do like it but there's a whole lot of basic things even that I don't know how to do. And some things like saving file attachments that I'm not even sure if it supports or if I'm just clueless
You can browse the different parts of your email using Ctrl+J/K when you reach the attachment you can save it with :save
Wow this looks super interesting. Thanks for sharing :)
No problem, I also wrote a blog post about Vim sessions[0]. I think it definitely counts as intermediate/advanced vim material. Great work with your article.
Nice! I did that for managing my vim sessions:
" Save session nnoremap <leader>ss :mksession! $VIMCONFIG/sessions/ " Reload session nnoremap <leader>sl :so $VIMCONFIG/sessions/
Same here, with vim it's so easy to so learning once you can navigate comfortably, but I'm really glad I know this now!