Skip to content

Instantly share code, notes, and snippets.

@a-milogradov
Created December 21, 2014 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-milogradov/d10243a3d4a95de89935 to your computer and use it in GitHub Desktop.
Save a-milogradov/d10243a3d4a95de89935 to your computer and use it in GitHub Desktop.
vimrc
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