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