-
-
Save braveoverwolf/e1afeedc71bf363ee39c15297513cb52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" ----------------------------- | |
" IMPORTANT: | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
Plugin 'scrooloose/nerdtree.git' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'mxw/vim-jsx' | |
let g:jsx_ext_required = 0 | |
Plugin 'elzr/vim-json' | |
" Plugin 'minibufexpl.vim' | |
Plugin 'AutoComplPop' | |
Plugin 'surround.vim' | |
Plugin 'Markdown' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'majutsushi/tagbar' | |
" 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 --- Plugin 'file:///home/gmarik/path/to/plugin' | |
" ----------------------------- | |
call vundle#end() " required | |
filetype plugin indent on " required | |
filetype indent on | |
syntax enable | |
" ---- CUSTOM SETTINGS ------- | |
colorscheme molokai | |
" tagbar | |
map <F6> :TagbarToggle <CR> | |
map <F5> :NERDTreeToggle <CR> | |
" open Nerd Tree when there was no file on the command line: | |
function! StartUp() | |
if 0 == argc() | |
NERDTree | |
end | |
endfunction | |
autocmd VimEnter * call StartUp() | |
map <c-p> :CtrlP <CR> | |
let g:ctrlp_custom_ignore = 'coverage\|dist\|dist-*\|node_modules\|DS_Store\|git' | |
" open ctrl p file in new buffer | |
let g:ctrlp_switch_buffer = 0 | |
let g:ctrlp_prompt_mappings = { | |
\ 'AcceptSelection("e")': ['<c-v>', '<2-LeftMouse>'], | |
\ 'AcceptSelection("v")': ['<cr>', '<RightMouse>'], | |
\ } | |
set number | |
set showcmd | |
set cursorline | |
set wildmenu | |
set showmatch | |
set hlsearch | |
set incsearch | |
" move vertically by visual line: | |
nnoremap j gj | |
nnoremap k gk | |
" set paste | |
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab | |
autocmd BufWritePre *.js %s/\s\+$//e | |
set backup | |
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set backupskip=/tmp/*,/private/tmp/* | |
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set writebackup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment