LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-07-2008, 08:54 PM   #1
dina3e
Member
 
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Rep: Reputation: 16
Smile deletion of line above the cursor position.


what ever deletion command we are using it's operation on the downword only i want to delete lines / words previous to the cursour or above to the line. i am not find out such things on the command shall you help ?
 
Old 04-07-2008, 09:41 PM   #2
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
Are working in VI editor?
If so,
dw - deletes the word after the cursor
db - deletes the word before the cursor
x - Delete current cursor position
X - Delete back one character
nX - Delete previous n characters

http://www.unix-manuals.com/refs/vi-ref/vi-ref.htm

Otherwise , tell us more about your environment.

Gentoo

Last edited by prad77; 04-17-2008 at 03:43 AM.
 
  


Reply

Tags
deleting


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
Cursor Global Position boogy Programming 10 04-27-2009 04:59 AM
Vim cursor position Tischbein Linux - Newbie 4 03-31-2008 01:32 AM
Remember last cursor position in VIM rangalo Debian 4 05-12-2007 09:52 AM
vim: startup at last cursor position chrism01 Solaris / OpenSolaris 3 02-20-2007 11:25 AM
DocumentFilter. How to control cursor position? jansh Programming 0 01-26-2004 07:18 AM


All times are GMT -5. The time now is 10:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration