Feat: vim tweaks and zathura for pdf viewer with vimtex
This commit is contained in:
parent
e3c1b45f03
commit
af5fbc30d5
@ -7,9 +7,6 @@ set laststatus=2
|
||||
" Necessary to show Unicode glyphs
|
||||
set encoding=utf8
|
||||
|
||||
" tab length
|
||||
set tabstop=4
|
||||
|
||||
" smart tab
|
||||
set smartindent
|
||||
|
||||
@ -110,14 +107,12 @@ vmap < <gv
|
||||
vmap > >gv
|
||||
|
||||
" Spelling
|
||||
set spelllang=fr
|
||||
" Set and unset spelling correction
|
||||
map <silent> <F7> "<Esc>:silent setlocal spell! spelllang=en<CR>"
|
||||
map <silent> <F6> "<Esc>:silent setlocal spell! spelllang=fr<CR>"
|
||||
" set spelllang=fr
|
||||
autocmd BufRead,BufNewFile *.{md,tex,rst} setlocal spell spelllang=fr
|
||||
autocmd FileType tex,latex,markdown,md,rst setlocal spell spelllang=fr
|
||||
|
||||
autocmd BufRead,BufNewFile *.{md,tex,rst} setlocal spell
|
||||
" Remove trailing whitespace at the end of lines
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
|
||||
" Different color for far columns
|
||||
execute "set colorcolumn=" . join(range(81,335), ',')
|
||||
" Show what is written!
|
||||
set conceallevel=0
|
||||
|
||||
|
@ -2,7 +2,15 @@
|
||||
set noshowmode
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'selenized_dark',
|
||||
\ 'active': {
|
||||
\ 'left': [ [ 'mode', 'paste' ],
|
||||
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
|
||||
\ },
|
||||
\ 'component_function': {
|
||||
\ 'gitbranch': 'FugitiveHead'
|
||||
\ },
|
||||
\ }
|
||||
|
||||
" Supertab
|
||||
let g:SuperTabDefaultCompletionType = "context"
|
||||
|
||||
@ -68,6 +76,7 @@ let g:vimtex_compiler_latexmk = {
|
||||
\ '-shell-escape',
|
||||
\ ],
|
||||
\}
|
||||
let g:vimtex_view_method = 'zathura'
|
||||
|
||||
" Les fichiers sty et cls sont vus comme des fichiers tex
|
||||
autocmd BufRead,BufNewFile *.{sty,cls} setlocal syntax=tex
|
||||
|
@ -1,4 +1,8 @@
|
||||
set nocompatible " be iMproved, required
|
||||
noremap <Space> <Nop>
|
||||
map <Space> <Leader>
|
||||
let mapleader = "\<Space>"
|
||||
let localleader = "\<Space>"
|
||||
|
||||
" set the runtime path to include plug.com and initialize
|
||||
call plug#begin('~/.vim/plugged')
|
||||
@ -117,3 +121,4 @@ call plug#end() " required
|
||||
"runtime! config/*.vim
|
||||
runtime! config/base.vim
|
||||
runtime! config/plugins.vim
|
||||
set conceallevel=0
|
||||
|
@ -23,6 +23,7 @@
|
||||
- zathura-djvu
|
||||
- zathura-cb
|
||||
- zathura-pdf-mupdf
|
||||
- xdotool
|
||||
- guvcview
|
||||
state: present
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user