Skip to content

Instantly share code, notes, and snippets.

@box-turtle
Created March 30, 2019 14: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 box-turtle/90c1433fbf1be6d9c31572b9cc5f23e7 to your computer and use it in GitHub Desktop.
Save box-turtle/90c1433fbf1be6d9c31572b9cc5f23e7 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved
filetype off " required!
if has('win32') || has('win64')
source $VIMRUNTIME/mswin.vim
behave mswin
set rtp+=~/vimfiles/bundle/vundle/
call vundle#rc('$HOME/vimfiles/bundle/')
else
" Usual quickstart instructions
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
endif
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/ctrlp.vim'
" vim-scripts repos
Bundle 'L9'
"Bundle 'FuzzyFinder'
Bundle 'altercation/vim-colors-solarized'
Bundle 'mattn/emmet-vim'
Bundle 'scrooloose/nerdtree'
Bundle "pangloss/vim-javascript"
Bundle 'scrooloose/syntastic'
Bundle "othree/javascript-libraries-syntax.vim"
Bundle "mxw/vim-jsx"
Bundle "bling/vim-airline"
" git repos on your local machine (ie. when working on your own plugin)
" Bundle 'file:///Users/gmarik/path/to/plugin'
" ...
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
syntax enable
set background=dark
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
colorscheme solarized
set guifont=Menlo\ Regular:h13
set guioptions-=T
set guioptions+=b
set nowrap
set shortmess+=I
set sw=2
set tabstop=2
set expandtab
set tw=70
set autoindent
set fdc=2
set autowrite
set autochdir
set wildmenu
imap <Tab> <ESC>
nmap <Tab> <ESC>
map <C-Tab> :bp!<CR>
imap <C-Tab> <esc>:bp!<CR>
imap <C-CR> <esc>o
nmap <C-CR> o<esc>
nmap <S-C-CR> i<CR><esc>
map <F11> :%!xmllint --format %<CR>
map <F12> :set nu!<CR>
nnoremap <CR> :noh<CR>
nnoremap Q gqap
vnoremap Q gq
set noerrorbells
nnoremap <C-c> :bp\|bd # <CR>
set directory=~/temp
let mapleader=','
let g:ctrlp_custom_ignore = {
\ 'dir': 'node_modules$\|\.git$\|\.meteor$\|\.svn$\|dist$',
\ 'file': '\.DS_Store$\|\.jpg$\|\.png$\|\.jpeg$\|\.gif$\|\.svg$'
\ }
nmap <space> zz
nmap n nzz
nmap N Nzz
set incsearch
set hlsearch
set ignorecase
set smartcase
inoremap jk <esc>
let g:syntastic_javascript_checkers = ["eslint"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment