Tag Archives: vim

Tabs in Vim

tabs in vimSince its 7th version, Vim has tabs functionality. You can open multiple files in tabs and do lots of wonderful things with them. To open multiple files from the console, just type:

vim -p filename1 filename2 …

Or if you’re already inside Vim, give the command,

:tabnew filename

to open a file in a new tab. You can traverse the tabs with the combinations gt and gT. To close a tab just use the exit command (:q).

There is a wide range of cool stuff you can do with tabs. To learn more, just type

:help tabs

in Vim or head to this page.

See you, bye!

Bring your dear Vim to Firefox – Vimperator

If you are a die-hard Vim fan and haven’t heard of Vimperator already, here’s great news: You can control your web browser using the keyboard without the need to touch your mouse just like in Vim.

Vimperator is a Firefox extension that creates a Vim-like environment in your browser. It removes all clutter including the menu bar, tool bar and bookmarks bar. However if you want, you can bring them up again using a simple command. Navigating the pages are same as in Vim, use hjkl and what-not. The list of commands you can use is enormous, but thankfully Vimperator has a great documentation as well. Just type :help and hit Enter to view the help.

You can build aliases, map keystrokes, etc in a separate configuration file named .vimperatorrc. There are also dozens of plugins available.

It takes some time to get used to the command-only interface, but once you are through you will know that it’s worth the effort.

Take a look at the minimal look of Firefox once Vimperator is installed: