I've been looking for a little time now, and can't find an answer to my problem.
I'm coding on vim and I tried the new format string version f'whatever {a_var}', but my flake8 / syntastic keep telling me that's a syntax error.
Do you have any idea on how to fix this ?
I already had a problem with vim-jedi for python3.6 and virtualenv, and after hours of research I found a hack in some github issue, but here I can't find anything.
Thanks in advance for your help.
You have to verify that your flake8 script uses python3.6. Run which flake8 in command line, open the file in vim (or directly run vim $(which flake8)) and see the shebang line (the first line of the file, it starts with #!). If it's not python3.6 — edit the line.
Related
I have installed the latest version of python3 and it shows in my application folder, but when I use the command line and ask for the version it is the factory version of 2.7. How do I change this for someone who is really basic with command line and other. I have read other posts and what to put in the command line exactly but get syntax errors. I heard about brew. Why is it so hard to do something so simple. Can I just change the command line to point to the new python3 automatically without using another 3rd party thing. Hope you can help and sorry for frustration.
I'm trying to run vimtutor on openSUSE Leap 15 1 on WSL2. I get the error E484: Can't open file /usr/share/vim/vim80/tutor/tutor.vim
When I run which vim (or which vimtutor) I get /usr/bin/vim (or /usr/bin/vimtutor) -- is the issue that I have multiple versions of vim installed and when I try vimtutor (which I understand to be a script) it can't access the correct one because of the way my PATH is configured? I've seen similar issues about this posted, but none that seem to deal with this specific issue as it applies to vimtutor.
The vim script is part of vim-data package.
If you looked at the spec file linked here,
https://build.opensuse.org/package/view_file/openSUSE:Factory/vim/vim.spec?expand=1
on line 567, the tutor.vim is split into the vim-data package.
It's part of the
%files data
block.
orror in compile prses. how to solve it?
According to this blog post, you just have to compile the YouCompleteMe modules by running the install.sh script in the YCM install.
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer
Once this completes you should be able to install the plugin (here's how to do it with Vundle). Once in Vim
:source ~/.vimrc
:PluginInstall
Apparently, when you run ./.install.sh --clang-completer it says that it is "out of date."
I ran python2 install.py and it worked for me. (I believe it was python2.)
Also, I had was using vim and neovim, and I decided to do ./install.sh --clang-completer inside my ~/.vim/bundle/Vundle.vim/ and at the same tim decided to do python2 install.py inside my ~/.configs/nvim/bundle/Vundle.vim/ and the python install installed faster and did the same thing.
The difference might be that you need to "compile vim with pdython support," but the simple fix for that is installing python-nvim (if using neovim), or - I think - vim just comes with python support. (? maybe.)
I encountered the same error message when trying out new neovim installation. In my case, it was because I was using vim-plugin and the plugins are installed in the ~/.vim/plugged instead of ~/.vim/bundle (this is the plugin folder for Vundle before I switched to vim-plug).
Thus, after scratching my head for few hours, turns out I have to run install.sh in the ~/.vim/plugged (not ~/.vim/bundle). I hope this will save someone's time.
I would really like to use easytags, but after following Odding's installation instructions, that is first installing misc and then installing easytags, at startup vim is throwing the "misc is not installed,easytags is broken" error. I am just unzipping them into my vim directory as I have always done with other plugins.. Any suggestions? thanks!
Installation is indeed a simple unzipping of both misc.zip and easytags.zip into the same ~/.vim/ directory.
Check out the :scriptnames command from Vim to see whether all files got successfully sourced. After a manual :runtime autoload/xolox/misc.vim, it should contain entries like:
205: ~/.vim/autoload/xolox/misc.vim
278: ~/.vim/plugin/easytags.vim
If you're still facing problems, please open an issue on the plugin's issue tracker.
I installed sparkup vim plugin, i'm sure it's in the right place. I use archlinux.
And my vimrc: http://wklej.org/id/504484/
Sparkup just doesn't work at all.
I don't know what to do.
Ok, i found out what was the problem.
First it was python version which needed to be change
#!/usr/bin/env python to python2
in sparkup.py file
Second, I needed to add
filetype plugin on
To .vimrc file.
Sparkup needs vim to be compiled with Python 2 -- you can check using :python print 42 whether it is.
Isn't Arch shipped with Python 3 by default anyway? I suspect that's the problem.