Last active
March 12, 2017 16:12
-
-
Save EddyBorja/c92116c9f7e65af54008 to your computer and use it in GitHub Desktop.
Eddy Borja's vimrc file
This file contains hidden or 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
" Before using, install Vundle with git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim" | |
" After cloning Vundle, run :PluginInstall command in vim " | |
" You may need to install the Menlo Powerline font for your terminal app to display correct characters for vim-powerline" | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" Always show line numbers" | |
set number | |
" Line Color " | |
colorscheme default | |
let g:indent_guides_auto_colors = 0 | |
let g:indent_guides_enable_on_vim_startup = 1 | |
let g:indent_guides_guide_size = 1 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=8 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=8 | |
" Spaces instead of tabs" | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Change default list style for Explorer" | |
let g:netrw_liststyle=3 | |
" 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' | |
"Vim Airline statusline" | |
Plugin 'bling/vim-airline' | |
"Syntastic" | |
"Plugin 'scrooloose/syntastic' | |
"CTRL-P file searching" | |
Plugin 'ctrlpvim/ctrlp.vim' | |
"JSON syntax highlight" | |
Plugin 'elzr/vim-json' | |
"JSX syntax highlight for React" | |
"Plugin 'mxw/vim-jsx' | |
"Coffeescript" | |
"Plugin 'kchmck/vim-coffee-script' | |
"NERD Tree" | |
Plugin 'scrooloose/nerdtree' | |
"Coffescript JSX" | |
"Plugin 'mtscout6/vim-cjsx' | |
"ES6 Javascript" | |
Plugin 'isRuslan/vim-es6' | |
"LESS syntax" | |
Plugin 'groenewege/vim-less' | |
"Elixir Syntax" | |
Plugin 'elixir-lang/vim-elixir' | |
"Rust Syntax" | |
Plugin 'rust-lang/rust.vim' | |
"CSV vim" | |
Plugin 'chrisbra/csv.vim' | |
"IPython-VIM" | |
Plugin 'ivanov/vim-ipython' | |
"Arduino VIM" | |
Plugin 'jplaut/vim-arduino-ino' | |
"Jade Syntax" | |
Plugin 'digitaltoad/vim-jade' | |
"Show indentation lines visually" | |
Plugin 'nathanaelkane/vim-indent-guides' | |
"UltiSnips" | |
Plugin 'SirVer/ultisnips' | |
"UltiSnips Snippets are separated from the engine. Add this if you want them:" | |
"Plugin 'honza/vim-snippets' | |
"Javascript Syntax" | |
""Plugin 'jelera/vim-javascript-syntax' | |
"Javscript Syntax" | |
Plugin 'pangloss/vim-javascript' | |
"JSX" | |
"Plugin 'mxw/vim-jsx' | |
"JS Hint" | |
"Plugin 'wookiehangover/jshint.vim' | |
"Slim Syntax" | |
Plugin 'slim-template/vim-slim' | |
" 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 - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Configuration file for vim | |
set modelines=0 " CVE-2007-2438 | |
syntax on | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
" Normally we use vim-extensions. If you want true vi-compatibility | |
" remove change the following statements | |
set nocompatible " Use Vim defaults instead of 100% vi compatibility | |
set backspace=2 " more powerful backspacing | |
" Don't write backup file if vim is being called by "crontab -e" | |
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup | |
" Don't write backup file if vim is being called by "chpass" | |
au BufWrite /private/etc/pw.* set nowritebackup nobackup | |
"NERD Tree" | |
map <C-n> :NERDTreeToggle<CR> | |
"JSHint Colors" | |
"let JSHintUpdateWriteOnly=1 | |
hi clear SpellBad | |
hi SpellBad cterm=underline,bold ctermfg=white ctermbg=red | |
"Arduino VIM" | |
let g:vim_arduino_auto_open_serial = 1 | |
"CSV Vim" | |
hi CSVColumnEven term=bold ctermbg=2 guibg=Green | |
hi CSVColumnOdd term=bold ctermbg=4 guibg=Blue | |
hi CSVColumnHeaderEven term=bold ctermbg=10 | |
hi CSVColumnHeaderOdd term=bold ctermbg=12 | |
"Markdown Syntax" | |
Plugin 'godlygeek/tabular' | |
Plugin 'plasticboy/vim-markdown' | |
"Airline" | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
set laststatus=2 | |
"Airline font using Menlo for Powerline" | |
set guifont=Menlo\ for\ Powerline | |
"Javascript" | |
let g:javascript_enable_domhtmlcss = 1 | |
"JSX" | |
let g:jsx_ext_required = 0 " Allow JSX in normal JS files | |
"UltiSnips" | |
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<tab>" | |
let g:UltiSnipsJumpBackwardTrigger="<s-tab>" | |
" Ulti Snips Dir" | |
let g:UltiSnipsSnippetsDir = "~/.vim/bundle/ultisnips/UltiSnips" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" | |
"Syntastic" | |
"let g:syntastic_jade_checkers = ['jade_lint'] | |
let g:syntastic_javascript_checkers = ['eslint'] | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 0 | |
let g:syntastic_check_on_wq = 0 | |
"Ctrl-P" | |
""set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_custom_ignore = '\v[\/](node_modules|target|dist)|(\.(swp|ico|git|svn))$' | |
":inoremap fj <Esc>" | |
":inoremap jf <Esc>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment