{"id":59,"date":"2012-07-05T16:59:04","date_gmt":"2012-07-05T08:59:04","guid":{"rendered":"http:\/\/www.magki.com\/blog\/?p=59"},"modified":"2012-07-05T17:10:03","modified_gmt":"2012-07-05T09:10:03","slug":"my-vimrc-and-vim-colorscheme","status":"publish","type":"post","link":"http:\/\/www.ijony.com\/blog\/2012\/07\/my-vimrc-and-vim-colorscheme.html","title":{"rendered":"\u6211\u7684 VIM \u914d\u7f6e\u4ee5\u53ca\u914d\u8272"},"content":{"rendered":"<p>\u4ec5\u4ec5\u662f\u505a\u5b58\u6863\u5907\u4efd\u7528\u3002<\/p>\n<p>.vimrc<\/p>\n<blockquote><p>set nocompatible<br \/>\nsyntax on<br \/>\nset noeb<br \/>\nset confirm<br \/>\nset autoindent<br \/>\nset cindent<br \/>\nset tabstop=4<br \/>\nset softtabstop=4<br \/>\nset shiftwidth=4<br \/>\nset noexpandtab<br \/>\nset nu<br \/>\nset history=1000<br \/>\nset nobackup<br \/>\nset noswapfile<br \/>\nset ignorecase<br \/>\nset hlsearch<br \/>\nset incsearch<br \/>\nset gdefault<br \/>\nset enc=utf-8<br \/>\nset langmenu=zh_CN.UTF-8<br \/>\nset helplang=cn<br \/>\nset statusline=%F%m%r%h%w\\ [FORMAT=%{&amp;ff}]\\ [TYPE=%Y]\\ [POS=%l,%v][%p%%]\\<br \/>\nset laststatus=2<br \/>\nset ruler<br \/>\nfiletype on<br \/>\nfiletype plugin on<br \/>\nfiletype indent on<br \/>\nset viminfo+=!<br \/>\nset iskeyword+=_,$,@,%,#,-<br \/>\nset backspace=2<br \/>\nset showmatch<br \/>\nset matchtime=5<br \/>\nset pastetoggle=&lt;F9&gt;<br \/>\ncolorscheme lucius<br \/>\nset t_Co=256<\/p><\/blockquote>\n<p><!--more--><\/p>\n<p>lucius<\/p>\n<blockquote><p>&#8221; Vim color file<br \/>\n&#8221; Maintainer: Jonathan Filip &lt;jfilip1024@gmail.com&gt;<br \/>\n&#8221; Last Modified: Wed Apr 01, 2009 10:03AM<br \/>\n&#8221; Version: 2.5<br \/>\n&#8221;<br \/>\n&#8221; GUI \/ 256 color terminal<br \/>\n&#8221;<br \/>\n&#8221; I started out trying to combine my favorite parts of other schemes and ended<br \/>\n&#8221; up with this (oceandeep, moria, peaksea, wombat, zenburn).<br \/>\n&#8221;<br \/>\n&#8221; This file also tries to have descriptive comments for each higlighting group<br \/>\n&#8221; so it is easy to understand what each part does.<br \/>\nset background=dark<br \/>\nhi clear<br \/>\nif exists(&#8220;syntax_on&#8221;)<br \/>\nsyntax reset<br \/>\nendif<br \/>\nlet g:colors_name=&#8221;lucius&#8221;<\/p>\n<p>&#8221; blue: 3eb8e5<br \/>\n&#8221; green: 92d400<br \/>\n&#8221; Base color<br \/>\n&#8221; &#8212;&#8212;&#8212;-<br \/>\nhi Normal guifg=#e4e4e4 guibg=#000000<br \/>\nhi Normal ctermfg=254 ctermbg=16<br \/>\n&#8221; Comment Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;-<br \/>\n&#8221; any comment<br \/>\nhi Comment guifg=#808080 gui=none<br \/>\nhi Comment ctermfg=243 cterm=none<br \/>\n&#8221; Constant Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&#8221; any constant<br \/>\nhi Constant guifg=#50d6de gui=none<br \/>\nhi Constant ctermfg=80 cterm=none<br \/>\n&#8221; strings<br \/>\nhi String guifg=#8ad6f2 gui=none<br \/>\nhi String ctermfg=117 cterm=none<br \/>\n&#8221; character constant<br \/>\nhi Character guifg=#8ad6f2 gui=none<br \/>\nhi Character ctermfg=117 cterm=none<br \/>\n&#8221; numbers decimal\/hex<br \/>\nhi Number guifg=#50d6de gui=none<br \/>\nhi Number ctermfg=80 cterm=none<br \/>\n&#8221; true, false<br \/>\nhi Boolean guifg=#50d6de gui=none<br \/>\nhi Boolean ctermfg=80 cterm=none<br \/>\n&#8221; float<br \/>\nhi Float guifg=#50d6de gui=none<br \/>\nhi Float ctermfg=80 cterm=none<br \/>\n&#8221; Identifier Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n&#8221; any variable name<br \/>\nhi Identifier guifg=#fcb666 gui=none<br \/>\nhi Identifier ctermfg=215 cterm=none<br \/>\n&#8221; function, method, class<br \/>\nhi Function guifg=#fcb666 gui=none<br \/>\nhi Function ctermfg=215 cterm=none<br \/>\n&#8221; Statement Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n&#8221; any statement<br \/>\nhi Statement guifg=#bae682 gui=none<br \/>\nhi Statement ctermfg=150 cterm=none<br \/>\n&#8221; if, then, else<br \/>\nhi Conditional guifg=#bae682 gui=none<br \/>\nhi Conditional ctermfg=150 cterm=none<br \/>\n&#8221; try, catch, throw, raise<br \/>\nhi Exception guifg=#bae682 gui=none<br \/>\nhi Exception ctermfg=150 cterm=none<br \/>\n&#8221; for, while, do<br \/>\nhi Repeat guifg=#bae682 gui=none<br \/>\nhi Repeat ctermfg=150 cterm=none<br \/>\n&#8221; case, default<br \/>\nhi Label guifg=#bae682 gui=none<br \/>\nhi Label ctermfg=150 cterm=none<br \/>\n&#8221; sizeof, +, *<br \/>\nhi Operator guifg=#bae682 gui=none<br \/>\nhi Operator ctermfg=150 cterm=none<br \/>\n&#8221; any other keyword<br \/>\nhi Keyword guifg=#bae682 gui=none<br \/>\nhi Keyword ctermfg=150 cterm=none<br \/>\n&#8221; Preprocessor Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n&#8221; generic preprocessor<br \/>\nhi PreProc guifg=#efefaf gui=none<br \/>\nhi PreProc ctermfg=229 cterm=none<br \/>\n&#8221; #include<br \/>\nhi Include guifg=#efefaf gui=none<br \/>\nhi Include ctermfg=229 cterm=none<br \/>\n&#8221; #define<br \/>\nhi Define guifg=#efefaf gui=none<br \/>\nhi Define ctermfg=229 cterm=none<br \/>\n&#8221; same as define<br \/>\nhi Macro guifg=#efefaf gui=none<br \/>\nhi Macro ctermfg=229 cterm=none<br \/>\n&#8221; #if, #else, #endif<br \/>\nhi PreCondit guifg=#efefaf gui=none<br \/>\nhi PreCondit ctermfg=229 cterm=none<br \/>\n&#8221; Type Group<br \/>\n&#8221; &#8212;&#8212;&#8212;-<br \/>\n&#8221; int, long, char<br \/>\nhi Type guifg=#93e690 gui=none<br \/>\nhi Type ctermfg=114 cterm=none<br \/>\n&#8221; static, register, volative<br \/>\nhi StorageClass guifg=#93e690 gui=none<br \/>\nhi StorageClass ctermfg=114 cterm=none<br \/>\n&#8221; struct, union, enum<br \/>\nhi Structure guifg=#93e690 gui=none<br \/>\nhi Structure ctermfg=114 cterm=none<br \/>\n&#8221; typedef<br \/>\nhi Typedef guifg=#93e690 gui=none<br \/>\nhi Typedef ctermfg=114 cterm=none<br \/>\n&#8221; Special Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;-<br \/>\n&#8221; any special symbol<br \/>\nhi Special guifg=#cfafcf gui=none<br \/>\nhi Special ctermfg=182 cterm=none<br \/>\n&#8221; special character in a constant<br \/>\nhi SpecialChar guifg=#cfafcf gui=none<br \/>\nhi SpecialChar ctermfg=182 cterm=none<br \/>\n&#8221; things you can CTRL-]<br \/>\nhi Tag guifg=#cfafcf gui=none<br \/>\nhi Tag ctermfg=182 cterm=none<br \/>\n&#8221; character that needs attention<br \/>\nhi Delimiter guifg=#cfafcf gui=none<br \/>\nhi Delimiter ctermfg=182 cterm=none<br \/>\n&#8221; special things inside a comment<br \/>\nhi SpecialComment guifg=#cfafcf gui=none<br \/>\nhi SpecialComment ctermfg=182 cterm=none<br \/>\n&#8221; debugging statements<br \/>\nhi Debug guifg=#cfafcf guibg=NONE gui=none<br \/>\nhi Debug ctermfg=182 ctermbg=NONE cterm=none<br \/>\n&#8221; Underlined Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n&#8221; text that stands out, html links<br \/>\nhi Underlined guifg=fg gui=underline<br \/>\nhi Underlined ctermfg=fg cterm=underline<br \/>\n&#8221; Ignore Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8212;<br \/>\n&#8221; left blank, hidden<br \/>\nhi Ignore guifg=bg<br \/>\nhi Ignore ctermfg=bg<br \/>\n&#8221; Error Group<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8211;<br \/>\n&#8221; any erroneous construct<br \/>\nhi Error guifg=#dd4040 guibg=NONE gui=none<br \/>\nhi Error ctermfg=160 ctermbg=NONE cterm=none<br \/>\n&#8221; Todo Group<br \/>\n&#8221; &#8212;&#8212;&#8212;-<br \/>\n&#8221; todo, fixme, note, xxx<br \/>\nhi Todo guifg=#deee33 guibg=NONE gui=underline<br \/>\nhi Todo ctermfg=190 ctermbg=NONE cterm=underline<br \/>\n&#8221; Spelling<br \/>\n&#8221; &#8212;&#8212;&#8211;<br \/>\n&#8221; word not recognized<br \/>\nhi SpellBad guisp=#ee0000 gui=undercurl<br \/>\nhi SpellBad ctermbg=9 cterm=undercurl<br \/>\n&#8221; word not capitalized<br \/>\nhi SpellCap guisp=#eeee00 gui=undercurl<br \/>\nhi SpellCap ctermbg=12 cterm=undercurl<br \/>\n&#8221; rare word<br \/>\nhi SpellRare guisp=#ffa500 gui=undercurl<br \/>\nhi SpellRare ctermbg=13 cterm=undercurl<br \/>\n&#8221; wrong spelling for selected region<br \/>\nhi SpellLocal guisp=#ffa500 gui=undercurl<br \/>\nhi SpellLocal ctermbg=14 cterm=undercurl<br \/>\n&#8221; Cursor<br \/>\n&#8221; &#8212;&#8212;<br \/>\n&#8221; character under the cursor<br \/>\nhi Cursor guifg=bg guibg=#8ac6f2<br \/>\nhi Cursor ctermfg=bg ctermbg=117<br \/>\n&#8221; like cursor, but used when in IME mode<br \/>\nhi CursorIM guifg=bg guibg=#96cdcd<br \/>\nhi CursorIM ctermfg=bg ctermbg=116<br \/>\n&#8221; cursor column<br \/>\nhi CursorColumn guibg=#3d3d4d<br \/>\nhi CursorColumn cterm=NONE ctermbg=236<br \/>\n&#8221; cursor line\/row<br \/>\nhi CursorLine guibg=#3d3d4d<br \/>\nhi CursorLine cterm=NONE ctermbg=236<br \/>\n&#8221; Misc<br \/>\n&#8221; &#8212;-<br \/>\n&#8221; directory names and other special names in listings<br \/>\nhi Directory guifg=#95e494 gui=none<br \/>\nhi Directory ctermfg=114 cterm=none<br \/>\n&#8221; error messages on the command line<br \/>\nhi ErrorMsg guifg=#ee0000 guibg=NONE gui=none<br \/>\nhi ErrorMsg ctermfg=196 ctermbg=NONE cterm=none<br \/>\n&#8221; column separating vertically split windows<br \/>\nhi VertSplit guifg=#777777 guibg=#444444 gui=none<br \/>\nhi VertSplit ctermfg=244 ctermbg=238 cterm=none<br \/>\n&#8221; columns where signs are displayed (used in IDEs)<br \/>\nhi SignColumn guifg=#9fafaf guibg=#181818 gui=none<br \/>\nhi SignColumn ctermfg=145 ctermbg=233 cterm=none<br \/>\n&#8221; line numbers<br \/>\nhi LineNr guifg=#857b6f guibg=#444444<br \/>\nhi LineNr ctermfg=101 ctermbg=238<br \/>\n&#8221; match parenthesis, brackets<br \/>\nhi MatchParen guifg=#00ff00 guibg=NONE gui=none<br \/>\nhi MatchParen ctermfg=46 ctermbg=NONE cterm=none<br \/>\n&#8221; text showing what mode you are in<br \/>\nhi MoreMsg guifg=#2e8b57 gui=none<br \/>\nhi MoreMsg ctermfg=29 cterm=none<br \/>\n&#8221; the &#8216;~&#8217; and &#8216;@&#8217; and showbreak, &#8216;&gt;&#8217; double wide char doesn&#8217;t fit on line<br \/>\nhi ModeMsg guifg=#90ee90 guibg=NONE gui=none<br \/>\nhi ModeMsg ctermfg=120 ctermbg=NONE cterm=none<br \/>\n&#8221; the &#8216;more&#8217; prompt when output takes more than one line<br \/>\nhi NonText guifg=#444444 gui=none<br \/>\nhi NonText ctermfg=238 cterm=none<br \/>\n&#8221; the hit-enter prompt (show more output) and yes\/no questions<br \/>\nhi Question guifg=fg gui=none<br \/>\nhi Question ctermfg=fg cterm=none<br \/>\n&#8221; meta and special keys used with map, unprintable characters<br \/>\nhi SpecialKey guifg=#505050<br \/>\nhi SpecialKey ctermfg=238<br \/>\n&#8221; titles for output from :set all, :autocmd, etc<br \/>\nhi Title guifg=#3eb8e5 gui=none<br \/>\nhi Title ctermfg=38 cterm=none<br \/>\n&#8220;hi Title guifg=#5ec8e5 gui=none<br \/>\n&#8221; warning messages<br \/>\nhi WarningMsg guifg=#e5786d gui=none<br \/>\nhi WarningMsg ctermfg=173 cterm=none<br \/>\n&#8221; current match in the wildmenu completion<br \/>\nhi WildMenu guifg=#000000 guibg=#cae682<br \/>\nhi WildMenu ctermfg=16 ctermbg=186<br \/>\n&#8221; Diff<br \/>\n&#8221; &#8212;-<br \/>\n&#8221; added line<br \/>\nhi DiffAdd guifg=fg guibg=#008b8b<br \/>\nhi DiffAdd ctermfg=fg ctermbg=30<br \/>\n&#8221; changed line<br \/>\nhi DiffChange guifg=fg guibg=#008b00<br \/>\nhi DiffChange ctermfg=fg ctermbg=28<br \/>\n&#8221; deleted line<br \/>\nhi DiffDelete guifg=fg guibg=#000000<br \/>\nhi DiffDelete ctermfg=fg ctermbg=16<br \/>\n&#8221; changed text within line<br \/>\nhi DiffText guifg=fg<br \/>\nhi DiffText ctermfg=fg<br \/>\n&#8221; Folds<br \/>\n&#8221; &#8212;&#8211;<br \/>\n&#8221; line used for closed folds<br \/>\nhi Folded guifg=#a0a8b0 guibg=#404040 gui=none<br \/>\nhi Folded ctermfg=145 ctermbg=238 cterm=none<br \/>\n&#8221; column on side used to indicated open and closed folds<br \/>\nhi FoldColumn guifg=#b0d0e0 guibg=#305060 gui=none<br \/>\nhi FoldColumn ctermfg=152 ctermbg=23 cterm=none<\/p>\n<p>&#8221; Search<br \/>\n&#8221; &#8212;&#8212;<br \/>\n&#8221; highlight incremental search text; also highlight text replaced with :s\/\/\/c<br \/>\nhi IncSearch guifg=#66ffff gui=reverse<br \/>\nhi IncSearch ctermfg=87 cterm=reverse<br \/>\n&#8221; hlsearch (last search pattern), also used for quickfix<br \/>\nhi Search guibg=#ffaa33 gui=none<br \/>\nhi Search ctermbg=214 cterm=none<\/p>\n<p>&#8221; Popup Menu<br \/>\n&#8221; &#8212;&#8212;&#8212;-<br \/>\n&#8221; normal item in popup<br \/>\nhi Pmenu guifg=#f6f3e8 guibg=#444444 gui=none<br \/>\nhi Pmenu ctermfg=254 ctermbg=238 cterm=none<br \/>\n&#8221; selected item in popup<br \/>\nhi PmenuSel guifg=#000000 guibg=#cae682 gui=none<br \/>\nhi PmenuSel ctermfg=16 ctermbg=186 cterm=none<br \/>\n&#8221; scrollbar in popup<br \/>\nhi PMenuSbar guibg=#607b8b gui=none<br \/>\nhi PMenuSbar ctermbg=66 cterm=none<br \/>\n&#8221; thumb of the scrollbar in the popup<br \/>\nhi PMenuThumb guibg=#aaaaaa gui=none<br \/>\nhi PMenuThumb ctermbg=247 cterm=none<br \/>\n&#8221; Status Line<br \/>\n&#8221; &#8212;&#8212;&#8212;&#8211;<br \/>\n&#8221; status line for current window<br \/>\nhi StatusLine guifg=#e0e0e0 guibg=#444444 gui=none<br \/>\nhi StatusLine ctermfg=254 ctermbg=238 cterm=none<br \/>\n&#8221; status line for non-current windows<br \/>\nhi StatusLineNC guifg=#777777 guibg=#444444 gui=none<br \/>\nhi StatusLineNC ctermfg=244 ctermbg=238 cterm=none<br \/>\n&#8221; Tab Lines<br \/>\n&#8221; &#8212;&#8212;&#8212;<br \/>\n&#8221; tab pages line, not active tab page label<br \/>\nhi TabLine guifg=#b6bf98 guibg=#181818 gui=none<br \/>\nhi TabLine ctermfg=244 ctermbg=233 cterm=none<br \/>\n&#8221; tab pages line, where there are no labels<br \/>\nhi TabLineFill guifg=#cfcfaf guibg=#181818 gui=none<br \/>\nhi TabLineFill ctermfg=187 ctermbg=233 cterm=none<br \/>\n&#8221; tab pages line, active tab page label<br \/>\nhi TabLineSel guifg=#efefef guibg=#1c1c1b gui=none<br \/>\nhi TabLineSel ctermfg=254 ctermbg=233 cterm=none<\/p>\n<p>&#8221; Visual<br \/>\n&#8221; &#8212;&#8212;<br \/>\n&#8221; visual mode selection<br \/>\nhi Visual guifg=NONE guibg=#445566<br \/>\nhi Visual ctermfg=NONE ctermbg=60<br \/>\n&#8221; visual mode selection when vim is &#8216;not owning the selection&#8217; (x11 only)<br \/>\nhi VisualNOS guifg=fg gui=underline<br \/>\nhi VisualNOS ctermfg=fg cterm=underline<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec5\u4ec5\u662f\u505a\u5b58\u6863\u5907\u4efd\u7528\u3002 .vimrc set nocompatible syntax on set noeb s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/posts\/59"}],"collection":[{"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":0,"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ijony.com\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}