Created
March 22, 2017 20:25
-
-
Save abtreece/d85c2637fe88a8fcbe6add74e5978e92 to your computer and use it in GitHub Desktop.
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 the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'christoomey/vim-tmux-navigator' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'jgdavey/tslime.vim' | |
Plugin 'fatih/vim-go' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
execute pathogen#infect() | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just | |
" :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to | |
" auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Settings | |
set nocompatible " We're running Vim, not Vi! | |
syntax on " Enable syntax highlighting | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
set pastetoggle=<F2> | |
" History, Cursor, Rulers | |
set history=50 " Just remember last 50 commands | |
set laststatus=2 " Always display the status line | |
"set ruler " Show the cursor position all the time | |
"set number " Show line numbers | |
set showcmd " Display incomplete commands | |
"set cursorline " Highlight current cursor line | |
" Tabs and white spaces | |
"set nowrap " Don't wrap lines | |
set tabstop=2 " Tabs are always 2 spaces | |
set expandtab " Expand tabs into spaces | |
set shiftwidth=2 " Reindent with 2 spaces (using <<) | |
"set list " Show invisible chars | |
"set listchars="" " Reset listchars | |
"set list listchars=tab:»·,trail:· " Set listchars for tabs and trailing spaces | |
" Search | |
set hlsearch " Highlight matches | |
set incsearch " Incremental searching | |
set ignorecase " Searches are case insensitive... | |
set smartcase " ... unless they contain at least one capital letter | |
" vim-rspec | |
let g:rspec_command = 'call Send_to_Tmux("rspec {spec}\n")' | |
" vim-rspec mappings | |
map <Leader>t :call RunCurrentSpecFile()<CR> | |
map <Leader>s :call RunNearestSpec()<CR> | |
map <Leader>l :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> | |
" Some settings to enable the theme: | |
set background=dark | |
let g:solarized_termcolors = 256 | |
colorscheme solarized |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment