I love VI!!

topic posted Thu, December 13, 2007 - 7:35 PM by  Steven
Share/Save/Bookmark
Advertisement
I started using VI back in 1997 or so when I started using Linux. Back then VIM hadn't hit the Linux scene much (if at all really).

However, I believe my first exposure to VI was on a XENIX/286 system I had access to through a dumb terminal in my bedroom when I was a kid. It consisted of my father teaching me about :q! so I could exit it if I accidentally started it. -- This was the same system that enabled me to play 'hack' for hours on end. (Got to love the fact that Rogue-like keybindings include VI-style movement!)

Ah, the days...

To this day, I still love VI, and I still love Rogue-like games.
posted by:
Steven
Advertisement
Advertisement
  • Re: I love VI!!

    Tue, December 18, 2007 - 12:18 PM
    I started using vi in 1981

    I wrote a cut down version of it for my first job (in 1983) on their proprietary hardware, everyone was staggered to see a visual editor, everything else they had was line-by-line (and not visual - ie no arrows keys to change text) which were so inappropriate to edit the 20,000 line source code they were involved with! It was written in their proprietary coding language on their proprietary OS. (hint: it was a government contracted manufacturer)

    My vi didn't have most of the ex stuff (ie the : commands -like s/// and any of the settings) and I didn't use curses since this was not under UNIX, and their terminals were specific and their own. But I did write functions to do the curses-like things (eg move(), deleteline(), etc) of course! It did have most of the keyboard actions.

    What fun!

    I did implement ":next" for next file (although I could do :n3 for skip 3 files forward) and ":rewind" but also implemented ":back" too (or :b2 for back two files in the arg line). I wish real vi had that, maybe it does? and I don't mean CTRL+^ or :n# - I mean a way to ":back", prehaps a few times as I go through some files on the arg line, if I wanted.
    Maybe ":prev" would be a better name for it.

    PS I have in my .exrc file:
          map q :n^V^M
    • Re: I love VI!!

      Sat, December 22, 2007 - 12:33 PM
      VIM has a :next and a :prev, though prev needs to be typed in full, or after a w, due to naming conflicts. (pre[serve])

      VIM doesn't allow you to skip a number of files before or back, as it supports :nFILE where FILE is the name of your next file (that is, potentially a new file) and if you type :n1 it will create a new file called "1".

      Cheers,
      Steven

Recent topics in "Vi"