From e1986bd27bf9473a324267730d8088fa0cb1a793 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 26 Mar 2015 10:12:58 +0000 Subject: test --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5754d55..bb880b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ -mutt/cache/headers vim/bundle/ vifm/Trash/ mutt/mutt-colors-solarized/ mutt/temp/ passwords -mutt/cache/ +mutt/cache/* +mutt/cache/headers -- cgit v1.2.3 From 91e441d1f46722348fada96f8a74b32c9827d85d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 26 Mar 2015 10:14:27 +0000 Subject: test --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bb880b6..4c38576 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,4 @@ vifm/Trash/ mutt/mutt-colors-solarized/ mutt/temp/ passwords -mutt/cache/* -mutt/cache/headers +mutt/cache/ -- cgit v1.2.3 From b952023c9378fe8c54e3217823729d1b579bd478 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 28 Mar 2015 15:14:02 +0000 Subject: normal commit --- .gitignore | 1 + vim/mySnippets/tex.snippets | 4 ++++ zshrc | 3 +++ 3 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 4c38576..0b3f2c4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ mutt/mutt-colors-solarized/ mutt/temp/ passwords mutt/cache/ +mutt/cache/headers diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets index ff3fc0a..0f64ef6 100644 --- a/vim/mySnippets/tex.snippets +++ b/vim/mySnippets/tex.snippets @@ -77,3 +77,7 @@ endsnippet snippet cont "Continuous function" i \cont{$1}{$2} $0 endsnippet + +snippet ref "Clever reference" i +\cref{$1}$0 +endsnippet diff --git a/zshrc b/zshrc index e97b90d..6bb4e37 100644 --- a/zshrc +++ b/zshrc @@ -63,6 +63,9 @@ alias mail='offlineimap' alias ca='printf "\ec"' alias update='sudo apt-get update' alias upgrade='sudo apt-get upgrade' +alias push='git push origin master' +alias pull='git pull origin master' +alias commit='git commit -a -m "auto-commit"' # Configuration alias ez='vim ~/.zshrc' -- cgit v1.2.3 From 67bc05d8aff72315224e4cb764d2f9f5d17c2dc1 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 28 Mar 2015 15:16:44 +0000 Subject: shit --- mutt/cache/headers | Bin 642304 -> 567040 bytes vifm/Trash | Bin 98630 -> 246145 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/mutt/cache/headers b/mutt/cache/headers index 76ae554..af45084 100644 Binary files a/mutt/cache/headers and b/mutt/cache/headers differ diff --git a/vifm/Trash b/vifm/Trash index 12c6f49..2370755 100644 Binary files a/vifm/Trash and b/vifm/Trash differ -- cgit v1.2.3 From 10b92cadd90508959e1b71019bd9d6dfee67c544 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 28 Mar 2015 15:17:35 +0000 Subject: deleted useless files --- mutt/cache/headers | Bin 567040 -> 0 bytes vifm/Trash | Bin 246145 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 mutt/cache/headers delete mode 100644 vifm/Trash diff --git a/mutt/cache/headers b/mutt/cache/headers deleted file mode 100644 index af45084..0000000 Binary files a/mutt/cache/headers and /dev/null differ diff --git a/vifm/Trash b/vifm/Trash deleted file mode 100644 index 2370755..0000000 Binary files a/vifm/Trash and /dev/null differ -- cgit v1.2.3 From 43b95f1bbcf1450d4d1a7d202b9076443cd61fab Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 28 Mar 2015 15:25:01 +0000 Subject: everything --- make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make b/make index b66a6c1..31ca6d8 100755 --- a/make +++ b/make @@ -1,7 +1,7 @@ #!/bin/bash -dir=~/dotfiles -olddir=~/dotfiles_old +dir=~/Dropbox/dotfiles +olddir=~/Dropbox/dotfiles_old # Files to sync files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc inputrc latexmkrc crontab krystle" -- cgit v1.2.3 From 830d718477e024f2e68cd63559770b3fa4aa4066 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 28 Mar 2015 15:27:23 +0000 Subject: updating the .zshrc --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 6bb4e37..cadd3cd 100644 --- a/zshrc +++ b/zshrc @@ -44,7 +44,7 @@ alias ur='cd ~/Dropbox/phd/reports' alias up='cd ~/Dropbox/phd/presentations' alias papers='cd ~/Dropbox/phd/papers' alias books='cd ~/Dropbox/phd/books' -alias cdd='cd ~/dotfiles' +alias cdd='cd ~/Dropbox/dotfiles' # Commands alias tmux="TERM=screen-256color-bce tmux" @@ -96,4 +96,4 @@ bindkey -a 'j' history-beginning-search-forward # fi # Crontab jobs -crontab ~/dotfiles/crontab +crontab ~/.crontab -- cgit v1.2.3 From bf429c1a143504f7114b900ef5595950e222bfc7 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 29 Mar 2015 14:55:11 +0100 Subject: Added plugin gitv --- vim/vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/vimrc b/vim/vimrc index bef1eb2..735ca80 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -9,6 +9,7 @@ call vundle#rc() Plugin 'gmarik/vundle' Plugin 'LaTeX-Box-Team/latex-box' Plugin 'fugitive.vim' +Plugin 'gregsexton/gitv' Plugin 'UltiSnips' Plugin 'kien/ctrlp.vim' Plugin 'tpope/vim-surround' -- cgit v1.2.3 From 56f3485b38c37d4f4f92cb272b4da3e3125011ca Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 29 Mar 2015 17:53:08 +0100 Subject: Replaced latex-box by vimtex --- vim/vimrc | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 735ca80..ed6e0c0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -7,7 +7,7 @@ call vundle#rc() "" Plugins Plugin 'gmarik/vundle' -Plugin 'LaTeX-Box-Team/latex-box' +Plugin 'lervag/vimtex' Plugin 'fugitive.vim' Plugin 'gregsexton/gitv' Plugin 'UltiSnips' @@ -44,29 +44,16 @@ let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] let g:ctrlp_open_new_file = 't' noremap :UltiSnipsEdit -" Latex-Box -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 - echom "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 +let g:vimtex_fold_enabled=0 +let g:vimtex_view_method='zathura' +let g:vimtex_latexmk_continuous=1 +let g:vimtex_quickfix_mode=2 -nnoremap a :call SynctexShow() -nnoremap i :Latexmk -nnoremap e :LatexErrors -nnoremap o :LatexView -nnoremap k :LatexmkStop:LatexmkClean +nnoremap i :VimtexCompile +nnoremap e :VimtexErrors +nnoremap v :VimtexView +nnoremap k :VimtexStop:VimtexClean +nnoremap t :VimtexTocToggle nnoremap h :split header.sty " Gundo @@ -138,6 +125,9 @@ set linebreak set textwidth=0 set conceallevel=2 set guifont=Monaco\ 11 +set lazyredraw +highlight diffAdded guifg=#00bf00 +highlight diffRemoved guifg=#bf0000 " Case and spell set nospell -- cgit v1.2.3 From d424126b07b4e4b4b94b721b02bab737915e2a05 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 29 Mar 2015 17:53:21 +0100 Subject: Commented custom fold latex --- vim/after/ftplugin/tex/folding.vim | 68 +++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/vim/after/ftplugin/tex/folding.vim b/vim/after/ftplugin/tex/folding.vim index 2e8b612..096c8a9 100644 --- a/vim/after/ftplugin/tex/folding.vim +++ b/vim/after/ftplugin/tex/folding.vim @@ -1,34 +1,34 @@ -function! TexFolds() - let thisline = getline(v:lnum) - if match(thisline,'^\\chapter') >= 0 - return ">1" - elseif match(thisline,'^\\section') >= 0 - return ">1" - elseif match(thisline,'^\\subsection') >=0 - return ">1" - elseif match(thisline,'^\\subsubsection') >=0 - return ">1" - else - return "=" - endif -endfunction - -function! TexFoldText() - let startline = getline(v:foldstart) - let title = substitute(startline,'^.*{\(.*\)}.*$','\1',"") - if match(startline,'^\\chapter') >= 0 - return '*' . title . '' - elseif match(startline,'^\\section') >= 0 - return ' # ' . title - elseif match(startline,'^\\subsection') >=0 - return ' ## ' . title - elseif match(startline,'^\\subsubsection') >=0 - return ' ### ' . title - else - echom "Error, fold not recognized" - endif -endfunction - -setlocal foldmethod=expr -setlocal foldexpr=TexFolds() -setlocal foldtext=TexFoldText() +" function! TexFolds() +" let thisline = getline(v:lnum) +" if match(thisline,'^\\chapter') >= 0 +" return ">1" +" elseif match(thisline,'^\\section') >= 0 +" return ">1" +" elseif match(thisline,'^\\subsection') >=0 +" return ">1" +" elseif match(thisline,'^\\subsubsection') >=0 +" return ">1" +" else +" return "=" +" endif +" endfunction +" +" function! TexFoldText() +" let startline = getline(v:foldstart) +" let title = substitute(startline,'^.*{\(.*\)}.*$','\1',"") +" if match(startline,'^\\chapter') >= 0 +" return '*' . title . '' +" elseif match(startline,'^\\section') >= 0 +" return ' # ' . title +" elseif match(startline,'^\\subsection') >=0 +" return ' ## ' . title +" elseif match(startline,'^\\subsubsection') >=0 +" return ' ### ' . title +" else +" echom "Error, fold not recognized" +" endif +" endfunction +" +" setlocal foldmethod=expr +" setlocal foldexpr=TexFolds() +" setlocal foldtext=TexFoldText() -- cgit v1.2.3 From 6fb28bc4b38947281908917b9230e78692674fdc Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 29 Mar 2015 18:06:05 +0100 Subject: Added gitconfig to make --- make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make b/make index 31ca6d8..7836cb4 100755 --- a/make +++ b/make @@ -4,7 +4,7 @@ dir=~/Dropbox/dotfiles olddir=~/Dropbox/dotfiles_old # Files to sync -files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc inputrc latexmkrc crontab krystle" +files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc inputrc latexmkrc crontab gitconfig" rm -rf $olddir mkdir -p $olddir -- cgit v1.2.3