vimdiff颜色设置 + vimrc设置 (copied)

用blue主题进行vimdiff比较是最易读的。

vimrc有一些关于行号,大小写的设置也是常用的。

一般.vimrc在user的home目录下即输入cd直接回车就到了home目录

set t_Co=256
if ! has("gui_running")
    set t_Co=256
    endif
if &diff
"    colors delek
    colors blue
endif
set nu
set tabstop=4
set history=100
set ic
set syntax=c
set autoindent
syntax on


注:.vimrc的注释标记符为半角双引号,在本代码中可以看到" colors delek 是用半角双引号注释掉的。

你可能感兴趣的:(Linux,Vim)