Skip to content

Instantly share code, notes, and snippets.

@rharriso
Last active August 15, 2017 16:44
Show Gist options
  • Select an option

  • Save rharriso/06e480ee23c999e948f1a02ce9db0adc to your computer and use it in GitHub Desktop.

Select an option

Save rharriso/06e480ee23c999e948f1a02ce9db0adc to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
filetype off
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" plugins
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'bogado/file-line'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-scripts/phd'
Plugin 'scrooloose/nerdcommenter'
Plugin 'gregsexton/MatchTag'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
filetype plugin on
" import pathogen files
syntax enable
" spacebar auto complete
inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
\ "\<lt>C-n>" :
\ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
\ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
map <C-@> <C-Space>
"vim ruby enable
autocmd FileType ruby,eruby,haml,jbuilder let g:rubycomplete_buffer_loading = 0
autocmd FileType ruby,eruby,haml,jbuilder let g:rubycomplete_classes_in_global = 0
autocmd FileType ruby,eruby,haml,jbuilder let g:rubycomplete_rails = 0
au BufNewFile,BufRead *.jbuilder set filetype=ruby
" use spaces not tabs
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set noautoindent
set number
set relativenumber
" Use tab and shift tab to move highlighted text
vmap <Tab> >gv
vmap <S-Tab> <gv
" no markdown folding
let g:vim_markdown_folding_disabled=1
" ctrlp ignore
"
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.meta,*.prefab,*/node_modules/*,\..\$',*.o
let g:ctrlp_custom_ignore = {
\ 'dir': '\v(bower_components|public)',
\ 'file': '\v\.(exe|so|dll)$'
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment