----------- VUNDLE -------------------- set nocompatible filetype off

  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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
"----------- VUNDLE ---------------------"
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
set keymap=russian-jcukenwin
set keymap=ukrainian-jcuken
imap <C-u> <Esc>:set keymap=ukrainian-jcuken<CR>a
imap <C-r> <Esc>:set keymap=russian-jcuken<CR>a
imap <C-e> <C-^>
imap <C-g> <Esc>:set keymap=greek_utf-8<CR>a
"imap <C-e> <Esc>:set keymap=english<CR>i
" Sessionman
" .!cat ~/.vim/skeleton.py
"au BufNewFile *.py ggddG
set hlsearch
set wildmenu
set textwidth=100
"Bundle 'vim-startify'
"Bundle 'nerdtree-execute'
"Bundle 'Floobits/floobits-vim'
"Bundle 'xolox/vim-misc'
"Bundle 'xolox/vim-session'
"Bundle 'd.vi
Bundle "Hackerpilot/DCD", {'rtp': 'editors/vim'}
Bundle 'vim-scripts/sessionman.vim'
set sessionoptions=curdir,buffers,tabpages,folds
"Bundle 'amiorin/vim-project'
"Bundle 'airblade/vim-rooter'
"Bundle 'kien/ctrlp.vim'
"Bundle 'othree/javascript-libraries-syntax.vim'
"Bundle 'teranex/vim-rooter'
"Bundle 'matthewsimo/angular-vim-snippets'
"Bundle 'bonsaiben/bootstrap-snippets'
"Bundle 'bling/vim-airline'
Bundle 'kien/ctrlp.vim'
Bundle 'scrooloose/syntastic'
"Bundle 'jmcantrell/vim-virtualenv'
let g:syntastic_enable_signs=1
" sudo pip install pylint pyflakes flake8 isort autopep8 pep8 frosted
let g:syntastic_python_checkers = ['python', 'pep8', 'pylint', 'pyflakes', 'flake8', 'frosted', ]
let g:syntastic_error_symbol='вњ—'
let g:syntastic_warning_symbol='вљ '
"Bundle 'ervandew/supertab'
"Bundle 'robhudson/snipmate_for_django'
"Bundle 'sjl/gundo.vim'
"Bundle 'vim-scripts/Liquid-Carbon'
"Bundle 'tpope/vim-surround'
Bundle 'gmarik/vundle'
Bundle 'digitaltoad/vim-jade'
Bundle 'ehamberg/vim-cute-python'
Bundle 'chrisbra/Colorizer'
Bundle 'vim-scripts/The-NERD-tree'
"Bundle 'Valloric/YouCompleteMe'
Bundle 'zeis/vim-kolor'
Bundle 'morhetz/gruvbox'
Bundle 'altercation/vim-colors-solarized'
"Bundle 'morhetz/gruvbox'
"Bundle 'kchmck/vim-coffee-script'
"Bundle 'jmcantrell/vim-virtualenv'
"Bundle 'plasticboy/vim-markdown'
"Bundle 'majutsushi/tagbar'
"Bundle 'tpope/vim-fugitive'
"Bundle 'tpope/vim-surround'
"Bundle 'mattn/emmet-vim'
"Bundle 'mattn/livestyle-vim'
"Bundle 'mileszs/ack.vim'
"Bundle 'Shougo/vimproc.vim'
"
"Bundle 'tpope/vim-surround'
Bundle 'majutsushi/tagbar'
Bundle "davidhalter/jedi-vim"
Bundle 'SirVer/ultisnips'
"Bundle "MarcWeber/vim-addon-mw-utils"
"Bundle "tomtom/tlib_vim"
"
"Bundle 'honza/vim-snippets'
Bundle 's-y/vim-snippets'
"Bundle 'git://github.com/ervandew/supertab.git'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
let g:UltiSnipsSnippetsDir = "~/.vim/bundle/vim-snippets/CustomUltiSnips"
let g:UltiSnipsUsePythonVersion = 2
let g:UltiSnipsEditSplit="vertical"
filetype plugin indent on
au FileType python :UltiSnipsAddFiletypes python.djagno
au FileType html :UltiSnipsAddFiletypes django
au FileType .j2 :UltiSnipsAddFiletypes jinja2
au BufNewFile,BufRead *.jade set filetype=jade
au BufNewFile,BufRead *.dt set filetype=jade
au FileType jade set ts=2 sts=2 sw=2
au BufNewFile *.py r ~/.vim/skeleton.py "; ggddG;
autocmd FileType python setlocal ts=4 sts=4 sw=4
"Bundle "kevinw/pyflakes-vim"
"Bundle 'eagletmt/ghcmod-vim'
"
inoremap kj <Esc>
let python_highlight_all = 1
"nmap <silent> <C-K> :wincmd k<CR>
"nmap <silent> <C-J> :wincmd j<CR>
"nmap <silent> <C-H> :wincmd h<CR>
"nmap <silent> <C-L> :wincmd l<CR>
"------------- END VUNDLE ---------------
set lines=40
set columns=105
set nu
set relativenumber
"setlocal omnifunc=necoghc#omnifunc
set guioptions=вЂвЂ˜
set ignorecase
set ruler
set noswapfile
set t_Co=256
"colorschem darkblue
colorscheme solarized
colorscheme kolor
set autochdir
let NERDTreeChDirMode=2
set background=dark
"set background=light
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC "| if has('gui_running') | so $MYGVIMRC | endif
augroup END
let g:solarized_termcolors=256
set mouse=a " allow mouse
"let g:solarized_termcolors=16
" holy shit! This finally works:
set clipboard=unnamed " no more "+y or "+p, just plain simple y and p.
set completeopt=menu
" set "+yy СЃopy to sysetm bufer
set clipboard=unnamedplus
set sessionoptions=curdir,buffers,tabpages,folds
nmap ; :
filetype on
filetype plugin on
" set statusline=%<%f%h%m%r%=\ %{&encoding}\ %P
" show \n
"set list
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" indentation and spaces to meet code guidelines
set smartindent
set hlsearch
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
" розпознавания кодировки
set fencs=utf8,cp1251
set colorcolumn=100
syntax on
"set foldmethod=indent
set number " show numbers of lines
set laststatus=1 " always display status line
set laststatus=2
" Pylint
"set makeprg=pylint\ --reports=n\ --output-format=parseable\ %:p
"set errorformat=%f:%l:\ %m
" Django templates
nnoremap _dt :set ft=htmldjango<CR>
nnoremap _pd :set ft=python.django<CR>
"Pyflakes
" :cc
"
nmap <silent> <F2> :NERDTreeToggle<CR>
let g:tagbar_autofocus = 1
nnoremap <F3> :TagbarToggle<CR>
let g:tagbar_sort = 0 "tagbar shows tags in order of they created in file
let g:tagbar_foldlevel = 0 "close tagbar folds by default
" move code
vnoremap > >gv
vnoremap < <gv
let NERDTreeIgnore = ['\.pyc$']
" mkdir -p "$HOME/.vim/sessions"
map <F5> :SessionSave <CR>default.ses<CR>" Quick write session with F2
map <F4> :SessionList<CR> " And load session with F3
map <F9> :!find . -name \"*.py\" -exec isort {} \; autopep8 --in-place -r . ;<CR> " And load session with F3
map <F10> :!find . -name \"*.py\" -exec isort {} \; autopep8 --in-place -r . ;<CR> " And load session with F3
map <M-1> 1gt
map <M-2> 2gt
map <M-3> 3gt
map <M-4> 4gt
map <M-5> 5gt
map <M-6> 6gt
set foldcolumn=1
vmap <C-C> "+yi
" copy in visual mode
"
"imap <C-V> \"+gpi
"paste not work. Why ?
set imsearch=0
set iminsert=0
let g:jedi#auto_initialization = 1
set termencoding=utf-8
syntax enable
set undofile
" makedir ~/.undo
set undodir=~/.vim/bundle/vim-snippets/undodir
"
filetype on
filetype plugin on " enables filetype specific plugins
:map <silent><leader>s <ESC>:SessionList<CR>
" trash
let g:used_javascript_libs = 'jquery,angularjs'
let g:airline_left_sep = 'в–¶'
let g:airline_right_sep = 'в—Ђ'
let g:airline_linecolumn_prefix = 'В¶ '
let g:airline_fugitive_prefix = 'вЋ‡ '
let g:airline_paste_symbol = 'ПЃ'
let g:airline_enable_syntastic=0