turn all =~ into =~# or =~?; !~ analogically

This commit is contained in:
EinfachToll
2015-02-09 20:47:11 +01:00
parent 6716ba709f
commit e4de62b7d5
7 changed files with 87 additions and 87 deletions

View File

@ -51,7 +51,7 @@ function! Complete_wikifiles(findstart, base)
endif
return -1
else
if a:base !~ '#'
if a:base !~# '#'
" we look for wiki files
if a:base =~# '^wiki\d:'
@ -148,12 +148,12 @@ function! VimwikiFoldLevel(lnum) "{{{
let line = getline(a:lnum)
" Header/section folding...
if line =~ g:vimwiki_rxHeader
if line =~# g:vimwiki_rxHeader
return '>'.vimwiki#u#count_first_sym(line)
" Code block folding...
elseif line =~ '^\s*'.g:vimwiki_rxPreStart
elseif line =~# '^\s*'.g:vimwiki_rxPreStart
return 'a1'
elseif line =~ '^\s*'.g:vimwiki_rxPreEnd.'\s*$'
elseif line =~# '^\s*'.g:vimwiki_rxPreEnd.'\s*$'
return 's1'
else
return "="
@ -194,7 +194,7 @@ function! VimwikiFoldText() "{{{
let main_text = substitute(line, '^\s*', repeat(' ',indent(v:foldstart)), '')
let fold_len = v:foldend - v:foldstart + 1
let len_text = ' ['.fold_len.'] '
if line !~ '^\s*'.g:vimwiki_rxPreStart
if line !~# '^\s*'.g:vimwiki_rxPreStart
let [main_text, spare_len] = s:shorten_text(main_text, 50)
return main_text.len_text
else