From 8b18164ec11f2e00de6642263005f0ddd270192f Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 12 Feb 2015 18:50:43 +0000 Subject: Updating changes --- vim/vimrc | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 99d8eb9..bdebc52 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -53,7 +53,7 @@ let g:LatexBox_quickfix=2 function! SynctexShow() let synctex = glob("*.synctex.gz") if strlen(synctex) == 0 - echo "no synctex file found" + 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)) @@ -100,7 +100,7 @@ set tabstop=4 set softtabstop=4 set shiftwidth=4 set autoindent -set breakindent +" set breakindent " set cindent " Folds @@ -143,7 +143,6 @@ set textwidth=0 set conceallevel=2 set guifont=Monaco\ 11 - " Case and spell set nospell set smartcase @@ -164,8 +163,6 @@ function! UpdateColorscheme() set background=dark endif - echom - hi Cursor guifg=white guibg=blue hi iCursor guifg=black guibg=green hi! link conceal normal @@ -222,23 +219,8 @@ vnoremap g^ ^ nmap LatexChangeEnv let g:tex_fast="" -" Synctex -function! LatexEvinceSearch() - execute "!cd " . LatexBox_GetTexRoot() . '; evince_vim_dbus.py EVINCE "`basename ' . LatexBox_GetOutputFile(). '`" ' . line('.') . ' "%:p"' -endfun - -command! LatexEvinceSearch call LatexEvinceSearch() - -autocmd FileType tex map :silent LatexEvinceSearch autocmd Filetype tex call SetTexOptions() - -"" Functions -function! Tex_ForwardSearchLaTeX() - let cmd = 'evince_forward_search ' . fnamemodify(LatexBox_GetMainTexFile(), ":p:r") . '.pdf ' . line(".") . ' ' . expand("%:p") - let output = system(cmd) -endfunction - function! SetTexOptions() inoremap (( \left( -- cgit v1.2.3 From 88c41ec4f41fc5a63e9fa656aa162dfce5f291f4 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 23 Feb 2015 16:49:35 +0000 Subject: not much --- mutt/cache/headers | Bin 557056 -> 589056 bytes vim/mySnippets/tex.snippets | 3 +++ vim/vimrc | 12 ++++-------- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'vim') diff --git a/mutt/cache/headers b/mutt/cache/headers index 908bc32..cdcc5e6 100644 Binary files a/mutt/cache/headers and b/mutt/cache/headers differ diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets index e69de29..1741c9c 100644 --- a/vim/mySnippets/tex.snippets +++ b/vim/mySnippets/tex.snippets @@ -0,0 +1,3 @@ +snippet grad "Gradient" i +\nabla +endsnippet diff --git a/vim/vimrc b/vim/vimrc index bdebc52..1d396ff 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -61,16 +61,10 @@ function! SynctexShow() end endfunction -" Access nnoremap a :call SynctexShow() - -" Initiate nnoremap i :Latexmk - -" Open +nnoremap e :LatexErrors nnoremap o :LatexView - -" Kill nnoremap k :LatexmkStop:LatexmkClean " Gundo @@ -157,7 +151,7 @@ set encoding=utf-8 "" Colorscheme function! UpdateColorscheme() try | colorscheme solarized | catch | endtry - if strftime("%H") >= 9 && strftime("%H") < 17 + if strftime("%H") >= 9 && strftime("%H") < 18 set background=light else set background=dark @@ -187,6 +181,8 @@ nnoremap sc :source % nnoremap o nnoremap O nnoremap J mzJ`z +nnoremap Y y$ + " nnoremap - za nnoremap 3 nnoremap 3 -- cgit v1.2.3 From 862eeacabcfb35d709d5cc4ac964c92420c69b02 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 5 Mar 2015 17:47:30 +0000 Subject: Ultisnips updates --- vim/mySnippets/tex.snippets | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'vim') diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets index 1741c9c..64f665b 100644 --- a/vim/mySnippets/tex.snippets +++ b/vim/mySnippets/tex.snippets @@ -1,3 +1,35 @@ +snippet real "Field of real numbers" i +\real +endsnippet + snippet grad "Gradient" i -\nabla +\grad +endsnippet + +snippet div "Divergence" i +\dive +endsnippet + +snippet new "New command" b +\newcommand{$1}[$2] {$3} $0 +endsnippet + +snippet op "Operator style" i +\op +endsnippet + +snippet pard "Partial derivative" i +\pard{$1}{$2} $0 +endsnippet + +snippet pardd "Double partial derivative" i +\pardd{$1}{$2} $0 +endsnippet + +snippet herm "Hermite polynomials" i +\hermite +endsnippet + +snippet red "Red text" i +\red{$1} $0 endsnippet -- cgit v1.2.3