1、vim配色方案
首先说说putty本身默认的配色方案(default)其实并不是很让人舒服,其次,putty的开发者也的确是为我们定做了很多的配色方案,其中最常用的就是evening
实际上就是在vimrc 里面添加一个color evening这样就设置了他的风格样式。具体的他的配色方案的文件在这个地方
user7@rlk-buildsrv1-14:/usr/share/vim/vim74$ ls
autoload compiler doc ftoff.vim ftplugof.vim indent.vim lang mswin.vim print spell tutor
bugreport.vim debian.vim evim.vim ftplugin gvimrc_example.vim indoff.vim macros optwin.vim rgb.txt synmenu.vim vimrc_example.vim
colors delmenu.vim filetype.vim ftplugin.vim indent keymap menu.vim plugin scripts.vim syntax
里面.vim结尾的文件都是配色方案,你可以选择他们的配色方案
2、putty配色方案
- * Default Foreground: 255/255/255
- * Default Background: 51/51/51
- * ANSI Black: 77/77/77
- * ANSI Green: 152/251/152
- * ANSI Yellow: 240/230/140
- * ANSI Blue: 205/133/63
- * ANSI Blue Bold 135/206/235
- * ANSI Magenta: 255/222/173 or 205/92/92
- * ANSI Cyan: 255/160/160
- * ANSI Cyan Bold: 255/215/0
- * ANSI White: 245/222/179
3、vim设置
定制化的vim的配置:在自己的家目录下面将etc/vim下面的vimrm复制过来命名为.vimrc,文件配置如下:
-
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
-
" the call to :runtime you can find below. If you wish to change any of those
-
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
-
" will be overwritten everytime an upgrade of the vim packages is performed.
-
" It is recommended to make changes after sourcing debian.vim since it alters
-
" the value of the 'compatible' option.
-
" This line should not be removed as it ensures that various options are
-
" properly set to work with the Vim-related packages available in Debian.
-
runtime! debian.vim
-
" Uncomment the next line to make Vim more Vi-compatible
-
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
-
" options, so any other options should be set AFTER setting 'compatible'.
-
"set compatible
-
" Vim5 and later versions support syntax highlighting. Uncommenting the next
-
" line enables syntax highlighting by default.
-
if has("syntax")
-
syntax on
-
endif
-
" If using a dark background within the editing area and syntax highlighting
-
" turn on this option as well
-
"set background=dark
-
" Uncomment the following to have Vim jump to the last position when
-
" reopening a file
-
"if has("autocmd")
-
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
-
"endif
-
" Uncomment the following to have Vim load indentation rules and plugins
-
" according to the detected filetype.
-
"if has("autocmd")
-
" filetype plugin indent on
-
"endif
-
" The following are commented out as they cause vim to behave a lot
-
" differently from regular Vi. They are highly recommended though.
-
"set showcmd " Show (partial) command in status line.
-
set showmatch " Show matching brackets.
-
"set ignorecase " Do case insensitive matching
-
set smartcase " Do smart case matching
-
"set incsearch " Incremental search
-
"set autowrite " Automatically save before commands like :next and :make
-
"set hidden " Hide buffers when they are abandoned
-
"set mouse=a " Enable mouse usage (all modes)
-
""set nu
-
set cindent
-
set hlsearch
-
set noswapfile
-
set syntax=on
-
:inoremap ( ()<ESC>i
-
:inoremap ) <c-r>=ClosePair(')')<CR>
-
:inoremap { {<CR>}<ESC>O
-
:inoremap } <c-r>=ClosePair('}')<CR>
-
:inoremap [ []<ESC>i
-
:inoremap ] <c-r>=ClosePair(']')<CR>
-
:inoremap " ""<ESC>i
-
:inoremap ' ''<ESC>i
-
function! ClosePair(char)
-
if getline('.')[col('.') - 1] == a:char
-
return "\<Right>"
-
else
-
return a:char
-
endif
-
endfunction
-
filetype plugin indent on
-
" Source a global configuration file if available
-
if filereadable("/etc/vim/vimrc.local")
-
source /etc/vim/vimrc.local
-
endif
4、修改文件夹的颜色
在家目录下面.bashrc里面添加
export LS_COLORS=${LS_COLORS}'di=01;36':
然后source .bashrc 来实现修改文件夹的颜色