summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-05-09 14:50:51 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-05-09 14:50:51 -0500
commitbcb931323902dab5f9d4983f3960726cf4f09fd7 (patch)
treee2199d290df611cfc0d94d58f4b0bd5c40040ec0 /vimrc
parent5fbfa8b5ace86f951f3bbed02d366566198a9077 (diff)
downloadconf-bcb931323902dab5f9d4983f3960726cf4f09fd7.tar.gz
conf-bcb931323902dab5f9d4983f3960726cf4f09fd7.zip
use mathbin as the default nopaste service for tex files
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index a7eacb7..067e8ce 100644
--- a/vimrc
+++ b/vimrc
@@ -358,6 +358,11 @@ nmap \t :silent !ctags -a %<CR><C-L>
" }}}
" Nopaste {{{
function s:nopaste(visual)
+ let nopaste_services = $NOPASTE_SERVICES
+ if &filetype == 'tex'
+ let $NOPASTE_SERVICES = "Mathbin ".$NOPASTE_SERVICES
+ endif
+
if a:visual
silent exe "normal gv!nopaste\<CR>"
else
@@ -372,6 +377,7 @@ function s:nopaste(visual)
else
call setpos('.', pos)
endif
+ let $NOPASTE_SERVICES = nopaste_services
echo @+
endfunction
nmap <silent> \p :call <SID>nopaste(0)<CR>