diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 26 |
1 files changed, 6 insertions, 20 deletions
@@ -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)) @@ -61,16 +61,10 @@ function! SynctexShow() end endfunction -" Access nnoremap <LocalLeader>a :call SynctexShow()<CR><CR> - -" Initiate nnoremap <LocalLeader>i :Latexmk<CR> - -" Open +nnoremap <LocalLeader>e :LatexErrors<CR> nnoremap <LocalLeader>o :LatexView<CR> - -" Kill nnoremap <LocalLeader>k :LatexmkStop<CR>:LatexmkClean<CR> " Gundo @@ -100,7 +94,7 @@ set tabstop=4 set softtabstop=4 set shiftwidth=4 set autoindent -set breakindent +" set breakindent " set cindent " Folds @@ -143,7 +137,6 @@ set textwidth=0 set conceallevel=2 set guifont=Monaco\ 11 - " Case and spell set nospell set smartcase @@ -158,14 +151,12 @@ 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 endif - echom - hi Cursor guifg=white guibg=blue hi iCursor guifg=black guibg=green hi! link conceal normal @@ -190,6 +181,8 @@ nnoremap <Leader>sc :source % nnoremap <Return> o<Esc> nnoremap <s-Return> O<Esc> nnoremap J mzJ`z +nnoremap Y y$ + " nnoremap - za nnoremap <c-y> 3<c-y> nnoremap <c-e> 3<c-e> @@ -223,13 +216,6 @@ nmap <buffer> <F2> <Plug>LatexChangeEnv let g:tex_fast="" 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( |