Schlagworte: vim




Vimperator is a great Firefox addon, which adds Vim-Power to Firefox.

It's a Firefox plugin only, but makes it behave a lot differently - adding vim commands to it. This is not meant for the casual user, but somebody who enjoys Vim, will probably enjoy Firefox a lot more when using this plugin.

Favorite commands include ":hardcopy" for the print dialog or the navigation in general.

If you test want to test it, please start with using the 2.0 betas, which are stable already and provide a lot of improvements since 1.2 (current stable).

I've even written my own command already, which allows me to easily switch between development and live server.

After all, it's really powerful and lets you avoid using the mouse even during surfing.. ^^

The help/tutorial is always available with ":help" - and you can still use the mouse (and normal shortkeys, if you use bypass mode (Ctrl-Z / Ctrl-Y), so there's no real excuse after all.. ;)

Update: Vimperator is available in Debian/Ubuntu as "iceweasel-vimperator", although currently only as 1.2-1 - while a few days ago 2.0 has been released and provides a lot of improvements and fixes.
As great as the Debian/Ubuntu package archive is, for plugins like the ones used with Firefox, I prefer the official repositories to (automatically) get any updates.


Vim settings per directory

When hacking on b2evolution using vim, I often forget to ":set noet" (to not expand tabs) and it's really annoying to change this global setting everytime I open a b2evo related file.

According to the mantra, to search for a shortcut when a task becomes repetitive, I've finally searched for it and found a plugin, which looks for _vimrc_local.vim files (in the parent directories (and $HOME)).

Now, I can have a single _vimrc_local.vim file in the directory where all my b2evo related directories/branches reside - and override my global settings therein; It gets sourced/executed whenever I'm opening a file "below".

For more information see the Question on Stack Overflow and the actual plugin by Luc Hermitte. Thanks! :)

Update: as noted on Reddit, you could also use the following code in a vimrc file (e.g. ~/.vimrc):

:au! BufRead,BufNewFile /path/to/project/* setlocal noet

I still like the approach of having local override files in the directory structure though, which might come in handy for projects: if somebody has installed the plugin already there's no need to edit any .vimrc file (if the project ships the _vimrc_local.vim file in the project's root directory).