See More

if !g:pymode finish endif if g:pymode_motion if !&magic if g:pymode_warning call pymode#error("Pymode motion requires `&magic` option. Enable them or disable g:pymode_motion") endif finish endif nnoremap ]] :call pymode#motion#move('v^(classdef)s', '') nnoremap [[ :call pymode#motion#move('v^(classdef)s', 'b') nnoremap ]C :call pymode#motion#move('v^(classdef)s', '') nnoremap [C :call pymode#motion#move('v^(classdef)s', 'b') nnoremap ]M :call pymode#motion#move('^s*defs', '') nnoremap [M :call pymode#motion#move('^s*defs', 'b') onoremap ]] :call pymode#motion#move('v^(classdef)s', '') onoremap [[ :call pymode#motion#move('v^(classdef)s', 'b') onoremap ]C :call pymode#motion#move('v^(classdef)s', '') onoremap [C :call pymode#motion#move('v^(classdef)s', 'b') onoremap ]M :call pymode#motion#move('^s*defs', '') onoremap [M :call pymode#motion#move('^s*defs', 'b') vnoremap ]] :call pymode#motion#vmove('v^(classdef)s', '') vnoremap [[ :call pymode#motion#vmove('v^(classdef)s', 'b') vnoremap ]M :call pymode#motion#vmove('^s*defs', '') vnoremap [M :call pymode#motion#vmove('^s*defs', 'b') onoremap C :call pymode#motion#select('^s*classs', 0) onoremap aC :call pymode#motion#select('^s*classs', 0) onoremap iC :call pymode#motion#select('^s*classs', 1) vnoremap aC :call pymode#motion#select('^s*classs', 0) vnoremap iC :call pymode#motion#select('^s*classs', 1) onoremap M :call pymode#motion#select('^s*defs', 0) onoremap aM :call pymode#motion#select('^s*defs', 0) onoremap iM :call pymode#motion#select('^s*defs', 1) vnoremap aM :call pymode#motion#select('^s*defs', 0) vnoremap iM :call pymode#motion#select('^s*defs', 1) endif if g:pymode_rope && g:pymode_rope_completion setlocal omnifunc=pymode#rope#completions if g:pymode_rope_completion_bind != "" exe "inoremap " . g:pymode_rope_completion_bind . " =pymode#rope#complete(0)" if tolower(g:pymode_rope_completion_bind) == '' exe "inoremap =pymode#rope#complete(0)" endif end end