You are not logged in.

#1 2007-09-03 23:28:26

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

[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)


thayer williams ~ cinderwick.ca

Offline

Board footer

Powered by FluxBB