1
0
Fork 0

better python support for vim

This commit is contained in:
Von Random 2015-03-07 16:05:51 +03:00
parent c76d8223c3
commit fc5ec4635d

4
vimrc
View file

@ -37,6 +37,9 @@ autocmd BufNewFile *.rb 0put =\"#!/usr/bin/env ruby\<nl>\"|$
autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python3\<nl>\"|$ autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python3\<nl>\"|$
autocmd BufNewFile *.pl 0put =\"#!/usr/bin/env perl\<nl>\use strict;\<nl>\use warnings;\<nl>\use feature 'say';\<nl>\"|$ autocmd BufNewFile *.pl 0put =\"#!/usr/bin/env perl\<nl>\use strict;\<nl>\use warnings;\<nl>\use feature 'say';\<nl>\"|$
" some filetype prefrences
autocmd FileType python setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 textwidth=80 smarttab expandtab
" maps " maps
let mapleader = "," let mapleader = ","
nmap <Space> <C-W> nmap <Space> <C-W>
@ -93,6 +96,7 @@ if v:version >= 700
Plugin 'msanders/snipmate.vim' "snippets support Plugin 'msanders/snipmate.vim' "snippets support
Plugin 'nvie/vim-flake8' "python checking with flake8 Plugin 'nvie/vim-flake8' "python checking with flake8
Plugin 'scrooloose/syntastic' "syntax checker Plugin 'scrooloose/syntastic' "syntax checker
Plugin 'indentpython' "smarter python indentation
"Plugin 'klen/python-mode' "python IDE stuff "Plugin 'klen/python-mode' "python IDE stuff
"Plugin 'xolox/vim-misc' "deps for lua-ftplugin "Plugin 'xolox/vim-misc' "deps for lua-ftplugin
"Plugin 'xolox/vim-lua-ftplugin' "lua stuff (very slow) "Plugin 'xolox/vim-lua-ftplugin' "lua stuff (very slow)