Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-07-2008, 09:54 PM   #1
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, 10:41 PM   #2
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

Otherwise , tell us more about your environment.


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



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

All times are GMT -5. The time now is 12:21 PM.

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