commit 33df5a8c02d1ed58ca89d68a895fd95cf2a4797d Author: David Holland Date: Thu Feb 14 16:29:25 2019 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f27306 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +autoload +plugged_old +.netrwhist +platform.vim diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..b1a26c5 --- /dev/null +++ b/README.adoc @@ -0,0 +1,9 @@ += DustVim +DustVoice + +== Purpose of life + +This project exists, to have my ever changing vimscript (nvim) available from everywhere and keep it clean and synced between all devices. + +The reason why the different distributions are in different folders instead of different branches is, because I often have to vimdiff the different files, so I have to have parallel access to the files from different distributions. + diff --git a/colors/nord - Kopie.vim b/colors/nord - Kopie.vim new file mode 100644 index 0000000..0c48df6 --- /dev/null +++ b/colors/nord - Kopie.vim @@ -0,0 +1,521 @@ +" Copyright (c) 2016-2017 Arctic Ice Studio +" Copyright (c) 2016-2017 Sven Greb + +" Project: Nord Vim +" Repository: https://github.com/arcticicestudio/nord-vim +" License: MIT + +if version > 580 + hi clear + if exists("syntax_on") + syntax reset + endif +endif + +let g:colors_name = "nord" +let s:nord_vim_version="0.6.0" +set background=dark + +let s:nord0_gui = "#2E3440" +let s:nord1_gui = "#3B4252" +let s:nord2_gui = "#434C5E" +let s:nord3_gui = "#4C566A" +let s:nord4_gui = "#D8DEE9" +let s:nord5_gui = "#E5E9F0" +let s:nord6_gui = "#ECEFF4" +let s:nord7_gui = "#8FBCBB" +let s:nord8_gui = "#88C0D0" +let s:nord9_gui = "#81A1C1" +let s:nord10_gui = "#5E81AC" +let s:nord11_gui = "#BF616A" +let s:nord12_gui = "#D08770" +let s:nord13_gui = "#EBCB8B" +let s:nord14_gui = "#A3BE8C" +let s:nord15_gui = "#B48EAD" + +let s:nord1_term = "0" +let s:nord3_term = "8" +let s:nord5_term = "7" +let s:nord6_term = "15" +let s:nord7_term = "14" +let s:nord8_term = "6" +let s:nord9_term = "4" +let s:nord10_term = "12" +let s:nord11_term = "1" +let s:nord12_term = "11" +let s:nord13_term = "3" +let s:nord14_term = "2" +let s:nord15_term = "5" + +let s:nord3_gui_brightened = [ + \ s:nord3_gui, + \ "#4e586d", + \ "#505b70", + \ "#525d73", + \ "#556076", + \ "#576279", + \ "#59647c", + \ "#5b677f", + \ "#5d6982", + \ "#5f6c85", + \ "#616e88", + \ "#63718b", + \ "#66738e", + \ "#687591", + \ "#6a7894", + \ "#6d7a96", + \ "#6f7d98", + \ "#72809a", + \ "#75829c", + \ "#78859e", + \ "#7b88a1", +\ ] + +if !exists("g:nord_italic_comments") + let g:nord_italic_comments = 0 +endif + +if !exists('g:nord_uniform_status_lines') + let g:nord_uniform_status_lines = 0 +endif + +if !exists("g:nord_comment_brightness") + let g:nord_comment_brightness = 0 +endif + +if !exists("g:nord_uniform_diff_background") + let g:nord_uniform_diff_background = 0 +endif + +function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) + let l:attr = a:attr + if g:nord_italic_comments == 0 && l:attr ==? 'italic' + let l:attr= 'NONE' + endif + + if a:guifg != "" + exec "hi " . a:group . " guifg=" . a:guifg + endif + if a:guibg != "" + exec "hi " . a:group . " guibg=" . a:guibg + endif + if a:ctermfg != "" + exec "hi " . a:group . " ctermfg=" . a:ctermfg + endif + if a:ctermbg != "" + exec "hi " . a:group . " ctermbg=" . a:ctermbg + endif + if a:attr != "" + exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr + endif + if a:guisp != "" + exec "hi " . a:group . " guisp=" . a:guisp + endif +endfunction + +"+---------------+ +"+ UI Components + +"+---------------+ +"+--- Attributes ---+ +call s:hi("Bold", "", "", "", "", "bold", "") +call s:hi("Italic", "", "", "", "", "italic", "") +call s:hi("Underline", "", "", "", "", "underline", "") + +"+--- Editor ---+ +call s:hi("ColorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") +call s:hi("Cursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "") +call s:hi("CursorLine", "", s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("Error", s:nord0_gui, s:nord11_gui, "", s:nord11_term, "", "") +call s:hi("iCursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "") +call s:hi("LineNr", s:nord3_gui, s:nord0_gui, s:nord3_term, "NONE", "", "") +call s:hi("MatchParen", s:nord0_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "", "") +call s:hi("NonText", s:nord2_gui, "", s:nord3_term, "", "", "") +call s:hi("Normal", s:nord4_gui, s:nord0_gui, "NONE", "NONE", "", "") +call s:hi("PMenu", s:nord4_gui, s:nord2_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("PmenuSbar", s:nord4_gui, s:nord2_gui, "NONE", s:nord1_term, "", "") +call s:hi("PMenuSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "") +call s:hi("PmenuThumb", s:nord8_gui, s:nord3_gui, "NONE", s:nord3_term, "", "") +call s:hi("SpecialKey", s:nord3_gui, "", s:nord3_term, "", "", "") +call s:hi("SpellBad", "", s:nord0_gui, "", "NONE", "undercurl", s:nord11_gui) +call s:hi("SpellCap", "", s:nord0_gui, "", "NONE", "undercurl", s:nord13_gui) +call s:hi("SpellLocal", "", s:nord0_gui, "", "NONE", "undercurl", s:nord5_gui) +call s:hi("SpellRare", "", s:nord0_gui, "", "NONE", "undercurl", s:nord6_gui) +call s:hi("Visual", "", s:nord2_gui, "", s:nord1_term, "", "") +call s:hi("VisualNOS", "", s:nord2_gui, "", s:nord1_term, "", "") +"+- Neovim Support -+ +call s:hi("healthError", s:nord11_gui, s:nord1_gui, s:nord11_term, s:nord1_term, "", "") +call s:hi("healthSuccess", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_term, "", "") +call s:hi("healthWarning", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") + +"+- Neovim Terminal Colors -+ +if has('nvim') + let g:terminal_color_0 = s:nord1_gui + let g:terminal_color_1 = s:nord11_gui + let g:terminal_color_2 = s:nord14_gui + let g:terminal_color_3 = s:nord13_gui + let g:terminal_color_4 = s:nord9_gui + let g:terminal_color_5 = s:nord15_gui + let g:terminal_color_6 = s:nord8_gui + let g:terminal_color_7 = s:nord5_gui + let g:terminal_color_8 = s:nord3_gui + let g:terminal_color_9 = s:nord11_gui + let g:terminal_color_10 = s:nord14_gui + let g:terminal_color_11 = s:nord13_gui + let g:terminal_color_12 = s:nord9_gui + let g:terminal_color_13 = s:nord15_gui + let g:terminal_color_14 = s:nord7_gui + let g:terminal_color_15 = s:nord6_gui +endif + +"+--- Gutter ---+ +call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") +call s:hi("CursorLineNr", s:nord3_gui, s:nord0_gui, "NONE", "", "", "") +call s:hi("Folded", s:nord3_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "bold", "") +call s:hi("FoldColumn", s:nord3_gui, s:nord0_gui, s:nord3_term, "NONE", "", "") +call s:hi("SignColumn", s:nord1_gui, s:nord0_gui, s:nord1_term, "NONE", "", "") + +"+--- Navigation ---+ +call s:hi("Directory", s:nord8_gui, "", s:nord8_term, "NONE", "", "") + +"+--- Prompt/Status ---+ +call s:hi("EndOfBuffer", s:nord1_gui, "", s:nord1_term, "NONE", "", "") +call s:hi("ErrorMsg", s:nord4_gui, s:nord11_gui, "NONE", s:nord11_term, "", "") +call s:hi("ModeMsg", s:nord4_gui, "", "", "", "", "") +call s:hi("MoreMsg", s:nord4_gui, "", "", "", "", "") +call s:hi("Question", s:nord4_gui, "", "NONE", "", "", "") +if g:nord_uniform_status_lines == 0 + call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") + call s:hi("StatusLineNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +else + call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") + call s:hi("StatusLineNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "") +endif +call s:hi("WarningMsg", s:nord0_gui, s:nord13_gui, s:nord1_term, s:nord13_term, "", "") +call s:hi("WildMenu", s:nord8_gui, s:nord1_gui, s:nord8_term, s:nord1_term, "", "") + +"+--- Search ---+ +call s:hi("IncSearch", s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "underline", "") +call s:hi("Search", s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "NONE", "") + +"+--- Tabs ---+ +call s:hi("TabLine", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("TabLineFill", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("TabLineSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") + +"+--- Window ---+ +call s:hi("Title", s:nord4_gui, "", "NONE", "", "NONE", "") +call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NONE", "") + +"+----------------------+ +"+ Language Base Groups + +"+----------------------+ +call s:hi("Boolean", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Character", s:nord14_gui, "", s:nord14_term, "", "", "") +call s:hi("Comment", s:nord3_gui_brightened[g:nord_comment_brightness], "", s:nord3_term, "", "italic", "") +call s:hi("Conditional", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Constant", s:nord4_gui, "", "NONE", "", "", "") +call s:hi("Define", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Delimiter", s:nord6_gui, "", s:nord6_term, "", "", "") +call s:hi("Exception", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Float", s:nord15_gui, "", s:nord15_term, "", "", "") +call s:hi("Function", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("Identifier", s:nord4_gui, "", "NONE", "", "NONE", "") +call s:hi("Include", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Keyword", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Label", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Number", s:nord15_gui, "", s:nord15_term, "", "", "") +call s:hi("Operator", s:nord9_gui, "", s:nord9_term, "", "NONE", "") +call s:hi("PreProc", s:nord9_gui, "", s:nord9_term, "", "NONE", "") +call s:hi("Repeat", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Special", s:nord4_gui, "", "NONE", "", "", "") +call s:hi("SpecialChar", s:nord13_gui, "", s:nord13_term, "", "", "") +call s:hi("SpecialComment", s:nord8_gui, "", s:nord8_term, "", "italic", "") +call s:hi("Statement", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("StorageClass", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("String", s:nord14_gui, "", s:nord14_term, "", "", "") +call s:hi("Structure", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Tag", s:nord4_gui, "", "", "", "", "") +call s:hi("Todo", s:nord13_gui, "NONE", s:nord13_term, "NONE", "", "") +call s:hi("Type", s:nord9_gui, "", s:nord9_term, "", "NONE", "") +call s:hi("Typedef", s:nord9_gui, "", s:nord9_term, "", "", "") +hi! link Macro Define +hi! link PreCondit PreProc + +"+-----------+ +"+ Languages + +"+-----------+ +call s:hi("awkCharClass", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("awkPatterns", s:nord9_gui, "", s:nord9_term, "", "bold", "") +hi! link awkArrayElement Identifier +hi! link awkBoolLogic Keyword +hi! link awkBrktRegExp SpecialChar +hi! link awkComma Delimiter +hi! link awkExpression Keyword +hi! link awkFieldVars Identifier +hi! link awkLineSkip Keyword +hi! link awkOperator Operator +hi! link awkRegExp SpecialChar +hi! link awkSearch Keyword +hi! link awkSemicolon Delimiter +hi! link awkSpecialCharacter SpecialChar +hi! link awkSpecialPrintf SpecialChar +hi! link awkVariables Identifier + +call s:hi("cIncluded", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link cOperator Operator +hi! link cPreCondit PreCondit + +hi! link csPreCondit PreCondit +hi! link csType Type +hi! link csXmlTag SpecialComment + +call s:hi("cssAttributeSelector", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("cssDefinition", s:nord7_gui, "", s:nord7_term, "", "NONE", "") +call s:hi("cssIdentifier", s:nord7_gui, "", s:nord7_term, "", "underline", "") +call s:hi("cssStringQ", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link cssAttr Keyword +hi! link cssBraces Delimiter +hi! link cssClassName cssDefinition +hi! link cssColor Number +hi! link cssProp cssDefinition +hi! link cssPseudoClass cssDefinition +hi! link cssPseudoClassId cssPseudoClass +hi! link cssVendor Keyword + +call s:hi("dosiniHeader", s:nord8_gui, "", s:nord8_term, "", "", "") +hi! link dosiniLabel Type + +call s:hi("dtBooleanKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtExecKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtLocaleKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtNumericKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtTypeKey", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link dtDelim Delimiter +hi! link dtLocaleValue Keyword +hi! link dtTypeValue Keyword + +if g:nord_uniform_diff_background == 0 + call s:hi("DiffAdd", s:nord14_gui, s:nord0_gui, s:nord14_term, "NONE", "inverse", "") + call s:hi("DiffChange", s:nord13_gui, s:nord0_gui, s:nord13_term, "NONE", "inverse", "") + call s:hi("DiffDelete", s:nord11_gui, s:nord0_gui, s:nord11_term, "NONE", "inverse", "") + call s:hi("DiffText", s:nord13_gui, s:nord0_gui, s:nord13_term, "NONE", "inverse", "") +else + call s:hi("DiffAdd", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_term, "", "") + call s:hi("DiffChange", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") + call s:hi("DiffDelete", s:nord11_gui, s:nord1_gui, s:nord11_term, s:nord1_term, "", "") + call s:hi("DiffText", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") +endif +" Legacy groups for official git.vim and diff.vim syntax +hi! link diffAdded DiffAdd +hi! link diffChanged DiffChange +hi! link diffRemoved DiffDelete + +call s:hi("gitconfigVariable", s:nord7_gui, "", s:nord7_term, "", "", "") + +call s:hi("goBuiltins", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link goConstants Keyword + +call s:hi("htmlArg", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("htmlLink", s:nord4_gui, "", "", "", "NONE", "NONE") +hi! link htmlBold Bold +hi! link htmlEndTag htmlTag +hi! link htmlItalic Italic +hi! link htmlH1 markdownH1 +hi! link htmlH2 markdownH1 +hi! link htmlH3 markdownH1 +hi! link htmlH4 markdownH1 +hi! link htmlH5 markdownH1 +hi! link htmlH6 markdownH1 +hi! link htmlSpecialChar SpecialChar +hi! link htmlTag Keyword +hi! link htmlTagN htmlTag + +call s:hi("javaDocTags", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link javaCommentTitle Comment +hi! link javaScriptBraces Delimiter +hi! link javaScriptIdentifier Keyword +hi! link javaScriptNumber Number + +call s:hi("jsonKeyword", s:nord7_gui, "", s:nord7_term, "", "", "") + +call s:hi("lessClass", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link lessAmpersand Keyword +hi! link lessCssAttribute Delimiter +hi! link lessFunction Function +hi! link cssSelectorOp Keyword + +hi! link lispAtomBarSymbol SpecialChar +hi! link lispAtomList SpecialChar +hi! link lispAtomMark Keyword +hi! link lispBarSymbol SpecialChar +hi! link lispFunc Function + +hi! link luaFunc Function + +call s:hi("markdownBlockquote", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownCode", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownCodeDelimiter", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownFootnote", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownId", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownIdDeclaration", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownH1", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("markdownLinkText", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("markdownUrl", s:nord4_gui, "", "NONE", "", "NONE", "") +hi! link markdownFootnoteDefinition markdownFootnote +hi! link markdownH2 markdownH1 +hi! link markdownH3 markdownH1 +hi! link markdownH4 markdownH1 +hi! link markdownH5 markdownH1 +hi! link markdownH6 markdownH1 +hi! link markdownIdDelimiter Keyword +hi! link markdownLinkDelimiter Keyword +hi! link markdownLinkTextDelimiter Keyword +hi! link markdownListMarker Keyword +hi! link markdownRule Keyword +hi! link markdownHeadingDelimiter Keyword + +call s:hi("perlPackageDecl", s:nord7_gui, "", s:nord7_term, "", "", "") + +call s:hi("phpClasses", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("phpDocTags", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link phpDocCustomTags phpDocTags +hi! link phpMemberSelector Keyword + +call s:hi("podCmdText", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("podVerbatimLine", s:nord4_gui, "", "NONE", "", "", "") +hi! link podFormat Keyword + +hi! link pythonBuiltin Type +hi! link pythonEscape SpecialChar + +call s:hi("rubyConstant", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("rubySymbol", s:nord6_gui, "", s:nord6_term, "", "bold", "") +hi! link rubyAttribute Identifier +hi! link rubyBlockParameterList Operator +hi! link rubyInterpolationDelimiter Keyword +hi! link rubyKeywordAsMethod Function +hi! link rubyLocalVariableOrMethod Function +hi! link rubyPseudoVariable Keyword +hi! link rubyRegexp SpecialChar + +call s:hi("sassClass", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("sassId", s:nord7_gui, "", s:nord7_term, "", "underline", "") +hi! link sassAmpersand Keyword +hi! link sassClassChar Delimiter +hi! link sassControl Keyword +hi! link sassControlLine Keyword +hi! link sassExtend Keyword +hi! link sassFor Keyword +hi! link sassFunctionDecl Keyword +hi! link sassFunctionName Function +hi! link sassidChar sassId +hi! link sassInclude SpecialChar +hi! link sassMixinName Function +hi! link sassMixing SpecialChar +hi! link sassReturn Keyword + +hi! link shCmdParenRegion Delimiter +hi! link shCmdSubRegion Delimiter +hi! link shDerefSimple Identifier +hi! link shDerefVar Identifier + +hi! link sqlKeyword Keyword +hi! link sqlSpecial Keyword + +call s:hi("vimAugroup", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("vimMapRhs", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("vimNotation", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link vimFunc Function +hi! link vimFunction Function +hi! link vimUserFunc Function + +call s:hi("xmlAttrib", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("xmlCdataStart", s:nord3_gui, "", s:nord3_term, "", "bold", "") +call s:hi("xmlNamespace", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link xmlAttribPunct Delimiter +hi! link xmlCdata Comment +hi! link xmlCdataCdata xmlCdataStart +hi! link xmlCdataEnd xmlCdataStart +hi! link xmlEndTag xmlTagName +hi! link xmlProcessingDelim Keyword +hi! link xmlTagName Keyword + +call s:hi("yamlBlockMappingKey", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link yamlBool Keyword +hi! link yamlDocumentStart Keyword + +"+----------------+ +"+ Plugin Support + +"+----------------+ +"+--- UI ---+ +" ALE +" > w0rp/ale +call s:hi("ALEWarningSign", s:nord13_gui, "", s:nord13_term, "", "", "") +call s:hi("ALEErrorSign" , s:nord11_gui, "", s:nord11_term, "", "", "") + +" GitGutter +" > airblade/vim-gitgutter +call s:hi("GitGutterAdd", s:nord14_gui, "", s:nord14_term, "", "", "") +call s:hi("GitGutterChange", s:nord13_gui, "", s:nord13_term, "", "", "") +call s:hi("GitGutterChangeDelete", s:nord11_gui, "", s:nord11_term, "", "", "") +call s:hi("GitGutterDelete", s:nord11_gui, "", s:nord11_term, "", "", "") + +" fugitive.vim +" > tpope/vim-fugitive +call s:hi("gitcommitDiscardedFile", s:nord11_gui, "", s:nord11_term, "", "", "") +call s:hi("gitcommitUntrackedFile", s:nord11_gui, "", s:nord11_term, "", "", "") +call s:hi("gitcommitSelectedFile", s:nord14_gui, "", s:nord14_term, "", "", "") + +" davidhalter/jedi-vim +call s:hi("jediFunction", s:nord4_gui, s:nord3_gui, "", s:nord3_term, "", "") +call s:hi("jediFat", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "bold,underline", "") + +" NERDTree +" > scrooloose/nerdtree +call s:hi("NERDTreeExecFile", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link NERDTreeDirSlash Keyword +hi! link NERDTreeHelp Comment + +" CtrlP +" > ctrlpvim/ctrlp.vim +hi! link CtrlPMatch Keyword +hi! link CtrlPBufferHid Normal + +" vim-plug +" > junegunn/vim-plug +call s:hi("plugDeleted", s:nord11_gui, "", "", s:nord11_term, "", "") + +"+--- Languages ---+ +" JavaScript +" > pangloss/vim-javascript +call s:hi("jsGlobalNodeObjects", s:nord8_gui, "", s:nord8_term, "", "italic", "") +hi! link jsBrackets Delimiter +hi! link jsFuncCall Function +hi! link jsFuncParens Delimiter +hi! link jsNoise Delimiter +hi! link jsPrototype Keyword +hi! link jsRegexpString SpecialChar + +" Markdown +" > plasticboy/vim-markdown +call s:hi("mkdCode", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("mkdFootnote", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("mkdRule", s:nord10_gui, "", s:nord10_term, "", "", "") +call s:hi("mkdLineBreak", s:nord9_gui, "", s:nord9_term, "", "", "") +hi! link mkdBold Bold +hi! link mkdItalic Italic +hi! link mkdString Keyword +hi! link mkdCodeStart mkdCode +hi! link mkdCodeEnd mkdCode +hi! link mkdBlockquote Comment +hi! link mkdListItem Keyword +hi! link mkdListItemLine Normal +hi! link mkdFootnotes mkdFootnote +hi! link mkdLink markdownLinkText +hi! link mkdURL markdownUrl +hi! link mkdInlineURL mkdURL +hi! link mkdID Identifier "CHECK +hi! link mkdLinkDef mkdLink +hi! link mkdLinkDefTarget mkdURL +hi! link mkdLinkTitle mkdInlineURL +hi! link mkdDelimiter Keyword diff --git a/colors/nord.json b/colors/nord.json new file mode 100644 index 0000000..807adfb --- /dev/null +++ b/colors/nord.json @@ -0,0 +1,50 @@ +{ + "name": "nord", + "baseVimTheme": "nord", + "colors": { + "background": "#212733", + "foreground": "#ECEFF4", + + "title.background": "#212733", + "title.foreground": "#ECEFF4", + + "editor.background": "#2F3440", + "editor.foreground": "#DCDCDC", + + "tabs.background": "#2F3440", + "tabs.foreground": "#E5E9F0", + + "toolTip.background": "#2E3440", + "toolTip.foreground": "#E5E9F0", + "toolTip.border": "#505050", + + "menu.background": "#2E3440", + "menu.foreground": "#E5E9F0", + "menu.border": "#505050", + + "contextMenu.background": "#3B4252", + "contextMenu.foreground": "#ABB2BF", + "contextMenu.border": "#505050", + "contextMenu.highlight": "#3F4652", + + "sidebar.background": "#3B4252", + "sidebar.foreground": "#ABB2BF", + "sidebar.active.background": "#282C34", + "sidebar.selection.border": "#61afef", + + "statusBar.background": "#282828", + "statusBar.foreground": "#c8c8c8", + + "highlight.mode.insert.background": "#98c379", + "highlight.mode.insert.foreground": "#282c34", + + "highlight.mode.normal.background": "#61afef", + "highlight.mode.normal.foreground": "#282c34", + + "highlight.mode.operator.background": "#d19a66", + "highlight.mode.operator.foreground": "#282c34", + + "highlight.mode.visual.background": "#56b6c2", + "highlight.mode.visual.foreground": "#282c34" + } +} diff --git a/colors/nord.vim b/colors/nord.vim new file mode 100644 index 0000000..0a51695 --- /dev/null +++ b/colors/nord.vim @@ -0,0 +1,524 @@ +" Copyright (c) 2016-2017 Arctic Ice Studio +" Copyright (c) 2016-2017 Sven Greb + +" Project: Nord Vim +" Repository: https://github.com/arcticicestudio/nord-vim +" License: MIT + +if version > 580 + hi clear + if exists("syntax_on") + syntax reset + endif +endif + +let g:colors_name = "nord" +let s:nord_vim_version="0.6.0" +set background=dark + +let s:nord0_gui = "#2E3440" +let s:nord1_gui = "#3B4252" +let s:nord2_gui = "#434C5E" +let s:nord3_gui = "#4C566A" +let s:nord4_gui = "#D8DEE9" +let s:nord5_gui = "#E5E9F0" +let s:nord6_gui = "#ECEFF4" +let s:nord7_gui = "#8FBCBB" +let s:nord8_gui = "#88C0D0" +let s:nord9_gui = "#81A1C1" +let s:nord10_gui = "#5E81AC" +let s:nord11_gui = "#BF616A" +let s:nord12_gui = "#D08770" +let s:nord13_gui = "#EBCB8B" +let s:nord14_gui = "#A3BE8C" +let s:nord15_gui = "#B48EAD" + +let s:nord1_term = "0" +let s:nord3_term = "8" +let s:nord5_term = "7" +let s:nord6_term = "15" +let s:nord7_term = "14" +let s:nord8_term = "6" +let s:nord9_term = "4" +let s:nord10_term = "12" +let s:nord11_term = "1" +let s:nord12_term = "11" +let s:nord13_term = "3" +let s:nord14_term = "2" +let s:nord15_term = "5" + +let s:nord3_gui_brightened = [ + \ s:nord3_gui, + \ "#4e586d", + \ "#505b70", + \ "#525d73", + \ "#556076", + \ "#576279", + \ "#59647c", + \ "#5b677f", + \ "#5d6982", + \ "#5f6c85", + \ "#616e88", + \ "#63718b", + \ "#66738e", + \ "#687591", + \ "#6a7894", + \ "#6d7a96", + \ "#6f7d98", + \ "#72809a", + \ "#75829c", + \ "#78859e", + \ "#7b88a1", +\ ] + +if !exists("g:nord_italic_comments") + let g:nord_italic_comments = 0 +endif + +if !exists('g:nord_uniform_status_lines') + let g:nord_uniform_status_lines = 0 +endif + +if !exists("g:nord_comment_brightness") + let g:nord_comment_brightness = 0 +endif + +if !exists("g:nord_uniform_diff_background") + let g:nord_uniform_diff_background = 0 +endif + +function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) + let l:attr = a:attr + if g:nord_italic_comments == 0 && l:attr ==? 'italic' + let l:attr= 'NONE' + endif + + if a:guifg != "" + exec "hi " . a:group . " guifg=" . a:guifg + endif + if a:guibg != "" + exec "hi " . a:group . " guibg=" . a:guibg + endif + if a:ctermfg != "" + exec "hi " . a:group . " ctermfg=" . a:ctermfg + endif + if a:ctermbg != "" + exec "hi " . a:group . " ctermbg=" . a:ctermbg + endif + if a:attr != "" + exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr + endif + if a:guisp != "" + exec "hi " . a:group . " guisp=" . a:guisp + endif +endfunction + +"+---------------+ +"+ UI Components + +"+---------------+ +"+--- Attributes ---+ +call s:hi("Bold", "", "", "", "", "bold", "") +call s:hi("Italic", "", "", "", "", "italic", "") +call s:hi("Underline", "", "", "", "", "underline", "") + +"+--- Editor ---+ +call s:hi("ColorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") +call s:hi("Cursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "") +call s:hi("CursorLine", "", s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("Error", s:nord0_gui, s:nord11_gui, "", s:nord11_term, "", "") +call s:hi("iCursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "") +call s:hi("LineNr", "#B0BEC5", s:nord0_gui, s:nord3_term, "NONE", "", "") +call s:hi("MatchParen", s:nord0_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "", "") +call s:hi("NonText", s:nord2_gui, "", s:nord3_term, "", "", "") +call s:hi("Normal", s:nord4_gui, s:nord0_gui, "NONE", "NONE", "", "") +call s:hi("PMenu", s:nord4_gui, s:nord2_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("PmenuSbar", s:nord4_gui, s:nord2_gui, "NONE", s:nord1_term, "", "") +call s:hi("PMenuSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "") +call s:hi("PmenuThumb", s:nord8_gui, s:nord3_gui, "NONE", s:nord3_term, "", "") +call s:hi("SpecialKey", s:nord3_gui, "", s:nord3_term, "", "", "") +call s:hi("SpellBad", "", s:nord0_gui, "", "NONE", "undercurl", s:nord11_gui) +call s:hi("SpellCap", "", s:nord0_gui, "", "NONE", "undercurl", s:nord13_gui) +call s:hi("SpellLocal", "", s:nord0_gui, "", "NONE", "undercurl", s:nord5_gui) +call s:hi("SpellRare", "", s:nord0_gui, "", "NONE", "undercurl", s:nord6_gui) +call s:hi("Visual", "", s:nord2_gui, "", s:nord1_term, "", "") +call s:hi("VisualNOS", "", s:nord2_gui, "", s:nord1_term, "", "") +"+- Neovim Support -+ +call s:hi("healthError", s:nord11_gui, s:nord1_gui, s:nord11_term, s:nord1_term, "", "") +call s:hi("healthSuccess", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_term, "", "") +call s:hi("healthWarning", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") + +"+- Neovim Terminal Colors -+ +if has('nvim') + let g:terminal_color_0 = s:nord1_gui + let g:terminal_color_1 = s:nord11_gui + let g:terminal_color_2 = s:nord14_gui + let g:terminal_color_3 = s:nord13_gui + let g:terminal_color_4 = s:nord9_gui + let g:terminal_color_5 = s:nord15_gui + let g:terminal_color_6 = s:nord8_gui + let g:terminal_color_7 = s:nord5_gui + let g:terminal_color_8 = s:nord3_gui + let g:terminal_color_9 = s:nord11_gui + let g:terminal_color_10 = s:nord14_gui + let g:terminal_color_11 = s:nord13_gui + let g:terminal_color_12 = s:nord9_gui + let g:terminal_color_13 = s:nord15_gui + let g:terminal_color_14 = s:nord7_gui + let g:terminal_color_15 = s:nord6_gui +endif + +"+--- Gutter ---+ +call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") +call s:hi("CursorLineNr", "#64FFDA", s:nord0_gui, "NONE", "", "", "") +call s:hi("Folded", s:nord3_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "bold", "") +call s:hi("FoldColumn", s:nord3_gui, s:nord0_gui, s:nord3_term, "NONE", "", "") +call s:hi("SignColumn", s:nord1_gui, s:nord0_gui, s:nord1_term, "NONE", "", "") + +"+--- Navigation ---+ +call s:hi("Directory", s:nord8_gui, "", s:nord8_term, "NONE", "", "") + +"+--- Prompt/Status ---+ +call s:hi("EndOfBuffer", s:nord1_gui, "", s:nord1_term, "NONE", "", "") +call s:hi("ErrorMsg", s:nord4_gui, s:nord11_gui, "NONE", s:nord11_term, "", "") +call s:hi("ModeMsg", s:nord4_gui, "", "", "", "", "") +call s:hi("MoreMsg", s:nord4_gui, "", "", "", "", "") +call s:hi("Question", s:nord4_gui, "", "NONE", "", "", "") +if g:nord_uniform_status_lines == 0 + call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") + call s:hi("StatusLineNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +else + call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") + call s:hi("StatusLineNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "") +endif +call s:hi("WarningMsg", s:nord0_gui, s:nord13_gui, s:nord1_term, s:nord13_term, "", "") +call s:hi("WildMenu", s:nord8_gui, s:nord1_gui, s:nord8_term, s:nord1_term, "", "") + +"+--- Search ---+ +call s:hi("IncSearch", s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "underline", "") +call s:hi("Search", s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "NONE", "") + +"+--- Tabs ---+ +call s:hi("TabLine", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("TabLineFill", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") +call s:hi("TabLineSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") + +"+--- Window ---+ +call s:hi("Title", s:nord4_gui, "", "NONE", "", "NONE", "") +call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NONE", "") + +"+----------------------+ +"+ Language Base Groups + +"+----------------------+ +call s:hi("Boolean", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Character", s:nord14_gui, "", s:nord14_term, "", "", "") +call s:hi("Comment", s:nord3_gui_brightened[g:nord_comment_brightness], "", s:nord3_term, "", "italic", "") +call s:hi("Conditional", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Constant", s:nord4_gui, "", "NONE", "", "", "") +call s:hi("Define", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Delimiter", s:nord6_gui, "", s:nord6_term, "", "", "") +call s:hi("Exception", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Float", s:nord15_gui, "", s:nord15_term, "", "", "") +call s:hi("Function", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("Identifier", s:nord4_gui, "", "NONE", "", "NONE", "") +call s:hi("Include", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Keyword", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Label", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Number", s:nord15_gui, "", s:nord15_term, "", "", "") +call s:hi("Operator", s:nord9_gui, "", s:nord9_term, "", "NONE", "") +call s:hi("PreProc", s:nord9_gui, "", s:nord9_term, "", "NONE", "") +call s:hi("Repeat", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Special", s:nord4_gui, "", "NONE", "", "", "") +call s:hi("SpecialChar", s:nord13_gui, "", s:nord13_term, "", "", "") +call s:hi("SpecialComment", s:nord8_gui, "", s:nord8_term, "", "italic", "") +call s:hi("Statement", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("StorageClass", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("String", s:nord14_gui, "", s:nord14_term, "", "", "") +call s:hi("Structure", s:nord9_gui, "", s:nord9_term, "", "", "") +call s:hi("Tag", s:nord4_gui, "", "", "", "", "") +call s:hi("Todo", s:nord13_gui, "NONE", s:nord13_term, "NONE", "", "") +call s:hi("Type", s:nord9_gui, "", s:nord9_term, "", "NONE", "") +call s:hi("Typedef", s:nord9_gui, "", s:nord9_term, "", "", "") +hi! link Macro Define +hi! link PreCondit PreProc + +"+-----------+ +"+ Languages + +"+-----------+ +call s:hi("awkCharClass", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("awkPatterns", s:nord9_gui, "", s:nord9_term, "", "bold", "") +hi! link awkArrayElement Identifier +hi! link awkBoolLogic Keyword +hi! link awkBrktRegExp SpecialChar +hi! link awkComma Delimiter +hi! link awkExpression Keyword +hi! link awkFieldVars Identifier +hi! link awkLineSkip Keyword +hi! link awkOperator Operator +hi! link awkRegExp SpecialChar +hi! link awkSearch Keyword +hi! link awkSemicolon Delimiter +hi! link awkSpecialCharacter SpecialChar +hi! link awkSpecialPrintf SpecialChar +hi! link awkVariables Identifier + +call s:hi("cIncluded", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link cOperator Operator +hi! link cPreCondit PreCondit + +hi! link csPreCondit PreCondit +hi! link csType Type +hi! link csXmlTag SpecialComment + +call s:hi("cssAttributeSelector", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("cssDefinition", s:nord7_gui, "", s:nord7_term, "", "NONE", "") +call s:hi("cssIdentifier", s:nord7_gui, "", s:nord7_term, "", "underline", "") +call s:hi("cssStringQ", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link cssAttr Keyword +hi! link cssBraces Delimiter +hi! link cssClassName cssDefinition +hi! link cssColor Number +hi! link cssProp cssDefinition +hi! link cssPseudoClass cssDefinition +hi! link cssPseudoClassId cssPseudoClass +hi! link cssVendor Keyword + +call s:hi("dosiniHeader", s:nord8_gui, "", s:nord8_term, "", "", "") +hi! link dosiniLabel Type + +call s:hi("dtBooleanKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtExecKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtLocaleKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtNumericKey", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("dtTypeKey", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link dtDelim Delimiter +hi! link dtLocaleValue Keyword +hi! link dtTypeValue Keyword + +if g:nord_uniform_diff_background == 0 + call s:hi("DiffAdd", s:nord14_gui, s:nord0_gui, s:nord14_term, "NONE", "inverse", "") + call s:hi("DiffChange", s:nord13_gui, s:nord0_gui, s:nord13_term, "NONE", "inverse", "") + call s:hi("DiffDelete", s:nord11_gui, s:nord0_gui, s:nord11_term, "NONE", "inverse", "") + call s:hi("DiffText", s:nord13_gui, s:nord0_gui, s:nord13_term, "NONE", "inverse", "") +else + call s:hi("DiffAdd", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_term, "", "") + call s:hi("DiffChange", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") + call s:hi("DiffDelete", s:nord11_gui, s:nord1_gui, s:nord11_term, s:nord1_term, "", "") + call s:hi("DiffText", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") +endif +" Legacy groups for official git.vim and diff.vim syntax +hi! link diffAdded DiffAdd +hi! link diffChanged DiffChange +hi! link diffRemoved DiffDelete + +call s:hi("gitconfigVariable", s:nord7_gui, "", s:nord7_term, "", "", "") + +call s:hi("goBuiltins", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link goConstants Keyword + +call s:hi("htmlArg", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("htmlLink", s:nord4_gui, "", "", "", "NONE", "NONE") +hi! link htmlBold Bold +hi! link htmlEndTag htmlTag +hi! link htmlItalic Italic +hi! link htmlH1 markdownH1 +hi! link htmlH2 markdownH1 +hi! link htmlH3 markdownH1 +hi! link htmlH4 markdownH1 +hi! link htmlH5 markdownH1 +hi! link htmlH6 markdownH1 +hi! link htmlSpecialChar SpecialChar +hi! link htmlTag Keyword +hi! link htmlTagN htmlTag + +call s:hi("javaDocTags", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link javaCommentTitle Comment +hi! link javaScriptBraces Delimiter +hi! link javaScriptIdentifier Keyword +hi! link javaScriptNumber Number + +call s:hi("jsonKeyword", s:nord7_gui, "", s:nord7_term, "", "", "") + +call s:hi("lessClass", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link lessAmpersand Keyword +hi! link lessCssAttribute Delimiter +hi! link lessFunction Function +hi! link cssSelectorOp Keyword + +hi! link lispAtomBarSymbol SpecialChar +hi! link lispAtomList SpecialChar +hi! link lispAtomMark Keyword +hi! link lispBarSymbol SpecialChar +hi! link lispFunc Function + +hi! link luaFunc Function + +call s:hi("markdownBlockquote", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownCode", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownCodeDelimiter", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownFootnote", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownId", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownIdDeclaration", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("markdownH1", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("markdownLinkText", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("markdownUrl", s:nord4_gui, "", "NONE", "", "NONE", "") +hi! link markdownFootnoteDefinition markdownFootnote +hi! link markdownH2 markdownH1 +hi! link markdownH3 markdownH1 +hi! link markdownH4 markdownH1 +hi! link markdownH5 markdownH1 +hi! link markdownH6 markdownH1 +hi! link markdownIdDelimiter Keyword +hi! link markdownLinkDelimiter Keyword +hi! link markdownLinkTextDelimiter Keyword +hi! link markdownListMarker Keyword +hi! link markdownRule Keyword +hi! link markdownHeadingDelimiter Keyword + +call s:hi("perlPackageDecl", s:nord7_gui, "", s:nord7_term, "", "", "") + +call s:hi("phpClasses", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("phpDocTags", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link phpDocCustomTags phpDocTags +hi! link phpMemberSelector Keyword + +call s:hi("podCmdText", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("podVerbatimLine", s:nord4_gui, "", "NONE", "", "", "") +hi! link podFormat Keyword + +hi! link pythonBuiltin Type +hi! link pythonEscape SpecialChar + +call s:hi("rubyConstant", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("rubySymbol", s:nord6_gui, "", s:nord6_term, "", "bold", "") +hi! link rubyAttribute Identifier +hi! link rubyBlockParameterList Operator +hi! link rubyInterpolationDelimiter Keyword +hi! link rubyKeywordAsMethod Function +hi! link rubyLocalVariableOrMethod Function +hi! link rubyPseudoVariable Keyword +hi! link rubyRegexp SpecialChar + +call s:hi("sassClass", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("sassId", s:nord7_gui, "", s:nord7_term, "", "underline", "") +hi! link sassAmpersand Keyword +hi! link sassClassChar Delimiter +hi! link sassControl Keyword +hi! link sassControlLine Keyword +hi! link sassExtend Keyword +hi! link sassFor Keyword +hi! link sassFunctionDecl Keyword +hi! link sassFunctionName Function +hi! link sassidChar sassId +hi! link sassInclude SpecialChar +hi! link sassMixinName Function +hi! link sassMixing SpecialChar +hi! link sassReturn Keyword + +hi! link shCmdParenRegion Delimiter +hi! link shCmdSubRegion Delimiter +hi! link shDerefSimple Identifier +hi! link shDerefVar Identifier + +hi! link sqlKeyword Keyword +hi! link sqlSpecial Keyword + +call s:hi("vimAugroup", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("vimMapRhs", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("vimNotation", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link vimFunc Function +hi! link vimFunction Function +hi! link vimUserFunc Function + +call s:hi("xmlAttrib", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("xmlCdataStart", s:nord3_gui, "", s:nord3_term, "", "bold", "") +call s:hi("xmlNamespace", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link xmlAttribPunct Delimiter +hi! link xmlCdata Comment +hi! link xmlCdataCdata xmlCdataStart +hi! link xmlCdataEnd xmlCdataStart +hi! link xmlEndTag xmlTagName +hi! link xmlProcessingDelim Keyword +hi! link xmlTagName Keyword + +call s:hi("yamlBlockMappingKey", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link yamlBool Keyword +hi! link yamlDocumentStart Keyword + +"+----------------+ +"+ Plugin Support + +"+----------------+ +"+--- UI ---+ +" ALE +" > w0rp/ale +call s:hi("ALEWarningSign", s:nord13_gui, "", s:nord13_term, "", "", "") +call s:hi("ALEErrorSign" , s:nord11_gui, "", s:nord11_term, "", "", "") + +" GitGutter +" > airblade/vim-gitgutter +call s:hi("GitGutterAdd", s:nord14_gui, "", s:nord14_term, "", "", "") +call s:hi("GitGutterChange", s:nord13_gui, "", s:nord13_term, "", "", "") +call s:hi("GitGutterChangeDelete", s:nord11_gui, "", s:nord11_term, "", "", "") +call s:hi("GitGutterDelete", s:nord11_gui, "", s:nord11_term, "", "", "") + +" fugitive.vim +" > tpope/vim-fugitive +call s:hi("gitcommitDiscardedFile", s:nord11_gui, "", s:nord11_term, "", "", "") +call s:hi("gitcommitUntrackedFile", s:nord11_gui, "", s:nord11_term, "", "", "") +call s:hi("gitcommitSelectedFile", s:nord14_gui, "", s:nord14_term, "", "", "") + +" davidhalter/jedi-vim +call s:hi("jediFunction", s:nord4_gui, s:nord3_gui, "", s:nord3_term, "", "") +call s:hi("jediFat", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "bold,underline", "") + +" NERDTree +" > scrooloose/nerdtree +call s:hi("NERDTreeExecFile", s:nord7_gui, "", s:nord7_term, "", "", "") +hi! link NERDTreeDirSlash Keyword +hi! link NERDTreeHelp Comment + +" CtrlP +" > ctrlpvim/ctrlp.vim +hi! link CtrlPMatch Keyword +hi! link CtrlPBufferHid Normal + +" vim-plug +" > junegunn/vim-plug +call s:hi("plugDeleted", s:nord11_gui, "", "", s:nord11_term, "", "") + +"+--- Languages ---+ +" JavaScript +" > pangloss/vim-javascript +call s:hi("jsGlobalNodeObjects", s:nord8_gui, "", s:nord8_term, "", "italic", "") +hi! link jsBrackets Delimiter +hi! link jsFuncCall Function +hi! link jsFuncParens Delimiter +hi! link jsNoise Delimiter +hi! link jsPrototype Keyword +hi! link jsRegexpString SpecialChar + +" Markdown +" > plasticboy/vim-markdown +call s:hi("mkdCode", s:nord7_gui, "", s:nord7_term, "", "", "") +call s:hi("mkdFootnote", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("mkdRule", s:nord10_gui, "", s:nord10_term, "", "", "") +call s:hi("mkdLineBreak", s:nord9_gui, "", s:nord9_term, "", "", "") +hi! link mkdBold Bold +hi! link mkdItalic Italic +hi! link mkdString Keyword +hi! link mkdCodeStart mkdCode +hi! link mkdCodeEnd mkdCode +hi! link mkdBlockquote Comment +hi! link mkdListItem Keyword +hi! link mkdListItemLine Normal +hi! link mkdFootnotes mkdFootnote +hi! link mkdLink markdownLinkText +hi! link mkdURL markdownUrl +hi! link mkdInlineURL mkdURL +hi! link mkdID Identifier "CHECK +hi! link mkdLinkDef mkdLink +hi! link mkdLinkDefTarget mkdURL +hi! link mkdLinkTitle mkdInlineURL +hi! link mkdDelimiter Keyword + +set number +set relativenumber diff --git a/colors/snow.vim b/colors/snow.vim new file mode 100644 index 0000000..83b3155 --- /dev/null +++ b/colors/snow.vim @@ -0,0 +1,430 @@ +" Name: snow +" Author: nightsense +" Maintainer: nightsense +" License: MIT + +if !(has('termguicolors') && &termguicolors) && !has('gui_running') + \ && (!exists('&t_Co') || &t_Co < 256) + echoerr '[snow] There are not enough colors.' + finish +endif + +hi clear +if exists('syntax_on') + syntax reset +endif + +let g:colors_name = 'snow' + +if &background ==# 'dark' + hi Bold ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold + hi Conceal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Directory ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold + hi EndOfBuffer ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Ignore ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Italic ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,italic gui=NONE,italic + hi ModeMsg ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi MoreMsg ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Question ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi NonText ctermfg=241 ctermbg=NONE guifg=#666666 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Normal ctermfg=251 ctermbg=236 guifg=#c2cfe2 guibg=#28313d guisp=NONE cterm=NONE gui=NONE + hi Terminal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Title ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold + hi Underlined ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,underline gui=NONE,underline + hi Comment ctermfg=67 ctermbg=NONE guifg=#8797af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi CursorLineNr ctermfg=86 ctermbg=NONE guifg=#64ffda guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi LineNr ctermfg=67 ctermbg=NONE guifg=#8797af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi FoldColumn ctermfg=250 ctermbg=NONE guifg=#b2bfd2 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi PmenuSel ctermfg=250 ctermbg=236 guifg=#b2bfd2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi SignColumn ctermfg=250 ctermbg=NONE guifg=#b2bfd2 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi StatusLine ctermfg=250 ctermbg=236 guifg=#b2bfd2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi StatusLineTerm ctermfg=250 ctermbg=236 guifg=#b2bfd2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi TabLineSel ctermfg=250 ctermbg=236 guifg=#b2bfd2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi VisualNOS ctermfg=67 ctermbg=236 guifg=#8797af guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Cursor ctermfg=254 ctermbg=236 guifg=#e2e8f2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi IncSearch ctermfg=254 ctermbg=236 guifg=#e2e8f2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi ColorColumn ctermfg=NONE ctermbg=237 guifg=NONE guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi CursorColumn ctermfg=NONE ctermbg=237 guifg=NONE guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi CursorLine ctermfg=NONE ctermbg=237 guifg=NONE guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi DiffChange ctermfg=NONE ctermbg=237 guifg=NONE guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi Folded ctermfg=NONE ctermbg=237 guifg=NONE guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi MatchParen ctermfg=254 ctermbg=24 guifg=#e2e8f2 guibg=#48586d guisp=NONE cterm=NONE gui=NONE + hi Pmenu ctermfg=250 ctermbg=237 guifg=#b2bfd2 guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi QuickFixLine ctermfg=NONE ctermbg=237 guifg=NONE guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi StatusLineNC ctermfg=250 ctermbg=237 guifg=#b2bfd2 guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi StatusLineTermNC ctermfg=250 ctermbg=237 guifg=#b2bfd2 guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi TabLine ctermfg=250 ctermbg=237 guifg=#b2bfd2 guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi ToolbarButton ctermfg=250 ctermbg=237 guifg=#b2bfd2 guibg=#313d4c guisp=NONE cterm=NONE,bold gui=NONE,bold + hi WildMenu ctermfg=250 ctermbg=237 guifg=#b2bfd2 guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi PmenuSbar ctermfg=24 ctermbg=24 guifg=#48586d guibg=#48586d guisp=NONE cterm=NONE gui=NONE + hi PmenuThumb ctermfg=250 ctermbg=250 guifg=#b2bfd2 guibg=#b2bfd2 guisp=NONE cterm=NONE gui=NONE + hi TabLineFill ctermfg=237 ctermbg=237 guifg=#313d4c guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi ToolbarLine ctermfg=237 ctermbg=237 guifg=#313d4c guibg=#313d4c guisp=NONE cterm=NONE gui=NONE + hi VertSplit ctermfg=24 ctermbg=24 guifg=#48586d guibg=#48586d guisp=NONE cterm=NONE gui=NONE + hi SpellBad ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#ff707e cterm=NONE,underline gui=NONE,undercurl + hi SpellCap ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#00b4ff cterm=NONE,underline gui=NONE,undercurl + hi SpellLocal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#00c8d9 cterm=NONE,underline gui=NONE,undercurl + hi SpellRare ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#ee81f9 cterm=NONE,underline gui=NONE,undercurl + hi StorageClass ctermfg=176 ctermbg=NONE guifg=#bd84c2 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Structure ctermfg=176 ctermbg=NONE guifg=#bd84c2 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Type ctermfg=176 ctermbg=NONE guifg=#bd84c2 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Typedef ctermfg=176 ctermbg=NONE guifg=#bd84c2 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi TooLong ctermfg=176 ctermbg=236 guifg=#bd84c2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi WarningMsg ctermfg=176 ctermbg=236 guifg=#bd84c2 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Function ctermfg=174 ctermbg=NONE guifg=#d77f81 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Identifier ctermfg=174 ctermbg=NONE guifg=#d77f81 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi DiffDelete ctermfg=174 ctermbg=236 guifg=#d77f81 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi DiffRemoved ctermfg=174 ctermbg=236 guifg=#d77f81 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Error ctermfg=174 ctermbg=236 guifg=#d77f81 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi ErrorMsg ctermfg=174 ctermbg=236 guifg=#d77f81 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Debug ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Delimiter ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Special ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi SpecialChar ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi SpecialComment ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi SpecialKey ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Tag ctermfg=137 ctermbg=NONE guifg=#b19454 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi DiffChanged ctermfg=137 ctermbg=236 guifg=#b19454 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi DiffText ctermfg=137 ctermbg=236 guifg=#b19454 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Search ctermfg=94 ctermbg=254 guifg=#867040 guibg=#e2e8f2 guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Conditional ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Exception ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Keyword ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Label ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Operator ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Repeat ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Statement ctermfg=71 ctermbg=NONE guifg=#67a66c guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi DiffAdd ctermfg=71 ctermbg=236 guifg=#67a66c guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi DiffAdded ctermfg=71 ctermbg=236 guifg=#67a66c guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Define ctermfg=37 ctermbg=NONE guifg=#00a8af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Include ctermfg=37 ctermbg=NONE guifg=#00a8af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Macro ctermfg=37 ctermbg=NONE guifg=#00a8af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi PreCondit ctermfg=37 ctermbg=NONE guifg=#00a8af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi PreProc ctermfg=37 ctermbg=NONE guifg=#00a8af guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Todo ctermfg=37 ctermbg=236 guifg=#00a8af guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + hi Boolean ctermfg=75 ctermbg=NONE guifg=#649bd9 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Character ctermfg=75 ctermbg=NONE guifg=#649bd9 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Constant ctermfg=75 ctermbg=NONE guifg=#649bd9 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Float ctermfg=75 ctermbg=NONE guifg=#649bd9 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Number ctermfg=75 ctermbg=NONE guifg=#649bd9 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi String ctermfg=75 ctermbg=NONE guifg=#649bd9 guibg=NONE guisp=NONE cterm=NONE gui=NONE + hi Visual ctermfg=75 ctermbg=236 guifg=#649bd9 guibg=#28313d guisp=NONE cterm=NONE,reverse gui=NONE,reverse + finish +endif + +hi Bold ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold +hi Conceal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Directory ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold +hi EndOfBuffer ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Ignore ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Italic ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,italic gui=NONE,italic +hi ModeMsg ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi MoreMsg ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Question ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi NonText ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Normal ctermfg=24 ctermbg=231 guifg=#48586d guibg=#f9fbff guisp=NONE cterm=NONE gui=NONE +hi Terminal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Title ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold +hi Underlined ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,underline gui=NONE,underline +hi Comment ctermfg=67 ctermbg=NONE guifg=#65758c guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi CursorLineNr ctermfg=86 ctermbg=NONE guifg=#64ffda guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi LineNr ctermfg=67 ctermbg=NONE guifg=#65758c guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi FoldColumn ctermfg=24 ctermbg=NONE guifg=#48586d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi PmenuSel ctermfg=24 ctermbg=231 guifg=#48586d guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi SignColumn ctermfg=24 ctermbg=NONE guifg=#48586d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi StatusLine ctermfg=24 ctermbg=231 guifg=#48586d guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi StatusLineTerm ctermfg=24 ctermbg=231 guifg=#48586d guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi TabLineSel ctermfg=24 ctermbg=231 guifg=#48586d guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi VisualNOS ctermfg=67 ctermbg=231 guifg=#65758c guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Cursor ctermfg=237 ctermbg=231 guifg=#313d4c guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi IncSearch ctermfg=237 ctermbg=231 guifg=#313d4c guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi ColorColumn ctermfg=NONE ctermbg=254 guifg=NONE guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi CursorColumn ctermfg=NONE ctermbg=254 guifg=NONE guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi CursorLine ctermfg=NONE ctermbg=254 guifg=NONE guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi DiffChange ctermfg=NONE ctermbg=254 guifg=NONE guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi Folded ctermfg=NONE ctermbg=254 guifg=NONE guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi MatchParen ctermfg=237 ctermbg=250 guifg=#313d4c guibg=#b2bfd2 guisp=NONE cterm=NONE gui=NONE +hi Pmenu ctermfg=24 ctermbg=254 guifg=#48586d guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi QuickFixLine ctermfg=NONE ctermbg=254 guifg=NONE guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi StatusLineNC ctermfg=24 ctermbg=254 guifg=#48586d guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi StatusLineTermNC ctermfg=24 ctermbg=254 guifg=#48586d guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi TabLine ctermfg=24 ctermbg=254 guifg=#48586d guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi ToolbarButton ctermfg=24 ctermbg=254 guifg=#48586d guibg=#e2e8f2 guisp=NONE cterm=NONE,bold gui=NONE,bold +hi WildMenu ctermfg=24 ctermbg=254 guifg=#48586d guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi PmenuSbar ctermfg=250 ctermbg=250 guifg=#b2bfd2 guibg=#b2bfd2 guisp=NONE cterm=NONE gui=NONE +hi PmenuThumb ctermfg=24 ctermbg=24 guifg=#48586d guibg=#48586d guisp=NONE cterm=NONE gui=NONE +hi TabLineFill ctermfg=254 ctermbg=254 guifg=#e2e8f2 guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi ToolbarLine ctermfg=254 ctermbg=254 guifg=#e2e8f2 guibg=#e2e8f2 guisp=NONE cterm=NONE gui=NONE +hi VertSplit ctermfg=250 ctermbg=250 guifg=#b2bfd2 guibg=#b2bfd2 guisp=NONE cterm=NONE gui=NONE +hi SpellBad ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#f7003c cterm=NONE,underline gui=NONE,undercurl +hi SpellCap ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#0082ff cterm=NONE,underline gui=NONE,undercurl +hi SpellLocal ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#0093b3 cterm=NONE,underline gui=NONE,undercurl +hi SpellRare ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=#c709dd cterm=NONE,underline gui=NONE,undercurl +hi StorageClass ctermfg=133 ctermbg=NONE guifg=#aa4eb4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Structure ctermfg=133 ctermbg=NONE guifg=#aa4eb4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Type ctermfg=133 ctermbg=NONE guifg=#aa4eb4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Typedef ctermfg=133 ctermbg=NONE guifg=#aa4eb4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi TooLong ctermfg=133 ctermbg=231 guifg=#aa4eb4 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi WarningMsg ctermfg=133 ctermbg=231 guifg=#aa4eb4 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Function ctermfg=167 ctermbg=NONE guifg=#ce4152 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Identifier ctermfg=167 ctermbg=NONE guifg=#ce4152 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi DiffDelete ctermfg=167 ctermbg=231 guifg=#ce4152 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi DiffRemoved ctermfg=167 ctermbg=231 guifg=#ce4152 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Error ctermfg=167 ctermbg=231 guifg=#ce4152 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi ErrorMsg ctermfg=167 ctermbg=231 guifg=#ce4152 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Debug ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Delimiter ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Special ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi SpecialChar ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi SpecialComment ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi SpecialKey ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Tag ctermfg=94 ctermbg=NONE guifg=#926e00 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi DiffChanged ctermfg=94 ctermbg=231 guifg=#926e00 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi DiffText ctermfg=94 ctermbg=231 guifg=#926e00 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Search ctermfg=220 ctermbg=237 guifg=#ffd506 guibg=#313d4c guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Conditional ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Exception ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Keyword ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Label ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Operator ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Repeat ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Statement ctermfg=28 ctermbg=NONE guifg=#00872d guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi DiffAdd ctermfg=28 ctermbg=231 guifg=#00872d guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi DiffAdded ctermfg=28 ctermbg=231 guifg=#00872d guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Define ctermfg=30 ctermbg=NONE guifg=#00808f guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Include ctermfg=30 ctermbg=NONE guifg=#00808f guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Macro ctermfg=30 ctermbg=NONE guifg=#00808f guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi PreCondit ctermfg=30 ctermbg=NONE guifg=#00808f guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi PreProc ctermfg=30 ctermbg=NONE guifg=#00808f guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Todo ctermfg=30 ctermbg=231 guifg=#00808f guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +hi Boolean ctermfg=32 ctermbg=NONE guifg=#0075d4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Character ctermfg=32 ctermbg=NONE guifg=#0075d4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Constant ctermfg=32 ctermbg=NONE guifg=#0075d4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Float ctermfg=32 ctermbg=NONE guifg=#0075d4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Number ctermfg=32 ctermbg=NONE guifg=#0075d4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi String ctermfg=32 ctermbg=NONE guifg=#0075d4 guibg=NONE guisp=NONE cterm=NONE gui=NONE +hi Visual ctermfg=32 ctermbg=231 guifg=#0075d4 guibg=#f9fbff guisp=NONE cterm=NONE,reverse gui=NONE,reverse +finish + +" Background: light +" Color: gry0 #f9fbff ~ +" Color: gry1 #e2e8f2 ~ +" Color: gry2 #65758c ~ +" Color: gry3 #48586d ~ +" Color: gryc #313d4c ~ +" Color: srch #ffd506 ~ +" Color: grys #313d4c ~ +" Color: gryp #b2bfd2 ~ +" Color: sprd #f7003c ~ +" Color: spbl #0082ff ~ +" Color: spcy #0093b3 ~ +" Color: spmg #c709dd ~ +" Color: red_ #ce4152 ~ +" Color: gold #926e00 ~ +" Color: gren #00872d ~ +" Color: cyan #00808f ~ +" Color: blue #0075d4 ~ +" Color: mgnt #aa4eb4 ~ +" Bold none none bold +" Conceal none none +" Directory none none bold +" EndOfBuffer none none +" Ignore none none +" Italic none none italic +" ModeMsg none none +" MoreMsg none none +" Question none none +" NonText none none +" Normal gry3 gry0 +" Terminal none none +" Title none none bold +" Underlined none none underline +" Comment gry2 none +" CursorLineNr gry2 none +" LineNr gry2 none +" FoldColumn gry3 none +" PmenuSel gry3 gry0 reverse +" SignColumn gry3 none +" StatusLine gry3 gry0 reverse +" StatusLineTerm gry3 gry0 reverse +" TabLineSel gry3 gry0 reverse +" VisualNOS gry2 gry0 reverse +" Cursor gryc gry0 reverse +" IncSearch gryc gry0 reverse +" ColorColumn none gry1 +" CursorColumn none gry1 +" CursorLine none gry1 +" DiffChange none gry1 +" Folded none gry1 +" MatchParen gryc gryp +" Pmenu gry3 gry1 +" QuickFixLine none gry1 +" StatusLineNC gry3 gry1 +" StatusLineTermNC gry3 gry1 +" TabLine gry3 gry1 +" ToolbarButton gry3 gry1 bold +" WildMenu gry3 gry1 +" PmenuSbar gryp gryp +" PmenuThumb gry3 gry3 +" TabLineFill gry1 gry1 +" ToolbarLine gry1 gry1 +" VertSplit gryp gryp +" SpellBad none none g=undercurl s=sprd t=underline +" SpellCap none none g=undercurl s=spbl t=underline +" SpellLocal none none g=undercurl s=spcy t=underline +" SpellRare none none g=undercurl s=spmg t=underline +" StorageClass mgnt none +" Structure mgnt none +" Type mgnt none +" Typedef mgnt none +" TooLong mgnt gry0 reverse +" WarningMsg mgnt gry0 reverse +" Function red_ none +" Identifier red_ none +" DiffDelete red_ gry0 reverse +" DiffRemoved red_ gry0 reverse +" Error red_ gry0 reverse +" ErrorMsg red_ gry0 reverse +" Debug gold none +" Delimiter gold none +" Special gold none +" SpecialChar gold none +" SpecialComment gold none +" SpecialKey gold none +" Tag gold none +" DiffChanged gold gry0 reverse +" DiffText gold gry0 reverse +" Search srch grys reverse +" Conditional gren none +" Exception gren none +" Keyword gren none +" Label gren none +" Operator gren none +" Repeat gren none +" Statement gren none +" DiffAdd gren gry0 reverse +" DiffAdded gren gry0 reverse +" Define cyan none +" Include cyan none +" Macro cyan none +" PreCondit cyan none +" PreProc cyan none +" Todo cyan gry0 reverse +" Boolean blue none +" Character blue none +" Constant blue none +" Float blue none +" Number blue none +" String blue none +" Visual blue gry0 reverse +" Background: dark +" Color: gry0 #28313d ~ +" Color: gry1 #313d4c ~ +" Color: gry2 #8797af ~ +" Color: gry3 #b2bfd2 ~ +" Color: gryc #e2e8f2 ~ +" Color: srch #867040 ~ +" Color: grys #e2e8f2 ~ +" Color: gryp #48586d ~ +" Color: sprd #ff707e ~ +" Color: spbl #00b4ff ~ +" Color: spcy #00c8d9 ~ +" Color: spmg #ee81f9 ~ +" Color: red_ #d77f81 ~ +" Color: gold #b19454 ~ +" Color: gren #67a66c ~ +" Color: cyan #00a8af ~ +" Color: blue #649bd9 ~ +" Color: mgnt #bd84c2 ~ +" Bold none none bold +" Conceal none none +" Directory none none bold +" EndOfBuffer none none +" Ignore none none +" Italic none none italic +" ModeMsg none none +" MoreMsg none none +" Question none none +" NonText none none +" Normal gry3 gry0 +" Terminal none none +" Title none none bold +" Underlined none none underline +" Comment gry2 none +" CursorLineNr gry2 none +" LineNr gry2 none +" FoldColumn gry3 none +" PmenuSel gry3 gry0 reverse +" SignColumn gry3 none +" StatusLine gry3 gry0 reverse +" StatusLineTerm gry3 gry0 reverse +" TabLineSel gry3 gry0 reverse +" VisualNOS gry2 gry0 reverse +" Cursor gryc gry0 reverse +" IncSearch gryc gry0 reverse +" ColorColumn none gry1 +" CursorColumn none gry1 +" CursorLine none gry1 +" DiffChange none gry1 +" Folded none gry1 +" MatchParen gryc gryp +" Pmenu gry3 gry1 +" QuickFixLine none gry1 +" StatusLineNC gry3 gry1 +" StatusLineTermNC gry3 gry1 +" TabLine gry3 gry1 +" ToolbarButton gry3 gry1 bold +" WildMenu gry3 gry1 +" PmenuSbar gryp gryp +" PmenuThumb gry3 gry3 +" TabLineFill gry1 gry1 +" ToolbarLine gry1 gry1 +" VertSplit gryp gryp +" SpellBad none none g=undercurl s=sprd t=underline +" SpellCap none none g=undercurl s=spbl t=underline +" SpellLocal none none g=undercurl s=spcy t=underline +" SpellRare none none g=undercurl s=spmg t=underline +" StorageClass mgnt none +" Structure mgnt none +" Type mgnt none +" Typedef mgnt none +" TooLong mgnt gry0 reverse +" WarningMsg mgnt gry0 reverse +" Function red_ none +" Identifier red_ none +" DiffDelete red_ gry0 reverse +" DiffRemoved red_ gry0 reverse +" Error red_ gry0 reverse +" ErrorMsg red_ gry0 reverse +" Debug gold none +" Delimiter gold none +" Special gold none +" SpecialChar gold none +" SpecialComment gold none +" SpecialKey gold none +" Tag gold none +" DiffChanged gold gry0 reverse +" DiffText gold gry0 reverse +" Search srch grys reverse +" Conditional gren none +" Exception gren none +" Keyword gren none +" Label gren none +" Operator gren none +" Repeat gren none +" Statement gren none +" DiffAdd gren gry0 reverse +" DiffAdded gren gry0 reverse +" Define cyan none +" Include cyan none +" Macro cyan none +" PreCondit cyan none +" PreProc cyan none +" Todo cyan gry0 reverse +" Boolean blue none +" Character blue none +" Constant blue none +" Float blue none +" Number blue none +" String blue none +" Visual blue gry0 reverse diff --git a/ginit.vim b/ginit.vim new file mode 100644 index 0000000..3910db0 --- /dev/null +++ b/ginit.vim @@ -0,0 +1,9 @@ +set nocompatible + +if g:use_font==1 + set guifont=Hack:h14 + Guifont! Hack:h14 +else + set guifont=Consolas:h14 + Guifont! Consolas:h14 +endif diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..f1b6e49 --- /dev/null +++ b/init.vim @@ -0,0 +1,1133 @@ +set nocompatible + +runtime platform.vim + +if g:platform ==? "linux" + if g:platform ==? "termux" + set notermguicolors + endif + + autocmd VimLeave * set guicursor=a:ver35-blinkon0 + set guicursor= +else + set termguicolors +endif + +tnoremap + +set mouse=a + +let mapleader="-" +let maplocalleader="-" + +set wrap linebreak nolist +set breakindent +set breakindentopt=shift:4 + +set list +set listchars=trail:•,tab:•\ ,extends:⟩,precedes:⟨ +"set listchars=trail:· +set shortmess=a +set softtabstop=4 +set shiftwidth=4 +set expandtab +set smartindent +set autoindent +set diffopt=filler,vertical + +let g:use_javacomplete=0 + +let g:use_comfortable_motion=0 + +let g:use_python=1 +let g:use_async=1 +let g:use_airline=1 +let g:use_sound=0 + +if g:platform ==? "windows_portable" + let g:use_font = 0 +else + let g:use_font = 1 +endif + +let g:use_deoplete=1 +let g:use_pandoc_markdown=1 +let g:compile_on_save=0 +let g:open_pdf=0 +let g:pdf_viewer="sumatrapdf" +let g:pandoc_output="pandoc_output" +let g:pandoc_default="md-to-pdf" +let g:latexmk_use=1 +let g:latexmk_clean=1 +let g:latex_use_outdir=0 +let g:latex_outdir="output" + +let g:tex_indent_items=0 +let g:tex_items='' + +let g:manual_fold_autoload=1 + +let g:jobs=[] + +let g:http_server='' + + +if g:use_font == 1 + set showbreak=↳ +endif + +call plug#begin() +Plug 'scrooloose/nerdcommenter' +Plug 'shime/vim-livedown' + +if g:use_sound==1 + Plug 'https://github.com/timeyyy/orchestra.nvim.git' + Plug 'https://github.com/timeyyy/bubbletrouble.symphony.git' + Plug 'https://github.com/timeyyy/clackclack.symphony' +endif + +if g:use_airline==1 + Plug 'vim-airline/vim-airline' + Plug 'vim-airline/vim-airline-themes' +endif + +if g:use_deoplete==1 + if has('nvim') + Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } + else + Plug 'Shougo/deoplete.nvim' + Plug 'roxma/nvim-yarp' + Plug 'roxma/vim-hug-neovim-rpc' + endif +endif +"Plug 'thaerkh/vim-indentguides' + +Plug 'ap/vim-buftabline' + +if g:use_pandoc_markdown==1 + Plug 'vim-pandoc/vim-pandoc-syntax' +endif +Plug 'vim-pandoc/vim-pandoc' +Plug 'sheerun/vim-polyglot' +Plug 'scrooloose/nerdtree' +if g:use_python==1 + Plug 'dhruvasagar/vim-table-mode' +endif +if g:use_async==1 + Plug 'skywind3000/asyncrun.vim' +endif + +if g:use_javacomplete==1 + Plug 'artur-shaik/vim-javacomplete2' +endif + +Plug 'lervag/vimtex' +" Plug 'LaTeX-Box-Team/LaTeX-Box' +Plug 'tomtom/templator_vim' +"Plug 'xuhdev/vim-latex-live-preview' + +if g:use_comfortable_motion==1 + Plug 'yuttie/comfortable-motion.vim' +endif + +Plug 'ARM9/snes-syntax-vim' +Plug 'philj56/vim-asm-indent' + +Plug 'nathanaelkane/vim-indent-guides' +Plug 'thaerkh/vim-indentguides' + +" Colorschemes +"Plug 'haishanh/night-owl.vim' +"Plug 'BrainDeath0/Hypsteria' +"Plug 'sts10/vim-pink-moon' +Plug 'nightsense/snow' +"Plug 'edouardp/myob-colorscheme' +"Plug 'kaicataldo/material.vim' +"Plug 'phanviet/vim-monokai-pro' +"Plug 'aradunovic/perun.vim' +"Plug 'jacoborus/tender.vim' +"Plug 'mkarmona/materialbox' +"Plug 'ajmwagar/vim-deus' +"Plug 'rhysd/vim-color-spring-night' +"Plug 'nightsense/carbonized' +"Plug 'nightsense/forgotten' +"Plug 'nightsense/seagrey' +"Plug 'nightsense/vrunchbang' +"Plug 'mhartington/oceanic-next' +"Plug 'rakr/vim-two-firewatch' +"Plug 'zeis/vim-kolor' +"Plug 'sjl/badwolf' +"Plug 'tomasr/molokai' +"Plug 'fmoralesc/molokayo' +"Plug 'junegunn/seoul256.vim' +"Plug 'w0ng/vim-hybrid' +"Plug 'goatslacker/mango.vim' +"Plug 'dracula/vim', { 'as': 'dracula' } +"Plug 'morhetz/gruvbox' +"Plug 'ayu-theme/ayu-vim' +"Plug 'jnurmine/Zenburn' +"Plug 'nanotech/jellybeans.vim' +"Plug 'altercation/vim-colors-solarized' +"Plug 'lifepillar/vim-solarized8' +"Plug 'NLKNguyen/papercolor-theme' + +call plug#end() + +let g:indentguides_spacechar = '•' +let g:indentguides_tabchar = '|' +let g:indentguides_firstlevel = 1 + +"let g:indentguides_spacechar = '┆' +"let g:indentguides_tabchar = '|' +autocmd FileType make setlocal noexpandtab +autocmd FileType Makefile setlocal noexpandtab +autocmd FileType .html setlocal noexpandtab +autocmd FileType .css setlocal noexpandtab +autocmd FileType .php setlocal noexpandtab + +"let g:indent_guides_enable_on_vim_startup = 1 +"let g:indent_guides_start_level = 2 +"let g:indent_guides_guide_size = 1 + +"colorscheme badwolf +colorscheme snow + +"autocmd SwapExists * let v:swapchoice="o" +function! DeleteFileSwaps() + write + let l:output = '' + redir => l:output + silent exec ':sw' + redir END + let l:current_swap_file = substitute(l:output, '\n', '', '') + let l:base = substitute(l:current_swap_file, '\v\.\w+$', '', '') + let l:swap_files = split(glob(l:base.'\.s*')) + " delete all except the current swap file + for l:swap_file in l:swap_files + if !empty(glob(l:swap_file)) && l:swap_file != l:current_swap_file + call delete(l:swap_file) + echo "swap file removed: ".l:swap_file + endif + endfor + " Reset swap file extension to `.swp`. + set swf! | set swf! + echo "Reset swap file extension for file: ".expand('%') +endfunction +command! DeleteFileSwaps :call DeleteFileSwaps() + +command! W write + +nnoremap cd :lcd %:p:h + +tnoremap + +if g:use_comfortable_motion==1 + let g:comfortable_motion_no_default_key_mappings = 1 + let g:comfortable_motion_impulse_multiplier = 1 " Feel free to increase/decrease this value. + nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * 1) + nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * -1) + nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * 2) + nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * -2) +endif + +"set scrolloff=2 + +function! FullScreenToggle() + if g:GuiWindowFullScreen==1 + call GuiWindowFullScreen(0) + else + call GuiWindowFullScreen(1) + endif +endfunction + +function! MaximizedToggle() + if g:GuiWindowMaximized==1 + call GuiWindowMaximized(0) + else + call GuiWindowMaximized(1) + endif +endfunction + +nnoremap :call MaximizedToggle() +nnoremap :call FullScreenToggle() +nnoremap = + + +let $NVIM_TUI_ENABLE_TRUE_COLOR=1 + +"let g:LatexBox_latexmk_async=1 + +"let g:LatexBox_latexmk_options="-synctex=1 -shell-escape" + +"let g:LatexBox_quickfix=2 + +"let g:LatexBox_viewer="SumatraPDF -reuse-instance" + +let g:polyglot_disabled = ['latex'] + +let g:vimtex_compiler_latexmk = { + \ 'backend' : 'nvim', + \ 'background' : 1, + \ 'build_dir' : '', + \ 'callback' : 1, + \ 'continuous' : 0, + \ 'executable' : 'latexmk', + \ 'options' : [ + \ '-verbose', + \ '-file-line-error', + \ '-synctex=1', + \ '-interaction=nonstopmode', + \ '-shell-escape', + \ ], + \} + +"augroup vimtex_config +"au! +"au User VimtexEventQuit call vimtex#compiler#clean(0) +"augroup END +let g:vimtex_quickfix_mode = 1 +let g:vimtex_quickfix_open_on_warning = 0 +if g:platform ==? "windows" || g:platform ==? "windows_portable" + let g:vimtex_view_enabled = 1 + let g:vimtex_view_general_viewer = 'SumatraPDF' + let g:vimtex_view_general_options = '-reuse-instance -forward-search @tex @line @pdf' + let g:vimtex_view_general_options_latexmk = '-reuse-instance' +elseif g:platform ==? "termux" + let g:vimtex_view_enabled = 1 + let g:vimtex_view_general_viewer = 'termux-open' +else + let g:vimtex_view_enabled = 0 + let g:vimtex_view_general_viewer = '' +endif + +if g:use_pandoc_markdown + let g:pandoc#syntax#conceal#use = 0 + let g:pandoc#formatting#mode="sa" + let g:pandoc#formatting#smart_autoformat_on_cursormoved=1 +endif + +if g:use_javacomplete==1 + autocmd FileType java setlocal omnifunc=javacomplete#Complete +endif +if g:use_deoplete==1 + let g:deoplete#enable_at_startup = 1 +endif + +if g:use_python == 1 + let g:table_mode_corner_corner='+' + let g:table_mode_header_fillchar='=' +endif + +if g:use_airline==1 + " air-line + + let g:airline_powerline_fonts = 1 + if !exists('g:airline_symbols') + let g:airline_symbols = {} + if g:use_font==0 + let g:airline_left_sep = '' + let g:airline_right_sep = '' + let g:airline_symbols.linenr = '␊' + let g:airline_symbols.linenr = '␤' + let g:airline_symbols.linenr = '¶' + let g:airline_symbols.branch = '⎇' + let g:airline_symbols.paste = 'ρ' + let g:airline_symbols.paste = 'Þ' + let g:airline_symbols.paste = '∥' + let g:airline_symbols.whitespace = 'Ξ' + endif + endif + + "" unicode symbols + "let g:airline_left_sep = '»' + "let g:airline_left_sep = '▶' + "let g:airline_right_sep = '«' + "let g:airline_right_sep = '◀' + "let g:airline_symbols.linenr = '␊' + "let g:airline_symbols.linenr = '␤' + "let g:airline_symbols.linenr = '¶' + "let g:airline_symbols.branch = '⎇' + "let g:airline_symbols.paste = 'ρ' + "let g:airline_symbols.paste = 'Þ' + "let g:airline_symbols.paste = '∥' + "let g:airline_symbols.whitespace = 'Ξ' + "" airline symbols + "let g:airline_left_sep = '' + "let g:airline_left_alt_sep = '' + "let g:airline_right_sep = '' + "let g:airline_right_alt_sep = '' + "let g:airline_symbols.branch = '' + "let g:airline_symbols.readonly = '' + "let g:airline_symbols.linenr = '' + + "let g:airline_theme = "badwolf" + let g:airline_theme = "deus" +endif + +if g:use_sound==1 + call orchestra#prelude() + + call orchestra#set_tune('bubbletrouble') +endif + +let g:livedown_autorun = 0 + +let g:livedown_open = 1 + +let g:livedown_port = 1337 + +let g:livedown_browser = "firefox -P livedown" + +let g:confirm_new_file = 1 + +let g:wiki_history = {} + +"nmap Ox +"nmap ox +"inoremap `^ + +map n :NERDTreeToggle + +"nmap >> +"nmap << + +"vmap >> +"vmap << + +" nnoremap o o +" nnoremap O O + +nnoremap Q + +nmap m :LivedownToggle + +let g:data = [] +function! g:JobHandler(job_id, data, event) + if a:event == 'stdout' || a:event == 'stderr' + echom '>> ' . substitute(join(a:data), "\^M", "\r", "g") + else + echom 'Job ' . a:job_id . ' finished' + + let index = 0 + while index < len(g:jobs) + let item = g:jobs[index] + if item == a:job_id + call remove(g:jobs, index) + endif + let index = index + 1 + endwhile + + if string(a:data) != "0" + echoerr 'Program terminated with exit code ' . string(a:data) + endif + endif + + "call append(line('$'), str) +endfunction + +let g:callbacks = { + \ 'on_stdout': function('g:JobHandler'), + \ 'on_stderr': function('g:JobHandler'), + \ 'on_exit': function('g:JobHandler') + \ } + +let g:callbacks_no_out = { + \ 'on_exit': function('g:JobHandler') + \ } + +"function! Stdout(job_id, data, event) +"echom 'Job ' . a:job_id . ': >>' . join(a:data) +"" echom 'stdout: ' . a:data[0] +"endfunction + +" function! Stderr(job_id, data, event) +" echoerr 'Job ' . a:job_id . ': >>' . join(a:data) +" endfunction + +"function! PrintFinished(job_id, data, event) +"echom 'Job ' . a:job_id . ' finished with exit code: ' . string(a:data) +"endfunction + +function! OpenPdf() + if g:use_async==1 + let pdf_path = "" + + if g:latex_use_outdir==1 + let pdf_path = expand('%:r') . "_" . g:latex_outdir . "/" . expand('%:t:r') . ".pdf" + else + let pdf_path = expand('%:r') . ".pdf" + endif + + let pdf_job = jobstart(g:pdf_viewer . " " . pdf_path) + echom "Started PDF-Viewer with job_id " . pdf_job + "execute("AsyncRun " . g:pdf_viewer . " " . expand('%:r') . ".pdf") + let g:open_pdf=0 + else + execute("!" . g:pdf_viewer. " " . expand('%:r') . ".pdf") + endif +endfunction + +function! ConvertPandoc(attr) + let command = "" + if a:attr == "md-to-pdf" + let command = "pandoc -s " . @% . " --from=markdown+escaped_line_breaks -o " . expand('%:r') . ".pdf" + elseif a:attr == "md-html-to-pdf" + let command = "pandoc --katex --highlight-style=zenburn -t html5 --css=file:///D:/Pandoc/katex_style.css " . @% . " -o " . expand('%:r') . ".pdf" + elseif a:attr == "md-to-html" + let command = "pandoc " . @% . " -s --katex --css=file:///D:/Pandoc/katex_style.css -o " . expand('%:r') . ".html" + elseif a:attr == "latex-to-pdf" + let command = "pandoc " . @% . " -s -o " . expand('%:r') . ".pdf" + endif + + " if g:use_async==1 + " execute("AsyncRun " . command) + " else + "let g:pandoc#command#autoexec_command="call jobstart('pandoc -s " . @% . " --from=markdown -o " . expand('%:r') . ".pdf')" + if g:use_async==1 + " let g:current_job = jobstart('pandoc -s ' . expand('%') . ' --from=markdown -o ' . expand('%:r') . '.pdf', {'out_io': 'buffer', 'out_name': g:pandoc_output}) + " let g:current_job = jobstart(command, {'out_io': 'buffer', 'out_name': g:pandoc_output}) + " let g:current_job = jobstart(command, {'on_stdout': function('Stdout'), 'on_stderr': function('Stdout'), 'on_exit': function('PrintFinished')}) + " + if len(g:jobs) > 0 + let index = 0 + while index < len(g:jobs) + let item = g:jobs[index] + call jobstop(item) + let index = index + 1 + endwhile + endif + let current_job = jobstart(command, g:callbacks) + call insert(g:jobs, current_job) + echom 'Running ' . command . ' with Job-Nr. ' . current_job + else + execute("!" . command) + echom "Compilation finished" + endif + " endif + + if g:open_pdf==1 + call OpenPdf() normal + endif +endfunction + +function! g:ExitedWithCode(job_id, data, event) + echom "Job " . a:job_id . " exited with code: " . string(a:data) +endfunction + +function! ConvertPandocPdfLatexDebug() + let command = "pandoc " . @% . " -s -o " . expand('%:r') . ".tex" + + let output = "" + if g:latex_use_outdir==1 + let output = "-output-directory=" . expand('%:r') . "_" . g:latex_outdir + else + let output = "" + endif + + if g:latexmk_use==1 + let pdf_command = "latexmk -pdf -halt-on-error -shell-escape " . output . " " . expand('%:r') . ".tex" + else + let pdf_command = "pdflatex -shell-escape " . output . " " . expand('%:r') . ".tex" + endif + + execute("!" . command) + execute("!" . pdf_command) +endfunction + +function! ConvertPandocPdfLatex() + let command = "pandoc " . @% . " -s -o " . expand('%:r') . ".tex" + + let output = "" + if g:latex_use_outdir==1 + let output = "-output-directory=" . expand('%:r') . "_" . g:latex_outdir + else + let output = "" + endif + + if g:latexmk_use==1 + let pdf_command = "latexmk -pdf -halt-on-error -shell-escape " . output . " " . expand('%:r') . ".tex" + let pdf_cleanup = "latexmk -c " . output . " " . expand('%:r') . ".tex" + else + let pdf_command = "pdflatex -shell-escape " . output . " " . expand('%:r') . ".tex" + endif + + if g:use_async==1 + if len(g:jobs) > 0 + let index = 0 + while index < len(g:jobs) + let item = g:jobs[index] + call jobstop(item) + let index = index + 1 + endwhile + endif + + let current_job = jobstart(command, g:callbacks) + call insert(g:jobs, current_job) + echom 'Running ' . command . ' with Job-Nr. ' . current_job + + call jobwait([current_job], 30000) + + echom "Conversion from " . @% . " to " . expand('%:r') . ".tex finished" + + let current_job = jobstart(pdf_command, g:callbacks_no_out) + call insert(g:jobs, current_job) + echom 'Running ' . pdf_command . ' with Job-Nr. ' . current_job + + let result = jobwait([current_job], 120000) + + if result[0]==-1 + echom "Generation of " . expand('%:r') . ".pdf timed out" + elseif result[0]==-2 + echom "Generation of " . expand('%:r') . ".pdf terminated" + elseif result[0]==-3 + echom "INVALID JOB-ID: Generation of " . expand('%:r') . ".pdf terminated" + else + echom "Generation of " . expand('%:r') . ".pdf finished" + + if g:latexmk_use==1 + if g:latexmk_clean==1 + let current_job = jobstart(pdf_cleanup, g:callbacks) + call insert(g:jobs, current_job) + echom 'Running' . pdf_cleanup . ' with Job-Nr. ' . current_job + + call jobwait([current_job], 30000) + + echom "Cleaned up for " . expand('%:r') + endif + endif + endif + else + execute("!" . command) + echom "Conversion finished" + execute("!" . pdf_command) + echom "Compilation finished" + + if g:latexmk_use==1 + execute("!" . pdf_cleanup) + echom "Cleanup finished" + endif + endif +endfunction + +"nmap pm :execute "! pandoc " . @% . " --from=markdown -o " . expand('%:r') . ".pdf" +"nmap pM :execute "! pandoc --katex --highlight-style=zenburn -t html5 --css=file:///D:/Pandoc/katex_style.css " . @% . " -o " . expand('%:r') . ".pdf" +"nmap ph :execute "! pandoc " . @% . " -s --katex --css=file:///D:/Pandoc/katex_style.css -o " . expand('%:r') . ".html" +"nmap pl :execute "! pandoc " . @% . " -s -o " . expand('%:r') . ".pdf" +au BufNewFile,BufRead,BufEnter *.wiki setlocal spell spelllang=de_de +au BufNewFile,BufRead,BufEnter *.md setlocal spell spelllang=de_de +au BufNewFile,BufRead,BufEnter *.txt setlocal spell spelllang=de_de +au BufNewFile,BufRead,BufEnter README setlocal spell spelllang=en_us + +nmap pm :call ConvertPandoc("md-to-pdf") +nmap pM :call ConvertPandoc("md-html-to-pdf") +nmap ph :call ConvertPandoc("md-to-html") +nmap pl :call ConvertPandocPdfLatex() +nmap pd :call ConvertPandocPdfLatexDebug() +nmap pp :AsyncStop:call OpenPdf() +nmap po :AsyncStop:AsyncRunsumatrapdf + + +function! ConvertPdfLatexDebug() + if g:latexmk_use==1 + let pdf_command = "latexmk -pdf -halt-on-error -shell-escape " . output . " " . expand('%:r') . ".tex" + else + let pdf_command = "pdflatex -shell-escape " . output . " " . expand('%:r') . ".tex" + endif + + execute("!" . command) + execute("!" . pdf_command) +endfunction + +function! ConvertPdfLatex() + let pdf_command = "latexmk -pdf -halt-on-error -shell-escape " . expand('%:r') . ".tex" + let pdf_cleanup = "latexmk -c " . expand('%:r') . ".tex" + + if len(g:jobs) > 0 + let index = 0 + while index < len(g:jobs) + let item = g:jobs[index] + call jobstop(item) + let index = index + 1 + endwhile + endif + + let current_job = jobstart(pdf_command, g:callbacks_no_out) + call insert(g:jobs, current_job) + echom 'Running ' . pdf_command . ' with Job-Nr. ' . current_job + + let result = jobwait([current_job], 120000) + + if g:latexmk_clean==1 + let current_job = jobstart(pdf_cleanup, g:callbacks) + call insert(g:jobs, current_job) + echom 'Running' . pdf_cleanup . ' with Job-Nr. ' . current_job + + call jobwait([current_job], 30000) + + echom "Cleaned up for " . expand('%:r') + endif +endfunction + +function! CleanLatexDir(full) + if a:full==0 + let clean="c" + else + let clean="C" + endif + + let curr_dir = getcwd() + execute("cd " . expand('%:p:h')) + + "let pdf_cleanup = "latexmk -" . clean . " " . expand('%:r') . ".tex" + + let pdf_cleanup = "latexmk -" . clean + + execute("!" . pdf_cleanup) + execute("cd " . curr_dir) +endfunction + +"nnoremap ll :call ConvertPdfLatex() +"nnoremap lL :call ConvertPdfLatexDebug() +nnoremap lc :call CleanLatexDir(0) +nnoremap lC :call CleanLatexDir(1) +"nnoremap ll :call ConvertPdfLatex() +"nnoremap lL :call ConvertPdfLatexDebug() +"nnoremap lc :! latexmk -c +"nnoremap lC :! latexmk -C + +function! NewLatexTemplate() + let filename = input('Please specify the filename: ') + if filename!="" + let command = "Templator " . expand('%:p:h') . "/latex " . filename + echom command + execute(command) + endif +endfunction + +nnoremap ln :call NewLatexTemplate() +nnoremap pn :call NewLatexTemplate() + +function! ToggleCompileOnSave() + if g:compile_on_save == 1 + let g:compile_on_save=0 + echom "Compile on save is now turned OFF" + else + let g:compile_on_save=1 + echom "Compile on save is now turned ON" + endif +endfunction + +nmap pc :call ToggleCompileOnSave() + +function! ConvertPandocOnSave(args) + if g:compile_on_save == 1 + call ConvertPandoc(a:args) + execute "normal \" + endif +endfunction + +"autocmd FileType pandoc autocmd BufWritePost call ConvertPandoc(g:pandoc_default) | execute("normal \") +autocmd FileType pandoc silent autocmd BufWritePost silent! call ConvertPandocOnSave(g:pandoc_default) +" autocmd FileType tex silent autocmd BufWritePost silent! call ConvertPandoc("latex-to-pdf") + +function! AsciidoctorConvert() + execute("!asciidoctor " . expand('%')) +endfunction +function! AsciidoctorPdfConvert() + execute("!asciidoctor-pdf " . expand('%')) +endfunction +function! AsciidoctorEpubConvert() + execute("!asciidoctor-epub3 " . expand('%')) +endfunction + +nmap aa :call AsciidoctorConvert() +nmap ap :call AsciidoctorPdfConvert() +nmap ae :call AsciidoctorEpubConvert() + +function! TermuxOpenFile() + execute("!termux-open " . expand('%')) +endfunction + +let g:web_browser = "firefox" +let g:pdf_viewer = "sumatrapdf" +let g:ebook_viewer = "ebook-viewer" + +if g:platform ==? "termux" + let g:web_browser = "termux-open" + let g:pdf_viewer = "termux-open" + let g:ebook_viewer = "termux-open" +endif + +function! OpenHTML() + execute("!" . web_browser . " ". expand('%:r') . ".html") +endfunction + +function! OpenPdf() + execute("!" . pdf_viewer . " " . expand('%:r') . ".pdf") +endfunction + +function! OpenEpub() + execute("!" . ebook_viewer . " " . expand('%:r') . ".epub") +endfunction + +nmap oo :call TermuxOpenFile() +nmap oh :call OpenHTML() +nmap op :call OpenPdf() +nmap oe :call OpenEpub() + +nmap ant i[.lightbox, cols="^2,^2", {LIGHTBOX}]\|===\|===kk +nmap ani aimage:./images/picture.jpg[picture, {POPUP}] + +function! ConvertMarkdownToAsciidoc() + execute ("%s/\\!\\[\\(.\\{-}\\)\\](\\(.\\{-}\\))/image:\\2[\\1]/gc") + execute ("%s/\\[\\(.\\{-}\\)\\](\\(.\\{-}\\))/link:\\2[\\1]/gc") + execute("%s/\\#/=/gc") + execute("%s/image:\\(.\\{-}\\) ".\\{-}"\\[/image:\\1[/gc") +endfunction + +nnoremap +nnoremap +nnoremap +nnoremap +nnoremap + + +nnoremap - - +nnoremap < < +nnoremap > > +nnoremap _ _ +nnoremap +nnoremap = = +nnoremap T T + +nnoremap e :e +nnoremap t :tabe + +set splitbelow +set splitright + +nmap gB :buffers +nmap gb :buffer + +nnoremap § ` + +filetype plugin on +syntax on + + +" vimwiki stuff " +" Run multiple wikis " + +let g:vimwiki_list = [ + \{'path': "D:/Projects/BrainWiki", + \ 'syntax': 'markdown', 'ext': '.wiki'} + \] + +"au BufRead,BufNewFile *.wiki set filetype=vimwiki +"function! ToggleCalendar() +"execute ":Calendar" +"if exists("g:calendar_open") +"if g:calendar_open == 1 +"execute "q" +"unlet g:calendar_open +"else +"g:calendar_open = 1 +"end +"else +"let g:calendar_open = 1 +"end +"endfunction +":autocmd FileType vimwiki map c :call ToggleCalendar() + +function! GetSelection() range + echo a:firstline + echo a:lastline + let selectedText = getline(a:firstline,a:lastline) + echo selectedText + call FilterSelection(join(selectedText)) +endfunction + +function! FilterSelection(text) + if a:text =~ ">>>" + call FileHandler(a:text) + else + let text_no_spaces = substitute(a:text, "[ \n]", "", "g") + call FileHandler(text_no_spaces) + endif +endfunction + +function! BuffersList() + let all = range(0, bufnr('$')) + let res = [] + for b in all + if bufexists(b) + call add(res, bufname(b)) + endif + endfor + return res +endfunction + +function! IsInBuffersList(text) + for b in BuffersList() + if b =~ a:text + return 1 + endif + endfor + return 0 +endfunction + +function! FileHandler(text) + if a:text =~ "(" && a:text =~ ")" + let filename = matchstr(a:text, '(.\{-})') + let substituted = matchstr(filename, '[^\(].*[^\)]') + if substituted =~ ":" || substituted =~ "*" || substituted =~ "?" || substituted =~ "\"" || substituted =~ "<" || substituted =~ ">" || substituted =~ "|" + echoerr "Your filename contains invalid characters!" + else + try + let confirmed = 1 + let buffer_exists = 0 + if IsInBuffersList(substituted) == 1 + let buffer_exists = 1 + endif + if empty(glob(substituted)) && buffer_exists == 0 + echom "File does not exist" + let g:confirm_new_file = 1 + else + let g:confirm_new_file = 0 + endif + + echom g:confirm_new_file + + if g:confirm_new_file == 1 + let val = input('Do you want to create a new file "'. substituted . '" [y]es/[N]o? ') + if val !~? '^y' + let confirmed = 0 + else + let confirmed = 1 + endif + endif + + echom "File exists or is open" + if confirmed == 1 + let g:wiki_history[substituted] = expand('%:p') + execute('e %:h/' . substituted) + else + echom "You aborted the file creation! please also remove the link from the document!" + endif + catch /./ + echoerr 'An error occured during file creation: ' . v:exception + endtry + endif + else + if a:text =$ "\\$" + let substituted = substitute(a:text, ".*\\$", "", "g") + echom substituted + "let substituted = matchstr(substituted, '[^>>>].*') + let text_no_spaces = substitute(substituted, "[\n]", "", "g") + let text_no_spaces = substitute(text_no_spaces, "[ ]", "_", "g") + if text_no_spaces !~ ".md" + let text_no_spaces .= ".md" + endif + if text_no_spaces =~ ":" || substituted =~ "*" || substituted =~ "?" || substituted =~ "\"" || substituted =~ "<" || substituted =~ ">" || substituted =~ "|" + echoerr "Your filename contains invalid characters!" + else + "call setline(".", "[" . substituted . "](" . substituted . ")") + "execute("normal! ddO[" . substituted . "](" . text_no_spaces . ")") + execute("normal! 0f$c$[" . substituted . "](" . text_no_spaces . ")") + "call FileHandler("(" . text_no_spaces . ")") + endif + endif + endif +endfunction + +function! GetLine() + let currentLine = getline(".") + call FilterSelection(currentLine) +endfunction + +function! GoBackNew() + echom expand('%:t') + if has_key(g:wiki_history, expand('%:t')) + let parent = remove(g:wiki_history, expand('%:t')) + echom parent + execute("e " . parent) + else + echom "Nothing to go back to!" + endif +endfunction + +function! GoBack() + execute('e#') +endfunction + +command! -range GetSelectionInRange ,call GetSelection() + +nmap :silent :call GetLine() +vmap :GetSelectionInRange + +map :silent :call GoBackNew() + +function! StartHttp() + if g:http_server != '' + echom "A server seems to be running already with process id " . g:http_server + echom "Stopping it first" + call jobstop(g:http_server) + echom "Http server with process id " . g:http_server . " stopped" + let g:http_server='' + endif + execute("lcd %:p:h") + let g:http_server = jobstart("python -m http.server 1224") + echom "Http server started in directory of the current file with process id " . g:http_server +endfunction + +function! StopHttp() + if g:http_server == '' + echoerr "There seems to be no server running" + else + call jobstop(g:http_server) + echom "Http server with process id " . g:http_server . " stopped" + let g:http_server='' + endif +endfunction + +function! ToggleHttp() + if g:http_server == '' + execute("lcd %:p:h") + let g:http_server = jobstart("python -m http.server 1224") + echom "Http server started in directory of the current file with process id " . g:http_server + else + call jobstop(g:http_server) + echom "Http server with process id " . g:http_server . " stopped" + let g:http_server='' + endif +endfunction + +command! StartHttp call StartHttp() +command! StopHttp call StopHttp() +command! ToggleHttp call ToggleHttp() + +map s :ToggleHttp + +function! CodeBlock() + let val = input('Choose your coding language - leave blank for no syntax-highlighting: ') + execute("normal! S```" . val . "o```Ox") +endfunction + +function! MakeTable() + let count = input('How many columns would you like to have? ') + if count == "" + return + endif + let col_nr = str2nr(count) + let col_headers = [] + while col_nr > 0 + let val = input('Enter the column heading: ') + while len(val) < 3 + let val .= " " + endwhile + call add(col_headers, val) + let col_nr -= 1 + endwhile + let headings = "| " + let divider = "| " + let i = 0 + for heading in col_headers + let headings .= col_headers[i] . " | " + let j = 0 + let div_tmp = "" + while j < len(col_headers[i]) + let div_tmp .= "-" + let j += 1 + endwhile + let div_tmp .= " | " + let divider .= div_tmp + let i += 1 + endfor + execute("normal! S" . headings) + execute("normal! o" . divider) +endfunction + +inoremap :silent :call CodeBlock() +nmap :silent :call CodeBlock() + +" inoremap :silent :call MakeTable() +" nmap :silent :call MakeTable() +inoremap :TableModeToggle +nmap :TableModeToggle + +function! Heading() + execute("normal! O[ Back to the landing page](index.md)") + execute("normal! o# BrainOdin") + execute("normal! o") + execute("normal! j") +endfunction + +"inoremap :silent :call Heading() +nmap :silent :call Heading() +map :set relativenumber! +nmap c +vmap c + +set number +set relativenumber + +autocmd BufWinEnter,BufEnter,FocusGained,InsertLeave * set relativenumber +autocmd BufWinLeave,BufLeave,FocusLost,InsertEnter * set norelativenumber + +"hi LineNr guifg=#B0BEC5 +"hi CursorLineNr guifg=#64FFDA + +set ignorecase +set smartcase +set backspace=indent,eol,start +set confirm + +function! WriteFolds() + let filename=expand('%:r') . ".fold" + execute("mkview! " . filename) +endfunction + +function! SaveFolds() + let filename=expand('%:r') . ".fold" + if filereadable(filename) + execute("mkview! " . filename) + endif +endfunction + +function! ReadFolds() + let filename=expand('%:r') . ".fold" + if filereadable(filename) + execute("source " . filename) + endif +endfunction + +let g:vimtex_fold_enabled=1 +"if g:manual_fold_autoload==1 +"set foldmethod=manual +"autocmd BufWinLeave,WinLeave,BufWritePost * call SaveFolds() +"autocmd BufWinEnter * call ReadFolds() +"autocmd InsertLeave,WinEnter * setlocal foldmethod=manual +"autocmd InsertEnter,WinLeave * setlocal foldmethod=manual +"else +"set foldmethod=indent +"set foldlevel=1 +""set foldclose=all +"endif + +nmap fw :call WriteFolds() +" nmap fl :source expand('%:r') . ".fold" + +set incsearch + +set clipboard=unnamedplus + +nmap h :noh + +nmap . :bnext +nmap , :bprev + +inoremap p unique_ptr<>i +nnoremap p iunique_ptr<>i + +inoremap m make_unique<>i +noremap m imake_unique<>i + +set background=dark diff --git a/platform.vim b/platform.vim new file mode 100644 index 0000000..8ff9d69 --- /dev/null +++ b/platform.vim @@ -0,0 +1,2 @@ +"Possible options: windows, windows_portable, linux, termux, linux_qt, arch +let g:platform = "windows_portable" diff --git a/platform_template.vim b/platform_template.vim new file mode 100644 index 0000000..8ff9d69 --- /dev/null +++ b/platform_template.vim @@ -0,0 +1,2 @@ +"Possible options: windows, windows_portable, linux, termux, linux_qt, arch +let g:platform = "windows_portable" diff --git a/plugged/asyncrun.vim b/plugged/asyncrun.vim new file mode 160000 index 0000000..a81b997 --- /dev/null +++ b/plugged/asyncrun.vim @@ -0,0 +1 @@ +Subproject commit a81b9972337c61a28786e71ca87e84fa6a756ec7 diff --git a/plugged/deoplete.nvim b/plugged/deoplete.nvim new file mode 160000 index 0000000..a831120 --- /dev/null +++ b/plugged/deoplete.nvim @@ -0,0 +1 @@ +Subproject commit a831120737e8277cfa96636d1697159e316f4775 diff --git a/plugged/nerdcommenter b/plugged/nerdcommenter new file mode 160000 index 0000000..9a32fd2 --- /dev/null +++ b/plugged/nerdcommenter @@ -0,0 +1 @@ +Subproject commit 9a32fd2534427f7a1dcfe22e9c0ea6b67b6dbe78 diff --git a/plugged/nerdtree b/plugged/nerdtree new file mode 160000 index 0000000..808f5b2 --- /dev/null +++ b/plugged/nerdtree @@ -0,0 +1 @@ +Subproject commit 808f5b225b090bb4a94a2c47bb08d1bc1f7f8a4e diff --git a/plugged/snow b/plugged/snow new file mode 160000 index 0000000..1154b11 --- /dev/null +++ b/plugged/snow @@ -0,0 +1 @@ +Subproject commit 1154b11f6b71ecbb64fedf7ac9ba7705ccb917d0 diff --git a/plugged/snow_dark.vim b/plugged/snow_dark.vim new file mode 100644 index 0000000..32be344 --- /dev/null +++ b/plugged/snow_dark.vim @@ -0,0 +1,38 @@ +let g:airline#themes#snow_dark#palette = {} + +let s:gry0 = [ "#272e37", 236 ] +let s:gry1 = [ "#303945", 237 ] +let s:gry3 = [ "#b0bbcc", 250 ] +let s:red_ = [ "#d37b7d", 174 ] +let s:gren = [ "#6baa70", 71 ] +let s:blue = [ "#649ad8", 75 ] + +let s:nrm1 = [ s:gry0[0] , s:gry3[0] , s:gry0[1] , s:gry3[1] ] +let s:nrm2 = [ s:gry3[0] , s:gry1[0] , s:gry3[1] , s:gry1[1] ] +let s:insr = [ s:gry0[0] , s:gren[0] , s:gry0[1] , s:gren[1] ] +let s:visl = [ s:gry0[0] , s:blue[0] , s:gry0[1] , s:blue[1] ] +let s:rplc = [ s:gry0[0] , s:red_[0] , s:gry0[1] , s:red_[1] ] +let s:inac = [ s:gry3[0] , s:gry1[0] , s:gry3[1] , s:gry1[1] ] + +let g:airline#themes#snow_dark#palette.normal = + \ airline#themes#generate_color_map( s:nrm1 , s:nrm2 , s:nrm2 ) + +let g:airline#themes#snow_dark#palette.insert = + \ airline#themes#generate_color_map( s:insr , s:nrm2 , s:nrm2 ) + +let g:airline#themes#snow_dark#palette.visual = + \ airline#themes#generate_color_map( s:visl , s:nrm2 , s:nrm2 ) + +let g:airline#themes#snow_dark#palette.replace = + \ airline#themes#generate_color_map( s:rplc , s:nrm2 , s:nrm2 ) + +let g:airline#themes#snow_dark#palette.inactive = + \ airline#themes#generate_color_map( s:inac , s:inac , s:inac ) + +if !get(g:, "loaded_ctrlp", 0) + finish +endif + +let g:airline#themes#snow_dark#palette.ctrlp = + \ airline#extensions#ctrlp#generate_color_map( s:nrm2 , s:nrm1 , s:nrm2 ) + diff --git a/plugged/templator_vim b/plugged/templator_vim new file mode 160000 index 0000000..c2fc79f --- /dev/null +++ b/plugged/templator_vim @@ -0,0 +1 @@ +Subproject commit c2fc79fc46c9aa15032cab7a267366ebd9856c78 diff --git a/plugged/vim-airline b/plugged/vim-airline new file mode 160000 index 0000000..c7fb175 --- /dev/null +++ b/plugged/vim-airline @@ -0,0 +1 @@ +Subproject commit c7fb175d3565159699885653767214a6aa583ea4 diff --git a/plugged/vim-airline-themes b/plugged/vim-airline-themes new file mode 160000 index 0000000..6e798f9 --- /dev/null +++ b/plugged/vim-airline-themes @@ -0,0 +1 @@ +Subproject commit 6e798f9030d0853d484078043ddbb41e611ab7a6 diff --git a/plugged/vim-buftabline b/plugged/vim-buftabline new file mode 160000 index 0000000..14d208b --- /dev/null +++ b/plugged/vim-buftabline @@ -0,0 +1 @@ +Subproject commit 14d208b1fa5f4308383e3ce429d57c84423029f9 diff --git a/plugged/vim-indent-guides b/plugged/vim-indent-guides new file mode 160000 index 0000000..54d889a --- /dev/null +++ b/plugged/vim-indent-guides @@ -0,0 +1 @@ +Subproject commit 54d889a63716ee2f1818aa2ec5082db47147147b diff --git a/plugged/vim-indentguides b/plugged/vim-indentguides new file mode 160000 index 0000000..465fcd8 --- /dev/null +++ b/plugged/vim-indentguides @@ -0,0 +1 @@ +Subproject commit 465fcd86ecffc7bc9479993deb748610ee16a313 diff --git a/plugged/vim-livedown b/plugged/vim-livedown new file mode 160000 index 0000000..e2ea003 --- /dev/null +++ b/plugged/vim-livedown @@ -0,0 +1 @@ +Subproject commit e2ea003b6ffa481018a93ca1074ed8882b46bf87 diff --git a/plugged/vim-pandoc b/plugged/vim-pandoc new file mode 160000 index 0000000..d091114 --- /dev/null +++ b/plugged/vim-pandoc @@ -0,0 +1 @@ +Subproject commit d0911146c68512defcf9d947542b06d7f7eed37e diff --git a/plugged/vim-pandoc-syntax b/plugged/vim-pandoc-syntax new file mode 160000 index 0000000..56e8e41 --- /dev/null +++ b/plugged/vim-pandoc-syntax @@ -0,0 +1 @@ +Subproject commit 56e8e41ef863a0a7d33d85c3c0c895aa6e9e62d3 diff --git a/plugged/vim-polyglot b/plugged/vim-polyglot new file mode 160000 index 0000000..055f771 --- /dev/null +++ b/plugged/vim-polyglot @@ -0,0 +1 @@ +Subproject commit 055f7710b65dfa2df52fc0b5be2486ae36ac5751 diff --git a/plugged/vim-table-mode b/plugged/vim-table-mode new file mode 160000 index 0000000..5483e16 --- /dev/null +++ b/plugged/vim-table-mode @@ -0,0 +1 @@ +Subproject commit 5483e163bd0a67e729e0e8436315f33f9e126baf diff --git a/plugged/vimtex b/plugged/vimtex new file mode 160000 index 0000000..35de8eb --- /dev/null +++ b/plugged/vimtex @@ -0,0 +1 @@ +Subproject commit 35de8ebfdf65aaffdf8174c91ba921a8d3efa503 diff --git a/spell/de.utf-8.add b/spell/de.utf-8.add new file mode 100644 index 0000000..91e5c60 --- /dev/null +++ b/spell/de.utf-8.add @@ -0,0 +1 @@ +Saxophonstimme/! diff --git a/spell/de.utf-8.add.spl b/spell/de.utf-8.add.spl new file mode 100644 index 0000000..82377f6 Binary files /dev/null and b/spell/de.utf-8.add.spl differ