Skip to content

Instantly share code, notes, and snippets.

@matyunin
Last active September 15, 2015 18:54
Show Gist options
  • Save matyunin/309827741abaf8a8d345 to your computer and use it in GitHub Desktop.
Save matyunin/309827741abaf8a8d345 to your computer and use it in GitHub Desktop.
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='Inconsolata-dz for powerline' 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=#567
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: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:·
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment