The Archives

  • 03.Oct.09
    Vim. Copy & Paste shell | fernape | (1)
    Copy & Paste are two of the most important operations when writing a text. It is easy to know why: you save a lot of time. Vim handles copy & paste powerfully and gracefully. In Vim you can yank (copy), cut and paste text objects. There are two basic ways for selecting text: either using the normal vim commands or going into visual mode. Let us see all of this with some examples: This is a sample text (Bold letters indicate the cursor position as in the previous issues.) Now type: yw followed by ESC o As you can expect, you have just yanked a word ...
  • 28.Sep.09
    Vim. Moving around shell | fernape | (1)
    Vim is not a mouse driven program. With other editors, you use the mouse to place the cursor at the desired position. This seems to be fine. However, you do not realize how faster you can move using a command approach as in Vim. In Vim, you move around the text using different commands, that is, keystrokes while you are in command mode. At the beginning this may result confusing or even seem a waste of time. However, once you get used to it, you will never leave it and you find it to be faster than any other method. Basic ...
  • 08.Jun.09
    Vim, first session shell | fernape | (0)
    Here you are: your first vim lesson! First off, start vim with a named empty file: $ vim myfile Once you have done this, you get a screen similar to this one (I've removed some of the blank lines for the sake of clarity): ~ ...
  • 06.May.09
    Vim, a short tutorial shell | fernape | (0)
    Since quite a while, I have intended to write a short Vim tutorial. I do not plan it to be a very detailed guide, I just want to show some of the features of Vim I use often. In this first chapter I explain what Vim is and what it can do for you. Vim is a command-line oriented editor. This is true even though there are some gui-oriented, vim-based alternatives (gvim, for instance). It is based on the ancient Vi, but Vim stands for Vi (i)Mproved, as it provides more powerful features. Some of the things which can be done ...