Tagged with Vim

Lessons on writing vim plugins

Last week I was hacking on a vim plugin to post automatically to posterous. Vim-blogit is basically a python script at its core and is bound to the vim interface using vim’s python interop support. My initial workflow was like: Fire vim up, test something and hit a non-actionable error (since I won’t have the … Continue reading »

Vim patched builds for Win32

For Win32, you can get the latest vim bits (built from latest mercurial repo) at following places: TuxMan’s builds Full package available as .7z (here) Languages: Perl 5.12.2, Python 2.6, Python 3.1.2, Tcl 8.5, Ruby 1.9.2, Lua 5.1.4, libXpm 4.11 Installation: Extract the .7z archive or replace *vim.exe binaries Additional Patches: Herbert Sitz’s patch for … Continue reading »

Ruby plugins and vim on win32

I recently came across a two awesome file/buffer utilities for vim. Unfortunately all of them were blocked due to a ruby/vim interop issue which recently got patched. Thanks to Matt and Bram for including it in the official branch. Update: Removed links to my drop of gvim to avoid duplicacy. Wu Yongwei maintains a regularly … Continue reading »

C# and VIM

Let’s explore some of the tweaks to improve C# experience in Vim. All of the tips in this article can be applied to .Net Framework/Windows and Mono/Linux combination. Code folding The default syntax mode code folding doesn’t play well with C#. It allows folding of only the code between the #region tags. Alternatively we can … Continue reading »

Global command in VIM

Well you guessed it right, the “global” command (or :g in command mode) will let you select lines that match a particular pattern globally in the file and lets you operate on the selected text. The :v operates similar to grep -v which selects all texts which do not match the pattern. Syntax: :g/pattern/command where … Continue reading »

3 should-use vim plugins

The first two are very useful, if you kill bugs for a living (read debugging freak). NERDCommenter ‘NERDs use real editors (VIM Flame flame…) and Comment their code’. This plugin helps comment code in almost all languages you program in. The way: select ‘n’ lines in visual mode(or punch in a number in normal mode), use ‘,cc’ … Continue reading »

Testing Vimpress

Vimpress is a script for VIM which allows posting to wordpress blogs from the best $EDITOR For more information, visit the project page : http://www.friggeri.net/projets/vimpress Also checkout : http://linuxtidbits.wordpress.com/2008/02/29/publishing-a-blog-in-vim-with-vimpress/ Test stuff here underlinebolditalic Ciao