vim_wiki.vim 1.1 KB

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