some latex stuff

This commit is contained in:
Noah Masur 2020-11-22 23:16:42 -05:00
parent ac0e07e330
commit d027864dee
2 changed files with 13 additions and 0 deletions

View File

@ -22,6 +22,7 @@ cask "drawio" # Diagrams
cask "scroll-reverser" # Mouse vs. trackpad
cask "meetingbar" # Scheduling
cask "gitify" # GitHub notifications
brew "basictex" # Small LaTeX distribution
# Fonts
tap "homebrew/cask-fonts"

View File

@ -91,9 +91,15 @@ command Vimrc edit ~/.config/nvim/init.vim " Edit .vimrc (this file)
" Map the leader key
map <Space> <Leader>
" Jump to the next occurence of <> and replace it with insert mode
nnoremap <Leader><Space> /<><Esc>:noh<CR>c2l
"This unsets the `last search pattern` register by hitting return
nnoremap <silent> <CR> :noh<CR><CR>
" Replace all
nnoremap <Leader>S :%s//g<Left><Left>
" Jump to text in this directory
nnoremap <Leader>/ :Rg<CR>
@ -194,6 +200,12 @@ nmap <leader>qf <Plug>(coc-fix-current)
nmap <silent> <C-s> <Plug>(coc-range-select)
xmap <silent> <C-s> <Plug>(coc-range-select)
" LaTeX Hotkeys
autocmd FileType tex inoremap ;bf \textbf{}<Esc>i
" Autocompile LaTeX on save
autocmd BufWritePost *.tex silent! execute "!pdflatex -output-directory=%:p:h % >/dev/null 2>&1" | redraw!
" Plugin Settings
"----------------