summaryrefslogtreecommitdiff
path: root/modules/vim_wiki.vim
diff options
context:
space:
mode:
Diffstat (limited to 'modules/vim_wiki.vim')
-rw-r--r--modules/vim_wiki.vim32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/vim_wiki.vim b/modules/vim_wiki.vim
new file mode 100644
index 00000000..4bce4f0e
--- /dev/null
+++ b/modules/vim_wiki.vim
@@ -0,0 +1,32 @@
+let g:vimwiki_list = [{'path': '~/wiki/',
+ \ 'syntax': 'markdown', 'ext': '.md'}]
+
+" TAB in general mode will move to text buffer
+nnoremap <TAB> :bnext<CR>
+" SHIFT-TAB will go back
+nnoremap <S-TAB> :bprevious<CR>
+
+
+
+"let g:vimwiki_list = [{'path': '~/wiki/', 'index': 'main'}]
+"Key bindings
+"Normal mode:
+
+"<Leader>ww -- Open default wiki index file.
+"<Leader>wt -- Open default wiki index file in a new tab.
+"<Leader>ws -- Select and open wiki index file.
+"<Leader>wd -- Delete wiki file you are in.
+"<Leader>wr -- Rename wiki file you are in.
+"<Enter> -- Follow/Create wiki link
+"<Shift-Enter> -- Split and follow/create wiki link
+"<Ctrl-Enter> -- Vertical split and follow/create wiki link
+"<Backspace> -- Go back to parent(previous) wiki link
+"<Tab> -- Find next wiki link
+"<Shift-Tab> -- Find previous wiki link
+"For more keys, see :h vimwiki-mappings
+
+"Commands
+":Vimwiki2HTML -- Convert current wiki link to HTML
+":VimwikiAll2HTML -- Convert all your wiki links to HTML
+":help vimwiki-commands -- list all commands
+":help vimwiki -- General vimwiki help docs