4 ms·
Superb submission! I've been using vim for over a decade and I never knew about gx or gf. Thanks!
by rualca 6y ago
Superb submission! I've been using vim for over a decade and I never knew about gx or gf. Thanks!
- RMPR 6y agoI 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-index.html https://www.ele.uri.edu/faculty/vetter/Other-stuff/vi/009-in... Edit: add the bit about aerc
- thanato0s 6y agoWow this looks super interesting. Thanks for sharing :)
- RMPR 6y agoNo 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. 0: https://rmpr.xyz/Vim-Session/ https://rmpr.xyz/Vim-Session/
- thanato0s 6y agoNice! I did that for managing my vim sessions: " Save session nnoremap <leader>ss :mksession! $VIMCONFIG/sessions/ " Reload session nnoremap <leader>sl :so $VIMCONFIG/sessions/
- issamehh 6y agoDo 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
- RMPR 6y agoYou can browse the different parts of your email using Ctrl+J/K when you reach the attachment you can save it with :save
- tjoff 6y agoRelated, 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.
- thanato0s 6y agoNice one. Didn't know that. I'll add it to the article :)
- thanato0s 6y agoThanks for the kind words! I'm happy it helps.
- benrutter 6y agoSame here, with vim it's so easy to so learning once you can navigate comfortably, but I'm really glad I know this now!