" LaTeX plugin for Vim " " Maintainer: Karl Yngve LervÄg " Email: karl.yngve@gmail.com " function! latex#mappings#init(initialized) call latex#util#set_default('g:latex_mappings_enabled', 1) if !g:latex_mappings_enabled | return | endif nmap li (vl-info) nmap lh (vl-help) nmap lR (vl-reinit) nmap dse (vl-delete-env) nmap dsc (vl-delete-cmd) nmap cse (vl-change-env) nmap csc (vl-change-cmd) nmap tse (vl-toggle-star) nmap tsd (vl-toggle-delim) nmap (vl-create-cmd) imap (vl-create-cmd) imap ]] (vl-close-env) if g:latex_latexmk_enabled nmap ll (vl-compile-toggle) nmap lo (vl-compile-output) nmap lk (vl-stop) nmap lK (vl-stop-all) nmap le (vl-errors) nmap lc (vl-clean) nmap lC (vl-clean-full) nmap lg (vl-status) nmap lG (vl-status-all) endif if g:latex_motion_enabled nmap % (vl-%) xmap % (vl-%) omap % (vl-%) nmap ]] (vl-]]) nmap ][ (vl-][) nmap [] (vl-[]) nmap [[ (vl-[[) xmap ]] (vl-]]) xmap ][ (vl-][) xmap [] (vl-[]) xmap [[ (vl-[[) omap ]] (vl-]]) omap ][ (vl-][) omap [] (vl-[]) omap [[ (vl-[[) xmap ie (vl-ie) xmap ae (vl-ae) omap ie (vl-ie) omap ae (vl-ae) xmap i$ (vl-i$) xmap a$ (vl-a$) omap i$ (vl-i$) omap a$ (vl-a$) xmap id (vl-id) xmap ad (vl-ad) omap id (vl-id) omap ad (vl-ad) endif if g:latex_toc_enabled nmap lt (vl-toc-open) nmap lT (vl-toc-toggle) endif if g:latex_view_enabled nmap lv (vl-view) if has_key(g:latex#data[b:latex.id], 'rsearch') nmap lr (vl-reverse-search) endif endif endfunction " vim: fdm=marker sw=2