Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save buckmaxwell/a23cdf879ccd5bdce23875dcd5ed41fa to your computer and use it in GitHub Desktop.

Select an option

Save buckmaxwell/a23cdf879ccd5bdce23875dcd5ed41fa to your computer and use it in GitHub Desktop.
my vim rc
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 'VundleVim/Vundle.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'mhartington/oceanic-next'
Plugin 'leafgarland/typescript-vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'Quramy/tsuquyomi'
Plugin 'Valloric/YouCompleteMe'
Plugin 'Shougo/vimproc.vim'
Plugin 'Yggdroot/indentLine'
" 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
" let g:molokai_original = 1
"
"
let g:syntastic_javascript_checkers=['eslint'] " add eslint as a syntastic JS Checker
set backupcopy=yes " https://webpack.js.org/configuration/watch/#vim
au BufNewFile,BufRead *.ejs set filetype=html "Syntax highlighting for ejs files is html highlighting
set textwidth=80 " Set line length to 80, use gq to reformat
syntax on
set number
set relativenumber
let g:javascript_plugin_jsdoc = 1 "enable synax highlighting for JSDocs
set tabstop=2 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=2 " Indents will have a width of 4
set expandtab " Expand TABs to spaces
let g:jsx_ext_required = 0 " JSX syntax highlighting and indenting for .js files
set autoindent
filetype plugin indent on
" Theme
syntax enable
" for vim 8
if (has("termguicolors"))
set termguicolors
endif
colorscheme OceanicNext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment