diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index e27cfc47..0dec7542 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -11,36 +11,36 @@ if g:pymode_motion finish endif - nnoremap ]] :call pymode#motion#move('^\(class\\|def\)\s', '') - nnoremap [[ :call pymode#motion#move('^\(class\\|def\)\s', 'b') - nnoremap ]C :call pymode#motion#move('^\(class\\|def\)\s', '') - nnoremap [C :call pymode#motion#move('^\(class\\|def\)\s', 'b') - nnoremap ]M :call pymode#motion#move('^\s*def\s', '') - nnoremap [M :call pymode#motion#move('^\s*def\s', 'b') - - onoremap ]] :call pymode#motion#move('^\(class\\|def\)\s', '') - onoremap [[ :call pymode#motion#move('^\(class\\|def\)\s', 'b') - onoremap ]C :call pymode#motion#move('^\(class\\|def\)\s', '') - onoremap [C :call pymode#motion#move('^\(class\\|def\)\s', 'b') - onoremap ]M :call pymode#motion#move('^\s*def\s', '') - onoremap [M :call pymode#motion#move('^\s*def\s', 'b') - - vnoremap ]] :call pymode#motion#vmove('^\(class\\|def\)\s', '') - vnoremap [[ :call pymode#motion#vmove('^\(class\\|def\)\s', 'b') - vnoremap ]M :call pymode#motion#vmove('^\s*def\s', '') - vnoremap [M :call pymode#motion#vmove('^\s*def\s', 'b') - - onoremap C :call pymode#motion#select('^\s*class\s', 0) - onoremap aC :call pymode#motion#select('^\s*class\s', 0) - onoremap iC :call pymode#motion#select('^\s*class\s', 1) - vnoremap aC :call pymode#motion#select('^\s*class\s', 0) - vnoremap iC :call pymode#motion#select('^\s*class\s', 1) - - onoremap M :call pymode#motion#select('^\s*def\s', 0) - onoremap aM :call pymode#motion#select('^\s*def\s', 0) - onoremap iM :call pymode#motion#select('^\s*def\s', 1) - vnoremap aM :call pymode#motion#select('^\s*def\s', 0) - vnoremap iM :call pymode#motion#select('^\s*def\s', 1) + 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy