set nocp not compatible with old VI set ignorecase ingore case in sear

  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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
set nocp " not compatible with old VI
set ignorecase " ingore case in search
set smartcase " do not ignore case in search i query has capital letter
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 incsearch " search while typing
set hidden " wtf
" Vundle configuration
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'kien/ctrlp.vim'
call vundle#end()
filetype plugin indent on
" CtrlP configuration
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
set wildignore+=*.so,*.swp,*.swo,*.pyc,__pycache__,.env,.tox,/var/.git,.hg
let g:ctrlp_working_path_mode = 'c'
set undolevels=100
set ttyfast
syntax on
set background=dark
"let g:solarized_termcolors=256
"colorscheme solorized
set hlsearch
set number
set showcmd
set ruler
set history=500
set fileformats+=mac
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
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%80v.\+/
map <F2> :bp<CR>
imap <F2> <ESC>:bp<CR>
map <F3> :bn<CR>
imap <F3> :w<CR>:bn<CR>
map <F4> :BufExplorer<CR>
imap <F4> <ESC>:BufExplorer<CR>
map <F5> :wa<CR>
imap <F5> <ESC>:wa<CR>
map <F8> :wq<CR>
imap <F8> <ESC>:wq<CR>
function ToggleHighliting()
if &hlsearch
let &hlsearch = 0
else
let &hlsearch = 1
endif
endfunction
nmap <F1> :call ToggleHighliting()<CR>
iab djangotpl {% extends 'base.html' %}<CR><CR>{% block content %}<CR>{% endblock %}<ESC>
iab codingutf # -*- coding: utf-8 -*-<ESC>
iab superinit def __init__(self, *args, **kwargs):<CR>super(, self).__init__(*args, **kwargs)
iab pdb! import pdb; pdb.set_trace()
" 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 Ю >