From fc5ec4635d4053d4ba54d99bcf780a3e5123fab9 Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 7 Mar 2015 16:05:51 +0300 Subject: [PATCH] better python support for vim --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc b/vimrc index d0f6513..0a937fb 100644 --- a/vimrc +++ b/vimrc @@ -37,6 +37,9 @@ autocmd BufNewFile *.rb 0put =\"#!/usr/bin/env ruby\\"|$ autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python3\\"|$ autocmd BufNewFile *.pl 0put =\"#!/usr/bin/env perl\\use strict;\\use warnings;\\use feature 'say';\\"|$ +" some filetype prefrences +autocmd FileType python setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 textwidth=80 smarttab expandtab + " maps let mapleader = "," nmap @@ -93,6 +96,7 @@ if v:version >= 700 Plugin 'msanders/snipmate.vim' "snippets support Plugin 'nvie/vim-flake8' "python checking with flake8 Plugin 'scrooloose/syntastic' "syntax checker + Plugin 'indentpython' "smarter python indentation "Plugin 'klen/python-mode' "python IDE stuff "Plugin 'xolox/vim-misc' "deps for lua-ftplugin "Plugin 'xolox/vim-lua-ftplugin' "lua stuff (very slow)