vim_wiki.vim 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. let wiki_1 = {}
  2. let wiki_1.syntax = 'markdown'
  3. let wiki_1.ext = '.md'
  4. let g:vimwiki_list = [{'path': '~/wiki/',
  5. \ 'syntax': 'markdown', 'ext': '.md'}]
  6. " TAB in general mode will move to text buffer
  7. nnoremap <TAB> :bnext<CR>
  8. " SHIFT-TAB will go back
  9. nnoremap <S-TAB> :bprevious<CR>
  10. "let g:vimwiki_list = [{'path': '~/wiki/', 'index': 'main'}]
  11. "Key bindings
  12. "Normal mode:
  13. "<Leader>ww -- Open default wiki index file.
  14. "<Leader>wt -- Open default wiki index file in a new tab.
  15. "<Leader>ws -- Select and open wiki index file.
  16. "<Leader>wd -- Delete wiki file you are in.
  17. "<Leader>wr -- Rename wiki file you are in.
  18. "<Enter> -- Follow/Create wiki link
  19. "<Shift-Enter> -- Split and follow/create wiki link
  20. "<Ctrl-Enter> -- Vertical split and follow/create wiki link
  21. "<Backspace> -- Go back to parent(previous) wiki link
  22. "<Tab> -- Find next wiki link
  23. "<Shift-Tab> -- Find previous wiki link
  24. "For more keys, see :h vimwiki-mappings
  25. "Commands
  26. ":Vimwiki2HTML -- Convert current wiki link to HTML
  27. ":VimwikiAll2HTML -- Convert all your wiki links to HTML
  28. ":help vimwiki-commands -- list all commands
  29. ":help vimwiki -- General vimwiki help docs