Is it possible without any plugins? Or what's the best plugin for edit python file?
Using Vim as a Python IDEThe python-mode project is a Vim plugin with syntax highlighting, breakpoints, PEP8 linting, code completion and many other features you'd expect from an integrated development environment.
If your cursor is on the line with the function name, try d } . It will delete everything to the next block (i.e. your function body). Within the function body itself, d a p will delete the 'paragraph'.
try vis
to visualy select and o
to jump edges
The way I do it is not specific to functions. It will just select a continuous block of Python code:
v]]
if what you want to select is below the cursorv[[
if it is above the cursor.
Just remove one bracket if the cursor is on the first line of the code block you want to select.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With