[SOLVED] `Vim/Gvim: set mouse=a works only in Gvim?

I'm diving into the world of (g)vim this weekend and although I'm starting to get the hang of things, I seem to be having a problem with the mouse functionality.  I have set mouse=a specified in my .vimrc and gvim respects it, but when I run vi in a terminal session (urxvt) I have to explicitly type :set mouse=a in ex mode before it will work.  Am I missing something?
Here's what I've got in my .vimrc (linked also ~/.gvimrc) so far:
" (G)vim settings
set nocompatible " use gVim defaults
colorscheme wombat " define syntax color scheme
syntax on " enable syntax highlighting
set mouse=a " make sure mouse is used in all cases.
set backspace=2 " full backspacing capabilities
set nocindent " set C style indenting off
set cmdheight=2 " command line height
set ignorecase " ignore case in search patterns
set laststatus=2 " occasions to show status line, 2=always.
set ruler " ruler display in status line
set showmode " show mode at bottom of screen
set number " toggle line numbers
set nobackup " disable backup files (filename~)
set hlsearch " highlight all search results
set showmatch " show matching brackets (),{},[]
" Gvim Settings
set guioptions-=T " disable toolbar icons
set guifont=Consolas\ 8 " backslash any spaces
SOLVED: Silly me I was running 'vi' which has no X support... pacman -S vim fixed it fine.
Last edited by thayer.w (2007-09-04 00:02:49)

I just had an issue with no sound after recent updates.  Not sure it's the same problem you are having. 
I found I had to open Audio Mixer, select Sound card: HDA Intel PCH (Alsa mixer), Select Controls, check box for Speaker and check box for Headphones.  After doing this I found the Speaker volume was set at minimum (although Master and PCM were already set at maximum).  Adjusted Speaker volume up and I finally had sound again.

Similar Messages

  • [SOLVED] Vim : cterm=italic doesn't work

    I tried to change the colorscheme in Vim to have comments in italic like this :
    hi Comment guifg=#7C7C7C guibg=NONE gui=NONE ctermfg=gray ctermbg=NONE cterm=ITALIC
    But this make the comments' color inverted, which is very ugly, and they are not in italic.
    I'm using urxvt with the font DejaVu Sans Mono, but I think the problem comes from Vim because I can print italic text in the terminal.
    Does someone know if it is possible to fix it ? Thank you !
    Last edited by Pascal C.Plusplus (2012-10-30 18:59:45)

    If the problem is present outside tmux, then you haven't defined font variants your terminal is supposed to use, e.g.
    URxvt.font:xft:DejaVu Sans Mono:style=Book:pixelsize=13
    URxvt.boldFont:xft:DejaVu Sans Mono:style=Bold:pixelsize=13
    URxvt.italicFont:xft:DejaVu Sans Mono:style=Oblique:pixelsize=13
    URxvt.boldItalicFont:xft:DejaVu Sans Mono:style=Bold Oblique:pixelsize=13
    With the above, things should work as you wish in a bare urxvt session.
    With tmux, however, the case looks differently and depends on the screen-256color terminal definition. There appear to be ways to work around the issue, though personally I'm happy with a regular font and slightly darker fg color for all the comments.

  • [Solved] How to set vim -R as a viewer for mc?

    Hello!
    I am trying to set vim in read only mode as a viewer for Midnight Commander.
    I tried:
    alias mc='VIEWER="vim -R" mc'
    or
    alias vimr='vim -R'
    alias mc='VIEWER=vimr mc'
    and more but without success.
    So far the only successful approach was to:
    - create shell script, e.g. vimr.sh containing "vim -R"
    - create an alias using the script, i.e. alias mc='VIEWER=vimr.sh mc'
    It works, but creating additional file doesn't seem to be optimal solution.
    Is there a way to solve it using one-liner, or at least put all the config into .bashrc?
    Last edited by satori (2014-09-19 19:03:14)

    Thank you for your quick replies.
    @alphaniner:
    alias mc='VIEWER=vim\ -R mc'
    does not work as intended - it launches vim but I am still able to modify viewed file, like -R had no effect
    @WonderWoofy:
    If you mean exporting variable like
    export VIEWER='vim -R'
    it has the same effect as described above. Additionally, it sets the viewer for all applications using that variable, which I would like to avoid.
    Unfortunately this is not what I am looking for.

  • How to reinstall OSX with keyboard only or get mouse to work

    I am incredibly frustrated....
    I provide support for about 15 Macs and I have never experienced this. I turned on an Intel iMac and could not get the mouse clicks to register. The right click would work, but not the left. This was the case for 5 different mice including the apple corded one.
    I tried resetting the PRAM NV, etc....nothing
    When booting and holding option, my choices come up and I am able to left click to choose the drive and arrow button. This is the ONLY time my LEFT mouse clicks work. Not in disk utility either.
    Needing to format the drive and reinstall anyway, I went ahead the long way with the keyboard and erased the drive in order to make a fresh install, hoping that would solve my issue somehow. Well this would be great and all, but Apple decided to make this an absolute pain.
    I can work my way through the reinstall screen using tab, spacebar and the arrows. However when I get to the drive options to install on, I can get the drive to have the selected outline but can never get it to highlight the "Install" button. At this screen, only the arrow keys seem to do anything.
    I have searched for a couple hours now and am about to go crazy. Can anyone help with either the left mouse click issue, or how to choose the install drive with a keyboard only?
    I need to go calm down now.....
    Thanks.

    Well, guess it was that dumb. Yesterday, that was the very first thing I checked. All trackpads, bluetooth mice were pulled out and batteries removed.
    Did another dig into a large box and found a "Magic Mouse" that had batteries from YEARS ago (of course in an upstairs closet). This mouse has never been used on this or any computer that I can think of.
    Thanks for the nonsensical piece of hardware that no real computer user would subject themselves to. THEN, to have it connect randomly to other computers and highjack their mouse function? How about SOME type of indication that your little mouse has taken over? Too hard to foresee this? Solid programming and hardware development.......Apple, I hope you pick up my sarcasm on your imbolent product. I think my anger is about to let out on that little useless pos. Its magic all right, it can render a computer completely useless from 50 feet away. Send the NSA a million of em.  /endrant
    Thanks for the push in the right direction Dominic, it works now.

  • My voice control in imessage is not working when set in Spanish.  Only writes English.

    HI,
    Voice control not working on Imessage when set to Spanish.  Only takes dictation in English.  I speak in Spanish and writes whatever in English.  Have reset iphone several times as well as I message but does not fix it.  Does any one know how I can solve this problem?

    Voice Control in Messages means you are using Siri, which is where that feature comes from on the keyboard.  What languages does it show in Settings > General > Siri > Language?

  • I have loaded Lion on my MacBook and the new trackpad functions work only on one ordinary account or user and not on the admin account. The trackpad preferences are well set. What can I do?

    I have loaded Lion on my MacBook and the new trackpad functions work only on one ordinary account or user and not on the admin account. The trackpad preferences are well set. What can I do?

    iCloud should still help you reduce some hard drive space. Just select "optimize" in the icloud tab in Mac Photo App preferences.
    Granted, not the same as completely offloading your library to a back-up drive at your location.
    Good Luck!

  • Working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    Try http://www.microsoft.com/mac/support.

  • Master Page: Alternatives (Subform Set) works only for the first page

    Hi everybody!
    I have bumped into a very weird problem with ADOBE Forms:
    When I create an 'Alternative' in a Context area and then place it on a Master Page, it works only for the first page. On the rest of pages it always show the 'TRUE' subform, regardless of the condition (which is not changed, of course). Absolutely the same Alternative works perfectly in a Content area for all pages.
    Has anybody seen something like this? Any ideas why?
    Thank you!

    This happens because of the processing of the form.
    You can see this here:
    LiveCycle ES2 * Adobe LiveCycle Designer ES2
    You have to put a own variable, which is set with the value you want in the very beginning.
    I know, it is not that logical in the first moment, but it makes sense.
    Regards
    Florian
    PS: This space SAP Interactive Forms by Adobe is the correct for questions like that

  • New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer run

    New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer running windows 8.1  Please help, Mainly use to share pictures.  Thanks!

    One thing puzzles me:
    RedClayFarmer wrote:
    I then found one suggestion that the problem might involve permissions. The suggestion was to right click PhotoshopElementsOrganizer.exe in its installation folder (which on my computer is at at D:\Photo\Elements 11 Organizer) and run Organizer as an administrator. This also failed.
    I don't understand why running the exe from the installation folder would have worked.
    I would have simply tried to run that exe from its real location :
    Sorry, I can't help you more about permissions...

  • I have been using the Firefox feature in which I could have multiple sets of tabs open but see only the set I was working with. I updated and now feature is gon

    I have been using the Firefox feature in which I could have multiple sets of tabs open but see only the set I was working with. I updated and now feature is gone. I had a small icon on the upper right side of my toolbar. I used it all the time to keep separate windows for news, financial items, travel plans, etc. Has this been removed from Firefox?

    Hi,
    The [https://support.mozilla.org/en-US/kb/tab-groups-organize-tabs Tab Groups] feature is still present. You can try to right-click the + after the last tab and [https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars Customize]. If the icon is hidden behind another, or if it's available inside the Customize mini window, you can place it back. If the problem persists, you can also try to '''Reset toolbars and controls:''' and '''Make Changes and Restart''' [https://support.mozilla.org/en-US/kb/Safe%20Mode Safe Mode] start screen.

  • I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?

    I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?  Also, how do I add co-workers to my work time capsule and wife to my home time capsule?  Thank you!

    You cannot have two different TC setups.. at least until Mountain Lion.. it did introduce some changes but I am not sure if you can setup two different configurations for TM.. you can use two different devices to back up to. I doubt this will help you.
    You might be better using a real backup software.. superduper, CCC, chronosync etc.
    The TC by default is available to any Mac in the network to do backups. TM will sort itself out and put each computer on a different backup. These are kept in separate sparsebundles.. so that is all fine.

  • Just installed ios 7 on my 4s, and I have two issues: 1) control centre: the music controls do not work, only the volume adjust slider works; 2) in mail, where do you find the setting to control how many messages you want your inbox to retain?

    Just installed ios 7 on my 4s, and I have two issues: 1) control centre: the music controls do not work, only the volume adjust slider works; 2) in mail, where do you find the setting to control how many messages you want your inbox to retain?

    Same problem here on my 4s: Control center music controls do not work.
    Since this thread has two issues, I'm going to start a new one with only the music control bug. Topic: iOS 7 Control Center Music Controls Not Working On iPhone 4s

  • Wired Logitech Mouse not Working on Desktop only in Windows 7

    I used a wireless, but got fed up changing batteries so went back years ago to using a wired mouse when using Windows 7.   However, about 1 in 4 times, in the last few months, when I switch on my computer, the mouse will not let me choose
    if I want to go into my pages or my partners' page.  It just hovers all over the Desktop and I have to switch off the computer and reboot it to get the mouse to work properly.  THIS ONLY HAPPENS WHEN I SWITCH ON THE COMPUTER AND ONLY HOVERS
    IN THE DESKTOP.
    I have used more than one mouse and have put it in different ports and it makes no difference.  Somewhere on my system when the computer starts up, it randomly does not recognise the different wired "mouses" I use.  Otherwise
    I have no problem using the mouse and it generally works fine.
    Any suggestions on how to fix this start-up/desktop mouse problem?  Thanks.

    Hi,
    Try to uninstall the USB controller driver:
    1.Open the Device Manager.
    2.Expand Universal Serial Bus controllers.
    3.Right-click every device under the Universal Serial Bus controllers node, and then click Uninstall to remove them one at a time.
    4.Restart the computer, and then reinstall the USB controllers.
    Check the result again.
    Alex Zhao
    TechNet Community Support

  • HT201269 one fine day, my i phone just hangup lost all contact detail. The screen only show a picture depicting cable connection to iTune. I have tried to restore iphone to factory setting but not working .  May i know how to proceed to recover lost conta

    one fine day yesterday, my i phone just hangup lost all contact detail. The screen only show a picture depicting cable connection to iTune. I have tried to restore iphone to factory setting but not working .  May i know how to proceed to recover lost contacts.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • Keyboard and mouse isnt working in xorg [solved]

    ive tried everything and read every wiki. but i still think its something simple i just cannot understand.
    when i type startx i get a window with more windows.
    but the keyboard and mouse isnt working so i have to turn off the computer to reboot and go back.
    what should i do?
    i just installed
    xf86 input mouse
    and keyboard
    Last edited by brainpower (2009-05-02 22:41:23)

    schuay wrote:
    what wilco said.
    start hal using "sudo /etc/rc.d/hal start" before starting xorg. if mouse/keyboard work, add hal to the DAEMONS array in /etc/rc.conf.
    imo disabling hotplugging is cheap, just ignoring a problem instead of solving it
    If he don't need hotplugging, then there is no reason to use it...

Maybe you are looking for

  • MBP keeps crashing, won't let me transfer data via wireless or hardwired to external or NAS,

    Im somewhat of a novice so bear with me, MBP late 2008 core2duo, 4gb RAM, 128gb SSD is machine specs running 10.9.1. Whenever I try and copy and paste through finder files of any size over 100mb it locks up and spin dumps via wireless, finder stops r

  • IPod Touch 1st Generation stopped charging and sync.

    Hi, I have an iPod Touch 1st Generation that I bought in november 2007(just when it came to the stores) and now, 4 years lates it started to present some problems, first, it stoped to sync with the iTunes, then my computer(mac and PC) stoped reconizi

  • Help Required - Oracle AS 10g

    hello, i have just downloaded oracle 10g softwares ... i installed database then developer suite ... everything was fine ... until i was unable to run forms ... a friend of mine told me that i need to install application server in order to run forms

  • POPUPKEY_FROM_QUERY returning value to wrong row

    Hi, I'm running Apex 3.0.1. I have a tabular report that I'm trying to add a popup from query that returns the key/code value (instead of the display value). I can call the pop-up okay, but it's returning the value to the wrong table row. I can see i

  • BI 7.0 Content installion Steps

    Dear All,   I am having in my system ECC 5.0 ides version. i am having Business content file size 5,17,285 kb  and file type  .Car is there. I am not sure this file is whether BI 7.0 version(Business content)  or  BW  3.5 version (Business content).