【putty配色】【vim设置】

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配色方案

 

  1. * Default Foreground: 255/255/255  
  2. * Default Background: 51/51/51  
  3. * ANSI Black: 77/77/77  
  4. * ANSI Green: 152/251/152  
  5. * ANSI Yellow: 240/230/140  
  6. * ANSI Blue: 205/133/63  
  7. * ANSI Blue Bold 135/206/235  
  8. * ANSI Magenta: 255/222/173 or 205/92/92  
  9. * ANSI Cyan: 255/160/160  
  10. * ANSI Cyan Bold: 255/215/0  
  11. * ANSI White: 245/222/179  

3、vim设置

 

定制化的vim的配置:在自己的家目录下面将etc/vim下面的vimrm复制过来命名为.vimrc,文件配置如下:

 

 
  1. " All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by

  2. " the call to :runtime you can find below. If you wish to change any of those

  3. " settings, you should do it in this file (/etc/vim/vimrc), since debian.vim

  4. " will be overwritten everytime an upgrade of the vim packages is performed.

  5. " It is recommended to make changes after sourcing debian.vim since it alters

  6. " the value of the 'compatible' option.

  7.  
  8. " This line should not be removed as it ensures that various options are

  9. " properly set to work with the Vim-related packages available in Debian.

  10. runtime! debian.vim

  11.  
  12. " Uncomment the next line to make Vim more Vi-compatible

  13. " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous

  14. " options, so any other options should be set AFTER setting 'compatible'.

  15. "set compatible

  16.  
  17. " Vim5 and later versions support syntax highlighting. Uncommenting the next

  18. " line enables syntax highlighting by default.

  19. if has("syntax")

  20. syntax on

  21. endif

  22.  
  23. " If using a dark background within the editing area and syntax highlighting

  24. " turn on this option as well

  25. "set background=dark

  26.  
  27. " Uncomment the following to have Vim jump to the last position when

  28. " reopening a file

  29. "if has("autocmd")

  30. " au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif

  31. "endif

  32.  
  33. " Uncomment the following to have Vim load indentation rules and plugins

  34. " according to the detected filetype.

  35. "if has("autocmd")

  36. " filetype plugin indent on

  37. "endif

  38.  
  39. " The following are commented out as they cause vim to behave a lot

  40. " differently from regular Vi. They are highly recommended though.

  41. "set showcmd " Show (partial) command in status line.

  42. set showmatch " Show matching brackets.

  43. "set ignorecase " Do case insensitive matching

  44. set smartcase " Do smart case matching

  45. "set incsearch " Incremental search

  46. "set autowrite " Automatically save before commands like :next and :make

  47. "set hidden " Hide buffers when they are abandoned

  48. "set mouse=a " Enable mouse usage (all modes)

  49. ""set nu

  50. set cindent

  51. set hlsearch

  52. set noswapfile

  53. set syntax=on

  54.  
  55. :inoremap ( ()i

  56. :inoremap ) =ClosePair(')')

  57. :inoremap { {}O

  58. :inoremap } =ClosePair('}')

  59. :inoremap [ []i

  60. :inoremap ] =ClosePair(']')

  61. :inoremap " ""i

  62. :inoremap ' ''i

  63. function! ClosePair(char)

  64. if getline('.')[col('.') - 1] == a:char

  65. return "\"

  66. else

  67. return a:char

  68. endif

  69. endfunction

  70. filetype plugin indent on

  71. " Source a global configuration file if available

  72. if filereadable("/etc/vim/vimrc.local")

  73. source /etc/vim/vimrc.local

  74. endif

4、修改文件夹的颜色

在家目录下面.bashrc里面添加

export LS_COLORS=${LS_COLORS}'di=01;36':

然后source .bashrc   来实现修改文件夹的颜色

你可能感兴趣的:(计算机基础)