Skip to content

Commit 3c531c9

Browse files
committed
Add some python stuff
1 parent 80b698f commit 3c531c9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.vimrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ augroup filetype_ruby
150150
151151
augroup END
152152

153+
augroup filetype_python
154+
autocmd!
155+
autocmd BufWritePost *.py call Flake8()
156+
augroup END
157+
153158
augroup filetype_js
154159
autocmd!
155160
autocmd BufNewFile,BufRead *.hbs set filetype=html

snippets/python.snippets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
snippet prv
2+
print("${1:label}: {}".format($1))

update_bundles

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ git_bundles = [
4040
"git://github.com/jceb/vim-orgmode.git",
4141

4242
"git://github.com/mattn/emmet-vim.git",
43-
"git://github.com/lambdatoast/elm.vim.git"
43+
"git://github.com/lambdatoast/elm.vim.git",
44+
"git://github.com/elixir-lang/vim-elixir.git",
45+
"git://github.com/ElmCast/elm-vim.git",
46+
"git://github.com/nvie/vim-flake8.git"
4447
]
4548

4649
hg_bundles = [
@@ -86,6 +89,6 @@ if system("which", "hg")
8689
end
8790

8891
puts "####################"
89-
puts "# Don't forget to build extensions (e.g. Command-T) if you haven't already)"
92+
puts "# Don't forget to build extensions (e.g. Command-T) or install packages (e.g. `sudo pip install flake8`) if you haven't already."
9093
puts "####################"
9194

0 commit comments

Comments
 (0)