Vim颜色配置
最近迷上了Vim
主要原因是可以装逼
不过话说它自带的配色里面也就只有一个evening能勉强满足我的审美
于是我花了大概几天的时间翻了些百度贴吧,或者自己手动改属性后面的配色来实验这个属性到底对应哪里的颜色
百度能给的帮助真的有限,自己又不太懂英文,机翻根本没法看
好辛苦……
所以决定自己写一下这段时间的收获
至少能让后来者少费些力
首先是修改配色的一点小东西
set t_Co= "告知配色,终端支持256色。 hi Normal guifg guibg ctermfg ctermbg
"颜色 属性 gui前景色 gui背景色 终端前景色 终端背景色 hi clear
"使用默认的高亮(移除用户定义的高亮,即根据'ft'重新载入语法文件) hi link name1 name2
"进行颜色关联,让name1使用与name2一样的颜色设置
hi link name1 NONE
"清除name1的颜色关联 "guifg/guibg支持三个特殊的值:none、fg、bg,分别表示无颜色、编辑区一般文本的前景色、一般文本的背景色。 "一部分属性代表的含义
Number
"数字
Cursor
"光标选中部分
ErrorMsg
"命令行中的错误提示
Folded
"折叠行
LineNr
"左侧行号
NonText
"非文本区(控制字符和一些特殊字符和编辑器空白区等)
Normal
"编辑区一般文本的前景和背景色
Search
"搜索
StatusLine
"状态行
Visual
"圈选
statement
preproc
"语法关键字
Type
"类型关键字
Constant
"常量
"自己摸索的配色代表的含义
"描述带有一定c++风格
MatchParen
"匹配括号
PreProc
"include、define高亮
Statement
"return、for、while、switch、break、continue、if语句高亮
Type
"int、void、bool、char等声明语法高亮
Label
"case语法高亮
StorageClass
"class类
Structure
"struct结构体
个人感觉还不错的三个配色
" Vim color file
" This file was generated by Palette
" http://rubygems.org/gems/palette
"
" Author: Compiled from a handful of different themes
" Notes: Github color scheme (light) hi clear
if version >
if exists("syntax_on")
syntax reset
endif
endif let colors_name="github" if has("gui_running")
set background=light
endif hi Normal guifg=# ctermfg= guibg=#F8F8FF ctermbg= gui=NONE cterm=NONE
"显然是非特殊语句的高亮
hi DiffAdd guifg=# ctermfg= guibg=#DDFFDD ctermbg= gui=NONE cterm=NONE
hi DiffChange guibg=#ECECEC ctermbg= gui=NONE cterm=NONE
hi DiffText guifg=# ctermfg= guibg=#DDDDFF ctermbg= gui=NONE cterm=NONE
hi DiffDelete guifg=#DDCCCC ctermfg= guibg=#FFDDDD ctermbg= gui=NONE cterm=NONE
hi Folded guifg=#dc143c ctermfg= guibg=#ECECEC ctermbg= gui=NONE cterm=NONE
hi LineNr guifg=#0099cc ctermfg= guibg=#ECECEC ctermbg= gui=NONE cterm=NONE
"左侧行号颜色
hi NonText guifg=# ctermfg= guibg=#ECECEC ctermbg= gui=NONE cterm=NONE
hi VertSplit guifg=#BBBBBB ctermfg= guibg=#BBBBBB ctermbg= gui=NONE cterm=NONE
hi StatusLine guifg=# ctermfg= guibg=#BBBBBB ctermbg= gui=BOLD cterm=BOLD
hi StatusLineNC guifg=#BBBBBB ctermfg= guibg=#ECECEC ctermbg= gui=ITALIC cterm=NONE
hi ModeMsg guifg=# ctermfg= gui=NONE cterm=NONE
hi MoreMsg guifg=# ctermfg= gui=NONE cterm=NONE
hi Title guifg=#EF5939 ctermfg= gui=NONE cterm=NONE
hi WarningMsg guifg=#EF5939 ctermfg= gui=NONE cterm=NONE
hi SpecialKey guifg=#FFFFFF ctermfg= guibg=#FF1100 ctermbg= gui=ITALIC cterm=NONE
hi MatchParen guifg=# ctermfg= guibg=#CDCDFD ctermbg= gui=NONE cterm=NONE
"匹配括号底色
hi Underlined guifg=#DC143C ctermfg= gui=UNDERLINE cterm=UNDERLINE
hi Directory guifg=# ctermfg= gui=NONE cterm=NONE
hi Visual guifg=#FFFFFF ctermfg= guibg=#3465A4 ctermbg= gui=NONE cterm=NONE
hi VisualNOS guifg=#FFFFFF ctermfg= guibg=#204A87 ctermbg= gui=NONE cterm=NONE
hi IncSearch guifg=# ctermfg= guibg=#CDCDFD ctermbg= gui=ITALIC cterm=NONE
hi Search guifg=# ctermfg= guibg=#CDCDFD ctermbg= gui=ITALIC cterm=NONE
hi Ignore guifg=# ctermfg= gui=NONE cterm=NONE
hi Identifier guifg=#0086B3 ctermfg= gui=NONE cterm=NONE
hi PreProc guifg=#0066cc guibg=bg gui=bold ctermbg= ctermfg=
"include、define的高亮
hi Comment guifg=#AAAAAA ctermfg= gui=ITALIC cterm=NONE
hi Constant guifg=#177F80 ctermfg= gui=NONE cterm=NONE
hi String guifg=#D81745 ctermfg= gui=NONE cterm=NONE
hi Function guifg=# ctermfg= gui=BOLD cterm=BOLD
hi Statement guifg=#1E90FF guibg=bg gui=bold ctermbg=bg ctermfg=
"return、for、while、switch、break、continue、if语法高亮
hi Type guifg=#ff5566 ctermfg= gui=BOLD cterm=BOLD
"int、void、bool、char等声明的语法高亮
hi Number guifg=#1C9898 ctermfg= gui=NONE cterm=NONE
"数字
hi Todo guifg=#FFFFFF ctermfg= guibg=# ctermbg= gui=BOLD cterm=BOLD
hi Special guifg=# ctermfg= gui=BOLD cterm=BOLD
hi rubySymbol guifg=#960B73 ctermfg= gui=NONE cterm=NONE
hi Error guifg=#F8F8FF ctermfg= guibg=#FF1100 ctermbg= gui=NONE cterm=NONE
hi Todo guifg=#F8F8FF ctermfg= guibg=#FF1100 ctermbg= gui=UNDERLINE cterm=UNDERLINE
hi Label guifg=#DC143C ctermfg= gui=BOLD cterm=BOLD
"case的语法高亮
hi StorageClass guifg=# ctermfg= gui=BOLD cterm=BOLD
hi Structure guifg=#ff5566 ctermfg= gui=BOLD cterm=BOLD
"struct结构体(那上面那个应该是class类喽?)
hi TypeDef guifg=# ctermfg= gui=BOLD cterm=BOLD
hi WildMenu guifg=#7FBDFF ctermfg= guibg=#425C78 ctermbg= gui=NONE cterm=NONE
hi Pmenu guifg=#FFFFFF ctermfg= guibg=# ctermbg= gui=BOLD cterm=BOLD
hi PmenuSel guifg=# ctermfg= guibg=#CDCDFD ctermbg= gui=ITALIC cterm=NONE
hi PmenuSbar guifg=# ctermfg= guibg=# ctermbg= gui=NONE cterm=NONE
hi PmenuThumb guifg=#AAAAAA ctermfg= guibg=#AAAAAA ctermbg= gui=NONE cterm=NONE
hi TabLine guifg=# ctermfg= guibg=#DDDDDD ctermbg= gui=NONE cterm=NONE
hi TabLineFill guifg=# ctermfg= guibg=#DDDDDD ctermbg= gui=NONE cterm=NONE
hi TabLineSel guifg=# ctermfg= gui=BOLD cterm=BOLD
hi cucumberTags guifg=# ctermfg= guibg=#FFFF66 ctermbg= gui=BOLD cterm=BOLD
hi htmlTagN gui=BOLD cterm=BOLD
hi Cursor guifg=#F8F8FF ctermfg= guibg=# ctermbg= gui=NONE cterm=NONE
"光标选中部分的底色
hi CursorLine guibg=#D8D8DD ctermbg= gui=NONE cterm=NONE
hi CursorColumn guibg=#D8D8DD ctermbg= gui=NONE cterm=NONE hi link rubyStringDelimiter String
github
" Vim color file
" Maintainer: Miikka-Markus Leskinen <miikka@leskinen.net>
" First Created: Apr 2005 (Guardian 1)
" Last Update: 31 Jan 2017 " Guardian color scheme, version 2.0 " Rich-syntax colors for coding and other vimming.
" 2017: Guardian 2. Updated for modern Ultra HD monitors. Deeper colors. set background=dark
hi clear
syntax reset " Colors for the User Interface. hi Cursor guibg=#ff4455 guifg=white gui=bold ctermbg= ctermfg=
hi link CursorIM Cursor
hi Normal guibg=# guifg=white gui=none ctermbg= ctermfg=
hi NonText guibg=# guifg=#ffeecc gui=bold ctermbg= ctermfg=
hi Visual guibg=#99cc99 guifg=# gui=none ctermbg= ctermfg= hi Linenr guibg=bg guifg=#aaaaaa gui=none ctermbg=bg ctermfg= hi Directory guibg=bg guifg=# gui=none ctermbg=bg ctermfg= hi IncSearch guibg=#0066cc guifg=white gui=none ctermbg= ctermfg=
hi link Seach IncSearch hi SpecialKey guibg=bg guifg=fg gui=none ctermbg=bg ctermfg=fg
hi Titled guibg=bg guifg=fg gui=none ctermbg=bg ctermfg=fg hi ErrorMsg guibg=bg guifg=#ff0000 gui=bold ctermbg=bg ctermfg=
hi ModeMsg guibg=bg guifg=#ffeecc gui=none ctermbg=bg ctermfg=
hi link MoreMsg ModeMsg
hi Question guibg=bg guifg=#ccffcc gui=bold ctermbg=bg ctermfg=
hi link WarningMsg ErrorMsg hi StatusLine guibg=#ffeecc guifg=black gui=bold ctermbg= ctermfg=
hi StatusLineNC guibg=#ff4455 guifg=white gui=none ctermbg= ctermfg=
hi VertSplit guibg=#ff4455 guifg=white gui=none ctermbg= ctermfg= hi DiffAdd guibg=# guifg=fg gui=none ctermbg= ctermfg=fg
hi DiffChange guibg=# guifg=fg gui=none ctermbg= ctermfg=fg
hi DiffDelete guibg=# guifg=fg gui=none ctermbg= ctermfg=fg
hi DiffText guibg=# guifg=fg gui=bold ctermbg= ctermfg=fg " Colors for Syntax Highlighting. hi Comment guibg=# guifg=#dddddd gui=none ctermbg= ctermfg= hi Constant guibg=bg guifg=white gui=bold ctermbg= ctermfg=
hi String guibg=bg guifg=#ffffcc gui=italic ctermbg=bg ctermfg=
hi Character guibg=bg guifg=#ffffcc gui=bold ctermbg=bg ctermfg=
hi Number guibg=bg guifg=#bbddff gui=bold ctermbg= ctermfg=
hi Boolean guibg=bg guifg=#bbddff gui=none ctermbg= ctermfg=
hi Float guibg=bg guifg=#bbddff gui=bold ctermbg= ctermfg= hi Identifier guibg=bg guifg=#55cc55 gui=bold ctermbg=bg ctermfg=
hi Function guibg=bg guifg=#ff66aa gui=bold ctermbg=bg ctermfg=
hi Statement guibg=bg guifg=#ffff99 gui=bold ctermbg=bg ctermfg=
"return的语法高亮
hi Conditional guibg=bg guifg=#ff6666 gui=bold ctermbg=bg ctermfg=
hi Repeat guibg=bg guifg=#ff9900 gui=bold ctermbg= ctermfg=
hi Label guibg=bg guifg=#cc99ff gui=bold ctermbg=bg ctermfg=
hi Operator guibg=bg guifg=#ffbb66 gui=bold ctermbg= ctermfg=
hi Keyword guibg=bg guifg=#44ffdd gui=bold ctermbg=bg ctermfg=
hi Exception guibg=bg guifg=#44ffdd gui=bold ctermbg=bg ctermfg= hi PreProc guibg=bg guifg=#ffbb66 gui=bold ctermbg= ctermfg=
hi Include guibg=bg guifg=#99cc99 gui=bold ctermbg=bg ctermfg=
hi link Define Include
hi link Macro Include
hi link PreCondit Include hi Type guibg=bg guifg=#ff5566 gui=bold ctermbg=bg ctermfg=
hi StorageClass guibg=bg guifg=#99cc99 gui=bold ctermbg=bg ctermfg=
hi Structure guibg=bg guifg=#99ff99 gui=bold ctermbg=bg ctermfg=
hi Typedef guibg=bg guifg=#99cc99 gui=italic ctermbg=bg ctermfg= hi Special guibg=bg guifg=#bbddff gui=bold ctermbg= ctermfg=
hi SpecialChar guibg=bg guifg=#bbddff gui=bold ctermbg= ctermfg=
hi Tag guibg=bg guifg=#bbddff gui=bold ctermbg= ctermfg=
hi Delimiter guibg=bg guifg=fg gui=bold ctermbg= ctermfg=fg
hi SpecialComment guibg=# guifg=#dddddd gui=italic ctermbg= ctermfg=
hi Debug guibg=bg guifg=#ff9999 gui=none ctermbg= ctermfg= hi Underlined guibg=bg guifg=#99ccff gui=underline ctermbg=bg ctermfg= cterm=underline hi Title guibg=# guifg=white gui=bold ctermbg= ctermfg=
hi Ignore guibg=bg guifg=#cccccc gui=italic ctermbg=bg ctermfg=
hi Error guibg=#ff0000 guifg=white gui=bold ctermbg= ctermfg=
hi Todo guibg=# guifg=#ff0000 gui=bold ctermbg= ctermfg= hi htmlH2 guibg=bg guifg=fg gui=bold ctermbg= ctermfg=fg
hi link htmlH3 htmlH2
hi link htmlH4 htmlH3
hi link htmlH5 htmlH4
hi link htmlH6 htmlH5 " And finally. let g:colors_name = "Guardian2"
let colors_name = "Guardian2"
guardian2
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
" https://github.com/tomasr/molokai
"
" Note: Based on the Monokai theme for TextMate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
" hi clear if version >
" no guarantees for version 5.8 and below, but this makes it stop
" complaining
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name="molokai" if exists("g:molokai_original")
let s:molokai_original = g:molokai_original
else
let s:molokai_original =
endif hi Boolean guifg=#AE81FF
hi Character guifg=#E6DB74
hi Number guifg=#AE81FF
hi String guifg=#E6DB74
hi Conditional guifg=#F92672 gui=bold
hi Constant guifg=#AE81FF gui=bold
hi Cursor guifg=# guibg=#F8F8F0
hi iCursor guifg=# guibg=#F8F8F0
hi Debug guifg=#BCA3A3 gui=bold
hi Define guifg=#66D9EF
hi Delimiter guifg=#8F8F8F
hi DiffAdd guibg=#13354A
hi DiffChange guifg=#89807D guibg=#4C4745
hi DiffDelete guifg=# guibg=#1E0010
hi DiffText guibg=#4C4745 gui=italic,bold hi Directory guifg=#A6E22E gui=bold
hi Error guifg=#E6DB74 guibg=#1E0010
hi ErrorMsg guifg=#F92672 guibg=# gui=bold
hi Exception guifg=#A6E22E gui=bold
hi Float guifg=#AE81FF
hi FoldColumn guifg=# guibg=#
hi Folded guifg=# guibg=#
hi Function guifg=#A6E22E
hi Identifier guifg=#FD971F
hi Ignore guifg=# guibg=bg
hi IncSearch guifg=#C4BE89 guibg=# hi Keyword guifg=#F92672 gui=bold
hi Label guifg=#E6DB74 gui=none
hi Macro guifg=#C4BE89 gui=italic
hi SpecialKey guifg=#66D9EF gui=italic hi MatchParen guifg=# guibg=# gui=bold
hi ModeMsg guifg=#E6DB74
hi MoreMsg guifg=#E6DB74
hi Operator guifg=#F92672 " complete menu
hi Pmenu guifg=#66D9EF guibg=#
hi PmenuSel guibg=#
hi PmenuSbar guibg=#
hi PmenuThumb guifg=#66D9EF hi PreCondit guifg=#A6E22E gui=bold
hi PreProc guifg=#A6E22E
hi Question guifg=#66D9EF
hi Repeat guifg=#F92672 gui=bold
hi Search guifg=# guibg=#FFE792
" marks
hi SignColumn guifg=#A6E22E guibg=#
hi SpecialChar guifg=#F92672 gui=bold
hi SpecialComment guifg=#7E8E91 gui=bold
hi Special guifg=#66D9EF guibg=bg gui=italic
if has("spell")
hi SpellBad guisp=#FF0000 gui=undercurl
hi SpellCap guisp=#7070F0 gui=undercurl
hi SpellLocal guisp=#70F0F0 gui=undercurl
hi SpellRare guisp=#FFFFFF gui=undercurl
endif
hi Statement guifg=#F92672 gui=bold
hi StatusLine guifg=# guibg=fg
hi StatusLineNC guifg=# guibg=#
hi StorageClass guifg=#FD971F gui=italic
hi Structure guifg=#66D9EF
hi Tag guifg=#F92672 gui=italic
hi Title guifg=#ef5939
hi Todo guifg=#FFFFFF guibg=bg gui=bold hi Typedef guifg=#66D9EF
hi Type guifg=#66D9EF gui=none
hi Underlined guifg=# gui=underline hi VertSplit guifg=# guibg=# gui=bold
hi VisualNOS guibg=#403D3D
hi Visual guibg=#403D3D
hi WarningMsg guifg=#FFFFFF guibg=# gui=bold
hi WildMenu guifg=#66D9EF guibg=# hi TabLineFill guifg=#1B1D1E guibg=#1B1D1E
hi TabLine guibg=#1B1D1E guifg=# gui=none if s:molokai_original ==
hi Normal guifg=#F8F8F2 guibg=#
hi Comment guifg=#75715E
hi CursorLine guibg=#3E3D32
hi CursorLineNr guifg=#FD971F gui=none
hi CursorColumn guibg=#3E3D32
hi ColorColumn guibg=#3B3A32
hi LineNr guifg=#BCBCBC guibg=#3B3A32
hi NonText guifg=#75715E
hi SpecialKey guifg=#75715E
else
hi Normal guifg=#F8F8F2 guibg=#
"这一行的guibg调整后会影响.cpp文件及.vim文件的背景颜色
"但是为什么是这里?????
hi Comment guifg=#7E8E91
hi CursorLine guibg=#
hi CursorLineNr guifg=#FD971F gui=none
hi CursorColumn guibg=#
hi ColorColumn guibg=#
hi LineNr guifg=# guibg=#
hi NonText guifg=#
hi SpecialKey guifg=#
end "
" Support for 256-color terminal
"
if &t_Co >
if s:molokai_original ==
hi Normal ctermbg=
hi CursorLine ctermbg= cterm=none
hi CursorLineNr ctermfg= cterm=none
else
hi Normal ctermfg= ctermbg=
hi CursorLine ctermbg= cterm=none
hi CursorLineNr ctermfg= cterm=none
endif
hi Boolean ctermfg=
hi Character ctermfg=
hi Number ctermfg=
hi String ctermfg=
hi Conditional ctermfg= cterm=bold
hi Constant ctermfg= cterm=bold
hi Cursor ctermfg= ctermbg=
hi Debug ctermfg= cterm=bold
hi Define ctermfg=
hi Delimiter ctermfg= hi DiffAdd ctermbg=
hi DiffChange ctermfg= ctermbg=
hi DiffDelete ctermfg= ctermbg=
hi DiffText ctermbg= cterm=bold hi Directory ctermfg= cterm=bold
hi Error ctermfg= ctermbg=
hi ErrorMsg ctermfg= ctermbg= cterm=bold
hi Exception ctermfg= cterm=bold
hi Float ctermfg=
hi FoldColumn ctermfg= ctermbg=
hi Folded ctermfg= ctermbg=
hi Function ctermfg=
hi Identifier ctermfg= cterm=none
hi Ignore ctermfg= ctermbg=
hi IncSearch ctermfg= ctermbg= hi keyword ctermfg= cterm=bold
hi Label ctermfg= cterm=none
hi Macro ctermfg=
hi SpecialKey ctermfg= hi MatchParen ctermfg= ctermbg= cterm=bold
hi ModeMsg ctermfg=
hi MoreMsg ctermfg=
hi Operator ctermfg= " complete menu
hi Pmenu ctermfg= ctermbg=
hi PmenuSel ctermfg= ctermbg=
hi PmenuSbar ctermbg=
hi PmenuThumb ctermfg= hi PreCondit ctermfg= cterm=bold
hi PreProc ctermfg=
hi Question ctermfg=
hi Repeat ctermfg= cterm=bold
hi Search ctermfg= ctermbg= cterm=NONE " marks column
hi SignColumn ctermfg= ctermbg=
hi SpecialChar ctermfg= cterm=bold
hi SpecialComment ctermfg= cterm=bold
hi Special ctermfg=
if has("spell")
hi SpellBad ctermbg=
hi SpellCap ctermbg=
hi SpellLocal ctermbg=
hi SpellRare ctermfg=none ctermbg=none cterm=reverse
endif
hi Statement ctermfg= cterm=bold
hi StatusLine ctermfg= ctermbg=
hi StatusLineNC ctermfg= ctermbg=
hi StorageClass ctermfg=
hi Structure ctermfg=
hi Tag ctermfg=
hi Title ctermfg=
hi Todo ctermfg= ctermbg= cterm=bold hi Typedef ctermfg=
hi Type ctermfg= cterm=none
hi Underlined ctermfg= cterm=underline hi VertSplit ctermfg= ctermbg= cterm=bold
hi VisualNOS ctermbg=
hi Visual ctermbg=
hi WarningMsg ctermfg= ctermbg= cterm=bold
hi WildMenu ctermfg= ctermbg= hi Comment ctermfg=
hi CursorColumn ctermbg=
hi ColorColumn ctermbg=
hi LineNr ctermfg= ctermbg=
hi NonText ctermfg= hi SpecialKey ctermfg= if exists("g:rehash256") && g:rehash256 ==
hi Normal ctermfg= ctermbg=
hi CursorLine ctermbg= cterm=none
hi CursorLineNr ctermfg= cterm=none hi Boolean ctermfg=
hi Character ctermfg=
hi Number ctermfg=
hi String ctermfg=
hi Conditional ctermfg= cterm=bold
hi Constant ctermfg= cterm=bold hi DiffDelete ctermfg= ctermbg= hi Directory ctermfg= cterm=bold
hi Error ctermfg= ctermbg=
hi Exception ctermfg= cterm=bold
hi Float ctermfg=
hi Function ctermfg=
hi Identifier ctermfg= hi Keyword ctermfg= cterm=bold
hi Operator ctermfg=
hi PreCondit ctermfg= cterm=bold
hi PreProc ctermfg=
hi Repeat ctermfg= cterm=bold hi Statement ctermfg= cterm=bold
hi Tag ctermfg=
hi Title ctermfg=
hi Visual ctermbg= hi Comment ctermfg=
hi LineNr ctermfg= ctermbg=
hi NonText ctermfg=
hi SpecialKey ctermfg=
endif
end " Must be at the end, because of ctermbg=234 bug.
" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ
set background=dark
molokai
其中github是类似github网页上面开源代码的高亮
molokai是类似SublimeText3的高亮
不过这三个代码我都改过(注释行的上一行是改动过的)
喜欢这两个配色的可以考虑用下
具体应用的话:
新建一个.txt文件
把配色代码复制到里面,保存
把文件名改成.vim
拷到vim根目录下的vim80\colors里面(这里的vim80……现在好像变成vim81了吧qwq)
有哪里不合心意的话就自己上手改
在使用Vim的时候如果有什么疑惑的话
可以在下面留言的撒
如果我恰好可以会的话一定会帮的撒
即使我不会也可以一起讨论怎么解决的撒
更新:
网上闲逛的时候偶然间发现中文版的help文件
如果想要Vim的中文版help文件
请qq联系我→_→1290127201
记得注明是为什么欧
有关命令
https://linux.cn/article-4669-1.html
给Vim究极小白的文章
https://zhuanlan.zhihu.com/p/22530297
Vim颜色配置的更多相关文章
- 设置vim颜色方案
获取所有vim颜色配置方案 ls /usr/share/vim/vim74/colors/ [root@lx ~]# ls /usr/share/vim/vim74/colors/ blue.vim ...
- vim颜色选择+按<F9>自动编译运行+其他基本配置(ubuntu)
(以下是ubuntu上的配置........ 但如果你是在window上的,直接用一下配置吧(懒得介绍了)=.= syntax on filetype indent plugin on set rul ...
- macOS中Vim基本配置,颜色主题/语法/indent设置
macOS中Vim基本配置 Vim的初始化配置 .vimrc 存放位置 macOS 环境下 vim 的初始化配置文件为 .vimrc , 通常有两个(系统版本和用户版本),一个位于 /usr/shar ...
- Linux下shell颜色配置
颜色配置涉及以下几个地方(本人常用的):命令提示符,文件及目录名显示,echo -e命令 1.颜色值分为前景色和背景色,颜色码值对应关系如下: Front Back Color 黑 红 绿 黄(棕) ...
- linux环境下Vim的配置
原文链接:http://blog.chinaunix.net/uid-26826958-id-3272375.html (本文转自此链接中的部分内容,但做了适当修改) 安装vim命令:sudo ap ...
- Linux - vim安装 配置与使用
一 Vim 简单介绍 曾经一直用vi,近期開始使用 vim,以下将两者做一下比較. vi和vim都是word=%E5%A4%9A%E6%A8%A1&fr=qb_search_exp&i ...
- colorscheme-如何vim颜色风格
我们vim默认的风格是黑底的,如果我们想要更换其他的风格,比如字体高亮的颜色.注释的颜色等.这时候我们就需要一个属性了,如下 colorscheme darkblue 这个属性的值,其实是在 /usr ...
- [转] vim自定义配置 和 在ubnetu中安装vim
Ubuntu 12.04安装vim和配置 问题: ubuntu默认没有安装vim,出现: jyg@ubuntu:~$ vim test.cThe program 'vim' can be foun ...
- 为了让vi命令也可以使用vim的配置,需要修改 vi /etc/bashrc 增加一行 alias vi='vim'此时,经过上面配置已经可以显示语法高亮了
为了让vi命令也可以使用vim的配置,需要修改 vi /etc/bashrc 增加一行 aliasvi='vim'此时,经过上面配置已经可以显示语法高亮了
随机推荐
- AES不同语言加密解密
AES加密模式和填充方式:还有其他 算法/模式/填充 16字节加密后数据长度 不满16字节加密后长度 AES/CBC/NoPadding 16 不支持 AES/CBC/PKCS5Padding 32 ...
- node-red 流程的导入导出
流程的导入导出 流程的导出 选中所要导出的流程,点击右上角三条杠按钮 有两个选项,导出到剪贴板和库 1. 导出到剪贴板 导出到剪贴板可以复制,粘贴到任何地方 [{,,,,,,"wires&q ...
- 线程池ThreadPool实战
线程池ThreadPool 线程池概念 常用线程池和方法 1.测试线程类 2.newFixedThreadPool固定线程池 3.newSingleThreadExecutor单线程池 4.newCa ...
- ASP.NET 一般处理程序 接收文件上传
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain&qu ...
- Jmeter获取数据库数据
1)添加需要的数据库驱动jar包,使用不同的数据库,需要引入的jar包是不一样的: mysql:无需引入其他数据库驱动jar包 sql server:下载sqljdbc.jar包 oracle:ora ...
- JavaScript前端图片压缩
实现思路 获取input的file 使用fileReader() 将图片转为base64 使用canvas读取base64 并降低分辨率 把canvas数据转成blob对象 把blob对象转file对 ...
- PHP 中使用ajax时一些常见错误总结整理
这篇文章主要介绍了PHP 中使用ajax时一些常见错误总结整理的相关资料,需要的朋友可以参考下 PHP作为后端时,前端js使用ajax技术进行相互信息传送时,经常会出错误,对于新手来说有些手足无措.总 ...
- IOS 之 NSBundle 使用
来源:http://blog.sina.com.cn/s/blog_b0c59541010151rd.html An NSBundle object represents a location in ...
- mysql如何让有数据的表的自增主键重新设置从1开始连续自增
项目开发中,有些固定数据在数据表中,主键是从1自增的,有时候我们会删除一些数据, 这种情况下,主键就会不连续.如何恢复到像第一次插入数据一样主键从1开始连续增长, 这里我找到一种解决方法: 如上面一张 ...
- Topshelf+Quartz实现windows任务
Topshelf使用示例, HostFactory.Run(x => { x.Service<QuartzStartup>(s => { s.ConstructUsing(na ...