Browse Source

support find and past snippets

Daniel Sheffield 2 weeks ago
parent
commit
d5608d95bf
1 changed files with 14 additions and 0 deletions
  1. 14 0
      vim/vimfiles/vimrc

+ 14 - 0
vim/vimfiles/vimrc

@@ -89,6 +89,20 @@ call ConfigNoPresent()
 
 set iskeyword-=_    " Don't skip over _
 
+" Search snippets
+set path+=~/daniel-markor/.app/snippets/**
+
+" Paste snippet
+function! SnippetSermonette()
+    execute 'find header-sermonette.md | execute ''norm ggVGy'' | b# | norm P'
+endfunction
+function! SnippetSermon()
+    execute 'find header-sermon.md | execute ''norm ggVGy'' | b# | norm P'
+endfunction
+nnoremap <LEADER>s :call SnippetSermonette()<CR>
+nnoremap <LEADER>S :call SnippetSermon()<CR>
+
+
 " Search subdirectories
 " Provides tab-complete for all file-related tasks
 set path+=**