Adicionar ao .vimrc:
"Python
autocmd BufNewFile,BufRead *.py inorea
cfun=IMAP_PutTextWithMovement("def <++>(<++>):\n<++>\nreturn <++>")
autocmd BufRead,BufNewFile *.py inorea
cclass=IMAP_PutTextWithMovement("class <++>:\n<++>")
autocmd BufRead,BufNewFile *.py inorea
cfor=IMAP_PutTextWithMovement("for <++> in <++>:\n<++>")
autocmd BufRead,BufNewFile *.py
inoreacif =IMAP_PutTextWithMovement("if <++>:\n<++>")
autocmd BufRead,BufNewFile *.py
inoreacifelse =IMAP_PutTextWithMovement("if <++>:\n<++>\nelse:\n<++>")
Ps. Utilizar Ctrl+j para percorrer os campos <++> do snippet.
Nenhum comentário:
Postar um comentário