"----------- 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