.vimrc配置
syntax enable
syntax on
set background=dark
set term=xterm-256color
let g:solarized_termcolors=256
let g:solarized_termtrans=1
colorscheme solarized8_high "在远程终端上感觉比solarized好
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 "设置编码
set tabstop=4 "tab设置
set shiftwidth=4
set expandtab "将tab转换成space
set nu "显示行号
set ai "自动缩进
set si "智能缩进
map <F5> :call RunPython()<CR>
func! RunPython()
exec "W"
if &filetype == 'python'
exec "!python %"
endif
endfunc
xshell配色方案下载https://github.com/netsarang/Xshell-ColorScheme,选用AlphaLiu中的Solarized Dark Higher Contrast.xcs
solarized下载https://github.com/lifepillar/vim-solarized8,solarized8_high感觉这个好,字更亮
字体和大小,在.vimrc设置不管用,只能在xshell中设置
总结:折腾了好几天,还算满意。如果xshell不配色,单纯配置.vimrc,颜色不对。
不配置xshell不行,配置了xshell,导致xshell整个都是solarized风格