mac下添加VIM配色方案

(1)安装vim后,执行命令

whereis vim

你会看到返回结果:vim: /usr/bin/vim /usr/share/vim /usr/share/man/man1/vim.1.gz

注意:/usr/share/vim 为vim为用户提供的共享数据或设置方案选择

(2) 在你的家目录下创建.vimrc

set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s
set expandtab

(3)增加配色方案

首先查看你的系统中自带的有哪些,从(1)中我们知道执行命令  ls -l  /usr/share/vim/vim70/colors/

可以看到

-rw-r–r– 1 root root 2588 2011-03-06 blue.vim
-rw-r–r– 1 root root 2809 2011-03-06 darkblue.vim
-rw-r–r– 1 root root  548 2011-03-06 default.vim
-rw-r–r– 1 root root 2399 2011-03-06 delek.vim
-rw-r–r– 1 root root 2812 2011-03-06 desert.vim
-rw-r–r– 1 root root 1666 2011-03-06 elflord.vim
-rw-r–r– 1 root root 2476 2011-03-06 evening.vim
-rw-r–r– 1 root root 3238 2011-03-06 koehler.vim
-rw-r–r– 1 root root 2460 2011-03-06 morning.vim
-rw-r–r– 1 root root 2006 2011-03-06 murphy.vim
-rw-r–r– 1 root root 1037 2011-03-06 pablo.vim
-rw-r–r– 1 root root 2673 2011-03-06 peachpuff.vim
-rw-r–r– 1 root root 2174 2011-03-06 README.txt
-rw-r–r– 1 root root 1239 2011-03-06 ron.vim
-rw-r–r– 1 root root 2720 2011-03-06 shine.vim
-rw-r–r– 1 root root 2419 2011-03-06 slate.vim
-rw-r–r– 1 root root 1627 2011-03-06 torte.vim
-rw-r–r– 1 root root 1840 2011-03-06 zellner.vim

所以我们知道配色方案的名字有morning,evening,desert等等,

如果我们想要将配色方案改为evening,那么我们只需要在.vimrc中增加一行  colorscheme evening 即可。

(4)如果觉得配色方案太少,可以从外部下载配色方案,这里给出一个网址:

http://vimcolorschemetest.googlecode.com/svn/colors/

你可以使用工具wget下载下来,然后将.vim的文件放入/usr/share/vim/vim70/colors/目录下,然后更改.vimrc即可生效。

58 thoughts on “mac下添加VIM配色方案

  1. Pingback: website

  2. Pingback: Hostinga cena

  3. Pingback: official website

  4. Pingback: https://exe-elit.pl/

  5. Pingback: movies

  6. Pingback: w88club

  7. Pingback: Watch Series Online 2020

  8. Pingback: Kinokrad 2019 Kinokrad Hd

  9. Pingback: Kinokrad

  10. Pingback: filmy-kinokrad

  11. Pingback: kinokrad-2019

  12. Pingback: filmy-2019-kinokrad

  13. Pingback: serial

  14. Pingback: die cuts for scrapbooking

  15. Pingback: cerialest.ru

  16. Pingback: Website

  17. Pingback: youtube2019.ru

  18. Pingback: Drogen

  19. Pingback: dorama hdrezka

  20. Pingback: HDrezka

  21. Pingback: kinosmotretonline

  22. Pingback: LostFilm HD 720

  23. Pingback: trustedmdstorefy.com

  24. Pingback: bofilm ñåðèàë

  25. Pingback: bofilm

  26. Pingback: 1 seriya

  27. Pingback: Êîíñóëüòàöèÿ ïñèõîëîãà

  28. Pingback: www.pokermas999.site

  29. Pingback: topedstoreusa.com

  30. Pingback: Travel tips

  31. Pingback: hqcialismht.com

  32. Pingback: viagramdtrustser.com

  33. Pingback: bitcoin qr code generator

  34. Pingback: มาเด้คอลลาเจน

  35. Pingback: Klik hier

  36. Pingback: link 12bet

  37. Pingback: vào w88

  38. Pingback: rick and morty season 3

  39. Pingback: Evil-Season-1

  40. Pingback: Evil-Season-2

  41. Pingback: Evil-Season-3

  42. Pingback: Evil-Season-4

  43. Pingback: Dollface-Season-1

  44. Pingback: Queer-Eye-We-re-in-Japan-Season-1

  45. Pingback: serial 2020

  46. Pingback: Dailymotion

  47. Pingback: Watch+movies+2020

  48. Pingback: serial-video-film-online

  49. Pingback: tvrv.ru

  50. Pingback: 1plus1serial.site

  51. Pingback: #1plus1

  52. Pingback: 1plus1

  53. Pingback: Watch Movies Online

  54. Pingback: Film

  55. Pingback: Film 2020

  56. Pingback: Top 10 Best

  57. Pingback: watch online TV LIVE

  58. Pingback: ignou synopsis

Comments are closed.