Skip to content

Instantly share code, notes, and snippets.

@helloravi
Last active January 23, 2017 03:34
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 helloravi/4802aa89af569d1d13fe to your computer and use it in GitHub Desktop.
Save helloravi/4802aa89af569d1d13fe to your computer and use it in GitHub Desktop.
Vimrc as on Jan, 23, 2017
" Note: Skip initialization for vim-tiny or vim-small.
let mapleader=","
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
NeoBundle "https://github.com/Lokaltog/vim-easymotion"
NeoBundle 'https://github.com/scrooloose/nerdtree'
NeoBundle "https://github.com/ctrlpvim/ctrlp.vim"
NeoBundle "https://github.com/tpope/vim-cucumber"
NeoBundle "https://github.com/tomtom/tcomment_vim"
NeoBundle "https://github.com/mattn/emmet-vim.git"
NeoBundle "https://github.com/mkitt/tabline.vim"
NeoBundle "https://github.com/tpope/vim-surround"
" NeoBundle 'mileszs/ack.vim
NeoBundle "https://github.com/rking/ag.vim"
NeoBundle "https://github.com/pangloss/vim-javascript"
NeoBundle "https://github.com/mxw/vim-jsx"
call neobundle#end()
" Required:
filetype off
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
nnoremap <leader>rv :source $MYVIMRC<CR>
set number
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set hlsearch
set nrformats=
syntax on
"Set up separate directories to store back up, swap and undo files. Keeps code
"clean
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/node_modules/*
"activate jsx for .js files
let g:jsx_ext_required = 0
"Ack enabled with ag
" if executable('ag')
" let g:ackprg = 'ag --vimgrep'
" endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment