From 4bc14b752ce6f488862efe7d803fff86bcca9093 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 20 Apr 2020 09:14:46 +0200 Subject: [PATCH] Feat: vim snippets --- files/dotfiles/vim/UltiSnips/rst.snippets | 15 +++++++++++++++ files/dotfiles/vim/config/plugins.vim | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 files/dotfiles/vim/UltiSnips/rst.snippets diff --git a/files/dotfiles/vim/UltiSnips/rst.snippets b/files/dotfiles/vim/UltiSnips/rst.snippets new file mode 100644 index 0000000..5f196fd --- /dev/null +++ b/files/dotfiles/vim/UltiSnips/rst.snippets @@ -0,0 +1,15 @@ +snippet index +${1: Title} +${1/./#/g} + +:date: ${2: `date +%Y-%m-%d`} +:modified: $2 +:authors: Bertrand Benjamin +:category: ${3:Classe/niveau} +:tags: ${4:Themes} +:summary: $1 + + +Étape 1: ${5} +=========${5/./=/g} +endsnippet diff --git a/files/dotfiles/vim/config/plugins.vim b/files/dotfiles/vim/config/plugins.vim index 1cf2860..63aafa6 100644 --- a/files/dotfiles/vim/config/plugins.vim +++ b/files/dotfiles/vim/config/plugins.vim @@ -20,6 +20,8 @@ let g:UltiSnipsEditSplit='vertical' " Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. " let g:UltiSnipsExpandTrigger="tab" let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" +let g:UltiSnipsJumpBackwardTrigger="" " Airline let g:airline_powerline_fonts = 1