From d9d60cbf993ba71b7d39863a14a1bf32c3593325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Fri, 11 Oct 2013 23:24:07 +0200 Subject: [PATCH] Some fixes to mappings and docs --- autoload/latex/motion.vim | 44 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/autoload/latex/motion.vim b/autoload/latex/motion.vim index 711c04f..8583185 100644 --- a/autoload/latex/motion.vim +++ b/autoload/latex/motion.vim @@ -8,31 +8,31 @@ function! latex#motion#init(initialized) \ :call latex#motion#find_matching_pair(1) onoremap % :normal v% - nnoremap ]] :call latex#motion#next_sec(0,0,0) - nnoremap ][ :call latex#motion#next_sec(1,0,0) - nnoremap [] :call latex#motion#next_sec(1,1,0) - nnoremap [[ :call latex#motion#next_sec(0,1,0) - vnoremap ]] :call latex#motion#next_sec(0,0,1) - vnoremap ][ :call latex#motion#next_sec(1,0,1) - vnoremap [] :call latex#motion#next_sec(1,1,1) - vnoremap [[ :call latex#motion#next_sec(0,1,1) + nnoremap ]] :call latex#motion#next_section(0,0,0) + nnoremap ][ :call latex#motion#next_section(1,0,0) + nnoremap [] :call latex#motion#next_section(1,1,0) + nnoremap [[ :call latex#motion#next_section(0,1,0) + vnoremap ]] :call latex#motion#next_section(0,0,1) + vnoremap ][ :call latex#motion#next_section(1,0,1) + vnoremap [] :call latex#motion#next_section(1,1,1) + vnoremap [[ :call latex#motion#next_section(0,1,1) onoremap ]] :normal v]] onoremap ][ :normal v][ onoremap [] :normal v[] onoremap [[ :normal v[[ - vnoremap ie :call latex#motion#select_environment(1) - vnoremap ae :call latex#motion#select_environment() + vnoremap ie :call latex#motion#sel_environment(1) + vnoremap ae :call latex#motion#sel_environment() onoremap ie :normal vie onoremap ae :normal vae - vnoremap i$ :call latex#motion#select_inline_math(1) - vnoremap a$ :call latex#motion#select_inline_math() + vnoremap i$ :call latex#motion#sel_inline_math(1) + vnoremap a$ :call latex#motion#sel_inline_math() onoremap i$ :normal vi$ onoremap a$ :normal va$ - vnoremap id :call latex#motion#select_delimiter(1) - vnoremap ad :call latex#motion#select_delimiter() + vnoremap id :call latex#motion#sel_delimiter(1) + vnoremap ad :call latex#motion#sel_delimiter() onoremap id :normal vi( onoremap ad :normal va( endif @@ -116,8 +116,8 @@ function! latex#motion#find_matching_pair(...) endif endfunction -" {{{1 latex#motion#next_sec -function! latex#motion#next_sec(type, backwards, visual) +" {{{1 latex#motion#next_section +function! latex#motion#next_section(type, backwards, visual) " Restore visual mode if desired if a:visual normal! gv @@ -151,8 +151,8 @@ function! latex#motion#next_sec(type, backwards, visual) endif endfunction -" {{{1 latex#motion#select_delimiter -function! latex#motion#select_delimiter(...) +" {{{1 latex#motion#sel_delimiter +function! latex#motion#sel_delimiter(...) let inner = a:0 > 0 let [d1, l1, c1, d2, l2, c2] = latex#util#get_delim() @@ -186,8 +186,8 @@ function! latex#motion#select_delimiter(...) endif endfunction -" {{{1 latex#motion#select_environment -function! latex#motion#select_environment(...) +" {{{1 latex#motion#sel_environment +function! latex#motion#sel_environment(...) let inner = a:0 > 0 let [env, lnum, cnum, lnum2, cnum2] = latex#util#get_env(1) @@ -216,8 +216,8 @@ function! latex#motion#select_environment(...) endif endfunction -" {{{1 latex#motion#select_inline_math -function! latex#motion#select_inline_math(...) +" {{{1 latex#motion#sel_inline_math +function! latex#motion#sel_inline_math(...) let inner = a:0 > 0 let dollar_pat = '\\\@