Equivalent of % movement for Python files

后端 未结 3 1610
旧时难觅i
旧时难觅i 2021-01-02 09:31

For languages with {} to denote blocks, vim has the almighty % key. What is the equivalent movement thing for python code? Or at least to move to

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 10:19

    You can always use comments to insert {} (would not do this if others share):

    class Game(object): # {
        def __init__(self, num, end): # {
            pass
        # }
    # }
    

提交回复
热议问题