LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-25-2010, 01:05 AM   #16
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49

(2)Also I wanted to search a very long word in document.Obviously
/<word> then press n or N will need me to write atleast once the whole word.
what can I do so that I don't have to type it even once ?
(Answer)Just select text using left click of mouse then press /<middle mouse button>

Last edited by sumeet inani; 02-06-2010 at 05:13 AM.
 
Old 02-06-2010, 05:14 AM   #17
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
UNSOLVED QUESTIONS
(1)I saw it here http://rayninfo.co.uk/vimtips.html
There should be documentation abut using \_ in search query .

(2)How can I copy contents from text file open in vi to clipboard so that I can paste it in another application like gedit ?
Here selecting text in vi using mouse then middle click in gedit does not help.I have seen.
What do you suggest ?
 
Old 02-07-2010, 06:53 PM   #18
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434

Rep: Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790
Try highlight + ctl-c to copy or see if your terminal menu includes a copy option
 
Old 02-08-2010, 03:36 AM   #19
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Tip
(1) If you open vi in gnome-terminal then you can select text(using mouse) & right click to get copy option or use ctrl+shift+c . Now you can paste it in any application as content is in clipboard.

(2) In xterm you can select using mouse then it gets into selection buffer . Content can be pasted into other application ( like gedit ) using middle click.

(3)To sort line 2 to 10 run
:2,10!sort
Remove duplicate line in whole file
:%!uniq

Last edited by sumeet inani; 05-06-2010 at 03:20 AM. Reason: questions in another thread
 
  


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
kernel panic attempted to kill the idle task! in idle task - not syncing dudutworld Linux - Newbie 2 09-16-2013 01:50 PM
Task bar no longer shows task Richard Rahl Linux - Newbie 3 04-12-2010 09:39 AM
linux distro / photo editor / music editor of choice ?? expatcanuck Linux - Newbie 1 05-04-2009 05:24 PM
LXer: Open Movie Editor: Linux Video Editor with Plot Twists LXer Syndicated Linux News 0 10-27-2008 09:50 PM
A little task brazilian_user Linux - General 1 08-28-2006 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 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
Open Source Consulting | Domain Registration