Recently, I read an article about the history of the Vim text editor:
Where Vim Came FromTracing the long lineage of software that brought us Vim.https://twobithistory.org/2018/08/05/where-vim-came-from.html
I found the following excerpt from the article rather amusing:
There are major websites, including Facebook, that will scroll down when you press the j key and up when you press the k key—–the unlikely high-water mark of Vim’s spread through digital culture.
This inspired me to add support for navigating my blog with vi commands as well!
The following commands are supported:
j
: Move down one linek
: Move up one line}
: Move forward one paragraph{
: Move backward one paragraphG
: Jump to the bottom of the pagegg
or1G
: Jump to the top of the page
The (rather crude) implementation can be found at /js/vi.js. It is highly coupled to my blog's structure though.
Related projects
While implementing this functionality on my blog, I looked around to see what else allowed you to use vi-style navigation on the internet, and came across a few:
- Vimium (Chrome and Firefox extension): Homepage GitHub
- vimb (browser): Homepage GitHub
- Vim Vixen (Firefox extension): GitHub
- VimFX (Firefox extension): GitHub
- Saka Key (Chrome and Firefox extension): Homepage GitHub
- Tridactyl (Firefox extension): GitHub
- Vimperator (Firefox extension): Homepage GitHub
- qutebrowser (browser): Homepage GitHub
You can find a more comprehensive list over at the Vim Tips Wikia.