Fix some typos in vars.vim
This commit is contained in:
committed by
Tinmarino
parent
a040c42264
commit
f794f1e284
@@ -606,7 +606,7 @@ function! s:normalize_wikilocal_settings() abort
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
" Nomarlize
|
" Normalize
|
||||||
""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""
|
||||||
let wiki_settings['path'] = s:normalize_path(wiki_settings['path'])
|
let wiki_settings['path'] = s:normalize_path(wiki_settings['path'])
|
||||||
|
|
||||||
@@ -1288,8 +1288,8 @@ endfunction
|
|||||||
|
|
||||||
" Get variable anywhere
|
" Get variable anywhere
|
||||||
" Returns: [value, location] where loc=global|wikilocal|syntaxlocal|bufferlocal|none
|
" Returns: [value, location] where loc=global|wikilocal|syntaxlocal|bufferlocal|none
|
||||||
" Called: cmd <- VimvikiVar
|
" Called: cmd <- VimwikiVar
|
||||||
" TODO get more preformant approach when this file has been well refactored:
|
" TODO get more performant approach when this file has been well refactored:
|
||||||
" -- calls only the necessary functions and not syntaxlocal anytime
|
" -- calls only the necessary functions and not syntaxlocal anytime
|
||||||
function! s:get_anywhere(key, ...) abort
|
function! s:get_anywhere(key, ...) abort
|
||||||
" Alias common info
|
" Alias common info
|
||||||
@@ -1534,7 +1534,7 @@ function! vimwiki#vars#get_syntaxlocal(key, ...) abort
|
|||||||
let syntax = vimwiki#vars#get_wikilocal('syntax')
|
let syntax = vimwiki#vars#get_wikilocal('syntax')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Create syntax varaible dict if not exists (lazy)
|
" Create syntax variable dict if not exists (lazy)
|
||||||
if !exists('g:vimwiki_syntaxlocal_vars') || !has_key(g:vimwiki_syntaxlocal_vars, syntax)
|
if !exists('g:vimwiki_syntaxlocal_vars') || !has_key(g:vimwiki_syntaxlocal_vars, syntax)
|
||||||
call vimwiki#vars#populate_syntax_vars(syntax)
|
call vimwiki#vars#populate_syntax_vars(syntax)
|
||||||
endif
|
endif
|
||||||
@@ -1599,7 +1599,7 @@ function! vimwiki#vars#set_global(key, value) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
" Return: wiki local named varaible
|
" Return: wiki local named variable
|
||||||
" Param: (1): variable name (alias key, <string>)
|
" Param: (1): variable name (alias key, <string>)
|
||||||
" Param: (2): wiki number (<int>). When absent, the wiki of the currently active buffer is
|
" Param: (2): wiki number (<int>). When absent, the wiki of the currently active buffer is
|
||||||
" used
|
" used
|
||||||
|
|||||||
Reference in New Issue
Block a user