Skip to content

Instantly share code, notes, and snippets.

@ricardo-rossi
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardo-rossi/a5c01f1f3071e4be8f81 to your computer and use it in GitHub Desktop.
Save ricardo-rossi/a5c01f1f3071e4be8f81 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=/etc/vim/bundle/vundle
call vundle#begin('/etc/vim/bundle') " Use a shared folder
set number
set mouse=a
set term=xterm-256color
set background=dark
" colorscheme gruvbox
:syntax on
" size of a hard tabstop
set tabstop=4
" size of an indent
set shiftwidth=4
" Automatically wrap left and right
set whichwrap+=<,>,h,l,[,]
" a combination of spaces and tabs are used to simulate tab stops at a width
" other than the (hard)tabstop
set softtabstop=4
" make tab insert indents instead of tabs at the beginning of a line
set smarttab
" highlight searches
set hlsearch
highlight Search cterm=underline
" always uses spaces instead of tab characters
set expandtab
" make backspace work like most editors
set backspace=2
" color column for page width
set colorcolumn=80
" status line for airline plugin
set laststatus=2
set encoding=utf-8
set guifont="Consolas for Powerline FixedD"
let g:Powerline_symbols="fancy"
" This is to show the whole selection in visual mode (last char as well)
set selection=exclusive
" Easier tree shortcut
nmap <C-b> :NERDTreeToggle<cr>
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Bundle 'morhetz/gruvbox'
Plugin 'EasyMotion'
Plugin 'surround.vim'
Plugin 'ZenCoding.vim'
Plugin 'snipMate'
Plugin 'tComment'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-fugitive'
Plugin 'Lokaltog/vim-powerline'
Plugin 'airblade/vim-gitgutter'
Plugin 'kien/ctrlp.vim'
Bundle 'jelera/vim-javascript-syntax'
Bundle 'maksimr/vim-jsbeautify'
Bundle 'einars/js-beautify'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
" Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
" Plugin 'user/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment