Notes and blurbs about how I use Vim for editing and other things.
Find Non UTF-8 Encodings
I run into this issue quite a bit, especially when importing stuff into this blog, as Jekyll and many other things tend to choke on non UTF-8 characters.
/[^\x00-\x7F]
IDE
VSCode actually has very good Vim support. There are certainly a few quirks and missing features, but it works well enough for my uses.
Disable Arrow Keys
A common suggestion to get started, this tip has helped me break the arrow navigation habbit quickly. Here is how to do it:
noremap <Up> ""
noremap! <Up> <Esc>
noremap <Down> ""
noremap! <Down> <Esc>
noremap <Left> ""
noremap! <Left> <Esc>
noremap <Right> ""
noremap! <Right> <Esc>
Web Browsing
Yes, you can navigate the web using Vim!
- Chrome: cVim is my go to when I use Chrome.
- Firefox: Vimium is my favorite on FF, I actually like it more than cVim as it generates easier to use link keys. Insert mode and opening new tabs from a link also seem to be more intuitive than cVim as well.
- Gmail/Feedly: Have it built in to navigate up and down