Skip to content

Instantly share code, notes, and snippets.

@nicolashahn
Last active May 23, 2019 13:52
Show Gist options
  • Save nicolashahn/3b7db73b3db44849114d63f0e4956e30 to your computer and use it in GitHub Desktop.
Save nicolashahn/3b7db73b3db44849114d63f0e4956e30 to your computer and use it in GitHub Desktop.
Reproduce rendering bug in alacritty and vim without tmux
]0;fish /home/nhahn(BWelcome to fish, the friendly interactive shell
[?2004h]0;fish /home/nhahn(B⏎(B
❰nhahn❙~❱✔≻(B vv(Bim(Bim(Bvim(Bm  .tmux.conf(B.tmux.conf(B.tmux.conf(Bv(Bimrc(Bimrc(Bmrc(Brc(Bc(B
(B[?2004l]0;vim /home/nhahn(B
[?1006h[?1002h[?2004h[?1049h[?1h=[?2004h[?12h[?12l[?25l".vimrc" 310L, 9450C[?1006l[?1002l[?2004l[?1006h[?1002h[?2004h[?25h[?1006l[?1002l[?2004l[?1006h[?1002h[?2004h▽ [>c]10;?]11;?[?25l 39 """"""""""""
 38 " SETTINGS "
 37 """"""""""""
 36
35 set nocompatible "be iMproved
 34 set ttyfast
 33 set lazyredraw
 32 set re=1
 31 set maxmem=20480
 30 set maxmemtot=61140
 29 set undodir=~/.vim/undo
 28 silent call system('mkdir -p ' . &undodir)
 27 set undofile
 26 set undolevels=1000
 25 set undoreload=100000
 24 set number
 23 set ruler
 22 set textwidth=79
 21 set tabstop=2
 20 set shiftwidth=2
 19 set softtabstop=2
 18 set autoindent
 17 set smarttab
 16 set expandtab
 15 set smartindent
 14 set cursorline
 13 set backspace=2
 12 set mouse=a
 11 set autoread
 10 set termguicolors
 9 set modelines=0 "security hole involving modelines
 8 " open splits where they make sense
 7 set splitbelow
 6 set splitright
 5 " don't notify "File already being edited" message
 4 set shortmess+=A
 3 set wildmenu
 2 " `/` searches every character typed
 1 set incsearch
40 " highlight matches  1 set showmatch
 2 set showcmd
 3 set grepprg=ack-grep\ --column\ $*
 4 if system('uname -s') == "Darwin\n"
 5  set clipboard=unnamed "OSX
 6 else
 7  set clipboard=unnamedplus "Linux
 8 endif
 9
10 syntax enable
 11
12 colorscheme hybrid_reverse
 13 set background=dark
 14
15 """"""""""""
 16 " MAPPINGS "
 17 """"""""""""
 18
19 " How to map caps lock to esc on MacOS
 20 " http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
 21
22 " what do you need ; for, anyways?
 23 vnoremap ; :
 24 nnoremap ; :
 25
26 " save, quit, save&quit with \q, \w, \x
 27 map <leader>w :w<CR>
 28 map <leader>q :q<CR>
 29 map <leader>x :wq<CR>
 30
31 " map fzf to :?
 32 cnoreabbrev ? :Files
 33 cnoreabbrev ?g :GFiles
 34
35 " toggle NERDTree window with \f ("filetree")
 36 map <leader>f :NERDTreeToggle<CR>
 37
38 " add newlines in normal mode with enter key
 39 "nmap <S-Enter> O<Esc>40,1Top]2;.vimrc (~) - VIM[?25h[?25l\[?25h[?25l \b[?25h[?25l :[?2004hlet &background = ( &background == "dark"? "light" : "dark" )
 39 """"""""""""
 38 " SETTINGS "
 37 """"""""""""
 36
35 set nocompatible "be iMproved
 34 set ttyfast
 33 set lazyredraw
 32 set re=1
 31 set maxmem=20480
 30 set maxmemtot=61140
 29 set undodir=~/.vim/undo
 28 silent call system('mkdir -p ' . &undodir)
 27 set undofile
 26 set undolevels=1000
 25 set undoreload=100000
 24 set number
 23 set ruler
 22 set textwidth=79
 21 set tabstop=2
 20 set shiftwidth=2
 19 set softtabstop=2
 18 set autoindent
 17 set smarttab
 16 set expandtab
 15 set smartindent
 14 set cursorline
 13 set backspace=2
 12 set mouse=a
 11 set autoread
 10 set termguicolors
 9 set modelines=0 "security hole involving modelines
 8 " open splits where they make sense
 7 set splitbelow
 6 set splitright
 5 " don't notify "File already being edited" message
 4 set shortmess+=A
 3 set wildmenu
 2 " `/` searches every character typed
 1 set incsearch
40 " highlight matches  1 set showmatch
 2 set showcmd
 3 set grepprg=ack-grep\ --column\ $*
 4 if system('uname -s') == "Darwin\n"
 5  set clipboard=unnamed "OSX
 6 else
 7  set clipboard=unnamedplus "Linux
 8 endif
 9
10 syntax enable
 11
12 colorscheme hybrid_reverse
 13 set background=dark
 14
15 """"""""""""
 16 " MAPPINGS "
 17 """"""""""""
 18
19 " How to map caps lock to esc on MacOS
 20 " http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
 21
22 " what do you need ; for, anyways?
 23 vnoremap ; :
 24 nnoremap ; :
 25
26 " save, quit, save&quit with \q, \w, \x
 27 map <leader>w :w<CR>
 28 map <leader>q :q<CR>
 29 map <leader>x :wq<CR>
 30
31 " map fzf to :?
 32 cnoreabbrev ? :Files
 33 cnoreabbrev ?g :GFiles
 34
35 " toggle NERDTree window with \f ("filetree")
 36 map <leader>f :NERDTreeToggle<CR>
 37
38 " add newlines in normal mode with enter key
 39 "nmap <S-Enter> O<Esc>40,1Top[?25h[?25l[.vimrc ]1:.vimrc ]40,1Top[?25h[?25l 37 """"""""""""
 36
35 set nocompatible "be iMproved
 34 set ttyfast
 33 set lazyredraw
 32 set re=1
 31 set maxmem=20480
 30 set maxmemtot=61140
 29 set undodir=~/.vim/undo
 28 silent call system('mkdir -p ' . &undodir)
 27 set undofile
 26 set undolevels=1000
 25 set undoreload=100000
 24 set number
 23 set ruler
 22 set textwidth=79
 21 set tabstop=2
 20 set shiftwidth=2
 19 set softtabstop=2
 18 set autoindent
 17 set smarttab
 16 set expandtab
 15 set smartindent
 14 set cursorline
 13 set backspace=2
 12 set mouse=a
 11 set autoread
 10 set termguicolors
 9 set modelines=0 "security hole involving modelines
 8 " open splits where they make sense
 7 set splitbelow
 6 set splitright
 5 " don't notify "File already being edited" message
 4 set shortmess+=A
 3 set wildmenu
 2 " `/` searches every character typed
 1 set incsearch
40 " highlight matches  1 set showmatch
 2 set showcmd
 3 set grepprg=ack-grep\ --column\ $*
 4 if system('uname -s') == "Darwin\n"
 5  set clipboard=unnamed "OSX
 6 else
 7  set clipboard=unnamedplus "Linux
 8 endif
 9
10 syntax enable
 11
12 colorscheme hybrid_reverse
 13 set background=dark
 14
15 """"""""""""
 16 " MAPPINGS "
 17 """"""""""""
 18
19 " How to map caps lock to esc on MacOS
 20 " http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
 21
22 " what do you need ; for, anyways?
 23 vnoremap ; :
 24 nnoremap ; :
 25
26 " save, quit, save&quit with \q, \w, \x
 27 map <leader>w :w<CR>
 28 map <leader>q :q<CR>
 29 map <leader>x :wq<CR>
 30
31 " map fzf to :?
 32 cnoreabbrev ? :Files
 33 cnoreabbrev ?g :GFiles
 34
35 " toggle NERDTree window with \f ("filetree")
 36 map <leader>f :NERDTreeToggle<CR>
 37
38 " add newlines in normal mode with enter key40,10%[?25h[?25l 36
35 set nocompatible "be iMproved
 34 set ttyfast
 33 set lazyredraw
 32 set re=1
 31 set maxmem=20480
 30 set maxmemtot=61140
 29 set undodir=~/.vim/undo
 28 silent call system('mkdir -p ' . &undodir)
 27 set undofile
 26 set undolevels=1000
 25 set undoreload=100000
 24 set number
 23 set ruler
 22 set textwidth=79
 21 set tabstop=2
 20 set shiftwidth=2
 19 set softtabstop=2
 18 set autoindent
 17 set smarttab
 16 set expandtab
 15 set smartindent
 14 set cursorline
 13 set backspace=2
 12 set mouse=a
 11 set autoread
 10 set termguicolors
 9 set modelines=0 "security hole involving modelines
 8 " open splits where they make sense
 7 set splitbelow
 6 set splitright
 5 " don't notify "File already being edited" message
 4 set shortmess+=A
 3 set wildmenu
 2 " `/` searches every character typed
 1 set incsearch
40 " highlight matches  1 set showmatch
 2 set showcmd
 3 set grepprg=ack-grep\ --column\ $*
 4 if system('uname -s') == "Darwin\n"
 5  set clipboard=unnamed "OSX
 6 else
 7  set clipboard=unnamedplus "Linux
 8 endif
 9
10 syntax enable
 11
12 colorscheme hybrid_reverse
 13 set background=dark
 14
15 """"""""""""
 16 " MAPPINGS "
 17 """"""""""""
 18
19 " How to map caps lock to esc on MacOS
 20 " http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
 21
22 " what do you need ; for, anyways?
 23 vnoremap ; :
 24 nnoremap ; :
 25
26 " save, quit, save&quit with \q, \w, \x
 27 map <leader>w :w<CR>
 28 map <leader>q :q<CR>
 29 map <leader>x :wq<CR>
 30
31 " map fzf to :?
 32 cnoreabbrev ? :Files
 33 cnoreabbrev ?g :GFiles
 34
35 " toggle NERDTree window with \f ("filetree")
 36 map <leader>f :NERDTreeToggle<CR>40,11%[?25h[?25l 33 set lazyredraw
 32 set re=1
 31 set maxmem=20480
 30 set maxmemtot=61140
 29 set undodir=~/.vim/undo
 28 silent call system('mkdir -p ' . &undodir)
 27 set undofile
 26 set undolevels=1000
 25 set undoreload=100000
 24 set number
 23 set ruler
 22 set textwidth=79
 21 set tabstop=2
 20 set shiftwidth=2
 19 set softtabstop=2
 18 set autoindent
 17 set smarttab
 16 set expandtab
 15 set smartindent
 14 set cursorline
 13 set backspace=2
 12 set mouse=a
 11 set autoread
 10 set termguicolors
 9 set modelines=0 "security hole involving modelines
 8 " open splits where they make sense
 7 set splitbelow
 6 set splitright
 5 " don't notify "File already being edited" message
 4 set shortmess+=A
 3 set wildmenu
 2 " `/` searches every character typed
 1 set incsearch
40 " highlight matches  1 set showmatch
 2 set showcmd
 3 set grepprg=ack-grep\ --column\ $*
 4 if system('uname -s') == "Darwin\n"
 5  set clipboard=unnamed "OSX
 6 else
 7  set clipboard=unnamedplus "Linux
 8 endif
 9
10 syntax enable
 11
12 colorscheme hybrid_reverse
 13 set background=dark
 14
15 """"""""""""
 16 " MAPPINGS "
 17 """"""""""""
 18
19 " How to map caps lock to esc on MacOS
 20 " http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
 21
22 " what do you need ; for, anyways?
 23 vnoremap ; :
 24 nnoremap ; :
 25
26 " save, quit, save&quit with \q, \w, \x
 27 map <leader>w :w<CR>
 28 map <leader>q :q<CR>
 29 map <leader>x :wq<CR>
 30
31 " map fzf to :?
 32 cnoreabbrev ? :Files
 33 cnoreabbrev ?g :GFiles
 34 40,12%[?25h[?25l^D showmatchshowcmdgrepprg=ack-grep\ --column\ $*if system('uname -s') == "Darwin\n" set clipboard=unnamed "OSXels set clipboard=unnamedplus "Linuxendifyntax enablecolorscheme hybrid_reversebackground=dark""""""""""""" MAPPINGS """""""""""""" How to map caps lock to esc on MacOS" http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x" what do you need ; for, anyways?vnoremap ; :nnoremap ; : save, quit, save&quit with \q, \w, \xmap <leader>w :w<CR>map <leader>q :q<CR>map <leader>x :wq<CR>" map fzf to :?cnoreabbrev ? :Filescnoreabbrev ?g :GFiles
74 " toggle NERDTree window with \f ("filetree")map <leader>f :NERDTreeToggle<CR>" add newlines in normal mode with enter key"nmap <S-Enter> O<Esc>"nmap <CR> o<Esc>" vim big boy modenoremap <Up> <Nop>noremap <Down> <Nop>noremap <Left> <Nop>noremap <Right> <Nop>" swap between light and dark background with \bgmap <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CRR >67"""""""""""8PLUGINS "19""""""""""0
212" Load vim-plug3if empty(glob("~/.vim/autoload/plug.vim"))4execute '!mkdir ~/.vim/autoload'5 execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunnn /vim-plug/master/plug.vim'6endif7call plug#begin('~/.vim/plugged')28
29Plug 'powerline/powerline'0Plug 'vim-scripts/SearchComplete'1Plug 'junegunn/fzf'2Plug 'junegunn/fzf.vim' " this is so much better than ctrlp74,0-116[?25h[?25l[1:.vimrc ]74,0-116%[?25h[?25l^D " toggle NERDTree window with \f ("filetree")map <leader>f :NERDTreeToggle<CR>" add newlines in normal mode with enter key"nmap <S-Enter> O<Esc>"nmap <CR> o<Esc>" vim big boy modenoremap <Up> <Nop>noremap <Down> <Nop>noremap <Left> <Nop>noremap <Right> <Nop>" swap between light and dark background with \bgmap <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CRR >87"""""""""""6PLUGINS "5""""""""""4
132" Load vim-plug1if empty(glob("~/.vim/autoload/plug.vim"))10execute '!mkdir ~/.vim/autoload'9 execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunnn /vim-plug/master/plug.vim'8endif7call plug#begin('~/.vim/plugged')6
5Plug 'powerline/powerline'4Plug 'vim-scripts/SearchComplete'3Plug 'junegunn/fzf' 2 Plug 'junegunn/fzf.vim' " this is so much better than ctrlpPlug 'myusuf3/numbers.vim'108 Plug 'tomtom/tcomment_vim' 1Plug 'tpope/vim-fugitive'2Plug 'tpope/vim-surround'3Plug 'tpope/vim-sleuth'4Plug 'Lokaltog/vim-easymotion'5"Plug 'terryma/vim-expand-region'6Plug 'scrooloose/nerdcommenter'7Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } 8"Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} [] 9Plug 'ingydotnet/yaml-vim'0"Plug 'nathanaelkane/vim-indent-guides'1Plug 'bling/vim-bufferline'2Plug 'jelera/vim-javascript-syntax'3Plug 'pangloss/vim-javascript'14Plug 'leafgarland/typescript-vim'5Plug 'airblade/vim-gitgutter'6Plug 'terryma/vim-multiple-cursors'7Plug 'sjl/vitality.vim' " make focus events work with iterm8Plug 'w0rp/ale' " live linting19"Plug 'python-mode/python-mode', { 'branch': 'develop' }0Plug 'vim-latex/vim-latex' " latex support1Plug 'bhurlow/vim-parinfer' " balance parens2Plug 'sheerun/vim-polyglot'3Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME4Plug 'SirVer/ultisnips' " snippet engine25Plug 'honza/vim-snippets' " bunch o snippetsPlug 'luochen1990/rainbow' " rainbow parenthesisPlug 'integralist/vim-mypy'Plug 'craigemery/vim-autotag' " auto-reload ctags on changejremmen/vim-ripgrepguns/vim-clojure-static' " clojure improvementsguns/vim-clojure-highlight' " extra syntax highlight defns for cljambv/black' " python autoformatter108,1 30[?25h[?25l 36 cnoreabbrev ? :Files
 35 cnoreabbrev ?g :GFiles
 34
33 " toggle NERDTree window with \f ("filetree")
 32 map <leader>f :NERDTreeToggle<CR>
 31
30 " add newlines in normal mode with enter key
 29 "nmap <S-Enter> O<Esc>
 28 "nmap <CR> o<Esc>
 27
26 " vim big boy mode
 25 noremap <Up> <Nop>
 24 noremap <Down> <Nop>
 23 noremap <Left> <Nop>
 22 noremap <Right> <Nop>
 21
20 " swap between light and dark background with \bg
 19 map <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CRR >
 18
17 """""""""""
 16 " PLUGINS "
 15 """""""""""
 14
13
12 " Load vim-plug
 11 if empty(glob("~/.vim/autoload/plug.vim"))
 10  execute '!mkdir ~/.vim/autoload'
 9  execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunnn /vim-plug/master/plug.vim'
 8 endif
 7 call plug#begin('~/.vim/plugged')
 6
5 Plug 'powerline/powerline'
 4 Plug 'vim-scripts/SearchComplete'
 3 Plug 'junegunn/fzf'
 2 Plug 'junegunn/fzf.vim' " this is so much better than ctrlp
 1 Plug 'myusuf3/numbers.vim'
108 Plug 'tomtom/tcomment_vim'  1 Plug 'tpope/vim-fugitive'
 2 Plug 'tpope/vim-surround'
 3 Plug 'tpope/vim-sleuth'
 4 Plug 'Lokaltog/vim-easymotion'
 5 "Plug 'terryma/vim-expand-region'
 6 Plug 'scrooloose/nerdcommenter'
 7 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 8 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 9 Plug 'ingydotnet/yaml-vim'
 10 "Plug 'nathanaelkane/vim-indent-guides'
 11 Plug 'bling/vim-bufferline'
 12 Plug 'jelera/vim-javascript-syntax'
 13 Plug 'pangloss/vim-javascript'
 14 Plug 'leafgarland/typescript-vim'
 15 Plug 'airblade/vim-gitgutter'
 16 Plug 'terryma/vim-multiple-cursors'
 17 Plug 'sjl/vitality.vim' " make focus events work with iterm
 18 Plug 'w0rp/ale' " live linting
 19 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 20 Plug 'vim-latex/vim-latex' " latex support
 21 Plug 'bhurlow/vim-parinfer' " balance parens
 22 Plug 'sheerun/vim-polyglot'
 23 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 24 Plug 'SirVer/ultisnips' " snippet engine
 25 Plug 'honza/vim-snippets' " bunch o snippets
 26 Plug 'luochen1990/rainbow' " rainbow parenthesis
 27 Plug 'integralist/vim-mypy'
 28 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 29 Plug 'jremmen/vim-ripgrep'
 30 Plug 'guns/vim-clojure-static' " clojure improvements
 31 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 32 Plug 'ambv/black' " python autoformatter
 33 Plug 'heavenshell/vim-pydocstring'
 34 Plug 'rking/ag.vim'108,129%[?25h[?25l 37 " map fzf to :?
 36 cnoreabbrev ? :Files
 35 cnoreabbrev ?g :GFiles
 34
33 " toggle NERDTree window with \f ("filetree")
 32 map <leader>f :NERDTreeToggle<CR>
 31
30 " add newlines in normal mode with enter key
 29 "nmap <S-Enter> O<Esc>
 28 "nmap <CR> o<Esc>
 27
26 " vim big boy mode
 25 noremap <Up> <Nop>
 24 noremap <Down> <Nop>
 23 noremap <Left> <Nop>
 22 noremap <Right> <Nop>
 21
20 " swap between light and dark background with \bg
 19 map <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CR>
 18
17 """""""""""
 16 " PLUGINS "
 15 """""""""""
 14
13
12 " Load vim-plug
 11 if empty(glob("~/.vim/autoload/plug.vim"))
 10  execute '!mkdir ~/.vim/autoload'
 9  execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-pp lug/master/plug.vim'
 8 endif
 7 call plug#begin('~/.vim/plugged')
 6
5 Plug 'powerline/powerline'
 4 Plug 'vim-scripts/SearchComplete'
 3 Plug 'junegunn/fzf'
 2 Plug 'junegunn/fzf.vim' " this is so much better than ctrlp
 1 Plug 'myusuf3/numbers.vim'
108 Plug 'tomtom/tcomment_vim'  1 Plug 'tpope/vim-fugitive'
 2 Plug 'tpope/vim-surround'
 3 Plug 'tpope/vim-sleuth'
 4 Plug 'Lokaltog/vim-easymotion'
 5 "Plug 'terryma/vim-expand-region'
 6 Plug 'scrooloose/nerdcommenter'
 7 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 8 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 9 Plug 'ingydotnet/yaml-vim'
 10 "Plug 'nathanaelkane/vim-indent-guides'
 11 Plug 'bling/vim-bufferline'
 12 Plug 'jelera/vim-javascript-syntax'
 13 Plug 'pangloss/vim-javascript'
 14 Plug 'leafgarland/typescript-vim'
 15 Plug 'airblade/vim-gitgutter'
 16 Plug 'terryma/vim-multiple-cursors'
 17 Plug 'sjl/vitality.vim' " make focus events work with iterm
 18 Plug 'w0rp/ale' " live linting
 19 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 20 Plug 'vim-latex/vim-latex' " latex support
 21 Plug 'bhurlow/vim-parinfer' " balance parens
 22 Plug 'sheerun/vim-polyglot'
 23 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 24 Plug 'SirVer/ultisnips' " snippet engine
 25 Plug 'honza/vim-snippets' " bunch o snippets
 26 Plug 'luochen1990/rainbow' " rainbow parenthesis
 27 Plug 'integralist/vim-mypy'
 28 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 29 Plug 'jremmen/vim-ripgrep'
 30 Plug 'guns/vim-clojure-static' " clojure improvements
 31 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 32 Plug 'ambv/black' " python autoformatter
 33 Plug 'heavenshell/vim-pydocstring'
 34 Plug 'rking/ag.vim'
 35 Plug 'rust-lang/rust.vim'
 36 Plug 'racer-rust/vim-racer'
 37 Plug 'majutsushi/tagbar'108,129%[?25h[?25l 39 map <leader>x :wq<CR>
 38
37 " map fzf to :?
 36 cnoreabbrev ? :Files
 35 cnoreabbrev ?g :GFiles
 34
33 " toggle NERDTree window with \f ("filetree")
 32 map <leader>f :NERDTreeToggle<CR>
 31
30 " add newlines in normal mode with enter key
 29 "nmap <S-Enter> O<Esc>
 28 "nmap <CR> o<Esc>
 27
26 " vim big boy mode
 25 noremap <Up> <Nop>
 24 noremap <Down> <Nop>
 23 noremap <Left> <Nop>
 22 noremap <Right> <Nop>
 21
20 " swap between light and dark background with \bg
 19 map <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CR>
 18
17 """""""""""
 16 " PLUGINS "
 15 """""""""""
 14
13
12 " Load vim-plug
 11 if empty(glob("~/.vim/autoload/plug.vim"))
 10  execute '!mkdir ~/.vim/autoload'
 9  execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/mass ter/plug.vim'
 8 endif
 7 call plug#begin('~/.vim/plugged')
 6
5 Plug 'powerline/powerline'
 4 Plug 'vim-scripts/SearchComplete'
 3 Plug 'junegunn/fzf'
 2 Plug 'junegunn/fzf.vim' " this is so much better than ctrlp
 1 Plug 'myusuf3/numbers.vim'
108 Plug 'tomtom/tcomment_vim'  1 Plug 'tpope/vim-fugitive'
 2 Plug 'tpope/vim-surround'
 3 Plug 'tpope/vim-sleuth'
 4 Plug 'Lokaltog/vim-easymotion'
 5 "Plug 'terryma/vim-expand-region'
 6 Plug 'scrooloose/nerdcommenter'
 7 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 8 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 9 Plug 'ingydotnet/yaml-vim'
 10 "Plug 'nathanaelkane/vim-indent-guides'
 11 Plug 'bling/vim-bufferline'
 12 Plug 'jelera/vim-javascript-syntax'
 13 Plug 'pangloss/vim-javascript'
 14 Plug 'leafgarland/typescript-vim'
 15 Plug 'airblade/vim-gitgutter'
 16 Plug 'terryma/vim-multiple-cursors'
 17 Plug 'sjl/vitality.vim' " make focus events work with iterm
 18 Plug 'w0rp/ale' " live linting
 19 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 20 Plug 'vim-latex/vim-latex' " latex support
 21 Plug 'bhurlow/vim-parinfer' " balance parens
 22 Plug 'sheerun/vim-polyglot'
 23 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 24 Plug 'SirVer/ultisnips' " snippet engine
 25 Plug 'honza/vim-snippets' " bunch o snippets
 26 Plug 'luochen1990/rainbow' " rainbow parenthesis
 27 Plug 'integralist/vim-mypy'
 28 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 29 Plug 'jremmen/vim-ripgrep'
 30 Plug 'guns/vim-clojure-static' " clojure improvements
 31 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 32 Plug 'ambv/black' " python autoformatter
 33 Plug 'heavenshell/vim-pydocstring'
 34 Plug 'rking/ag.vim'
 35 Plug 'rust-lang/rust.vim'
 36 Plug 'racer-rust/vim-racer'
 37 Plug 'majutsushi/tagbar'
 38 Plug 'flazz/vim-colorschemes' " bunch o colorschemes108,129%[?25h[?25l 40 map <leader>q :q<CR>
 39 map <leader>x :wq<CR>
 38
37 " map fzf to :?
 36 cnoreabbrev ? :Files
 35 cnoreabbrev ?g :GFiles
 34
33 " toggle NERDTree window with \f ("filetree")
 32 map <leader>f :NERDTreeToggle<CR>
 31
30 " add newlines in normal mode with enter key
 29 "nmap <S-Enter> O<Esc>
 28 "nmap <CR> o<Esc>
 27
26 " vim big boy mode
 25 noremap <Up> <Nop>
 24 noremap <Down> <Nop>
 23 noremap <Left> <Nop>
 22 noremap <Right> <Nop>
 21
20 " swap between light and dark background with \bg
 19 map <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CR>
 18
17 """""""""""
 16 " PLUGINS "
 15 """""""""""
 14
13
12 " Load vim-plug
 11 if empty(glob("~/.vim/autoload/plug.vim"))
 10  execute '!mkdir ~/.vim/autoload'
 9  execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/mass ter/plug.vim'
 8 endif
 7 call plug#begin('~/.vim/plugged')
 6
5 Plug 'powerline/powerline'
 4 Plug 'vim-scripts/SearchComplete'
 3 Plug 'junegunn/fzf'
 2 Plug 'junegunn/fzf.vim' " this is so much better than ctrlp
 1 Plug 'myusuf3/numbers.vim'
108 Plug 'tomtom/tcomment_vim'  1 Plug 'tpope/vim-fugitive'
 2 Plug 'tpope/vim-surround'
 3 Plug 'tpope/vim-sleuth'
 4 Plug 'Lokaltog/vim-easymotion'
 5 "Plug 'terryma/vim-expand-region'
 6 Plug 'scrooloose/nerdcommenter'
 7 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 8 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 9 Plug 'ingydotnet/yaml-vim'
 10 "Plug 'nathanaelkane/vim-indent-guides'
 11 Plug 'bling/vim-bufferline'
 12 Plug 'jelera/vim-javascript-syntax'
 13 Plug 'pangloss/vim-javascript'
 14 Plug 'leafgarland/typescript-vim'
 15 Plug 'airblade/vim-gitgutter'
 16 Plug 'terryma/vim-multiple-cursors'
 17 Plug 'sjl/vitality.vim' " make focus events work with iterm
 18 Plug 'w0rp/ale' " live linting
 19 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 20 Plug 'vim-latex/vim-latex' " latex support
 21 Plug 'bhurlow/vim-parinfer' " balance parens
 22 Plug 'sheerun/vim-polyglot'
 23 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 24 Plug 'SirVer/ultisnips' " snippet engine
 25 Plug 'honza/vim-snippets' " bunch o snippets
 26 Plug 'luochen1990/rainbow' " rainbow parenthesis
 27 Plug 'integralist/vim-mypy'
 28 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 29 Plug 'jremmen/vim-ripgrep'
 30 Plug 'guns/vim-clojure-static' " clojure improvements
 31 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 32 Plug 'ambv/black' " python autoformatter
 33 Plug 'heavenshell/vim-pydocstring'
 34 Plug 'rking/ag.vim'
 35 Plug 'rust-lang/rust.vim'
 36 Plug 'racer-rust/vim-racer'
 37 Plug 'majutsushi/tagbar'
 38 Plug 'flazz/vim-colorschemes' " bunch o colorschemes
 39 "Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe
 40 Plug 'roxma/nvim-yarp'108,129%[?25h[?25l^U  40 set backspace=2
 39 set mouse=a
 38 set autoread
 37 set termguicolors
 36 set modelines=0 "security hole involving modelines
 35 " open splits where they make sense
 34 set splitbelow
 33 set splitright
 32 " don't notify "File already being edited" message
 31 set shortmess+=A
 30 set wildmenu
 29 " `/` searches every character typed
 28 set incsearch
 27 " highlight matches
 26 set showmatch
 25 set showcmd
 24 set grepprg=ack-grep\ --column\ $*
 23 if system('uname -s') == "Darwin\n"
 22  set clipboard=unnamed "OSX
 21 else
 20  set clipboard=unnamedplus "Linux
 19 endif
 18
17 syntax enable
 16
15 colorscheme hybrid_reverse
 14 set background=dark
 13
12 """"""""""""
 11 " MAPPINGS "
 10 """"""""""""
 9
8 " How to map caps lock to esc on MacOS
 7 " http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
 6
5 " what do you need ; for, anyways?
 4 vnoremap ; :
 3 nnoremap ; :
 2
1 " save, quit, save&quit with \q, \w, \x
67 map <leader>w :w<CR>  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32ss
33
34
35
36
37
38
39
4067,111%[?25h[?25l[1:.vimrc ]67,111%[?25h[?25l^U  25 """"""""""""
 24 " SETTINGS "
 23 """"""""""""
 22
21 set nocompatible "be iMproved
 20 set ttyfast
 19 set lazyredraw
 18 set re=1
 17 set maxmem=20480
 16 set maxmemtot=61140
 15 set undodir=~/.vim/undo
 14 silent call system('mkdir -p ' . &undodir)
 13 set undofile
 12 set undolevels=1000
 11 set undoreload=100000
 10 set number
 9 set ruler
 8 set textwidth=79
 7 set tabstop=2
 6 set shiftwidth=2
 5 set softtabstop=2
 4 set autoindent
 3 set smarttab
 2 set expandtab
 1 set smartindent
26 set cursorline  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 map <leader>w :w<CR>42
43
44
45
46
47
48
49
50
51
52
53
54
55
5626,1Top[?25h[?25l^U 
1 """"""""""""  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 set cursorline26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
811,1 [?25h[?25l^D 42 set showcmd  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 noremap <Up> <Nop>
 42 noremap <Down> <Nop>
 43 noremap <Left> <Nop>
 44 noremap <Right> <Nop>
 45
46 " swap between light and dark background with \bg
 47 map <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CR>
 48
49 """""""""""
 50 " PLUGINS "
 51 """""""""""
 52
53
54 " Load vim-plug
 55 if empty(glob("~/.vim/autoload/plug.vim"))
 56  execute '!mkdir ~/.vim/autoload'
 57  execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/mass ter/plug.vim'
 58 endif
 59 call plug#begin('~/.vim/plugged')
 60
61 Plug 'powerline/powerline'
 62 Plug 'vim-scripts/SearchComplete'
 63 Plug 'junegunn/fzf'
 64 Plug 'junegunn/fzf.vim' " this is so much better than ctrlp
 65 Plug 'myusuf3/numbers.vim'
 66 Plug 'tomtom/tcomment_vim'
 67 Plug 'tpope/vim-fugitive'
 68 Plug 'tpope/vim-surround'
 69 Plug 'tpope/vim-sleuth'
 70 Plug 'Lokaltog/vim-easymotion'
 71 "Plug 'terryma/vim-expand-region'
 72 Plug 'scrooloose/nerdcommenter'
 73 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 74 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 75 Plug 'ingydotnet/yaml-vim'
 76 "Plug 'nathanaelkane/vim-indent-guides'
 77 Plug 'bling/vim-bufferline'
 78 Plug 'jelera/vim-javascript-syntax'
 79 Plug 'pangloss/vim-javascript'
 80 Plug 'leafgarland/typescript-vim'42,117%[?25h[?25l^D 83 noremap <Up> <Nop>  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 Plug 'airblade/vim-gitgutter'
 41 Plug 'terryma/vim-multiple-cursors'
 42 Plug 'sjl/vitality.vim' " make focus events work with iterm
 43 Plug 'w0rp/ale' " live linting
 44 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 45 Plug 'vim-latex/vim-latex' " latex support
 46 Plug 'bhurlow/vim-parinfer' " balance parens
 47 Plug 'sheerun/vim-polyglot'
 48 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 49 Plug 'SirVer/ultisnips' " snippet engine
 50 Plug 'honza/vim-snippets' " bunch o snippets
 51 Plug 'luochen1990/rainbow' " rainbow parenthesis
 52 Plug 'integralist/vim-mypy'
 53 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 54 Plug 'jremmen/vim-ripgrep'
 55 Plug 'guns/vim-clojure-static' " clojure improvements
 56 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 57 Plug 'ambv/black' " python autoformatter
 58 Plug 'heavenshell/vim-pydocstring'
 59 Plug 'rking/ag.vim'
 60 Plug 'rust-lang/rust.vim'
 61 Plug 'racer-rust/vim-racer'
 62 Plug 'majutsushi/tagbar'
 63 Plug 'flazz/vim-colorschemes' " bunch o colorschemes
 64 "Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe
 65 Plug 'roxma/nvim-yarp'
 66 Plug 'roxma/vim-hug-neovim-rpc'
 67 Plug 'ap/vim-css-color' " highlight hex color codes with the color
 68 Plug 'tommcdo/vim-exchange' " swap text objects
 69 Plug 'vimwiki/vimwiki' " personal note taking
 70 Plug 'AndrewRadev/switch.vim' " swap word with its opposite (true->false)
 71 Plug 'christoomey/vim-tmux-navigator' " move through vim and tmux splits seamlessly
 72 Plug 'tpope/vim-unimpaired' " better bindings for quickfix
 73
74 call plug#end()
 75
76
77 """""""""""""""""""
 78 " PLUGIN SETTINGS "
 79 """""""""""""""""""
 80 83,135%[?25h[?25l^D 
123Plug 'airblade/vim-gitgutter'Plug 'terryma/vim-multiple-cursors'Plug 'sjl/vitality.vim' " make focus events work with itermPlug 'w0rp/ale' " live linting"Plug 'python-mode/python-mode', { 'branch': 'develop' }Plug 'vim-latex/vim-latex' " latex supportPlug 'bhurlow/vim-parinfer' " balance parensPlug 'sheerun/vim-polyglot'Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIMEPlug 'SirVer/ultisnips' " snippet enginePlug 'honza/vim-snippets' " bunch o snippetsPlug 'luochen1990/rainbow' " rainbow parenthesisPlug 'integralist/vim-mypy'Plug 'craigemery/vim-autotag' " auto-reload ctags on changePlug 'jremmen/vim-ripgrep'Plug 'guns/vim-clojure-static' " clojure improvementsPlug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj17Plug 'ambv/black' " python autoformatter8Plug 'heavenshell/vim-pydocstring'9Plug 'rking/ag.vim'20Plug 'rust-lang/rust.vim'1racer-rust/vim-racer'2majutsushi/tagbar'3flazz/vim-colorschemes' " bunch o colorschemes4"Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe5roxma/nvim-yarp'6roxma/vim-hug-neovim-rpc'7ap/vim-css-color' " highlight hex color codes with the color8ommcdo/vim-exchange' " swap text objects9vimwiki/vimwiki' " personal note taking30AndrewRadev/switch.vim' " swap word with its opposite (true->false)1Plug 'christoomey/vim-tmux-navigator' " move through vim and tmux splits seamlessly2tpope/vim-unimpaired' " better bindings for quickfix34call plug#end()567"""""""""""""""""""8" PLUGIN SETTINGS "9"""""""""""""""""""4012" Deoplete3let g:deoplete#enable_at_startup = 14" <TAB>: completion.5inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"67" " Default line highlighting for unknown filetypes8hi String ctermfg=1409hi CursorLine ctermbg=23550" hi CursorLine guibg=#D3D3D3 cterm=no12autocmd BufReadPost *3 \ if line("'\"") > 1 && line("'\"") <= line("$") |4 \ exe "normal! g`\"" |5 \ endif67au BufRead,BufNewFile *.ts set filetype=typescript8au BufRead,BufNewFile *.tsx set filetype=typescript960" build tex->pdf on save1au BufWritePost,FileWritePost *.tex make %23"fix racket comments4let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }5let g:NERDCustomDelimiters = { 'pico8': { 'left': '--','right': '' } }67augroup nerd_loader8 autocmd!9 autocmd VimEnter * silent! autocmd! FileExplorer70 autocmd BufEnter,BufNew *1 \ if isdirectory(expand('<amatch>'))2 \| call plug#load('nerdtree')3 \| execute 'autocmd! nerd_loader'4 \| endif5augroup END6
77" Use compact syntax for prettified multi-line comments8let g:NERDCompactSexyComs = 1980 Align line-wise comment delimiters flush left instead of following code1" indentation123,153[?25h[?25l^D 64 " Deopletelet g:deoplete#enable_at_startup = 1" <TAB>: completion.inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"" " Default line highlighting for unknown filetypeshi String ctermfg=140hi CursorLine ctermbg=235" hi CursorLine guibg=#D3D3D3 cterm=noautocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endifau BufRead,BufNewFile *.ts set filetype=typescriptau BufRead,BufNewFile *.tsx set filetype=typescript" build tex->pdf on saveau BufWritePost,FileWritePost *.tex make %"fix racket commentslet g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }let g:NERDCustomDelimiters = { 'pico8': { 'left': '--','right': '' } }augroup nerd_loader autocmd! autocmd VimEnter * silent! autocmd! FileExplorer autocmd BufEnter,BufNew * \ if isdirectory(expand('<amatch>')) \| call plug#load('nerdtree') \| execute 'autocmd! nerd_loader' \| endifaugroup END" Use compact syntax for prettified multi-line commentslet g:NERDCompactSexyComs = 1 Align line-wise comment delimiters flush left instead of following code" indentationlet g:NERDDefaultAlign = 'left'" Close vim if the only window left open is a NerdTreeautocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | qq  | endif5
46Give different filetypes different highlighting in NerdTree7function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)8 exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. aa :fg .' guibg='. a:guibg .' guifg='. a:guifg49exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#'0endfunction1call NERDTreeHighlightFile('jade, 'green', 'none', 'green', '#151515')2call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515')3call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515')4call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515')5call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515')6call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515')7call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515')58call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515')59call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515')0call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515')1call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515')2call NERDTreeHighlightFile('js', 'Red', 'none', #ffa500, '#151515')3call NERDTreeHighlightFile('php, 'Magenta, 'none, #ff00ff,#151515')4
656" Change expandable/collapsible symbols in NerdTree7let g:NERDTreeDirArrowExpandable = '+'68let g:NERDTreeDirArrowCollapsible = '-'690if has("mouse_sgr")1 set ttymouse=sgr2else3 set ttymouse=xterm24end56" vim-indent-guides settings7"let g:indent_guides_enable_on_vim_startup = 178let g:indent_guides_auto_colors = 079autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=gray1164,0-170[?25h[?25l^D 
205letg:NERDDefaultAlign='left'" Close vim if the only window left open is a NerdTreeautocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | qq  | endif4
5Give different filetypes different highlighting in NerdTree6function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)7 exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. aa :fg .' guibg='. a:guibg .' guifg='. a:guifg 8exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#' 9endfunction0call NERDTreeHighlightFile('jade, 'green', 'none', 'green', '#151515')1call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515')2call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515')3call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515')4call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515')5call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515')6call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515')7call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515')18call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515')19call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515')0call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515')1call NERDTreeHighlightFile('js', 'Red', 'none', #ffa500, '#151515')2call NERDTreeHighlightFile('php, 'Magenta, 'none, #ff00ff,#151515')3
245" Change expandable/collapsible symbols in NerdTree6let g:NERDTreeDirArrowExpandable = '+'7let g:NERDTreeDirArrowCollapsible = '-'2829if has("mouse_sgr")0 set ttymouse=sgr1else2 set ttymouse=xterm23end45" vim-indent-guides settings6"let g:indent_guides_enable_on_vim_startup = 17let g:indent_guides_auto_colors = 038autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=gray1139"autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=gray140
41au CursorHold,CursorHoldI,BufWritePost,BufEnter,BufLeave,FocusGained,FocusLost * :GitGutterEE nable42au BufWritePost * :GitGutterEnable3
44speed up gitgutter5let g:gitgutter_realtime = 06let g:gitgutter_eager = 0478highlight GitGutterAdd guifg=#22aa22 guibg=gray12 ctermfg=118 ctermbg=23749highlight GitGutterChange guifg=#ccaa00 guibg=gray12 ctermfg=196 ctermbg=2370highlight GitGutterDelete guifg=#cc4422 guibg=gray12 ctermfg=184 ctermbg=237123" UltiSnips triggering4let g:UltiSnipsExpandTrigger = '<C-j>5let g:UltiSnipsJumpForwardTrigger = '<C-j>6let g:UltiSnipsJumpBackwardTrigger = '<C-k>'78" rainbow parenthesis on by default59let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle01" ale2let g:ale_python_prospector_executable = 'python3'3let g:ale_python_pylint_executable = 'python3'4let g:ale_set_signs = 05highlight clear ALEWarningSign6highlight ALEWarning guibg=#003366 ctermbg=197highlight ALEError guibg=#882200 ctermbg=888
69" vim-clojure-highlight0" Evaluate Clojure buffers on load1autocmd BufRead *.clj try | silent! Require | catch /^Fireplace/ | endtry2"autocmd Syntax clojure EnableSyntaxExtension34" black5autoformat on save6autocmd BufWritePre *.py silent! execute ':Black'78 pydocstring205,1 88[?25h[?25l^D 14
13
12
11
10
9
8
7
6
5
4
3
2
1
244 "autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=gray14  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 cnoreabbrev pd :Pydocstring
 41
42 " rust.vim settings
 43 let g:rustfmt_autosave = 1
 44
45 " rust-racer settings
 46 set hidden
 47 let g:racer_experimental_completer = 1
 48 let g:racer_insert_paren = 1
 49 au FileType rust nmap gd <Plug>(rust-def)
 50 au FileType rust nmap gs <Plug>(rust-def-split)
 51 au FileType rust nmap gx <Plug>(rust-def-vertical)
 52 au FileType rust nmap <leader>gd <Plug>(rust-doc)
 53
54 " system-specific plugin settings
 55 if system('uname -s') == "Darwin\n"
 56  " if fzf was installed via brew
 57  set rtp+=/usr/local/opt/fzf
 58  let g:rust_clip_command = 'pbcopy'
 59  let g:racer_cmd = "/Users/nhahn/.cargo/bin/racer"
 60 else
 61  " if fzf was installed via git
 62  set rtp+=~/.fzf
 63  let g:rust_clip_command = 'xclip -selection clipboard'
 64  let g:racer_cmd = "/home/nhahn/.cargo/bin/racer"
 65 endif
 66 244,1Bot[?25h[?25l\[?25h[?25l \b[?25h[?25l :[?2004hlet &background = ( &background == "dark"? "light" : "dark" )
 14 " Change expandable/collapsible symbols in NerdTree
 13 let g:NERDTreeDirArrowExpandable = '+'
 12 let g:NERDTreeDirArrowCollapsible = '-'
 11
10 if has("mouse_sgr")
 9  set ttymouse=sgr
 8 else
 7  set ttymouse=xterm2
 6 end
 5
4 " vim-indent-guides settings
 3 "let g:indent_guides_enable_on_vim_startup = 1
 2 "let g:indent_guides_auto_colors = 0
 1 "autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=gray11
244 "autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=gray14  1
2 "au CursorHold,CursorHoldI,BufWritePost,BufEnter,BufLeave,FocusGained,FocusLost * :GitGutterEE nable
 3 au BufWritePost * :GitGutterEnable
 4
5 " speed up gitgutter
 6 let g:gitgutter_realtime = 0
 7 let g:gitgutter_eager = 0
 8
9 highlight GitGutterAdd guifg=#22aa22 guibg=gray12 ctermfg=118 ctermbg=237
 10 highlight GitGutterChange guifg=#ccaa00 guibg=gray12 ctermfg=196 ctermbg=237
 11 highlight GitGutterDelete guifg=#cc4422 guibg=gray12 ctermfg=184 ctermbg=237
 12
13
14 " UltiSnips triggering
 15 let g:UltiSnipsExpandTrigger = '<C-j>'
 16 let g:UltiSnipsJumpForwardTrigger = '<C-j>'
 17 let g:UltiSnipsJumpBackwardTrigger = '<C-k>'
 18
19 " rainbow parenthesis on by default
 20 let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle
 21
22 " ale
 23 let g:ale_python_prospector_executable = 'python3'
 24 let g:ale_python_pylint_executable = 'python3'
 25 let g:ale_set_signs = 0
 26 highlight clear ALEWarningSign
 27 highlight ALEWarning guibg=#003366 ctermbg=19
 28 highlight ALEError guibg=#882200 ctermbg=88
 29
30 " vim-clojure-highlight
 31 " Evaluate Clojure buffers on load
 32 autocmd BufRead *.clj try | silent! Require | catch /^Fireplace/ | endtry
 33 "autocmd Syntax clojure EnableSyntaxExtension
 34
35 " black
 36 " autoformat on save
 37 autocmd BufWritePre *.py silent! execute ':Black'
 38
39 " pydocstring
 40 cnoreabbrev pd :Pydocstring
 41
42 " rust.vim settings
 43 let g:rustfmt_autosave = 1
 44
45 " rust-racer settings
 46 set hidden
 47 let g:racer_experimental_completer = 1
 48 let g:racer_insert_paren = 1
 49 au FileType rust nmap gd <Plug>(rust-def)
 50 au FileType rust nmap gs <Plug>(rust-def-split)
 51 au FileType rust nmap gx <Plug>(rust-def-vertical)
 52 au FileType rust nmap <leader>gd <Plug>(rust-doc)
 53
54 " system-specific plugin settings
 55 if system('uname -s') == "Darwin\n"
 56  " if fzf was installed via brew
 57  set rtp+=/usr/local/opt/fzf
 58  let g:rust_clip_command = 'pbcopy'
 59  let g:racer_cmd = "/Users/nhahn/.cargo/bin/racer"
 60 else
 61  " if fzf was installed via git
 62  set rtp+=~/.fzf
 63  let g:rust_clip_command = 'xclip -selection clipboard'
 64  let g:racer_cmd = "/home/nhahn/.cargo/bin/racer"
 65 endif
 66 244,1Bot[?25h[?25l^D 55
54
53
52
51
50
49
48
47
46
45
44
43
42
41 "autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=gray1440
39EE
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
285   1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2585,0-1[?25h[?25l^D 80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25 24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
310  310[?25h[?25l^U  78  autocmd!
 77  autocmd VimEnter * silent! autocmd! FileExplorer
 76  autocmd BufEnter,BufNew *
 75  \ if isdirectory(expand('<amatch>'))
 74  \| call plug#load('nerdtree')
 73  \| execute 'autocmd! nerd_loader'
 72  \| endif
 71 augroup END
 70
69 " Use compact syntax for prettified multi-line comments
 68 let g:NERDCompactSexyComs = 1
 67
66 " Align line-wise comment delimiters flush left instead of following code
 65 " indentation
 64 let g:NERDDefaultAlign = 'left'
 63
62 " Close vim if the only window left open is a NerdTree
 61 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | qq  | endif
 60
59 " Give different filetypes different highlighting in NerdTree
 58 function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)
 57  exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. aa :fg .' guibg='. a:guibg .' guifg='. a:guifg
 56  exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#'
 55 endfunction
 54 call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#151515')
 53 call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515')
 52 call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515')
 51 call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515')
 50 call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515')
 49 call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515')
 48 call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515')
 47 call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515')
 46 call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515')
 45 call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515')
 44 call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515')
 43 call NERDTreeHighlightFile('js', 'Red', 'none', '#ffa500', '#151515')
 42 call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#151515')
 41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
269 let g:ale_set_signs = 0 269,182%[?25h[?25l^U  78 Plug 'ap/vim-css-color' " highlight hex color codes with the color
 77 Plug 'tommcdo/vim-exchange' " swap text objects
 76 Plug 'vimwiki/vimwiki' " personal note taking
 75 Plug 'AndrewRadev/switch.vim' " swap word with its opposite (true->false)
 74 Plug 'christoomey/vim-tmux-navigator' " move through vim and tmux splits seamlessly
 73 Plug 'tpope/vim-unimpaired' " better bindings for quickfix
 72
71 call plug#end()
 70
69
68 """""""""""""""""""
 67 " PLUGIN SETTINGS "
 66 """""""""""""""""""
 65
64
63 " Deoplete
 62 let g:deoplete#enable_at_startup = 1
 61 " <TAB>: completion.
 60 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
 59
58 " " Default line highlighting for unknown filetypes
 57 hi String ctermfg=140
 56 hi CursorLine ctermbg=235
 55 " hi CursorLine guibg=#D3D3D3 cterm=none
 54
53 autocmd BufReadPost *
 52  \ if line("'\"") > 1 && line("'\"") <= line("$") |
 51  \ exe "normal! g`\"" |
 50  \ endif
 49
48 au BufRead,BufNewFile *.ts set filetype=typescript
 47 au BufRead,BufNewFile *.tsx set filetype=typescript
 46
45 " build tex->pdf on save
 44 au BufWritePost,FileWritePost *.tex make %
 43
42 "fix racket comments
 41 let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }
 40 let g:NERDCustomDelimiters = { 'pico8': { 'left': '--','right': '' } }
 39
38 augroup nerd_loader37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
228   1228,0-164%[?25h[?25l^U  78 Plug 'tpope/vim-fugitive'
 77 Plug 'tpope/vim-surround'
 76 Plug 'tpope/vim-sleuth'
 75 Plug 'Lokaltog/vim-easymotion'
 74 "Plug 'terryma/vim-expand-region'
 73 Plug 'scrooloose/nerdcommenter'
 72 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 71 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 70 Plug 'ingydotnet/yaml-vim'
 69 "Plug 'nathanaelkane/vim-indent-guides'
 68 Plug 'bling/vim-bufferline'
 67 Plug 'jelera/vim-javascript-syntax'
 66 Plug 'pangloss/vim-javascript'
 65 Plug 'leafgarland/typescript-vim'
 64 Plug 'airblade/vim-gitgutter'
 63 Plug 'terryma/vim-multiple-cursors'
 62 Plug 'sjl/vitality.vim' " make focus events work with iterm
 61 Plug 'w0rp/ale' " live linting
 60 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 59 Plug 'vim-latex/vim-latex' " latex support
 58 Plug 'bhurlow/vim-parinfer' " balance parens
 57 Plug 'sheerun/vim-polyglot'
 56 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 55 Plug 'SirVer/ultisnips' " snippet engine
 54 Plug 'honza/vim-snippets' " bunch o snippets
 53 Plug 'luochen1990/rainbow' " rainbow parenthesis
 52 Plug 'integralist/vim-mypy'
 51 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 50 Plug 'jremmen/vim-ripgrep'
 49 Plug 'guns/vim-clojure-static' " clojure improvements
 48 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 47 Plug 'ambv/black' " python autoformatter
 46 Plug 'heavenshell/vim-pydocstring'
 45 Plug 'rking/ag.vim'
 44 Plug 'rust-lang/rust.vim'
 43 Plug 'racer-rust/vim-racer'
 42 Plug 'majutsushi/tagbar'
 41 Plug 'flazz/vim-colorschemes' " bunch o colorschemes
 40 "Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe
 39 Plug 'roxma/nvim-yarp'
 38 Plug 'roxma/vim-hug-neovim-rpc'37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
187 let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }  1
2
3187,147%[?25h[?25l 75 Plug 'Lokaltog/vim-easymotion'
 74 "Plug 'terryma/vim-expand-region'
 73 Plug 'scrooloose/nerdcommenter'
 72 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 71 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 70 Plug 'ingydotnet/yaml-vim'
 69 "Plug 'nathanaelkane/vim-indent-guides'
 68 Plug 'bling/vim-bufferline'
 67 Plug 'jelera/vim-javascript-syntax'
 66 Plug 'pangloss/vim-javascript'
 65 Plug 'leafgarland/typescript-vim'
 64 Plug 'airblade/vim-gitgutter'
 63 Plug 'terryma/vim-multiple-cursors'
 62 Plug 'sjl/vitality.vim' " make focus events work with iterm
 61 Plug 'w0rp/ale' " live linting
 60 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 59 Plug 'vim-latex/vim-latex' " latex support
 58 Plug 'bhurlow/vim-parinfer' " balance parens
 57 Plug 'sheerun/vim-polyglot'
 56 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 55 Plug 'SirVer/ultisnips' " snippet engine
 54 Plug 'honza/vim-snippets' " bunch o snippets
 53 Plug 'luochen1990/rainbow' " rainbow parenthesis
 52 Plug 'integralist/vim-mypy'
 51 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 50 Plug 'jremmen/vim-ripgrep'
 49 Plug 'guns/vim-clojure-static' " clojure improvements
 48 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 47 Plug 'ambv/black' " python autoformatter
 46 Plug 'heavenshell/vim-pydocstring'
 45 Plug 'rking/ag.vim'
 44 Plug 'rust-lang/rust.vim'
 43 Plug 'racer-rust/vim-racer'
 42 Plug 'majutsushi/tagbar'
 41 Plug 'flazz/vim-colorschemes' " bunch o colorschemes
 40 "Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe
 39 Plug 'roxma/nvim-yarp'
 38 Plug 'roxma/vim-hug-neovim-rpc'
 37 Plug 'ap/vim-css-color' " highlight hex color codes with the color
 36 Plug 'tommcdo/vim-exchange' " swap text objects
 35 Plug 'vimwiki/vimwiki' " personal note taking
 34 Plug 'AndrewRadev/switch.vim' " swap word with its opposite (true->false)
 33 Plug 'christoomey/vim-tmux-navigator' " move through vim and tmux splits seamlessly
 32 Plug 'tpope/vim-unimpaired' " better bindings for quickfix
 31
30 call plug#end()
 29
28
27 """""""""""""""""""
 26 " PLUGIN SETTINGS "
 25 """""""""""""""""""
 24
23
22 " Deoplete
 21 let g:deoplete#enable_at_startup = 1
 20 " <TAB>: completion.
 19 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
 18
17 " " Default line highlighting for unknown filetypes
 16 hi String ctermfg=140
 15 hi CursorLine ctermbg=235
 14 " hi CursorLine guibg=#D3D3D3 cterm=none
 13
12 autocmd BufReadPost *
 11  \ if line("'\"") > 1 && line("'\"") <= line("$") |
 10  \ exe "normal! g`\"" |
 9  \ endif
 8
7 au BufRead,BufNewFile *.ts set filetype=typescript
 6 au BufRead,BufNewFile *.tsx set filetype=typescript
 5
4 " build tex->pdf on save
 3 au BufWritePost,FileWritePost *.tex make %
 2
1 "fix racket comments
187 let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }  1 let g:NERDCustomDelimiters = { 'pico8': { 'left': '--','right': '' } }
 2
3 augroup nerd_loader187,148%[?25h[?25l 72 Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
 71 "Plug 'jiangmiao/auto-pairs' " auto-close groupings: () {} []
 70 Plug 'ingydotnet/yaml-vim'
 69 "Plug 'nathanaelkane/vim-indent-guides'
 68 Plug 'bling/vim-bufferline'
 67 Plug 'jelera/vim-javascript-syntax'
 66 Plug 'pangloss/vim-javascript'
 65 Plug 'leafgarland/typescript-vim'
 64 Plug 'airblade/vim-gitgutter'
 63 Plug 'terryma/vim-multiple-cursors'
 62 Plug 'sjl/vitality.vim' " make focus events work with iterm
 61 Plug 'w0rp/ale' " live linting
 60 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 59 Plug 'vim-latex/vim-latex' " latex support
 58 Plug 'bhurlow/vim-parinfer' " balance parens
 57 Plug 'sheerun/vim-polyglot'
 56 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 55 Plug 'SirVer/ultisnips' " snippet engine
 54 Plug 'honza/vim-snippets' " bunch o snippets
 53 Plug 'luochen1990/rainbow' " rainbow parenthesis
 52 Plug 'integralist/vim-mypy'
 51 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 50 Plug 'jremmen/vim-ripgrep'
 49 Plug 'guns/vim-clojure-static' " clojure improvements
 48 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 47 Plug 'ambv/black' " python autoformatter
 46 Plug 'heavenshell/vim-pydocstring'
 45 Plug 'rking/ag.vim'
 44 Plug 'rust-lang/rust.vim'
 43 Plug 'racer-rust/vim-racer'
 42 Plug 'majutsushi/tagbar'
 41 Plug 'flazz/vim-colorschemes' " bunch o colorschemes
 40 "Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe
 39 Plug 'roxma/nvim-yarp'
 38 Plug 'roxma/vim-hug-neovim-rpc'
 37 Plug 'ap/vim-css-color' " highlight hex color codes with the color
 36 Plug 'tommcdo/vim-exchange' " swap text objects
 35 Plug 'vimwiki/vimwiki' " personal note taking
 34 Plug 'AndrewRadev/switch.vim' " swap word with its opposite (true->false)
 33 Plug 'christoomey/vim-tmux-navigator' " move through vim and tmux splits seamlessly
 32 Plug 'tpope/vim-unimpaired' " better bindings for quickfix
 31
30 call plug#end()
 29
28
27 """""""""""""""""""
 26 " PLUGIN SETTINGS "
 25 """""""""""""""""""
 24
23
22 " Deoplete
 21 let g:deoplete#enable_at_startup = 1
 20 " <TAB>: completion.
 19 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
 18
17 " " Default line highlighting for unknown filetypes
 16 hi String ctermfg=140
 15 hi CursorLine ctermbg=235
 14 " hi CursorLine guibg=#D3D3D3 cterm=none
 13
12 autocmd BufReadPost *
 11  \ if line("'\"") > 1 && line("'\"") <= line("$") |
 10  \ exe "normal! g`\"" |
 9  \ endif
 8
7 au BufRead,BufNewFile *.ts set filetype=typescript
 6 au BufRead,BufNewFile *.tsx set filetype=typescript
 5
4 " build tex->pdf on save
 3 au BufWritePost,FileWritePost *.tex make %
 2
1 "fix racket comments
187 let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }  1 let g:NERDCustomDelimiters = { 'pico8': { 'left': '--','right': '' } }
 2
3 augroup nerd_loader187,148%[?25h[?25l 69 "Plug 'nathanaelkane/vim-indent-guides'
 68 Plug 'bling/vim-bufferline'
 67 Plug 'jelera/vim-javascript-syntax'
 66 Plug 'pangloss/vim-javascript'
 65 Plug 'leafgarland/typescript-vim'
 64 Plug 'airblade/vim-gitgutter'
 63 Plug 'terryma/vim-multiple-cursors'
 62 Plug 'sjl/vitality.vim' " make focus events work with iterm
 61 Plug 'w0rp/ale' " live linting
 60 "Plug 'python-mode/python-mode', { 'branch': 'develop' }
 59 Plug 'vim-latex/vim-latex' " latex support
 58 Plug 'bhurlow/vim-parinfer' " balance parens
 57 Plug 'sheerun/vim-polyglot'
 56 Plug 'l04m33/vlime', {'rtp': 'vim/'} " make vim act like emacs SLIME
 55 Plug 'SirVer/ultisnips' " snippet engine
 54 Plug 'honza/vim-snippets' " bunch o snippets
 53 Plug 'luochen1990/rainbow' " rainbow parenthesis
 52 Plug 'integralist/vim-mypy'
 51 Plug 'craigemery/vim-autotag' " auto-reload ctags on change
 50 Plug 'jremmen/vim-ripgrep'
 49 Plug 'guns/vim-clojure-static' " clojure improvements
 48 Plug 'guns/vim-clojure-highlight' " extra syntax highlight defns for clj
 47 Plug 'ambv/black' " python autoformatter
 46 Plug 'heavenshell/vim-pydocstring'
 45 Plug 'rking/ag.vim'
 44 Plug 'rust-lang/rust.vim'
 43 Plug 'racer-rust/vim-racer'
 42 Plug 'majutsushi/tagbar'
 41 Plug 'flazz/vim-colorschemes' " bunch o colorschemes
 40 "Plug 'Shougo/deoplete.nvim' " much better than YouCompleteMe
 39 Plug 'roxma/nvim-yarp'
 38 Plug 'roxma/vim-hug-neovim-rpc'
 37 Plug 'ap/vim-css-color' " highlight hex color codes with the color
 36 Plug 'tommcdo/vim-exchange' " swap text objects
 35 Plug 'vimwiki/vimwiki' " personal note taking
 34 Plug 'AndrewRadev/switch.vim' " swap word with its opposite (true->false)
 33 Plug 'christoomey/vim-tmux-navigator' " move through vim and tmux splits seamless sly
 32 Plug 'tpope/vim-unimpaired' " better bindings for quickfix
 31
30 call plug#end()
 29
28
27 """""""""""""""""""
 26 " PLUGIN SETTINGS "
 25 """""""""""""""""""
 24
23
22 " Deoplete
 21 let g:deoplete#enable_at_startup = 1
 20 " <TAB>: completion.
 19 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
 18
17 " " Default line highlighting for unknown filetypes
 16 hi String ctermfg=140
 15 hi CursorLine ctermbg=235
 14 " hi CursorLine guibg=#D3D3D3 cterm=none
 13
12 autocmd BufReadPost *
 11  \ if line("'\"") > 1 && line("'\"") <= line("$") |
 10  \ exe "normal! g`\"" |
 9  \ endif
 8
7 au BufRead,BufNewFile *.ts set filetype=typescript
 6 au BufRead,BufNewFile *.tsx set filetype=typescript
 5
4 " build tex->pdf on save
 3 au BufWritePost,FileWritePost *.tex make %
 2
1 "fix racket comments
187 let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }  1 let g:NERDCustomDelimiters = { 'pico8': { 'left': '--','right': '' } }
 2 187,149%[?25h[?25l^D 68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35 let g:NERDCustomDelimiters = { 'racket': { 'left': '; ','right': '' } }34
33
32 augroup nerd_loader
 31  autocmd!
 30  autocmd VimEnter * silent! autocmd! FileExplorer
 29  autocmd BufEnter,BufNew *
 28  \ if isdirectory(expand('<amatch>'))
 27  \| call plug#load('nerdtree')
 26  \| execute 'autocmd! nerd_loader'
 25  \| endif
 24 augroup END
 23
22 " Use compact syntax for prettified multi-line comments
 21 let g:NERDCompactSexyComs = 1
 20
19 " Align line-wise comment delimiters flush left instead of following code
 18 " indentation
 17 let g:NERDDefaultAlign = 'left'
 16
15 " Close vim if the only window left open is a NerdTree
 14 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTT abTree()) | q | endif
 13
12 " Give different filetypes different highlighting in NerdTree
 11 function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)
 10  exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .''  ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg
 9  exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extenn sion .'$#'
 8 endfunction
 7 call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#151515')
 6 call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515')
 5 call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515')
 4 call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515')
 3 call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515')
 2 call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515')
 1 call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515')
222 call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515') 222,163%[?25h[?25l
[1:.vimrc ]222,163%[?25h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment