LinuxQuestions.org
Help answer threads with 0 replies.
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-21-2003, 09:52 PM   #1
robertmarkbram
Member
 
Registered: May 2003
Location: Melbourne, Australia
Distribution: Cygwin, Windows XP
Posts: 69

Rep: Reputation: 15
Vim - select mode for mouse


Hi All!

I have been trying to enable select mode in vim so that I can use the mouse to select text and immediately over-write the selected text. From my reading of the vim manual, I thought this is what I need in my .vimrc file:

set selectmode+=mouse
set mouse=v

Naturally this is not working (would I be posting otherwise!!??)..

Can anyone tell me what I should do to fix it??

Any advice most appreciated!

Rob
 
Old 12-02-2003, 06:42 PM   #2
robertmarkbram
Member
 
Registered: May 2003
Location: Melbourne, Australia
Distribution: Cygwin, Windows XP
Posts: 69

Original Poster
Rep: Reputation: 15
Well, here is what I have found so far..

Using Konsole, I can set keyboard shortcuts for copy and paste (I recommend Alt+c and Alt+v respectively). Since you can usually use a mouse to select regions of text, you can then use the copy and paste shortcuts to insert copied text into vim. This effectively circumscribes vim by using Konsole functionality, so choose your xterm etc carefully.
 
Old 12-02-2003, 08:23 PM   #3
cetialphav
Member
 
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88

Rep: Reputation: 16
Try setting mouse=a instead of mouse=v. That works for me.
 
  


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
loss of mode select & boot logo in 2.6.8.1 heinola Slackware 3 08-29-2004 11:19 PM
moving around in vim while in insert mode cleff Linux - Software 3 06-14-2004 10:26 PM
VIM Setup- No 'insert' mode uveraser Linux - Software 1 05-25-2004 10:44 AM
vim: coding mode and doc writing mode? miknight Linux - Software 2 03-07-2004 08:51 PM
insert mode in vim usr Linux - Software 1 01-18-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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