It's a good time to have Vim 7.2 on Ubuntu 8.10 (Intrepid Ibex) now. To make it, we need to borrow something jaunty (and never give back).
- Vim, sure. But which? vim-gnome, vim-gtk, or vim-nox? It's not of my business to make this choice.
- Whatever, you will need vim-common, vim-runtime. If you want to go with GUI, don't forget your vim-gui-common.
- You may want to keep it easy, so keep your Intrepid Vim first. Install jaunty vim-common or vim-gui-common for GUI, then remove those old Vim packages. On my computer, they are:
vim 1:7.1.314-3ubuntu3
vim-common 1:7.1.314-3ubuntu3
vim-gtk 1:7.1.314-3ubuntu3
vim-gui-common 1:7.1.314-3ubuntu3
vim-python 1:7.1.314-3ubuntu3
vim-runtime 1:7.1.314-3ubuntu3
vim-tiny 1:7.1.314-3ubuntu3
- And install new packages, for me:
(After install vim-gui-common 2:7.2.025-2ubuntu1)
vim-common 2:7.2.025-2ubuntu1
vim-gtk 2:7.2.025-2ubuntu1
vim-runtime
Hurray! We're done. Vim 7.2... but WHY? What for? How, When, Where?
Okay, okay, let's take something for fun.
But not much, I only come up with this:
arpeggio, created by
Kana Natsuno. This plugin can let you define another type of key-mapping, consists of 2 or more keys by simultaneously pressing them. The usage:
call arpeggio#map('i', '', 0, 'jk', '<esc>')
call arpeggio#map('i', '', 0, 'j<space>', '<esc>')
What is the difference with
inoremap jk <esc>
inoremap j<space> <esc>
?
Good question, or you already know that. In some bad daya you just want to key in 'jk' or 'j ' string but it <Esc><ESc><ESC>!!! God bless us, it doesn't have mercy at all. Nice trick, thanks Kana.
But I also found that it's not easy to press simultaneously on the kerboard, at least for me. So it does let you tweak a bit:
let g:arpeggio_timeoutlens = {'j':400, 'k':200, 'q':100}
You can have different definition of how long does it "simultaneously" in milliseconds. Then you don't need to get <esc> with 4 cups of coffee in order to press two keys.
Have fun!