Last active
January 19, 2017 12:47
-
-
Save Agontuk/5b58d13657500460dfda048c360487e9 to your computer and use it in GitHub Desktop.
Vim configuration file
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
" Use latest vim settings/options | |
set nocompatible | |
so ~/.vim/plugins.vim | |
" Plugins configurations | |
" sudo apt-get install exuberant-ctags (needed for symbol matchings) | |
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] | |
let g:ctrlp_match_window = 'top,order:ttb,min:1,max:10,results:10' | |
"let g:indentLine_char = '│' | |
let g:airline_theme='tomorrow' | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:indentLine_concealcursor = 'inc' | |
let g:indentLine_conceallevel = 2 | |
" Set 256 color | |
set t_CO=256 | |
" Enable synatx highlighting | |
syntax enable | |
" Enable line number | |
set number | |
" Highlight current line | |
set cursorline | |
" Set backspace behavior | |
" set backspace=indent,eol,start | |
" set color scheme | |
set background=dark | |
colorscheme material-theme | |
if has("termguicolors") | |
set termguicolors | |
endif | |
set laststatus=2 | |
" Set tab behavior | |
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab | |
" Alias Mappings | |
nmap <C-\> :NERDTreeToggle<CR> | |
" nmap <C-R> :CtrlPBufTag<CR> | |
nmap <C-z> :u<CR> | |
" Automatically source vimrc after save | |
augroup autosourcing | |
autocmd! | |
autocmd BufWritePost $MYVIMRC source % | |
augroup END |
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
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
"Plugin 'yggdroot/indentline' | |
"Plugin 'tyrannicaltoucan/vim-quantum' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'jdkanani/vim-material-theme' | |
call vundle#end() | |
filetype plugin indent on | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment