Skip to content

Instantly share code, notes, and snippets.

@Victor-Arruda
Created June 12, 2017 12:38
Show Gist options
  • Save Victor-Arruda/7b2a7addbcdd6c98fc530e3962a93d79 to your computer and use it in GitHub Desktop.
Save Victor-Arruda/7b2a7addbcdd6c98fc530e3962a93d79 to your computer and use it in GitHub Desktop.
My Vim configurations and plugins
set nocompatible " be iMproved, required
filetype off " required
let mapleader = ","
let g:mapleader = ","
" 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'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
Plugin 'tpope/vim-fugitive.git'
Plugin 'https://github.com/vim-scripts/ScrollColors'
Plugin 'tpope/vim-rails'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets'
Plugin 'tomtom/tcomment_vim'
Plugin 'thoughtbot/vim-rspec'
Plugin 'ecomba/vim-ruby-refactoring'
Plugin 'The-NERD-tree'
Plugin 'git-diff'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'ctrlp.vim'
Plugin 'Tagbar'
Plugin 'AutoComplPop'
Plugin 'terryma/vim-multiple-cursors'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Enable copying to clipboard using `CTRL + c`
map <C-c> y:e ~/clipsongzboard<CR>P:w !pbcopy<CR><CR>:bdelete!<CR>
:set number
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
" Comments <3
let g:gcc = '<c-/>'
" Use ack instead of grep
set grepprg=ack
map <leader>n :NERDTreeToggle<CR>
let g:airline#extensions#tabline#enabled = 1
"-------------------------
"" Tagbar
map <leader>l :TagbarToggle <cr>
let g:tagbar_autofocus=1
set complete=.,w,b,u,t,i
map <C-d> :call multiple_cursors#quit()<CR>
map <Tab> :bn <cr>
map <S-Tab> :bp <cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment