Author Topic: Vim  (Read 801 times)

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Vim
« on: 23 September 2002, 00:12 »
Vim only lets me delete the current line my crusor is in. That's incredibly annoying. I also can't just press the "left" key until the crusor moves to the above line -- it just gets stuck on the left. Help!

Until I figure out how to fix it / someone tells me how to, I'll be using Emacs. It really isn't that bad, but I still prefer Vim..

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Vim
« Reply #1 on: 23 September 2002, 01:02 »
Huh? There are zillions of ways to delete. "dw" delete's word, "4dw" deletes 4 words, "dd" deletes line, "5dd" deletes 5 lines, "d$" deletes to end of line, "d^" deletes to beginning of line, "dG" deletes to the end of file, "d/someword" deletes everything from your cursor position to the word someword, etc, etc, etc, etc.

Press 'j' to move down a line, 'k' to move up a line, 'h' to move left a char, 'l' to move right a char, "4j" to move down 4 lines. Press "<CTRL>+b" to move back a page, "<CTRL>+f" to move forward a page. Press "1G" to move to the beginning of the file, "G" to move to end of file, etc, etc, etc, etc..

"/someword" find the next occurance of "someword", etc.

[ September 22, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Vim
« Reply #2 on: 23 September 2002, 01:22 »
no, you don't understand. The delete command works, but it never goes above the line the crusor is loated in. If I press the left arrow key, it will only go up to the first charecter of the line the crusor is in.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Vim
« Reply #3 on: 23 September 2002, 01:27 »
The move left key is not supposed to move the cursor to the line above it when you move left, that's what the move cursor up key is for.

And I guess I still don't understand your issue with delete. Could you give me a step by step example of how you want it to work but can't seem to?  Besides the one about the move cursor left not moving up because it's not supposed to.
Someone please remove this account. Thanks...

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Vim
« Reply #4 on: 23 September 2002, 01:30 »
lets say  I have four letters..

A
BCD[crusor]

if I press the backspace key four times, it will only go three spaces becuse that's where the line begins.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Vim
« Reply #5 on: 23 September 2002, 01:37 »
Hmmm, that's strange. I rarely use the backspace key but on my machine it does automatically move up to the next line when you reach the first character of the current line in both command and insert mode when I press the backspace key.

Are you using vim or vi? I guess it doesn't matter because it seems to work for me even in "vi" compatibility mode. I guess I'll have to research that one. Do you have a ~/.vimrc?
Someone please remove this account. Thanks...

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Vim
« Reply #6 on: 23 September 2002, 01:41 »
nope.

ever since I installed SuSe everything has been whacky. I'm downloading the Debian ISOs right now so I could end this stupidity. I have day-to-day problems because it didn't install key software, but instead filled up my hard drive with useless crap. That and RPM dependency problems EVERYWHERE.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Vim
« Reply #7 on: 23 September 2002, 01:45 »
I don't know why it would be different from distro to distro but I've never used SuSe (and don't really have any desire to). I can tell you that it should work with Debian and that you should be fairly happy with it, even though I only use debian on some of my servers...
Someone please remove this account. Thanks...

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Vim
« Reply #8 on: 23 September 2002, 01:47 »
I know it shouldn't be affected by my distro. I was just pointing out how I hated SuSe.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Vim
« Reply #9 on: 23 September 2002, 01:50 »
Ahh, should have pointed that out in the subject and in your first message then. All I saw was Vim.  
Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Vim
« Reply #10 on: 23 September 2002, 02:06 »
go into insert mode and then delete it... it should then follow to the next line... i think.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

dbl221

  • Member
  • **
  • Posts: 253
  • Kudos: 0
Vim
« Reply #11 on: 23 September 2002, 02:16 »
Ok i just tried your little

A
BCD thing and my BACKSPACE key does infact jump up to the A character...try using a real keyboard with a real BACKSPACE key.

And SUSE kicks ass you are just to stupid to use it.
dbl221***Comp-Sys walking wounded

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Vim
« Reply #12 on: 23 September 2002, 02:27 »
that was rather harsh.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Vim
« Reply #13 on: 23 September 2002, 03:20 »
was a bit wasn't it?
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Vim
« Reply #14 on: 23 September 2002, 05:05 »
Yes. I have a "fake" keyboard and I'm too stupid to use SuSe.

Moron.