Commits

Jean-Philippe Thierry  committed 5d0fac0

setup personal python snippets and load these snippets by changing
g:snippets_dir in .vimrc

  • Participants
  • Parent commits 480699d

Comments (0)

Files changed (3)

File .vim/snippets/mine/python.snippets

+snippet #utf
+	# -*- coding: utf-8 -*-

File .vim/snippets/python/test.snippet

-class \<c-r>=PyCleanupClassName(NS_prompt("cls", "Class name", ""))\<cr>(<+object+>):
-    def setup(self):
-        super(\<c-r>=PyCleanupClassName(cls)\<cr>, self).setup()
-        <++>
-
 endfunction
 inoremap ; <c-r>=InsertSnippetWrapper()<cr>
 
+" add personal snippets to the default ones
+let g:snippets_dir = globpath(&rtp, 'snippets/') . ',' . globpath(&rtp, 'snippets/mine')
+
 if version >= 700
     autocmd FileType python set omnifunc=pythoncomplete#Complete
     let Tlist_Ctags_Cmd='/usr/bin/ctags'