vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 7eb6fed5810b28e47e589415eb922f89daede473
parent 4cc6edf3eb436e1c9cd1053adff986f15e94ca52
Author: Tinmarino <tinmarino@gmail.com>
Date:   Thu, 10 Jun 2021 17:17:57 -0400

Pretty: Delete trailing space

Diffstat:
Mautoload/vimwiki/html.vim | 4++--
Mautoload/vimwiki/lst.vim | 4++--
Mautoload/vimwiki/vars.vim | 8++++----
Mftplugin/vimwiki.vim | 2+-
Msyntax/vimwiki.vim | 4++--
Mtest/list_todo.vader | 2+-
6 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim @@ -125,7 +125,7 @@ function! s:template_full_name(name) abort " Suffix Path by a / is not let path = vimwiki#vars#get_wikilocal('template_path') - if strridx(path, '/') +1 != len(path) + if strridx(path, '/') +1 != len(path) let path .= '/' endif @@ -1708,7 +1708,7 @@ function! vimwiki#html#CustomWiki2HTML(root_path, path, wikifile, force) abort \ (len(vimwiki#vars#get_bufferlocal('subdir')) > 0 ? \ s:shellescape(s:root_path(vimwiki#vars#get_bufferlocal('subdir'))) : '-'). ' '. \ (len(vimwiki#vars#get_wikilocal('custom_wiki2html_args')) > 0 ? - \ vimwiki#vars#get_wikilocal('custom_wiki2html_args') : '-')) + \ vimwiki#vars#get_wikilocal('custom_wiki2html_args') : '-')) " Print if non void if output !~? '^\s*$' call vimwiki#u#echo(string(output)) diff --git a/autoload/vimwiki/lst.vim b/autoload/vimwiki/lst.vim @@ -1117,7 +1117,7 @@ function! s:remove_done_in_list(item, recursive) abort if a:item.type == 0 return endif - + " Recurse self on list item let first_item = s:get_first_item_in_list(a:item, 0) let total_lines_removed = 0 @@ -1183,7 +1183,7 @@ function! vimwiki#lst#remove_done_in_range(first_line, last_line) abort endif let cur_ln = s:get_next_line(cur_ln) endwhile - + " Update all parent state (percentage of done) for parent_item in parent_items_of_lines call s:update_state(parent_item) diff --git a/autoload/vimwiki/vars.vim b/autoload/vimwiki/vars.vim @@ -213,9 +213,9 @@ function! s:internal_global_settings() abort " Know internal schemes - let g:vimwiki_global_vars.schemes_web = + let g:vimwiki_global_vars.schemes_web = \ join(vimwiki#vars#get_global('schemes_web'), '\|') - let g:vimwiki_global_vars.schemes_any = + let g:vimwiki_global_vars.schemes_any = \ join(vimwiki#vars#get_global('schemes_any'), '\|') let g:vimwiki_global_vars.schemes_local = \ join(['wiki\d\+', 'diary', 'local'], '\|') @@ -463,8 +463,8 @@ function! s:get_default_wikilocal() abort " Must be coherent with VimwikiColorize let fg = 'color\s*:\s*__COLORFG__\s*;\s*' let bg = 'background\s*:\s*__COLORBG__\s*;\s*' - let color_tag_rx = '<span \s*style\s*=\s*"\s*\(' - \ . fg . bg . '\|' . fg . '\|' . bg + let color_tag_rx = '<span \s*style\s*=\s*"\s*\(' + \ . fg . bg . '\|' . fg . '\|' . bg \ . '\)"\s*>__CONTENT__<\/span>' return { \ 'auto_diary_index': {'type': type(0), 'default': 0, 'min': 0, 'max': 1}, diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim @@ -558,7 +558,7 @@ if str2nr(vimwiki#vars#get_global('key_mappings').lists) inoremap <expr><silent><buffer> <S-CR> pumvisible() ? '<CR>' : '<Esc>:VimwikiReturn 2 2<CR>' endif endif - + " change symbol for bulleted lists for s:char in vimwiki#vars#get_syntaxlocal('bullet_types') if !hasmapto(':VimwikiChangeSymbolTo '.s:char.'<CR>') diff --git a/syntax/vimwiki.vim b/syntax/vimwiki.vim @@ -152,7 +152,7 @@ call s:add_target_syntax_ON(s:target, 'VimwikiLink') " Header Level: 1..6 for s:i in range(1,6) - " WebLink are for markdown but putting them here avoidcode duplication + " WebLink are for markdown but putting them here avoidcode duplication " -- and syntax folding Issue #1009 execute 'syntax match VimwikiHeader'.s:i \ . ' /'.vimwiki#vars#get_syntaxlocal('rxH'.s:i, s:current_syntax) @@ -283,7 +283,7 @@ syntax match VimwikiPlaceholderParam /.*/ contained if vimwiki#vars#get_global('valid_html_tags') !=? '' let s:html_tags = join(split(vimwiki#vars#get_global('valid_html_tags'), '\s*,\s*'), '\|') exe 'syntax match VimwikiHTMLtag #\c</\?\%('.s:html_tags.'\)\%(\s\{-1}\S\{-}\)\{-}\s*/\?>#' - + " Html Typeface: <b>bold text</b> let html_typeface = { \ 'bold': [['<b>', '</b\_s*>'], ['<strong>', '</strong\_s*>']], diff --git a/test/list_todo.vader b/test/list_todo.vader @@ -230,7 +230,7 @@ Do (Go): Expect (Introduce new Number todo item): 1. [ ] Chap1 2. [ ] Chap2 - 3. [ ] + 3. [ ] Do (New item and ident): o\<C-t>Chap1.1