Compare commits

..

6 Commits

6 changed files with 23 additions and 5 deletions

View File

@ -4,3 +4,5 @@ syntax region cmakeFunctionBlock start='function\s*(.*)' end='endfunction\s*(.*)
syntax region cmakeMacroBlock start='macro\s*(.*)' end='endmacro\s*(.*)' fold transparent keepend
syntax region cmakeForeachBlock start='foreach\s*(.*)' end='endforeach\s*(.*)' fold transparent keepend
syntax region cmakeWhileBlock start='while\s*(.*)' end='endwhile\s*(.*)' fold transparent keepend
highlight link cmakeStatement Statement

View File

@ -13,8 +13,11 @@ syn match markdownCheckboxDelimiter '\[[ x]\]' contained contains=markdownCheckb
syn match markdownCheckbox '\s*\* \[[ x]\] ' contains=markdownCheckboxDelimiter,markdownListMarker
syn region markdownCheckboxDone start='\s*\* \ze\[x\] ' keepend end='\ze\(\n^\s*\*\|\n^\s*\n\)' contains=markdownCheckbox,@markdownCheckboxDoneInline
if has('conceal') && get(g:, 'markdown_syntax_conceal', 1) == 1
if has('conceal')
setlocal conceallevel=0
if get(g:, 'markdown_syntax_conceal', 1) == 1
let s:concealends = ' concealends'
endif
endif
exe 'syn region markdownCheckboxItalic matchgroup=markdownCheckboxItalicDelimiter start="\S\@<=\*\|\*\S\@=" end="\S\@<=\*\|\*\S\@=" keepend contains=markdownLineStart,@Spell contained' . s:concealends
exe 'syn region markdownCheckboxItalic matchgroup=markdownCheckboxItalicDelimiter start="\S\@<=_\|_\S\@=" end="\S\@<=_\|_\S\@=" keepend contains=markdownLineStart,@Spell contained' . s:concealends
@ -47,4 +50,3 @@ hi link markdownCheckboxCodeDelimiter PreProc
" yaml frontmatter
syn region markdownFrontmatter matchgroup=markdownFrontmatterDelimiter start='\%^---' keepend end='^---' contains=@markdownHighlightyaml
hi default link markdownFrontmatterDelimiter Special

6
autoload/build.vim Normal file
View File

@ -0,0 +1,6 @@
function! build#dir(dir) abort
let l:cwd = getcwd()
let $BUILD_DIR = l:cwd.'/'.a:dir
let g:ycm_clangd_args = ['--compile-commands-dir='.$BUILD_DIR]
YcmRestartServer
endfunction

View File

@ -159,7 +159,7 @@ if has('gui_running') || &t_Co == 256
call s:hi('Label', '69', '', '')
call s:hi('Operator', '166', '', '')
call s:hi('Keyword', '', '', '')
call s:hi('Exception', '', '', '')
call s:hi('Exception', '69', '', '')
call s:hi('PreProc', '102', '', '')
call s:hi('Include', '65', '', '')
@ -175,7 +175,7 @@ if has('gui_running') || &t_Co == 256
call s:hi('Special', '179', '', '')
call s:hi('SpecialChar', '', '', '')
call s:hi('Tag', '', '', '')
call s:hi('Delimiter', '', '', '')
call s:hi('Delimiter', '179', '', '')
call s:hi('SpecialComment', '246', '', '')
call s:hi('Debug', '', '', '')

View File

@ -29,3 +29,6 @@ command! -nargs=+ -complete=file Debug call do#debug(<f-args>)
" Find all TODO items in the current file and populate the location list
command! TodoFile lvimgrep /todo/ %
" Change build directory
command! -nargs=1 -complete=dir BuildDir call build#dir(<f-args>)

View File

@ -168,6 +168,11 @@ set modeline
" Don't redraw during execution macros, registers, commands, etc.
set lazyredraw
" When in diff mode, use the patience algorithm for more readable diffs.
if &diff
set diffopt+=algorithm:patience
endif
" Allow color schemes to do bright colors without forcing bold
if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
set t_Co=16