vim配置,vim、xshell配色方案等

  • 我的vim配置 ~/.vimrc

" 不与 Vi 兼容(采用 Vim 自己的操作命令)
set nocompatible

" Vundle 插件管理
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
call vundle#end()
filetype plugin indent on  
" 常用命令
" :PluginList       - 查看已经安装的插件
" :PluginInstall    - 安装插件
" :PluginUpdate     - 更新插件
" :PluginSearch     - 搜索插件,例如 :PluginSearch xml就能搜到xml相关的插件
" :PluginClean      - 删除插件,把安装插件对应行删除,然后执行这个命令即可
" :h vundle         - 获取帮助

" @airline 状态栏相关设置
set t_Co=256      "在windows中用xshell连接打开vim可以显示色彩
let g:airline#extensions#tabline#enabled = 0   " 是否打开tabline
"这个是安装字体后 必须设置此项" 
let g:airline_powerline_fonts = 1
set laststatus=2  "永远显示状态栏
let g:airline_theme='bubblegum' "选择主题
" 显示窗口tab和buffer
"let g:airline#extensions#tabline#left_sep = ' '  "separater
"let g:airline#extensions#tabline#left_alt_sep = '|'  "separater
"let g:airline#extensions#tabline#formatter = 'default'  "formater
let g:airline_left_sep = ' '
let g:airline_left_alt_sep = '>'
let g:airline_right_sep = ' '
let g:airline_right_alt_sep = '<'


" 设置行号
set number
" 打开语法高亮
syntax on
if has('gui_running')
    set background=light
else
    set background=dark
endif
let g:solarized_termcolors=256
colorscheme solarized

set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=79
set expandtab
set autoindent
set fileformat=unix
set encoding=utf-8

vim配色方案下载地址

https://www.slant.co/topics/480/~best-vim-color-schemes#1

  • 我的xshell配色方案 Solarized Dark.xcs

[Solarized Dark]
text=dce2e2
cyan(bold)=2ad1b8
text(bold)=dce2e2
magenta=dd3682
green=55bb55
green(bold)=55bb55
background=002b35
cyan=2ad1b8
red(bold)=dc322f
yellow=e5d900
magenta(bold)=dd3682
yellow(bold)=e5d900
red=dc322f
white=dce2e2
blue(bold)=268bd2
white(bold)=dce2e2
black=002b35
blue=062bd2
black(bold)=002b35
[Names]
name0=Solarized Dark
count=1

你可能感兴趣的:(vim配置,vim、xshell配色方案等)