Remove subset of vim wiki default mappings

Only keep some of the default vimwiki mappings, since the rest I don't
really need (currently) and they interfere with some other operations I
intend to map (e.g. <leader>wf should fuzzysearch wiki but will toggle a
link when overwritten by the defaults).
This commit is contained in:
Marty Oehme 2019-06-12 14:22:28 +02:00
parent 6298daeca2
commit f06ab7804e

View file

@ -163,6 +163,18 @@ endif
let g:wiki_filetypes = ['md', 'mkd', 'markdown', 'wiki']
let g:wiki_link_extension = '.md'
let g:wiki_link_target_type = 'md'
let g:wiki_mappings_use_defaults = 0
let g:wiki_mappings_global = {
\ '<plug>(wiki-index)' : '<leader>ww',
\ '<plug>(wiki-reload)' : '<leader>wx',
\ '<plug>(wiki-page-rename)' : '<leader>wr',
\ '<plug>(wiki-link-open)' : '<cr>',
\ '<plug>(wiki-link-open-split)' : '<c-cr>',
\ '<plug>(wiki-link-return)' : '<bs>',
\ '<plug>(wiki-link-next)' : '<tab>',
\ '<plug>(wiki-link-prev)' : '<s-tab>',
\ '<plug>(wiki-graph-find-backlinks)' : '<leader>wb',
\}
" PLUGIN: vim-pencil
" set default wrap mode to hard - TODO test which mode works better for