Skip to content

Instantly share code, notes, and snippets.

@iguoli
Last active March 16, 2018 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iguoli/dabd439de2ee7ffa8fcedc30521be36c to your computer and use it in GitHub Desktop.
Save iguoli/dabd439de2ee7ffa8fcedc30521be36c to your computer and use it in GitHub Desktop.
Vim设置, vim, settings

Vim中的highlight命令

" 查看当前所有highlight设置
:hi

" 查看highlight命令帮助
:h hi

" highlight命令有三种终端类型的高亮设置,分别是term, cterm, gui
:h highlight-args

" highlight命令默认有许多highlighting groups,每个组对应不同的显示对象,比如
" Search对应模式搜索时匹配结果的高亮显示('hlsearch')
" Cursor对应当前光标下的字符显示
" CursorLine对应光标当前行的显示('cursorline')
:h highlight-groups
:h hl-Search
:h hl-Cursor
:h hl-CursorLine

" 设置Search group的颜色
:hi Search gui=None guifg=black guibg=yellow

粘贴文本时去掉自动注释

" 参考:h fo和:h fo-table
set fo-=r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment