From a2e15f719bbd806a9b7bb09d5f4ba2fc8e83b865 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 3 Apr 2014 07:48:52 -0400 Subject: [PATCH] Tweaked some settings for specific filetypes and made a few more improvements to the syntax highlighting and overall theme. the undo sidebar should now fit better on smaller screens too (you can resize it with the mouse if it's too small) --- vim/colors/darkcloud.vim | 19 +++++++++++++++---- vim/config/plugins.vim | 4 ++-- vim/config/settings.vim | 8 ++++---- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/vim/colors/darkcloud.vim b/vim/colors/darkcloud.vim index 60ae51e..d1730fb 100644 --- a/vim/colors/darkcloud.vim +++ b/vim/colors/darkcloud.vim @@ -283,8 +283,8 @@ call s:X("WildMenu","808080","303030","","White",s:termBlack) call s:X("Folded","87d7ff","626262","bold","Blue",s:termBlack) call s:X("FoldColumn","87d7ff","262626","bold","Blue",s:termBlack) -call s:X("SignColumn","ffaf00","626262","bold","Red",s:termBlack) -call s:X("ColorColumn","ffaf00","626262","bold","Red",s:termBlack) +call s:X("SignColumn","ffaf00","262626","bold","Red",s:termBlack) +hi! link ColorColumn SignColumn call s:X("TabLine","","000000","","",s:termBlack) call s:X("TabLineFill","","000000","","",s:termBlack) @@ -320,6 +320,7 @@ call s:X("Directory","87d7ff","","","Blue","") call s:X("Question","87d7ff","","","Blue","") call s:X("ExtraWhitespace","262626","","standout",s:termBlack,"") call s:X("Error","d75f5f","000000","standout","Red",s:termBlack) +hi! link WarningMsg Error hi! link ErrorMsg Error hi! link MoreMsg Special hi! link Structure PreProc @@ -416,10 +417,20 @@ if !exists("g:indent_guides_auto_colors") let g:indent_guides_auto_colors=0 endif -"EMAIL: +"notes +hi! link notesTitle htmlH1 +hi! link notesName htmlH5 +hi! link notesShortHeading htmlH2 +hi! link notesInProgress htmlH3 +hi! link Underlined htmlH6 +hi! link notesListBullet FoldColumn +hi! link notesListNumber Number +hi! link notesVimCmd Function +hi! link notesSingleQuoted String + +"email hi! link mailHeaderKey Identifier -"PLUGIN COLOURS: "taglist hi! link TagListFileName Directory diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index bdde888..3b17961 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -18,8 +18,8 @@ "GUNDO: CONFIGURE SIDEBAR SETTINGS {{{ let g:gundo_right=1 - let g:gundo_width=50 - let g:gundo_preview_height=20 + let g:gundo_width=35 + let g:gundo_preview_height=10 "}}} "LIGHTLINE: CONFIGURE THE LIGHTLINE STATUS BAR {{{ diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 86a5470..db85c30 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -70,7 +70,8 @@ autocmd BufNewFile,BufRead cjdroute.conf,ircd.conf setf javascript "enable spellcheck by default when using given filetypes and extensions - autocmd FileType mail,gitcommit,mkd,text setl spell + autocmd FileType gitcommit,notes,mail,mkd,text setlocal spell + autocmd FileType notes,mail,mkd,text setlocal nonumber "enable omnicompletion for any filetype without that has syntax highlighting if has("autocmd") && exists("+omnifunc") @@ -80,12 +81,11 @@ \ endif endif - set formatoptions=roqnl12 "configure format options + set formatoptions=roqnl12 set foldmethod=syntax foldcolumn=1 foldlevel=3 "fold layers 3 or more deep - "disable folding by default in vimdiff if &diff - autocmd VimEnter * windo set nofoldenable + autocmd VimEnter * windo setlocal nofoldenable "disable folding by default in vimdiff endif "}}}