Skip to content

Instantly share code, notes, and snippets.

View brianjp93's full-sized avatar
💭
反重力

Brian Perrett brianjp93

💭
反重力
  • Denver
View GitHub Profile
@brianjp93
brianjp93 / Learning.ipynb
Created February 20, 2016 04:12
League Learning
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brianjp93
brianjp93 / .vimrc
Last active June 12, 2020 04:54
.vimrc
call plug#begin()
Plug 'flazz/vim-colorschemes' "color scheme
Plug 'scrooloose/nerdtree' "file directory
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'vim-airline/vim-airline' "statusline at bottom
Plug 'yggdroot/indentline' "clean indentline
Plug 'tpope/vim-surround' "surrounding text with quotes or tags etc...
Plug 'mattn/emmet-vim' "emmet for HTML tags
Plug 'junegunn/fzf' "fuzzy finder for files
Plug 'tpope/vim-commentary' "easy commenting
@brianjp93
brianjp93 / fresh vim install
Last active January 14, 2020 06:54
how to setup env for vim
# 3. download .vimrc from gist
> curl -o ~/.vimrc https://gist.githubusercontent.com/brianjp93/5390b9e72849e213c9a0d3c85bf03935/raw/.vimrc
# 2. download git
> brew install git
or
> sudo [apt, apt-get, brew, yum] install git
# 3. install node
-- you may need to add the node repo
@brianjp93
brianjp93 / cyclethemes.vim
Last active July 8, 2020 21:33
cycle through colorschemes in vim and switch to light theme for specific themes. Bound alt-c to cycle.
let s:mycolors = ['deus', 'gruvbox', 'onedark'] " colorscheme names that we use to set color
function! NextColor()
call s:NextColor()
endfunction
function! s:NextColor()
let current = index(s:mycolors, g:colors_name)
let go_next = 1
if index(['gruvbox'], g:colors_name) >= 0