aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/plugin/leaf.vim
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-19 15:57:09 +0900
committernsfisis <nsfisis@gmail.com>2022-01-29 17:37:40 +0900
commitf5986deda1ef0edf984b91792e44c72efbeececc (patch)
treeca43da3bd58d1349122a6e55ea9eb4b438d0c344 /.config/nvim/plugin/leaf.vim
parent52062894a34a57d5c76b86f842befe5fd98a7773 (diff)
downloaddotfiles-f5986deda1ef0edf984b91792e44c72efbeececc.tar.gz
dotfiles-f5986deda1ef0edf984b91792e44c72efbeececc.tar.zst
dotfiles-f5986deda1ef0edf984b91792e44c72efbeececc.zip
neovim:leaf: add leaf plugin
Diffstat (limited to '.config/nvim/plugin/leaf.vim')
-rw-r--r--.config/nvim/plugin/leaf.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/nvim/plugin/leaf.vim b/.config/nvim/plugin/leaf.vim
new file mode 100644
index 0000000..e4826b3
--- /dev/null
+++ b/.config/nvim/plugin/leaf.vim
@@ -0,0 +1,23 @@
+scriptencoding utf-8
+
+if exists('g:loaded_leaf')
+ finish
+endif
+
+
+nmap <Space> <Nop>
+nmap <Space>l (leaf)
+nnoremap (leaf) <Nop>
+
+nnoremap (leaf)i <Cmd>tabedit ~/leaves/INBOX.leaf<CR>
+nnoremap (leaf)t <Cmd>tabedit ~/leaves/TODO.leaf<CR>
+nnoremap (leaf)c <Cmd>tabedit ~/leaves/CALENDAR.leaf<CR>
+nnoremap (leaf)p <Cmd>tabedit ~/leaves/PROJECTS.leaf<CR>
+nnoremap (leaf)s <Cmd>tabedit ~/leaves/SOMEDAY.leaf<CR>
+nnoremap (leaf)r <Cmd>tabedit ~/leaves/REFS.leaf<CR>
+nnoremap (leaf)A <Cmd>tabedit ~/leaves/ARCHIVES.leaf<CR>
+
+nnoremap (leaf)l <Cmd>tabedit ~/leaves/INBOX.leaf <Bar>normal G<CR>
+
+
+let g:loaded_leaf = 1