Skip to main content

Questions tagged [python]

Python is a general-purpose programming language. For questions on editing Python files, prefer [filetype-python]. For the Python interface to Vim, prefer [vimscript-python].

0 votes
2 answers
70 views

When I type gww or gqq on the following: """ Some multiline string with (some brackets and quite a long line which needs to be wrapped because it's long enough.) """ I ...
LondonRob's user avatar
0 votes
1 answer
105 views

My system is Plasma KDE (Ubuntu), I have just installed opencv and tried it first on IDLE 3 which works fine the version is 3.13.3. Then switch to my normal editor Vim and found that when running the ...
Robert Imber's user avatar
1 vote
3 answers
153 views

Whenever I open vim and type :python3 import sys; print(sys.version), it returns python3.8. I want python3 in vim to refer to python3.13. How do I do this? I'm not using NeoVim.
TheDomesticUser's user avatar
-1 votes
1 answer
79 views

Whenever I open a file in vim and type :!python3, python3.8 opens. However, I want it to refer to python3.9. How do I change it?
TheDomesticUser's user avatar
0 votes
0 answers
83 views

I try to compile VIM with python interpreter enabled. Yet, I've got Ubuntu 20.04 (can not update easily) with Python 3.8 as system version. I need VIM with Python >3.9. I installed python3.10 and ...
emonier's user avatar
  • 101
0 votes
1 answer
2k views

I'm trying to use Neovim with Python, and I can't get autocomplete to work. I have created a minimal example of what I'm trying to do: For this example, I'll run everything in a fresh Alpine container ...
Travis's user avatar
  • 121
0 votes
1 answer
732 views

No errors are being thrown for the code with a lot of issues. I have tried black, ruff but nothing works. I have also tried reinstalling with mason. I have disabled diagnostics for the lsp (pyright) ...
Sid's user avatar
  • 109
0 votes
1 answer
1k views

I want to disable a specific error/warning - E203. This is my lsp.lua where I tried to add ignore config according to this doc from lsp-zero git local lsp = require("lsp-zero") lsp.preset(&...
hdw3's user avatar
  • 101
2 votes
1 answer
820 views

I'm currently in the process of setting up my configuration for my Neovim environment and I'm struggling with some Python related issues. I'm on macOS with nvim 0.9.4, installed over brew (if that ...
Sito's user avatar
  • 121
1 vote
1 answer
8k views

I tried kickstart.nvimi to get to work with the ruff-lsp. It did not work, therefore I built a minimal example with only the default configuration from the documentation. Here is the problem: When I ...
Dronakuul's user avatar
1 vote
1 answer
251 views

I want a simple command that changes the range that the user selected to a constant string I set (with possibly differently number of lines) - effectively adding lines if the constant string has more. ...
eyal karni's user avatar
  • 1,256
2 votes
1 answer
1k views

I am using Ubuntu 22 and the default (OS) Python version is 3.10.6. I don't need this python version; rather I need 3.8.16. I've installed it and set the g:python3_host_prog to its path to use it when ...
TOK's user avatar
  • 21
0 votes
1 answer
166 views

I've been noticing that my buffer number increases really fast without me even using them. I rely on buffers quite a lot to switch between files, and it's really annoying when I open a second file and ...
jmbeck's user avatar
  • 101
1 vote
1 answer
367 views

I found interesting code on GitHub at https://github.com/google/styleguide/blob/gh-pages/google_python_style.vim I would like to use it, but when I just dropped it in my .vimrc, it interfered with ...
ForDummies's user avatar
1 vote
1 answer
1k views

I wanted to ask if it is possible to combine nvim-dap with IPython for debugging purposes in a reasonable way. Now I am using the repl that is being opened by nvim-dap-ui. But it is not the most ...
Nie Dzwiedz's user avatar

15 30 50 per page
1
2 3 4 5 6