Last active
August 29, 2015 14:14
-
-
Save llaughlin/116797b1c6e8f3fe429e to your computer and use it in GitHub Desktop.
vimrc
This file contains 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
set nocompatible " be iMproved | |
filetype off " must be off before Vundle has run | |
if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git")) | |
!git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
endif | |
set runtimepath+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
" Color schemes | |
"Plugin 'flazz/vim-colorschemes' | |
"Plugin 'altercation/vim-colors-solarized' | |
"Plugin 'ColorSchemeMenuMaker' | |
"Plugin 'rainux/vim-desert-warm-256' | |
" Files | |
Plugin 'mileszs/ack.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kien/ctrlp.vim' | |
" Utility | |
Plugin 'tpope/vim-surround' | |
Plugin 'Townk/vim-autoclose' | |
Plugin 'tomtom/tcomment_vim' | |
Plugin 'vim-scripts/ZoomWin' | |
Plugin 'ervandew/supertab' | |
" Plugin "Valloric/YouCompleteMe" | |
Plugin 'gmarik/snipmate.vim' | |
Plugin 'airblade/vim-rooter' | |
Plugin 'vim-scripts/YankRing.vim' | |
Plugin 'nathanaelkane/vim-indent-guides' | |
if executable('ag') | |
Plugin 'epmatsw/ag.vim.git' | |
elseif executable('ack') | |
Plugin 'mileszs/ack.vim' | |
endif | |
Plugin 'kshenoy/vim-signature' | |
" Rails | |
" Plugin 'tpope/vim-rails' | |
" Plugin 'tpope/vim-haml' | |
" Plugin 'cakebaker/scss-syntax.vim' | |
" Plugin 'kchmck/vim-coffee-script' | |
" Plugin 'tpope/vim-cucumber' | |
" Ruby | |
if exists("$rvm_path") | |
Plugin 'tpope/vim-rvm' | |
end | |
Plugin 'tpope/vim-endwise' | |
Plugin 'kana/vim-textobj-user' | |
Plugin 'nelstrom/vim-textobj-rubyblock' | |
Plugin 'lucapette/vim-ruby-doc' | |
" Git | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'airblade/vim-gitgutter.git' | |
" Tmux | |
Plugin 'benmills/vimux' | |
Plugin 'jgdavey/vim-turbux' | |
" Go | |
Plugin 'fatih/vim-go' | |
Plugin 'majutsushi/tagbar' | |
call vundle#end() | |
filetype plugin indent on " and turn it back on! | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set ruler " Report the cursor position on the bottom right | |
"set cursorline " Highlight the line the cursor is currently on | |
"set textwidth=80 " Set the text width to 80 characters | |
"set colorcolumn=+1 " Color the column after 80 characters | |
set number " Enable line numbers on the left | |
set numberwidth=5 " Add a buffer between the number and the edge | |
set tabstop=4 " Tabs are equal to 4 columns | |
set expandtab " Expand the tab character into spaces | |
set shiftwidth=4 " Reindent operations should use 4 columns | |
set shiftround " 3 -> 5; !(3 -> 7) | |
set hlsearch " If there was a previous patter, highlight the matches | |
set incsearch " Jump to the first match as the query is typed in | |
set ignorecase " Make the search case-insensitive | |
set smartcase " If the search includes a capital letter, make it case-sensitive | |
set splitbelow " Split new panes to the right and bottom | |
set splitright | |
set scrolloff=5 " Start scrolling when five rows above the end | |
set scrolljump=0 | |
set backspace=indent,eol,start " Make backspace work list most other programs | |
set wildmenu | |
set wildmode=longest:full | |
"set list listchars=tab:»·,trail:·,eol:¶ | |
set laststatus=2 | |
autocmd vimenter * if !argc() | NERDTree | endif " If there aren't any arguments automatically open NERDTree | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif " If NERDTree is the only buffer open, close vim | |
let NERDTreeShowHidden=1 " Show hidden (starts with '.') files | |
let NERDTreeIgnore = ['\.pyc$'] " Ignore .pyc files | |
let g:ctrlp_show_hidden = 1 | |
highlight clear SignColumn " Make the GitGutter sign column clear | |
runtime macros/matchit.vim | |
colorscheme torte | |
" execute current line in bash" | |
nmap <F6> :.w !bash | |
" toggle nerdtree | |
nmap <F2> :NERDTreeToggle<CR> |
This file contains 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
#!/bin/bash | |
vim +PluginInstall +qall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment