4
votes
Accepted
How to have two different makefile mapped to two different keys?
My understanding is that the makeprg setting is primarily used to change the actual make/build program and in your case the program isn't changing...it's always 'make'.
Since :make accepts arguments ...
4
votes
How to compile vim for user only and use git to track it?
Google for vim to find their homepage. You find http://www.vim.org .
Look on their homepage, where is their upstream source. If you have luck, they are on the github.
On the "Download" section, they ...
3
votes
Accepted
vimtex: how to switch latex engine dynamically
Sometimes I need to switch the engine.
You can do it like this:
For convenience, ensure that you've stopped compilation of the document.
When you change the engine, it is probably also smart to ...
3
votes
Accepted
What may be causing build from source to *NOT* respect my ./configure options?
This usually happens, if you do not have the development versions of those interpreters installed. It's not enough to have those interpreters available, but during the compilation of Vim, the compiler ...
3
votes
Accepted
`:make` not echoing output to the command line
This happens because a 'shellpipe' of the default of > (which is the default on Windows) doesn't really work on Powershell. It seems to have it produce a file that uses UTF-16 encoding and then ...
3
votes
Compile vim with python3 support in Windows
You can find the instructions to build Vim on windows in the source file src/INSTALLpc.txt.
More specifically in the section 8. Building with Python3 support you can read:
8. Building with Python3 ...
2
votes
How to install the latest version of Vim on macOS?
Compile Vim via MacPorts
Macports provides currently a more granular installation approach for vim than homebrew:
It offers the feature variants tiny, small, big, and huge.
You can add specifically ...
2
votes
Compiling Vim with python3 showing E370: Could not load library libpython3.7m.a
Find your dynamic python lib, for example libpython3.6m.so.1.0. Then put it in your .vimrc like this:
set pythonthreedll=/location/of/your/python/lib/libpython3.6m.so.1.0
Of course, change the ...
2
votes
Accepted
The :python command doesn't work - E319: Sorry, the command is not available in this version
The problem was solved.
The :python3 or :pythonx (:py3 or :pyx) should be used instead of the simple :python.
See :h python3 and :h pythonx.
So, :py3 print("hello") gives hello as expected.
Also, ...
2
votes
Why is my Vim build failing on WSL?
At github.com/vim/vim/issues/10831 is this comment:
"Generally, after syncing to head, make distclean might be needed, because the configure checks may need to run again for changes in configure ...
2
votes
vim broken after python update (error while loading shared libraries: libpython3.9.so.1.0)
The numbers usually bear some meaning. For Python, 3 is language version which is obviously very different from 2. While 9 or 10 denote incompatible ABI revisions. Hence the shared objects include ...
2
votes
Accepted
How can I compile Vim without requiring libsodium?
When configuring vim before building, disable libsodium
./configure ... --disable-libsodium ...
2
votes
Building: --disable-statusline is unrecognized option
Vim features are not completely orthogonal, so not all of them are available as individual flags to enable/disable.
If you want a minimal build of Vim, you can use --with-features=tiny. I believe this ...
2
votes
Accepted
Building: cannot disable ipv6: "unrecognized option"
While +ipv6 is indeed an existing and valid Vim feature, it's not directly available for enabling or disabling via an --enable-* or --disable-* argument to ./configure. The way this was implemented, ...
2
votes
GUI support will not compile in latest from github
The answer came down to a local install of glib-2 which, because it was installed to /usr/local/lib was superseding the glib-2 installed in /lib64. As an example, a function named ...
2
votes
Can't compile Neovim with custom GCC path
I am going to post the same self answer that I made on the github issue thread:
I found out that the output of strings -a build/bin/nvim is not reflecting which compiler compiled the final executable.
...
1
vote
Trouble trying to compile Vim on Rocky Linux
Okay, I figured it out. I found the tgetent() function defined in the tinfo library (by running nm -D file on all the library files in /usr/lib64 (where all the library files are stored on Rocky) ...
1
vote
Accepted
Compiling VIM from source with Python3 enabled not working after upstream image rolled from Python 3.9 to 3.10
Per comment suggestions, I'm posting my solution as an answer in case it helps anyone:
I have a working solution now, which is not to use the deprecated config-dir argument, but instead the --with-...
1
vote
`:make` not echoing output to the command line
When you run your code with :make, the result is put into the quickfix list, you can open it with :cope
See help :make
See help quickfix
You can also make your own command that show immediatelly your ...
1
vote
enable '+python3' failed
For me, Christian Brabandt's suggestion of executing
make distclean
worked, at least as far as
checking if compile and link flags for Python 3 are sane... no: PYTHON3 DISABLED
and -python3 are ...
1
vote
Vim command to open zathura immediately after a latex compile?
I recommend using the vimtex plugin.
It allows opening zathura as a PDF viewer after compiling in one step. Also it has continuous mode, meaning that you will be able to see automatically compiled ...
1
vote
Syntax in autocmd command to compile and run cpp code
Following instruction here and install appropriate package and set appropriate flags:
https://github.com/LucHermitte/vim-build-tools-wrapper/blob/master/doc/make_run.md#mono-file-projects
We can just ...
1
vote
Cannot read output of ./a.out
I somehow figured out what was going on.
The problem was due to a trailing whitespace at the very end of the keybinding. That was acting as extra key to escape back from the terminal. Removing it ...
1
vote
The :python command doesn't work - E319: Sorry, the command is not available in this version
Check :help if-pyth: you need to use :python3.
1
vote
How to compare two different Vim installs?
To get a one column list of Vim's compile options you could use this script:
1 #! /bin/bash
2
3 splitme()
4 {
5 while read -r line || [[ -n "$line" ]]; do
6 line4=$(echo $line | perl -p -...
1
vote
How to compile startuptime for ver 8?
It's all in :h :version and :h +feature-list
...
The first column shows the smallest version in which
they are included:
T tiny (always)
S small
N normal
B big
H huge
...
1
vote
How can I delete or ignore a test when compiling vim?
I worked around this problem by using the compile switch:
--disable-netbeans
However, obviously it is just a workaround and the test failure will be a problem for anyone that wants to use netbeans ...
1
vote
Where are the compile options documented with the actual switches?
To configure the build the script configure in the root of the source tree is used.
This script supports the option --help. It will print the available options with explanation.
So: cd to the root of ...
1
vote
Python integration not working as usual
This is really strange. Basically:
in my compiled vims, as long as I run py import vim, vim becomes defined thereafter and everything works.
So I can probably just add this statement in my vimrc ...
1
vote
How to build vim GUI version with GTK
I assume that you don't have the needed libraries installed on your system to build a gui. If you read the file src/INSTALL it explains the different --enable-gui options.
For example for me I could ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
compile-vim × 36linux × 6
installing × 5
gvim × 4
neovim × 3
vimrc × 2
terminal × 2
microsoft-windows × 2
vimscript-python × 2
makeprg × 2
wsl × 2
vimscript × 1
key-bindings × 1
command-line × 1
autocmd × 1
statusline × 1
vimdiff × 1
macos × 1
error × 1
git × 1
plugin-vimtex × 1
path × 1
original-vim × 1
python × 1
cygwin × 1