Skip to content

Instantly share code, notes, and snippets.

View nhooyr's full-sized avatar

Anmol Sethi nhooyr

View GitHub Profile
" Plugins {{{
call plug#begin('/usr/local/etc/dotfiles/nvim/plugged')
Plug 'junegunn/vim-easy-align'
"TODO FIX LABELS
Plug 'fatih/vim-go', { 'for': 'go' }
Plug 'tomtom/tcomment_vim'
Plug 'haya14busa/incsearch.vim'
Plug 'benekastah/neomake'
Plug 'majutsushi/tagbar'
Plug 'tpope/vim-fugitive'
nnoremap <silent> <leader>ws :call SudoWrite()<CR>
function! SudoWrite()
let undofile = fnameescape(substitute(expand("%:p"), "/", "%", "g"))
exec "wundo" . &undodir . "/" . undofile
execute ":write !sudo dd of=" . shellescape(@%, 1)
endfunction
sourcing "init.vim"
line 1: set updatetime=1
line 2: nnoremap <silent> <a-v> :vsplit term://$SHELL<CR>
line 3: nnoremap <silent> <c-g> :vs term://./neogo<CR>
finished sourcing init.vim
Searching for "plugin/**/*.vim" in "/usr/local/etc/dotfiles/nvim,/etc/xdg/nvim,/Users/nhooyr/.local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/local/Cellar/neovim/HEAD/share/nvim/runtime,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/Users/nhooyr/.local/share/nvim/site/after,/etc/xdg/nvim/after,/usr/local/etc/dotfiles/nvim/after"
Searching for "/usr/local/etc/dotfiles/nvim/plugin/**/*.vim"
Searching for "/etc/xdg/nvim/plugin/**/*.vim"
Searching for "/Users/nhooyr/.local/share/nvim/site/plugin/**/*.vim"
sourcing "init.vim"
line 1: set updatetime=1
line 2: nnoremap <silent> <a-v> :vsplit term://$SHELL<CR>
line 3: nnoremap <silent> <c-g> :vs term://./neogo<CR>
finished sourcing init.vim
Searching for "plugin/**/*.vim" in "/usr/local/etc/dotfiles/nvim,/etc/xdg/nvim,/Users/nhooyr/.local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/local/Cellar/neovim/HEAD/share/nvim/runtime,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/Users/nhooyr/.local/share/nvim/site/after,/etc/xdg/nvim/after,/usr/local/etc/dotfiles/nvim/after"
Searching for "/usr/local/etc/dotfiles/nvim/plugin/**/*.vim"
Searching for "/etc/xdg/nvim/plugin/**/*.vim"
Searching for "/Users/nhooyr/.local/share/nvim/site/plugin/**/*.vim"
@nhooyr
nhooyr / tut.tex
Last active February 6, 2016 18:48
\pdfobjcompresslevel=0
\documentclass[12pt]{article}
\setlength{\headheight}{15pt}
\usepackage{ifpdf}
\usepackage{mla}
\begin{document}
\begin{mla}{Anmol}{Sethi}{Blake}{ENG-2DR}{\today}{Jesus}
It's interesting to note the sjdsakl of the jesus mocking, the polymoprhism of x to y qudartic formula. What is more interesting repoting oasjdosdjosajodasdojassjsadjas
das
$x = y$
let page = substitute(a:str, '^\*\?\(\%([a-zA-Z_:0-9-]\%(\.\?[a-zA-Z_:0-9-]\)\?\)\+\).*$', '\1', '')
colorscheme apprentice
highlight Type ctermfg=103
highlight cssClassName ctermfg=6
highlight cssClassNameDot ctermfg=6
highlight link jsFuncCall Type
highlight cssBraces ctermfg=fg
highlight htmlLink ctermfg=fg
highlight Function ctermfg=182
highlight MatchParen ctermfg=182 ctermbg=232
highlight Constant ctermfg=210
colorscheme apprentice
highlight Type ctermfg=103
highlight cssClassName ctermfg=6
highlight cssClassNameDot ctermfg=6
highlight link jsFuncCall Type
highlight cssBraces ctermfg=fg
highlight htmlLink ctermfg=fg
highlight Function ctermfg=182
highlight MatchParen ctermfg=182 ctermbg=232
highlight Constant ctermfg=210
@nhooyr
nhooyr / fish
Created February 15, 2016 18:27
function _nman
set page $argv[1..-2] #grab all arguments except for the last one
if [ -z "$page" ]
echo "What manual page do you want?"
return
end
set tmp $IFS
set IFS '\n'
set out (command man -w $page 2>&1)
set code $status
function _nman
set page $argv[1..-2] #grab all arguments except for the last one
if [ -z "$page" ]
echo "What manual page do you want?"
return
end
set tmp $IFS
set IFS '\n'
set out (command man -w $page 2>&1)
set code $status