Browse Source

changed from snipmate to UltiSnips

master
Julio Biason 10 years ago
parent
commit
dba1cc02da
  1. 19
      UltiSnips/python.snippets
  2. 8
      configs/vimrc

19
UltiSnips/python.snippets

@ -0,0 +1,19 @@
snippet #py "Set the python environment."
#!/usr/bin/env python
#-*- encoding: utf-8
"""${1:Module documentation}"""
$0
endsnippet
snippet class "Starting a Python class"
class ${1:ClassName}(${2:extends}):
"""${3:Class documentation}"""
$0
endsnippet
snippet lint "Start a lint-disable comment"
# pylint:disable=${0:lint code}
endsnippet

8
configs/vimrc

@ -100,7 +100,8 @@ Plugin 'davidhalter/jedi-vim'
Plugin 'pangloss/vim-javascript' Plugin 'pangloss/vim-javascript'
" snippets " snippets
Plugin 'msanders/snipmate.vim' " Plugin 'msanders/snipmate.vim'
Plugin 'SirVer/ultisnips'
" fuzzy file open " fuzzy file open
Plugin 'kien/ctrlp.vim' Plugin 'kien/ctrlp.vim'
@ -292,3 +293,8 @@ au FileType pinpoint setlocal colorcolumn=79 textwidth=78
" this disables the documentation/preview split " this disables the documentation/preview split
autocmd FileType python setlocal completeopt-=preview autocmd FileType python setlocal completeopt-=preview
let g:jedi#show_call_signatures = "0" let g:jedi#show_call_signatures = "0"
" ----------------------------------------------------------------------
" UltiSnips
" ----------------------------------------------------------------------
let g:UltiSnipsEditSplit = "horizontal"

Loading…
Cancel
Save