Add latex mode
This commit is contained in:
parent
575729695b
commit
3380a7b98b
1 changed files with 10 additions and 1 deletions
|
@ -15,8 +15,9 @@ Plug 'mg979/vim-visual-multi'
|
||||||
" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
" Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
|
" Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
|
||||||
Plug 'luochen1990/rainbow'
|
Plug 'luochen1990/rainbow'
|
||||||
" Plug 'wlangstroth/vim-racket'
|
Plug 'wlangstroth/vim-racket'
|
||||||
Plug 'sirver/ultisnips'
|
Plug 'sirver/ultisnips'
|
||||||
|
Plug 'lervag/vimtex'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set completeopt-=preview
|
set completeopt-=preview
|
||||||
|
@ -29,8 +30,10 @@ function! s:insert_gates()
|
||||||
normal! kk
|
normal! kk
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let maplocalleader = ","
|
||||||
let g:mapleader = ','
|
let g:mapleader = ','
|
||||||
let g:VM_leader = ','
|
let g:VM_leader = ','
|
||||||
|
let g:vimtex_view_method = 'zathura'
|
||||||
let g:rainbow_active = 1
|
let g:rainbow_active = 1
|
||||||
let g:syntastic_enable_racket_racket_checker = 1
|
let g:syntastic_enable_racket_racket_checker = 1
|
||||||
let g:syntastic_cpp_compiler_options = '-std=c++20'
|
let g:syntastic_cpp_compiler_options = '-std=c++20'
|
||||||
|
@ -75,6 +78,10 @@ autocmd Filetype tex,markdown,mail setlocal linebreak spell spelllang=de
|
||||||
autocmd BufNewFile *.{h,hpp} call <SID>insert_gates()
|
autocmd BufNewFile *.{h,hpp} call <SID>insert_gates()
|
||||||
autocmd BufNewFile,BufRead *.asm set filetype=nasm
|
autocmd BufNewFile,BufRead *.asm set filetype=nasm
|
||||||
|
|
||||||
|
" This is necessary for VimTeX to load properly. The "indent" is optional.
|
||||||
|
" Note that most plugin managers will do this automatically.
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
set spelllang=de,en
|
set spelllang=de,en
|
||||||
set complete+=kspell
|
set complete+=kspell
|
||||||
|
|
||||||
|
@ -85,4 +92,6 @@ noremap <A-t> :terminal<cr>
|
||||||
noremap <A-b> :Buffers<cr>
|
noremap <A-b> :Buffers<cr>
|
||||||
noremap <A-g> :Git<cr>
|
noremap <A-g> :Git<cr>
|
||||||
|
|
||||||
|
nnoremap <localleader>lt :call vimtex#fzf#run()<cr>
|
||||||
|
|
||||||
tnoremap <C-w> <C-\><C-n><C-w>
|
tnoremap <C-w> <C-\><C-n><C-w>
|
||||||
|
|
Loading…
Add table
Reference in a new issue