set ic " ingore case in search set ai set expandtab " use spaces instead tabs set tabstop=4 " use 4 spaces for tabs set shiftwidth=4 " use 4 spaces for automatic indentation set softtabstop=4 " BS deletes 4 spaces in one time set nocp set incsearch set hidden filetype plugin on filetype indent on set undolevels=100 set ttyfast syntax on "color oceandeep set hlsearch set number set showcmd set ruler set history=500 set fileformats+=mac " Folding "set foldnestmax=1 "set foldmethod=indent "au BufReadPost * foldopen! " set backspace=indent,eol,start set fileencodings=utf-8,cp1251,koi8-r,cp866,ucs-bom,ascii set encoding=utf-8 set pastetoggle=p set statusline=%<%f%h%m%r%=(%{&fileencoding},%{&encoding})\ (%b,0x%B)\ %l,%c%V\ %P set laststatus=2 set grepprg=ack\ -a au FileType python source ~/.vim/python.vim au FileType python compiler pylint "au FileType python source ~/.vim/pyflakes.py let g:pylint_onwrite = 0 map :w:bp imap :w:bpa map :w:bn imap :w:bna function ToggleHighliting() if &hlsearch let &hlsearch = 0 else let &hlsearch = 1 endif endfunction nmap :call ToggleHighliting() iab djangotpl {% extends 'base.html' %}{% load common_extras %}{% block content %}{% endblock %} iab codingutf # -*- coding: utf-8 -*- iab envpy #!/usr/bin/env python iab formclass Form(forms.form_for_model(, fields=[])):def __init__(self, *args, **kwargs):super(Form, self).__init__(*args, **kwargs)def save(self):pass iab djangoformview @render_to(''):def (request):if 'POST' == request.method:form = Form(request.POST)else:form = Form()if '_ajax' in request.POST:return ajaxform(form)if form.is_valid():form.save()raise RedirectException(,notice_message'')return {'form': form} iab superinit def __init__(self, *args, **kwargs):super(, self).__init__(*args, **kwargs) iab djangocommand from django.core.management.base import BaseCommandclass Command(BaseCommand):def handle(self, *args, **kwargs): " Setting up the command mode in russian layout map ё ` map й q map ц w map у e map к r map е t map н y map г u map ш i map щ o map з p map х [ map ъ ] map ф a map ы s map в d map а f map п g map р h map о j map л k map д l map ж ; map э ' map я z map ч x map с c map м v map и b map т n map ь m map б , map ю . map Ё ~ map Й Q map Ц W map У E map К R map Е T map Н Y map Г U map Ш I map Щ O map З P map Х { map Ъ } map Ф A map Ы S map В D map А F map П G map Р H map О J map Л K map Д L map Ж : map Э " map Я Z map Ч X map С C map М V map И B map Т N map Ь M map Б < map Ю >