mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 08:45:39 +00:00
some latex stuff
This commit is contained in:
parent
ac0e07e330
commit
d027864dee
@ -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"
|
||||
|
@ -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
|
||||
"----------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user