简体   繁体   English

VIM:.vimrc在Mint13 XFCE上没有按预期工作,适用于MacVim

[英]VIM: .vimrc not working as expected on Mint13 XFCE, works on MacVim

Vim-newbie here... I've been learning vim at work using a Mac. Vim-newbie在这里......我一直在使用Mac学习vim。

I added my .vimrc to my github repo and expected Vundle to download everything and have vim working the same on my home Mint 13 laptop. 我将我的.vimrc添加到我的github repo中,并期望Vundle下载所有内容并让vim在我的家用Mint 13笔记本电脑上运行相同。

I've linked my ~/.vim/.vimrc to ~/.vimrc. 我已将〜/ .vim / .vimrc链接到〜/ .vimrc。 I followed these instructions for building vim 7.4 and having a working vim. 我按照这些说明构建了vim 7.4并且有一个工作的vim。

I know that some parts of the .vimrc file are read, b/c my remapped esc sequence is working. 我知道.vimrc文件的某些部分是读取的,b / c我重新映射的esc序列正在工作。

Nothing else appears to work, not even line numbers. 似乎没有其他工作,甚至没有行号。

vim --version vim --version

vim --version vim --version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 25 2015 20:30:46)
Included patches: 1-640

vimrc 的vimrc

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins


" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

" Keep Plugin commands between vundle#begin/end.
Bundle 'nanotech/jellybeans.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'flazz/vim-colorschemes'
Bundle 'fs111/pydoc.vim'
Bundle 'hdima/python-syntax'
Bundle 'scrooloose/nerdtree'
Bundle 'tmhedberg/SimpylFold'
Bundle 'scrooloose/syntastic'
Bundle 'kien/rainbow_parentheses.vim'
call vundle#end()            " required

filetype plugin indent on    " required
syntax enable
set foldmethod=indent
set foldlevel=99
setlocal foldmethod=indent

set background=dark
set tabstop=4
set expandtab
set shiftwidth=4
set shiftround
set number
let mapleader=","
set hlsearch
set mouse=a
set nojoinspaces
set smarttab

nnoremap <leader>n :NERDTree<CR>
imap fj <Esc> 
colorscheme jellybeans 
" rainbow parens
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces

It would appear, that once again I've been bitten by XFCE. 看来,我再一次被XFCE咬了。

This link gave me the hint I needed, setting my terminal colos with: 这个链接给了我需要的提示,设置我的终端colos:

set t_Co=256

Now more features are working as I expected, except that the color scheme jellybeans is no longer so great. 现在有更多的功能正如我预期的那样工作,除了颜色方案软糖不再那么好。

Rainbowparens is not working. Rainbowparens没有工作。

EDIT: Using more colors allows rainbow parens to work... 编辑:使用更多的颜色允许彩虹parens工作...

set t_Co=512

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM