Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9155225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:33:19+00:00 2026-06-17T12:33:19+00:00

When I look at python code, I find it is hard to find out

  • 0

When I look at python code, I find it is hard to find out where is the end of a function if it has too much lines of code.

I first think about just to find next def will be ok. But if the function is a decorator like below, this method doesn’t work.

def require_player(view_func):
    @warps(view_func)
    def decorate(request, *args, **kwds):
        #my code here
        return
    return decorate

So my want to know is is there any good way to do this in vim?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:33:20+00:00Added an answer on June 17, 2026 at 12:33 pm

    python-mode has keybindings for this: e.g. [[ and ]] will jump back and forth between top-level functions. In your case, it would ignore the inner def, which I think is what you’re asking.

    It’s a lot of Kool-Aid to drink, but so far I haven’t seen any serious overhead when not using its features. So I leave it installed and go see what else it can do when I feel like it—kinda like I do with vim.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how do i code a python program that return a json element that look
I can't figure out how to look ahead one element in a Python generator.
If you look at the following line of python code: bpy.ops.object.particle_system_add({object:bpy.data.objects[2]}) you see that
So, I started learning to code in Python and later Django . The first
I've been learning Python for about a week or so and after my code
I'm using python 2.6 on linux. I have two text files first.txt has a
I have a log file that has lines that look like this: 1,2546857-23541,f_last,user,4:19 P.M.,11/02/2009,START,27,27,3,c2546857-23541,
Often when I'm using Python I'll find myself writing list comprehensions that look something
I have started to look into python and am trying to grasp new things
EPD python does not know to look for the Ubuntu repository python so installing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.