Skip to content

Instantly share code, notes, and snippets.

@karimmtarek
Created October 9, 2015 03:18
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 karimmtarek/d293bbc5c100d5239d21 to your computer and use it in GitHub Desktop.
Save karimmtarek/d293bbc5c100d5239d21 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" 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 'tpope/vim-fugitive.git'
Plugin 'vim-scripts/ScrollColors.git'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-bundler.git'
Plugin 'ctrlpvim/ctrlp.vim.git'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets.git'
Plugin 'Shougo/neomru.vim'
Plugin 'Shougo/unite.vim'
Plugin 'Shougo/vimfiler.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'rking/ag.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" All of your Plugins must be added before the following line
call vundle#end() " required
execute pathogen#infect()
"set backspace=2
"syntax on
"filetype indent on
"set autoindent
set number
syntax enable
colorscheme peachpuff
set nobackup
set nocompatible " choose no compatibility with legacy vi
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
let g:ackprg = 'ag --nogroup --nocolor --column'
let mapleader = ","
map <Leader>i mmgg=G`m<CR>
map <Leader>p :set paste<CR>o<esc>\"*]p:set nopaste<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment