set ic ingore case in search set ai set expandtab use spaces instead t

 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
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=<Leader>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 <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):