mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 07:15:37 +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 "scroll-reverser" # Mouse vs. trackpad
|
||||||
cask "meetingbar" # Scheduling
|
cask "meetingbar" # Scheduling
|
||||||
cask "gitify" # GitHub notifications
|
cask "gitify" # GitHub notifications
|
||||||
|
brew "basictex" # Small LaTeX distribution
|
||||||
|
|
||||||
# Fonts
|
# Fonts
|
||||||
tap "homebrew/cask-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 the leader key
|
||||||
map <Space> <Leader>
|
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
|
"This unsets the `last search pattern` register by hitting return
|
||||||
nnoremap <silent> <CR> :noh<CR><CR>
|
nnoremap <silent> <CR> :noh<CR><CR>
|
||||||
|
|
||||||
|
" Replace all
|
||||||
|
nnoremap <Leader>S :%s//g<Left><Left>
|
||||||
|
|
||||||
" Jump to text in this directory
|
" Jump to text in this directory
|
||||||
nnoremap <Leader>/ :Rg<CR>
|
nnoremap <Leader>/ :Rg<CR>
|
||||||
|
|
||||||
@ -194,6 +200,12 @@ nmap <leader>qf <Plug>(coc-fix-current)
|
|||||||
nmap <silent> <C-s> <Plug>(coc-range-select)
|
nmap <silent> <C-s> <Plug>(coc-range-select)
|
||||||
xmap <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
|
" Plugin Settings
|
||||||
"----------------
|
"----------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user