File: init.vim

package info (click to toggle)
vim-link-vim 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 524 kB
  • sloc: python: 66; makefile: 30
file content (11 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
" Note: This file is loaded as long as wiki.vim is loaded, so try to keep it as
"       short as possible!

function! linkvim#init#option(name, default) abort
  let l:option = 'g:' . a:name
  if !exists(l:option)
    let {l:option} = a:default
  elseif type(a:default) == type({})
    call linkvim#u#extend_recursive({l:option}, a:default, 'keep')
  endif
endfunction