通过鼠标在GVIM中移动选项卡不起作用

时间:2013-07-05 14:01:00

标签: vim tabs nerdtree xfce

我在XFCE(Xubuntu)中使用Vim。在我以前的系统Debian Testing上,通过鼠标在NERDTree中移动标签没有问题。

我已经在我的.vimrc中设置了这个,但它无效。

set mouse=a

知道如何解决这个问题吗? PS:我已经知道:tabm X,但有时候我想使用鼠标。

修改

我的意思是GVIM

编辑#2

添加.vimrc

@maci ➜  ~ rvm:(ruby-2.0.0)  cat .vimrc 
"""""""""""
" Options "
"""""""""""

set nocompatible " turn off compatibility with Vi

set hidden " hide buffers when not displayed

set nobackup " don't make a backup before overwriting a file.
set nowritebackup " ^^^
set noswapfile " don't need no stinky swapfiles
set directory=~/tmp,/tmp " keep swap files in one location

set confirm " confirm on quit, etc.
set autoread " automatically read changes from disk

set showcmd " display incomplete commands.
set history=1000 " remember more commands and search history

set softtabstop=2 " soft tab width
set tabstop=2 " global tab width
set shiftwidth=2 " number of spaces for (un)indenting
set shiftround " round indent to multiple of 'shiftwidth'
set expandtab " expand tab characters into spaces

set number! " Number lines

set mouse=a " enable mouse in GUI & terminal

" Leader
let mapleader = ","

" Search
set smartcase " Smartcase is better than ignorecase
set hlsearch " highlight matches...
set incsearch " ...as you type.


" Run NERDTree on ESC+t
function OpenNERDTree()
  execute ":NERDTree"
endfunction
command -nargs=0 OpenNERDTree :call OpenNERDTree()

nmap <ESC>t :OpenNERDTree<CR>

" " Solarized
" syntax enable
" if has('gui_running')
"   set background=dark
" else
"   set background=dark
" endif
" " let g:solarized_termcolors=256
" colorscheme solarized

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" COLOR
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax enable
set t_Co=256 " 256 colors
set background=dark
color grb256
highlight Normal ctermfg=grey ctermbg=black


hi Search ctermbg=brown
hi Search guibg=brown

" Inconsolata
if has("gui_running")
  if has("gui_gtk2")
    set guifont=Inconsolata\ 11.5
  elseif has("gui_win32")
    set guifont=Consolas:h11:cANSI
  endif
endif

" 80 characters line
if exists('+colorcolumn')
  set colorcolumn=80
else
  au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif

" Vundle setup
set nocompatible               " be iMproved
filetype off                   " required!

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'

" My Bundles here:
Bundle 'tpope/vim-rails'
Bundle 'scrooloose/nerdtree'
Bundle 'wincent/Command-T'
Bundle 'tpope/vim-rails.git'
Bundle 'bronson/vim-trailing-whitespace'
Bundle 'altercation/vim-colors-solarized'
Bundle 'vim-ruby/vim-ruby'
Bundle 'sickill/vim-pasta'
Bundle 'tpope/vim-haml'
Bundle 'pangloss/vim-javascript'
Bundle 'kchmck/vim-coffee-script'
Bundle 'ervandew/supertab'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-fugitive'
Bundle 'jgdavey/vim-blockle'
Bundle 'vim-scripts/vim-json-bundle'
Bundle 'tpope/vim-commentary'
Bundle 'mattn/gist-vim'
Bundle 'vim-scripts/nginx.vim'
Bundle 'vim-scripts/matchit.zip'
Bundle 'vim-scripts/c.vim'
Bundle 'rking/ag.vim'
Bundle 'skalnik/vim-vroom'
Bundle 'tsaleh/vim-matchit'

au BufRead,BufNewFile /etc/nginx/* set ft=nginx

filetype on           " Enable filetype detection after Vundle
filetype indent on    " Enable filetype-specific indenting
filetype plugin on    " Enable filetype-specific plugins


" Fix bug with broken Omni completion
if has("autocmd")
  autocmd FileType ruby set omnifunc=rubycomplete#Complete
  autocmd FileType ruby let g:rubycomplete_buffer_loading=1
  autocmd FileType ruby let g:rubycomplete_classes_in_global=1
endif

" Disable arrow keys
"map <Left> <Nop>
"map <Right> <Nop>
"map <Up> <Nop>
"map <Down> <Nop>

set guioptions-=T

nnoremap <leader>g :Ag<Space>

" ARB templates
autocmd BufRead,BufNewFile *.arb setfiletype ruby

0 个答案:

没有答案