Created
October 13, 2015 08:45
-
-
Save sentyaev/5e62e95114ef63f7a0fb to your computer and use it in GitHub Desktop.
My vimrc and plugins
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
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set wildmenu | |
set wildmode=longest:full,full | |
set number | |
"set relativenumber | |
set history=1000 | |
set cursorline | |
set backspace=indent,eol,start | |
set showmatch | |
set whichwrap=b,s,h,l,<,>,[,] | |
set nowrap | |
autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\\\s\\\\+$","","")')) | |
set autoindent | |
set shiftwidth=4 | |
set tabstop=4 | |
set incsearch | |
set ignorecase | |
set smartcase | |
set laststatus=2 | |
set statusline=\ %<%f\ " Filename | |
set statusline+=%w%h%m%r " Options | |
set statusline+=%{fugitive#statusline()} " Git Hotness | |
set statusline+=\ [%{&ff}/%Y] " filetype | |
set statusline+=\ [%{getcwd()}] " current dir | |
set statusline+=%= | |
set statusline+=%l/%L,%c%V\ " Right aligned file nav info | |
set go-=m | |
set go-=T "remove toolbar | |
set go-=r "remove right-hand scroll bar | |
set go-=L "remove left-hand scroll bar | |
nnoremap <C-F1> :if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR> | |
set guiheadroom=0 | |
" set guifont=Inconsolata-dz\ for\ powerline | |
let g:airline_powerline_fonts = 1 | |
hi Normal guifg=#d8d8d8 guibg=#34363a font='Meslo LG L DZ 10' | |
hi Comment guifg=#767f8c | |
hi Number guifg=#ac92ec | |
hi String guifg=#f7e3ba | |
hi Boolean guifg=#ec87c0 | |
hi NonText guifg=bg | |
hi CursorLine guibg=#3e4145 | |
hi StatusLine gui=bold guibg=#4a4d52 | |
hi StatusLineNC gui=bold guibg=#4a4d52 guifg=#222 | |
hi VertSplit gui=None guibg=#4a4d52 guifg=#4a4d52 | |
hi LineNr guifg=#868789 | |
hi SignColumn guibg=bg | |
hi SpecialKey guifg=#444 | |
hi Directory guifg=fg gui=bold | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree ~/dev/ | endif | |
map <C-n> :NERDTreeToggle<CR> | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | |
autocmd BufNew * wincmd l | |
let g:NERDTreeChDirMode=2 | |
let g:NERDTreeMinimalUI=1 | |
let g:NERDTreeShowBookmarks=1 | |
let g:NERDTreeIgnore=['.swp$', '\.git$', '\~$'] | |
let g:NERDTreeWinSize=20 | |
let g:airline_section_z = '%l/%L,%v' | |
let g:airline_theme='bubblegum' | |
let g:syntastic_error_symbol='✗' | |
let g:syntastic_warning_symbol='⚠' | |
let g:syntastic_check_on_open=1 | |
set langmap=йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ъ],фa,ыs,вd,аf,пg,рh,оj,лk,дl | |
set langmap+=,э',яz,чx,сc,мv,иb,тn,ьm,ю.,ё`,ЙQ,ЦW,УE,КR,ЕT,НY,ГU,ШI,ЩO,ЗP | |
set langmap+=,Х{,Ъ},ФA,ЫS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж:,Э\",ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б\<,Ю\>,Ё\~ | |
set list | |
set listchars=tab:»-,trail:· | |
let g:neocomplete#enable_at_startup = 1 | |
set updatetime=750 | |
let g:syntastic_always_populate_loc_list = 1 | |
set noswapfile | |
im <C-Space> <C-x><C-o> | |
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif | |
autocmd InsertLeave * if pumvisible() == 0|pclose|endif | |
let g:syntastic_cpp_compiler_options=' -std=c++14' |
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
auto-pairs | |
ctrlp.vim | |
emmet-vim | |
neocomplete.vim | |
nerdcommenter | |
nerdtree | |
SearchComplete | |
supertab | |
syntastic | |
vim-airline | |
vim-coffee-script | |
vim-fugitive | |
vim-gitgutter | |
vim-go | |
vim-jade | |
vim-stylus | |
vim-surround | |
vim-nerdtree-tabs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment