summaryrefslogtreecommitdiff
path: root/modules/vim_wiki.vim
diff options
context:
space:
mode:
authorChris <[email protected]>2020-04-02 14:41:26 -0400
committerChris <[email protected]>2020-04-02 14:41:26 -0400
commitc24b07132d2dbe827d29f395a15370e24c6c5235 (patch)
treeedc44b81c3b36ff9fe1bd2dbdc25bc43f8262f1c /modules/vim_wiki.vim
parent2df64a787b1cd437c7045a0ab748976776611238 (diff)
auto push
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