Is gvim a sin?

topic posted Mon, November 10, 2003 - 7:34 PM by  Jim
Share/Save/Bookmark
Advertisement
Or merely a guilty pleasure?
posted by:
Jim
offline Jim
Seattle
Advertisement
Advertisement
  • Re: Is gvim a sin?

    Mon, November 10, 2003 - 7:59 PM
    I'm gonna go with sin on that one. But then i do most of my vim'ing remotely so i'm a bit biased.

    You shall atone your sins typing 1000 "hail vi".

    ...
    or type it once <shift>v yp and use . 1000 times

    or type it once and do <shift>v y1000p

    vi is an easy religion for sinners.
    ;)
    • Re: Is gvim a sin?

      Tue, November 11, 2003 - 12:03 PM
      1000ihail vi<ESC>

      With a bit more work I could get vim to number the lines and stop at 1000 automatically. Here, type exactly, except hit escape where I have <ESC>. Start in command mode.

      :map q yyp<C-A>v
      :map v :s/^...[^0]/&/<CR>q
      i1 hail vim<ESC>q

      Doing the same in vi is a bunch more work, since you have to teach it how to add yourself.
    • Re: Is gvim a sin?

      Tue, January 20, 2004 - 11:34 PM
      gvim is a sin, but only because its too many letters.
      xedit on the other hand is an abomination.

      #!/usr/bin/perl
      for (1..1000) { print "hail vi\n" }
  • Re: Is gvim a sin?

    Mon, November 10, 2003 - 10:45 PM
    SINNER!!

    Well, I think the whole point of vim is for the super-shortcut style of the commands. It seems a little frufru to use menus and a mouse.

    Of course, I'm the kind of guy who doesn't like syntax coloring or (vim) windows, so take with a grain of salt.

    -Brad
    • Re: Is gvim a sin?

      Tue, November 11, 2003 - 12:04 PM
      In theory gvim should be great for times when you want to edit stuff that doesn't work in an xterm, eg Unicode. I've never gotten it to work though.
      • Re: Is gvim a sin?

        Mon, February 2, 2004 - 6:41 PM
        Unicode doesn't work in an xterm? is this a current OS?
        • Re: Is gvim a sin?

          Wed, February 4, 2004 - 11:41 AM
          I have my xterms set to deal with UTF-8, and they do that fine for characters that are in iso-latin-1, but I've not seen them handle other stuff. Perhaps this is due to font or configuration issues on my side, I have not investigated.
        • Re: Is gvim a sin?

          Mon, June 27, 2005 - 1:46 AM
          afaik, gnome terminal is like the only term-emulator that really does unicode. yes, i know this seems bass-akwards and it is. care to write a patch?
          • Re: Is gvim a sin?

            Tue, July 11, 2006 - 1:19 PM
            A patch for which terminal?

            Here's some display test results on my FreeBSD 5.3 box.

            xterm mlterm urxvt gnometerminal
            1256 Arabic boxes boxes junk no right-to-left
            none Armenian yes yes junk yes
            1251 Czech yes yes yes yes
            1252 French yes yes yes yes
            none Georgian yes yes junk yes
            1253 Greek yes yes yes yes
            1255 Hebrew no RTL yes junk no RTL
            none Hindi boxes boxes junk no vowel reordering
            932 Japanese all: kanji ok, hiragana ok, no halfwidth katakana
            949 Korean yes yes yes yes
            1257 Lithuanian yes yes yes yes
            1250 Russian yes yes yes yes
            936 Simp Chin box box yes yes
            none Tamil boxes boxes boxes boxes
            874 Thai yes yes yes yes
            950 Trad Chin yes yes yes yes
            1258 Vietnamese yes yes junk yes

            I didn't install any additional fonts between testing each. The only ones that failed for all, and so might have been due to lack of font, were Tamil and the Japanese halfwidth katakana. Even when displayed correctly, each language looked wildly different and most looked bad.
  • Re: Is gvim a sin?

    Tue, November 11, 2003 - 12:13 PM
    Pure pleasure. Forget the menus, but a color scheme that's easy on the eyes kicks ass.
    • Unsu...
       

      Re: Is gvim a sin?

      Wed, November 19, 2003 - 2:12 PM
      yeah, not sure what those confusing menus are there for, but I like the perty colors
    • Hao
      Hao
      offline 7

      Re: Is gvim a sin?

      Tue, February 3, 2004 - 12:07 PM
      I like gvim when I need to copy lines of texts from a file with line numbering turned on into another application (e.g. firebird) by using mouse to select them first. Gvim would not highlight the numbers but vim would.

      • Re: Is gvim a sin?

        Wed, February 4, 2004 - 2:22 AM
        in non-gvim on system with cat handy:

        :%!cat -n

        or visual section:

        :'<,'>! cat -n

        now copy-n-paste

        u (undo line numbering) or
        :%s/^\s*\d\+\s*//
        on the numbered section (careful!) ;)
        • Re: Is gvim a sin?

          Wed, February 4, 2004 - 2:24 AM
          Heh, or just use vim like you said. which is the opposite of how i read it the first time. But i suppose that's a tip for gvimers now.
          • Hao
            Hao
            offline 7

            Re: Is gvim a sin?

            Wed, February 4, 2004 - 10:29 AM
            That is a nice tip for GVIMERS. Thanks. Ryan.

            What I normally do in vim when I need to copy-n-past into firebird is to turn the numbering off by

            :set nonumber

            not a big issue but not as convenient as in gvim, where you just highlight-n-paste
            • Re: Is gvim a sin?

              Thu, February 5, 2004 - 12:26 AM
              man... now you've got me all confused.

              "not a big issue but not as convenient as in gvim, where you just highlight-n-paste"

              Which one will let you copy the nums placed by :set number? I'd expect it's vim in a terminal window, because it's really the term doing the copying, and doesn't care which chars you are selecting.

              If you happen to have numbering on and don't want numbers in your terminal copy, and are feeling lazy, this might also work depending on your terminal.

              <Alt> Drag Box

              Highlights a non-line based block of your terminal, so you could exclude the numbers at left if desired. It's a literal copy of the terminal though, so any virtual wrapping induced by vim become real line breaks.

              And since this is a vi/vim thread... the vi/vim equiv is:

              <Ctrl>v <--- puts you in VISUAL BLOCK mode.

              I often use that for small areas where i want to correct excessive tabbing... instead of changing the shift-width and changing it back.
              • Re: Is gvim a sin?

                Thu, February 5, 2004 - 12:31 AM
                ahh the source of my confusion. You wanted to exclude your numbers... i thought you wanted them. haha. Like for pasting into an email WITH line numbering. *snarf*

                i'm tired.
  • Re: Is gvim a sin?

    Wed, July 12, 2006 - 10:21 AM
    Of course it's a sin. All forms of vi are Vile tools, one and all, used by EviL hackers to practice their dark arts.

    vi vi vi == editor of the beast!

    Bwah ha, ha, ha!
  • Re: Is gvim a sin?

    Thu, July 13, 2006 - 8:06 AM
    I think the use of tabs (ie CrimsonEditor, Notepad++, Opera, Firefox, etc) would be useful exploitation of gui..
    As it stands, I don't make any use of the gui, but I use gvim nonetheless.
    • Re: Is gvim a sin?

      Mon, July 17, 2006 - 1:12 AM
      i finally got around to actually looking at the new features in 7, even though i've been using it for about a month now.
      it seems that tabs have been added, and that completes vim for me..
      tabs was the only reason I continued to use other text editors for some tasks.

      now, i just need to take the time to get familiar with switching between windows and buffers within vim,
      another territory i haven't much ventured into.

Recent topics in "Vi"

Topic Author Replies Last Post
Capitalises last entered letter Bearterrible 5 December 16, 2008
I love VI!! Steven 2 December 22, 2007
How many people use VI-style keybindings with readline (inc. B... Steven 2 December 18, 2007
slightly n00b question Alex 24 August 27, 2007