aboutsummaryrefslogtreecommitdiff
path: root/plugin/vim-options.vim
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-03-01 04:14:06 +0000
committerCody Hiar <codyfh@gmail.com>2017-03-01 04:14:06 +0000
commitf95311ce4de26cf2c2db14906410f55589fab0a8 (patch)
tree1b7ace85a73b6a2f9a9b920311a660c5b6537252 /plugin/vim-options.vim
parent5fcd5c3ab60bde0d43367e4243512450a2f83091 (diff)
Adding some snippet functionality, reduce typing
Diffstat (limited to 'plugin/vim-options.vim')
-rw-r--r--plugin/vim-options.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index f7e0287..e76e377 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -151,6 +151,13 @@ nnoremap <leader>dd :diffget<CR>
nnoremap <leader>df :diffput<CR>
nnoremap _ [c
nnoremap = ]c
+" Snippets
+nnoremap <leader>,date :-1read !date +\%F<CR>
+nnoremap <leader>,fabfile :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/fabfile.py<CR>
+nnoremap <leader>,cutf8 :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/cutf8.py<CR>jf.i
+nnoremap <leader>,pudb :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/pudb.py<CR>V
+nnoremap <leader>,pydef :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/pydef.py<CR>/jump<CR>V11j
+nnoremap <leader>,pyclass :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/pyclass.py<CR>/jump<CR>
"-----------------------------------------------------------------------------------------------------------------------