Move wiki.vim (un)mappings to mappings file
Will at some point have to find a more correct solution than mapping all the wiki shortcuts to bogus combinations.
This commit is contained in:
parent
39f15fb689
commit
14a92bfd12
2 changed files with 19 additions and 20 deletions
|
|
@ -223,26 +223,6 @@ 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 = 1
|
||||
" overwrites some default mappings I don't use, or that interfere with my own
|
||||
" mappings TODO: currently this just assigns bogus shortcuts, since the plugin grumbles
|
||||
" when setting to an empty string
|
||||
let g:wiki_mappings_global = {
|
||||
\ '<plug>(wiki-journal)' : '<leader>===',
|
||||
\ '<plug>(wiki-code-run)' : '<leader>====',
|
||||
\ '<plug>(wiki-graph-in)' : '<leader>====',
|
||||
\ '<plug>(wiki-graph-out)' : '<leader>=====',
|
||||
\ '<plug>(wiki-link-toggle)' : '<leader>=======',
|
||||
\ '<plug>(wiki-page-toc)' : '<leader>=========',
|
||||
\ '<plug>(wiki-page-toc-local)' : '<leader>=============',
|
||||
\ '<plug>(wiki-export)' : '<leader>==============',
|
||||
\ '<plug>(wiki-list-uniq)' : '<leader>===============',
|
||||
\ '<plug>(wiki-list-uniq-local)' : '<leader>================',
|
||||
\ '<plug>(wiki-tag-list)' : '<leader>=================',
|
||||
\ '<plug>(wiki-tag-reload)' : '<leader>==================',
|
||||
\ '<plug>(wiki-tag-search)' : '<leader>=====================',
|
||||
\ '<plug>(wiki-link-toggle-operator)' : '<leader>======================',
|
||||
\}
|
||||
|
||||
|
||||
" PLUGIN: vim-pencil
|
||||
" set default wrap mode to hard - TODO test which mode works better for
|
||||
|
|
|
|||
|
|
@ -183,6 +183,25 @@ au FileType go nnoremap <F12> <Plug>(go-def)
|
|||
" use wiki.vim to look through document outlines in fzf (only for note
|
||||
" directory atm)
|
||||
nnoremap <leader>l :WikiFzfToc<cr>
|
||||
" overwrites some default mappings I don't use, or that interfere with my own
|
||||
" mappings TODO: currently this just assigns bogus shortcuts, since the plugin grumbles
|
||||
" when setting to an empty string
|
||||
let g:wiki_mappings_global = {
|
||||
\ '<plug>(wiki-journal)' : '<leader>===',
|
||||
\ '<plug>(wiki-code-run)' : '<leader>====',
|
||||
\ '<plug>(wiki-graph-in)' : '<leader>====',
|
||||
\ '<plug>(wiki-graph-out)' : '<leader>=====',
|
||||
\ '<plug>(wiki-link-toggle)' : '<leader>=======',
|
||||
\ '<plug>(wiki-page-toc)' : '<leader>=========',
|
||||
\ '<plug>(wiki-page-toc-local)' : '<leader>=============',
|
||||
\ '<plug>(wiki-export)' : '<leader>==============',
|
||||
\ '<plug>(wiki-list-uniq)' : '<leader>===============',
|
||||
\ '<plug>(wiki-list-uniq-local)' : '<leader>================',
|
||||
\ '<plug>(wiki-tag-list)' : '<leader>=================',
|
||||
\ '<plug>(wiki-tag-reload)' : '<leader>==================',
|
||||
\ '<plug>(wiki-tag-search)' : '<leader>=====================',
|
||||
\ '<plug>(wiki-link-toggle-operator)' : '<leader>======================',
|
||||
\}
|
||||
|
||||
" Mostly dealing with Prose writing from here on out
|
||||
" Format current Paragraph (esp useful in prose writing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue