Skip to content

Instantly share code, notes, and snippets.

@mjackson
Last active November 1, 2019 07:43
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjackson/9aabaa3b3edb8c585f3e to your computer and use it in GitHub Desktop.
Save mjackson/9aabaa3b3edb8c585f3e to your computer and use it in GitHub Desktop.
My vim setup
set guifont=Monaco:h14
set background=dark
set transparency=3
color base16-chalk
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()
Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required
Plugin 'tpope/vim-sensible'
Plugin 'kien/ctrlp.vim'
Plugin 'mileszs/ack.vim'
Plugin 'ervandew/supertab'
Plugin 'MartinLafreniere/vim-PairTools'
Plugin 'bling/vim-airline'
Plugin 'elixir-lang/vim-elixir'
Plugin 'chriskempson/base16-vim'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
" Cmd+F opens project search
noremap <D-F> :Ack<space>
" Alt+j/k moves lines down/up
nnoremap ∆ :m .+1<CR>==
nnoremap ˚ :m .-2<CR>==
inoremap ∆ <Esc>:m .+1<CR>==gi
inoremap ˚ <Esc>:m .-2<CR>==gi
vnoremap ∆ :m '>+1<CR>gv=gv
vnoremap ˚ :m '<-2<CR>gv=gv
" Hide .swp files in netrw
let g:netrw_list_hide='.*\.swp$'
" Allow netrw to remove non-empty local directories
let g:netrw_localrmdir='rm -r'
" Allow finding dotfiles using CtrlP
let g:ctrlp_show_hidden=1
" Prevent CtrlP from caching directory listings
let g:ctrlp_use_caching=0
" Use JSX highlighting in .js files
let g:jsx_ext_required=0
syntax on
color ir_black
set wildignore+=*/node_modules/*
set relativenumber
set number
set nowrap
set nolist
set linebreak
set expandtab
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent
set cursorline
hi CursorLine term=bold cterm=bold guibg=Grey40
set visualbell
set t_vb=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment