Skip to content

Instantly share code, notes, and snippets.

@hav4ik
Created May 14, 2018 13:04
Show Gist options
  • Save hav4ik/302ea7e28876bac55f447d5f90b179a8 to your computer and use it in GitHub Desktop.
Save hav4ik/302ea7e28876bac55f447d5f90b179a8 to your computer and use it in GitHub Desktop.
my vim config
" ------------------- BEGIN: VUNDLE CONFIGURATION -------------------
set nocompatible " required
filetype off " required
" set runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle handle itself, required!
Plugin 'VundleVim/Vundle.vim'
" Snippets
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'hav4ik/contest-snippets'
" Local .vimrc files, different settings for different projects
Plugin 'embear/vim-localvimrc'
" Git intergation
Plugin 'tpope/vim-fugitive'
" UI and Appearance plugins
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'jistr/vim-nerdtree-tabs'
" all the plugins are added now before this line
call vundle#end() " required
filetype plugin indent on " required
" ------------------- END: VUNDLE CONFIGURATION ---------------------
" ------------- BEGIN: ADDITIONAL CONFIGURATIONS FOR PLUGINS --------
" bling/vim-airline additional configurations
let g:airline_powerline_fonts=1
let g:Powerline_symbols='fancy'
let g:airline_theme='atomic'
let g:airline#extensions#tabline#enabled=1
" scrooloose/nerdtree additional configurations
map <C-n> :NERDTreeTabsToggle<CR>
let NERDTreeIgnore=[ '\.pyc$', '\.pyo$', '\.py\$class$',
\ '\.obj$', '\.o$', '\.so$', '\.egg$', '^\.git$',
\ '__pycache__', '\.DS_Store' ]
let g:NERDTreeWinSize=25
" embear/vim-localvimrc additional configurations
let g:localvimrc_whitelist=['/home/falcon/Workspace/Contests/.*']
" FUCK
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
let g:UltiSnipsListSnippets="<C-Space>"
" -------------- END: ADDITIONAL CONFIGURATIONS FOR PLUGINS ---------
" ------------------ BEGIN: APPEARANCE CONFIGURATIONS ---------------
syntax on
filetype plugin on
highlight LineNr guibg=grey
set number relativenumber " hybrid linenum is really nice
set nowrap " wrapping really confuses
set tabstop=4
set shiftwidth=4
set tabstop=4
set expandtab
set encoding=utf8
set laststatus=2
set foldmethod=indent
set foldlevel=99
set listchars=tab:>-,trail:·,extends:>,precedes:<
set list
set t_Co=256
colorscheme hybrid
" --------------------END: APPEARANCE CONFIGURATIONS ----------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment