From 6cfba4bccec880386fc16d1f6977270245b30c9a Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 11 Nov 2014 17:07:22 +0000 Subject: update --- latexmkrc | 2 ++ make | 2 +- mutt/muttrc | 6 +++--- vim/vimrc | 20 ++++++++++++++++++-- 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 latexmkrc diff --git a/latexmkrc b/latexmkrc new file mode 100644 index 0000000..b466d7b --- /dev/null +++ b/latexmkrc @@ -0,0 +1,2 @@ +$pdf_mode = 1; +$pdf_previewer = 'zathura -s -x "vim --servername SYNCTEX --remote +%{line} %{input}" %O %S'; diff --git a/make b/make index 11c40e3..b66a6c1 100755 --- a/make +++ b/make @@ -4,7 +4,7 @@ dir=~/dotfiles olddir=~/dotfiles_old # Files to sync -files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc inputrc crontab krystle" +files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc inputrc latexmkrc crontab krystle" rm -rf $olddir mkdir -p $olddir diff --git a/mutt/muttrc b/mutt/muttrc index 48504db..2c1b023 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -27,9 +27,9 @@ set status_format = "───( Folder: %f )───(%r%m messages%?n? (%n new) # Headers ignore * -unignore from: to: cc: date: subject: -unhdr_order * -hdr_order from: to: cc: date: subject: +# unignore from: to: cc: date: subject: +# unhdr_order * +# hdr_order from: to: cc: date: subject: # Mailboxes mailboxes +Main/Main \ diff --git a/vim/vimrc b/vim/vimrc index ac230bc..05a059c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -40,6 +40,22 @@ noremap :UltiSnipsEdit let g:tex_flavor='latex' let g:tex_conceal= 'adgm' let g:LatexBox_Folding=0 +let g:LatexBox_viewer='zathura' +let g:LatexBox_latexmk_preview_continuously=1 +let g:LatexBox_quickfix=2 +function! SynctexShow() + let synctex = glob("*.synctex.gz") + if strlen(synctex) == 0 + echo "no synctex file found" + else + let pdffile = substitute(synctex,"synctex.gz","pdf","") + let execline = printf(":!zathura --synctex-forward %d:%d:%s %s", line('.'), col('.'), shellescape(bufname("%")), shellescape(pdffile)) + exec execline + end +endfunction +nnoremap lv :call SynctexShow() +nnoremap lc :Latexmk +nnoremap ls :LatexmkStop:LatexmkClean " Gundo nnoremap :GundoToggle @@ -144,7 +160,7 @@ autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme() " Definition of leader and localleader let mapleader = "\\" -let maplocalleader = "+" +let maplocalleader = "-" " Leader maps nmap @@ -153,7 +169,7 @@ nmap t nnoremap h :set hlsearch! nnoremap n :set relativenumber! nnoremap q :q! -nnoremap sv :source ~/.vimrc +nnoremap sv :source ~/.vim/vimrc nnoremap sc :source % nnoremap w :w nnoremap te :tabedit -- cgit v1.2.3