Thursday, November 26, 2009

[link] Vim 101: A Beginner's Guide to Vim

Vim 101: A Beginner's Guide to Vim by Joe Brockmeier.

Bit too vi-ish IMO, yet as beginner's guide quite complete.

Saturday, August 15, 2009

[link] vi Introduction

vi Introduction. Obviously by "vi" they mean "VIM".

Friday, August 07, 2009

[link] Vim Tutorial

Vim Tutorial - with videos!

Bit too vi-compatible to my tastes. Otherwise most bases are covered.

Thursday, July 30, 2009

[humor] Vim vs. Emacs

Vim vs. Emacs

Friday, July 17, 2009

[link] Customizing vim and coloring the terminal in OpenSolaris 2009.06

dd if=/dev/random of=/dev/blog » Customizing vim and coloring the terminal in OpenSolaris 2009.06.

Hehehe. Somebody tries to make some use of Solaris.... Good Luck. Piece of advice though: upgrade to Linux, it's faster that way. Do not get me wrong... ... BUT WHAT THE F***?! This is year 2009 and Solaris still can't take care of colors?

P.S. BTW, Good Luck trying to use "TERM=xterm-color" though. Last I time I tried it on Solaris only to find that it is lacking something like half keyboard.

Really. Get over it, swallow your childish pride and get the Linux. It works.

Monday, July 06, 2009

[link] Speed-Typing in Vim With Maps and Abbreviations - Better Than a Clipboard

LinuxPlanet - Tips - Speed-Typing in Vim With Maps and Abbreviations - Better Than a Clipboard.

Some nice tips on how to use VIM's abbreviations to insert some dynamic (not static!) text like e.g. current date.

Saturday, June 27, 2009

[link] LinuxPlanet - Tips - Turning on Unicode Support in Vim - Unicode in Vim

LinuxPlanet - Tips - Turning on Unicode Support in Vim - Unicode in Vim.

Though article is more about how to input all those fancy characters.

Friday, June 05, 2009

C++ vs. tags

One - at times very - annoying problem I had was that jumping to tag not very C++ friendly. Namely it doesn't consider ':' (colon) to be part of word under cursor. It finally bothered me to the point of reading documentation which promptly sent me to :help star where from I was sent to :help 'iskeyword'. In less than a minute I had a fix:

au BufReadPost *.cpp set isk+=:

'isk' is shorthand for 'iskeyword' and tells VIM what symbols should be considered to be part of (key)words. 'isk' is a list (as usually comma separated) of characters/character ranges and as with any other comma-separated lists, operators '+=' and '-=' do they job as they should.

That obviously has an impact on any VIM command which works with words - '*', '#', 'w', etc. Beware.

Tuesday, May 19, 2009

[link] Vim made easy: how to get your favorite IDE features in Vim

Vim made easy: how to get your favorite IDE features in Vim by Ryan Paul on ArsTechnica.

Something about plug-ins and such. Lots of screenshots with Python source code, so I couldn't look deeper.

Sunday, April 26, 2009

[link] my vi first steps

Handle With Linux's my vi first steps.

I presume the guy means "vim" as he's working with Linux and Linux for past 10+ years has "vi" as a symlink to vim.

P.S. Nice trick to use :wn from a macro - to make macro to go to the next file. When macro invoked with repeat counter N, it would be applied to N first files open for editing.