set ic ingore case in search set ai autoindent set expandtab use space

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
set ic " ingore case in search
set ai " autoindent
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 " not compatible with old VI
set incsearch " search while typing
set hidden " wtf
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!
"
let g:SCMDiffCommand = "hg"
set backspace=indent,eol,start
set fileencodings=utf-8,cp1251,koi8-r,cp866,ucs-bom,ascii
set encoding=utf-8
set pastetoggle=<Leader>p
set statusline=%<%f%h%m%r%=(%{&fileencoding},%{&encoding})\ (%b,0x%B)\ %l,%c%V\ %P
set laststatus=2
set grepprg=ack\ -a
map <F2> :w<CR>:bp<CR>
imap <F2> <ESC>:w<CR>:bp<CR>a
map <F3> :w<CR>:bn<CR>
imap <F3> <ESC>:w<CR>:bn<CR>a
function ToggleHighliting()
if &hlsearch
let &hlsearch = 0
else
let &hlsearch = 1
endif
endfunction
nmap <F1> :call ToggleHighliting()<CR>
iab djangotpl {% extends 'base.html' %}<CR>{% load common_extras %}<CR><CR>{% block content %}<CR>{% endblock %}<ESC>
iab codingutf # -*- coding: utf-8 -*-<ESC>
iab envpy #!/usr/bin/env python<ESC>
iab formclass Form(forms.form_for_model(, fields=[])):<CR>def __init__(self, *args, **kwargs):<CR>super(Form, self).__init__(*args, **kwargs)<CR><CR>def save(self):<CR>pass
iab djangoformview @render_to(''):<CR>def (request):<CR>if 'POST' == request.method:<CR>form = Form(request.POST)<CR>else:<CR>form = Form()<CR>if '_ajax' in request.POST:<CR>return ajaxform(form)<CR>if form.is_valid():<CR>form.save()<CR>raise RedirectException(,notice_message'')<CR>return {<CR>'form': form}<CR>
iab superinit def __init__(self, *args, **kwargs):<CR>super(, self).__init__(*args, **kwargs)
iab djangocommand from django.core.management.base import BaseCommand<CR><CR>class Command(BaseCommand):<CR>def handle(self, *args, **kwargs):
iab knopka <script src="http://odnaknopka.ru/ok2.js" type="text/javascript"></script>
" 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 Ю >