LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2002, 12:07 PM   #1
purpleburple
Member
 
Registered: Jun 2002
Location: USA
Distribution: Slackware8.1
Posts: 332

Rep: Reputation: 30
Is there a way in vim to do this ??


Hi. I am new to vim (vi). In emacs if I accidently made a space like this >

The man went to the store.
(accidently hit enter and made this space)
He bought some apples.

I could put cursor between the two lines and press delete bring the second
line up to the first closing the gap. I have'nt found a way to do it in vim.

Anyone know how?
thanks
 
Old 11-09-2002, 12:15 PM   #2
Azrael
Member
 
Registered: Sep 2002
Location: Germany
Distribution: SuSE 8.0
Posts: 96

Rep: Reputation: 15
ESC d d
I once saw a short reference sheet anywhere. But I can't remember where.
 
Old 11-09-2002, 12:23 PM   #3
purpleburple
Member
 
Registered: Jun 2002
Location: USA
Distribution: Slackware8.1
Posts: 332

Original Poster
Rep: Reputation: 30
thank you Azrael that worked!!
 
Old 11-09-2002, 12:27 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,969

Rep: Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115Reputation: 3115
dd in command mode will delete the current line. J in command mode brings the line under the cursor up to the line the cursor is on.

--jeremy
 
Old 11-09-2002, 01:32 PM   #5
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 30
Here is a cheat sheet I found from Google. That lists most of the common comands.
 
Old 11-09-2002, 02:51 PM   #6
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
You can press "ESC" and "u" to undo any changes you made accidently.
 
Old 11-10-2002, 12:07 AM   #7
purpleburple
Member
 
Registered: Jun 2002
Location: USA
Distribution: Slackware8.1
Posts: 332

Original Poster
Rep: Reputation: 30
thanks guys !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 10:00 AM
vim bluetwist Debian 2 08-01-2005 09:43 PM
Vim and C++ Dartelin Programming 4 09-16-2004 10:30 AM
VIM help bender_pondie Linux - Software 3 08-01-2003 11:58 AM
Better looking VIM? the_styler Linux - Newbie 5 04-04-2003 08:29 PM


All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration