Last active
January 3, 2017 15:40
-
-
Save jasonmccallister/6e4280c100720bcbb3f3154982187715 to your computer and use it in GitHub Desktop.
my .vimrc
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
" --------------------------------------- | |
" GENERAL CONFIG | |
" --------------------------------------- | |
set nocompatible | |
filetype off | |
syntax enable | |
" disable macvim save with cmd-s | |
macmenu &File.Save key=<nop> | |
" set the leader to a comma | |
let mapleader = ',' | |
" set linespace | |
set linespace=16 | |
" allows deletion while in inset mode | |
set backspace=indent,eol,start | |
" display numbers in the sidebar | |
set number | |
set relativenumber | |
" window management - switch between the windows | |
set splitright | |
set splitbelow | |
" easier switching between windows | |
nmap <C-J> <C-W><C-J> | |
nmap <C-H> <C-W><C-H> | |
nmap <C-K> <C-W><C-K> | |
nmap <C-L> <C-W><C-L> | |
" --------------------------------------- | |
" GUI CONFIG | |
" --------------------------------------- | |
" set the font | |
set guifont=Operator_Mono_Book:h15 | |
" set a color scheme | |
" favorites: legacy halflife snappy-light kiwi iceberg snappy slate slime | |
" peacocks-in-space | |
colorscheme onedark | |
" remove scrollbars | |
set guioptions-=l | |
set guioptions-=L | |
set guioptions-=r | |
set guioptions-=R | |
set guioptions-=e | |
" --------------------------------------- | |
" MAPPINGS | |
" --------------------------------------- | |
" edit my vimrc using comma ev | |
nmap <Leader>ev :e $MYVIMRC<cr> | |
" edit vim plugins file | |
nmap <Leader>ep :e ~/.vim/plugins.vim<cr> | |
" --------------------------------------- | |
" AUTO COMMANDS | |
" --------------------------------------- | |
augroup startup | |
autocmd! | |
"autocmd vimenter * NERDTree | |
augroup END | |
augroup autosourcing | |
autocmd! | |
" auto source the vimrc on save | |
autocmd BufWritePost .vimrc source % | |
autocmd BufWritePost .vim/plugins.vim source .vimrc | |
augroup END | |
" --------------------------------------- | |
" PLUGINS | |
" --------------------------------------- | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" load our vim plugins file | |
so ~/.vim/plugins.vim | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" --------------------------------------- | |
" AIRLINE | |
" --------------------------------------- | |
let g:airline#extensions#tabline#enabled = 1 |
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
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'shawncplus/phpcomplete.vim' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'fatih/vim-go' | |
Plugin 'Shougo/neocomplete' | |
Plugin 'Shougo/neosnippet' | |
Plugin 'lumiliet/vim-twig' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'noahfrederick/vim-laravel' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'Shougo/neosnippet-snippets' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment