Created
December 15, 2014 21:31
-
-
Save a-milogradov/3f1fbef83d86c48f9dbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'https://github.com/kien/ctrlp.vim.git' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'vim-scripts/ScrollColors' | |
Plugin 'marcweber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'mitsuhiko/vim-python-combined' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'klen/python-mode' | |
Plugin 'https://github.com/SirVer/ultisnips.git' | |
Plugin 'https://github.com/jmcomets/vim-pony.git' | |
Plugin 'Yggdroot/indentLine' | |
Plugin 'https://github.com/othree/xml.vim.git' | |
Plugin 'tpope/vim-surround' | |
Plugin 'https://github.com/skammer/vim-css-color.git' | |
Plugin 'https://github.com/wincent/Command-T' | |
" Plugin 'https://github.com/Valloric/YouCompleteMe.git' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
colorscheme monokai | |
" Enable copying to clipboard using `CTRO + c` | |
" map <C-c> y:e ~/clipsongzboard<CR>P:w !pbcopy<CR><CR>:bdelete!<CR> | |
set nocompatible | |
syntax enable | |
set encoding=utf-8 | |
if has('gui_running') | |
set guioptions-=T | |
colorscheme monokai | |
set lines=60 columns=108 linespace=0 | |
set guifont=Inconsolata\ 16 | |
endif | |
set showcmd " display incomplete commands | |
filetype plugin indent on " load file type plugins + indentation | |
set number | |
"" Whitespace | |
set nowrap | |
set tabstop=2 | |
set shiftwidth=2 " a tab is two spaces | |
set expandtab " use spaces, not tabs (optional) | |
set backspace=indent,eol,start " backspace through everythin in insert mode | |
"" Searching | |
set hlsearch " highlight matches | |
set incsearch " incremental searching | |
set ignorecase " searches are case insensitive | |
set smartcase " searches become case sensitive when they contain at least one capital | |
noremap <Up> <nop> | |
noremap <Down> <nop> | |
noremap <Left> <nop> | |
noremap <Right> <nop> | |
"" YouCompleteMe settings | |
let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file | |
let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure | |
let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword | |
let g:ycm_complete_in_comments = 1 " Completion in comments | |
let g:ycm_complete_in_strings = 1 " Completion in string | |
""Ultisnips.vim" | |
let g:UltiSnipsExpandTrigger = "<c-j>" | |
let g:UltiSnipsJumpForwardTrigger = "<c-j>" | |
let g:UltiSnipsJumpBackwardTrigger = "<c-p>" | |
let g:UltiSnipsListSnippets = "<c-k>" "List possible snippets based on current file | |
""Surround" | |
let b:surround_{char2nr("v")} = "{{ \r }}" | |
let b:surround_{char2nr("{")} = "{{ \r }}" | |
let b:surround_{char2nr("%")} = "{% \r %}" | |
let b:surround_{char2nr("b")} = "{% block \1block name: \1 %}\r{% endblock \1\1 %}" | |
let b:surround_{char2nr("i")} = "{% if \1condition: \1 %}\r{% endif %}" | |
let b:surround_{char2nr("w")} = "{% with \1with: \1 %}\r{% endwith %}" | |
let b:surround_{char2nr("f")} = "{% for \1for loop: \1 %}\r{% endfor %}" | |
let b:surround_{char2nr("c")} = "{% comment %}\r{% endcomment %}" | |
""Pymode" | |
let g:pymode_rope_lookup_project = 0 | |
""Russian letters as commands" | |
set keymap=russian-jcukenwin | |
set iminsert=0 | |
set imsearch=0 | |
set langmap=йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ъ],фa,ыs,вd,аf,пg,рh,оj,лk,дl,э',яz,чx,сc,мv,иb,тn,ьm,б\\,,ю\.,ё~,ЙQ,ЦW,УE,КR,ЕT,НY,ГU,ШI,ЩO,ЗP,Х\{,Ъ\},ФA,ЫS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж\:,Э\",ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б\<,Ю\> | |
""Run current python file with :make command" | |
set makeprg=python\ % | |
set autowrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment