Square Bracket Mappings [[, ]], [m, ]m and similar $VIMRUNTIME/ftplugin/python.vim now (2018) remaps all builtin mappings documented under :h ]] and :h ]m for the python language. The mappings are:

]] Jump forward to begin of next toplevel
[[ Jump backwards to begin of current toplevel (if already there, previous toplevel)
]m Jump forward to begin of next method/scope
[m Jump backwords to begin of previous method/scope

][ Jump forward to end of current toplevel
[] Jump backward to end of previous of toplevel
]M Jump forward to end of current method/scope
[M Jump backward to end of previous method/scope

https://stackoverflow.com/questions/896145/more-efficient-movements-editing-python-files-in-vim

News and discussions about the programming language Python


  • 0 users online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 10 users / 6 months
  • 1009 subscribers
  • 120 Posts
  • 47 Comments
  • Modlog