From f95311ce4de26cf2c2db14906410f55589fab0a8 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 1 Mar 2017 04:14:06 +0000 Subject: Adding some snippet functionality, reduce typing --- plugin/vim-options.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin/vim-options.vim') 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 dd :diffget nnoremap df :diffput nnoremap _ [c nnoremap = ]c +" Snippets +nnoremap ,date :-1read !date +\%F +nnoremap ,fabfile :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/fabfile.py +nnoremap ,cutf8 :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/cutf8.pyjf.i +nnoremap ,pudb :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/pudb.pyV +nnoremap ,pydef :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/pydef.py/jumpV11j +nnoremap ,pyclass :-1read $HOME/.config/nvim/plugged/vim-options/snippets/python/pyclass.py/jump "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3