I just noticed something quite funny. I often have to intend multiple lines (blocks, whatever) of code because I added for example an if-condition somewhere in my code or something like that. Now you could intend every single line manually which is quite a big pain when the new block is quite long.
Read more about "Intending multiple lines at once" ...Archive for [<Tag: vim>]
-
Intending multiple lines at once
-
25h sequences in VIM?
I'm currently evaluating FreeBSD as some kind of alternative to Gentoo for one of my machines I naturally also installed VIM right away. A little bit later I noticed a quite annoying problem: In the upper left corner the string "25h" which seemed to be the rest of some loose escape sequence. The same string also got appended to the rendering of any character I wrote.
Read more about "25h sequences in VIM?" ... -
MacVIM as TextMate replacement
TextMate is one of the coolest editors around thanks to its Snippet-feature, ease of extensibility and community support. But more and more I saw myself using VIM instead of TextMate for one reason or another, but mainly because I'm just so used to searching with / and using :s for search-and-replace. And MacVIM helped quite a lot too, thanks to its pretty nice integration into OSX.
Today I tried two plugins for vim that move it pretty close to what TextMate has to offer (not that vim is less powerful than TM or something, but some gems are just too well hidden ;-) ): snippetsEmu for snippets and NERD_tree as a replacement for the project-drawer.
Read more about "MacVIM as TextMate replacement" ... -
Getting to VIM's Python interface
Scripting is usually one of the selling points for those types of text editors that are specifically targeted at power-users. But most of the time you have to learn a whole new scripting language to really be able to use it. Imagine my surprise when I noticed that VIM besides having it's own scripting language also let's you also write plugin in Perl, Python, Ruby and TCL. This way you don't really have to learn a new language for scripting VIM, although you might still want to look into it because there are a few problems.
Since I like Python quite a bit, the rest of this post will be mostly focused on the Python interface.
Read more about "Getting to VIM's Python interface" ... -
SPAM in the VIM tip archive
Read more about "SPAM in the VIM tip archive" ...
Argh... now spammers have also found the VIM tip archive for their dirty work. I just hope that this won't happen on a regular basis otherwise Scott Johnston will have to re-think adding some spam protection.