LinuxQuestions.org
Register a domain and help support LQ
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, 02:05 AM   #16
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48

(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 06:13 AM.
 
Old 02-06-2010, 06:14 AM   #17
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
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, 07:53 PM   #18
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

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

Original Poster
Rep: Reputation: 48
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 04: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 02:50 PM
Task bar no longer shows task Richard Rahl Linux - Newbie 3 04-12-2010 10:39 AM
linux distro / photo editor / music editor of choice ?? expatcanuck Linux - Newbie 1 05-04-2009 06:24 PM
LXer: Open Movie Editor: Linux Video Editor with Plot Twists LXer Syndicated Linux News 0 10-27-2008 10:50 PM
A little task brazilian_user Linux - General 1 08-28-2006 02:34 PM


All times are GMT -5. The time now is 09:05 AM.

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