|
7 | 7 |
|
8 | 8 | if !pymode#Default('g:pymode_motion', 1) || g:pymode_motion |
9 | 9 |
|
10 | | - nnoremap <buffer> ]] :call pymode#motion#move('^\(class\\|def\)\s', '')<CR> |
11 | | - nnoremap <buffer> [[ :call pymode#motion#move('^\(class\\|def\)\s', 'b')<CR> |
12 | | - nnoremap <buffer> ]m :call pymode#motion#move('^\s*\(class\\|def\)\s', '')<CR> |
13 | | - nnoremap <buffer> [m :call pymode#motion#move('^\s*\(class\\|def\)\s', 'b')<CR> |
14 | | - onoremap <buffer> ]] :call pymode#motion#move('^\(class\\|def\)\s', '')<CR> |
15 | | - onoremap <buffer> [[ :call pymode#motion#move('^\(class\\|def\)\s', 'b')<CR> |
16 | | - onoremap <buffer> ]m :call pymode#motion#move('^\s*\(class\\|def\)\s', '')<CR> |
17 | | - onoremap <buffer> [m :call pymode#motion#move('^\s*\(class\\|def\)\s', 'b')<CR> |
18 | | - vnoremap <buffer> ]] :call pymode#motion#vmove('^\(class\\|def\)\s', '')<CR> |
19 | | - vnoremap <buffer> [[ :call pymode#motion#vmove('^\(class\\|def\)\s', 'b')<CR> |
20 | | - vnoremap <buffer> ]m :call pymode#motion#vmove('^\s*\(class\\|def\)\s', '')<CR> |
21 | | - vnoremap <buffer> [m :call pymode#motion#vmove('^\s*\(class\\|def\)\s', 'b')<CR> |
22 | | -
|
23 | | - nnoremap <buffer> vac :call pymode#motion#select('^\s*\(class\)\s', 0)<CR> |
24 | | - nnoremap <buffer> vic :call pymode#motion#select('^\s*\(class\)\s', 1)<CR> |
25 | | - nnoremap <buffer> vam :call pymode#motion#select('^\s*\(def\)\s', 0)<CR> |
26 | | - nnoremap <buffer> vim :call pymode#motion#select('^\s*\(def\)\s', 1)<CR> |
27 | | - onoremap <buffer> am :call pymode#motion#select('^\s*\(def\)\s', 0)<CR> |
28 | | - onoremap <buffer> im :call pymode#motion#select('^\s*\(def\)\s', 1)<CR> |
29 | | - onoremap <buffer> ac :call pymode#motion#select('^\s*\(class\)\s', 0)<CR> |
30 | | - onoremap <buffer> ic :call pymode#motion#select('^\s*\(class\)\s', 1)<CR> |
| 10 | + nnoremap <buffer> ]] :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', '')<CR> |
| 11 | + nnoremap <buffer> [[ :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', 'b')<CR> |
| 12 | + nnoremap <buffer> ]m :<C-U>call pymode#motion#move2('^\s*def\s', '')<CR> |
| 13 | + nnoremap <buffer> [m :<C-U>call pymode#motion#move2('^\s*def\s', 'b')<CR> |
| 14 | +
|
| 15 | + onoremap <buffer> ]] :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', '')<CR> |
| 16 | + onoremap <buffer> [[ :<C-U>call pymode#motion#move2('^\(class\\|def\)\s', 'b')<CR> |
| 17 | + onoremap <buffer> ]m :<C-U>call pymode#motion#move2('^\s*def\s', '')<CR> |
| 18 | + onoremap <buffer> [m :<C-U>call pymode#motion#move2('^\s*def\s', 'b')<CR> |
| 19 | +
|
| 20 | + vnoremap <buffer> ]] :<C-U>call pymode#motion#vmove('^\(class\\|def\)\s', '')<CR> |
| 21 | + vnoremap <buffer> [[ :<C-U>call pymode#motion#vmove('^\(class\\|def\)\s', 'b')<CR> |
| 22 | + vnoremap <buffer> ]m :<C-U>call pymode#motion#vmove('^\s*def\s', '')<CR> |
| 23 | + vnoremap <buffer> [m :<C-U>call pymode#motion#vmove('^\s*def\s', 'b')<CR> |
| 24 | +
|
| 25 | + onoremap <buffer> c :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR> |
| 26 | + onoremap <buffer> ac :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR> |
| 27 | + onoremap <buffer> ic :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR> |
| 28 | + vnoremap <buffer> ac :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR> |
| 29 | + vnoremap <buffer> ic :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR> |
| 30 | +
|
| 31 | + onoremap <buffer> m :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR> |
| 32 | + onoremap <buffer> am :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR> |
| 33 | + onoremap <buffer> im :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR> |
| 34 | + vnoremap <buffer> am :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR> |
| 35 | + vnoremap <buffer> im :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR> |
31 | 36 |
|
32 | 37 | endif |
33 | 38 |
|
|
0 commit comments