diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-09 14:50:51 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-09 14:50:51 -0500 |
commit | bcb931323902dab5f9d4983f3960726cf4f09fd7 (patch) | |
tree | e2199d290df611cfc0d94d58f4b0bd5c40040ec0 /vimrc | |
parent | 5fbfa8b5ace86f951f3bbed02d366566198a9077 (diff) | |
download | conf-bcb931323902dab5f9d4983f3960726cf4f09fd7.tar.gz conf-bcb931323902dab5f9d4983f3960726cf4f09fd7.zip |
use mathbin as the default nopaste service for tex files
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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> |