Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
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 ...
user avatar
  • 1,097
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 ...
user avatar
  • 18.1k
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 ...
user avatar
  • 25.5k
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 ...
user avatar
  • 45.9k
2 votes

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 ...
user avatar
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 ...
user avatar
  • 25.5k
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, ...
user avatar
  • 25.5k
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 ...
user avatar
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 ...
user avatar
  • 3,960
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 ...
user avatar
  • 31
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, ...
user avatar
  • 197
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 301
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 ...
user avatar
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.
user avatar
  • 20.7k
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 -...
user avatar
  • 416
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 ...
user avatar
  • 5,868
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 ...
user avatar
  • 1,825
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 ...
user avatar
  • 8,520
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 ...
user avatar
  • 2,081
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 ...
user avatar
  • 1,459
1 vote

Unable to uninstall VIM installed from source

As @muru has suggested, I will post the solution here.. The situation happened, when I was trying to debug a issue related to a plugin. It seemed to work for a colleague, but not for me. So one of ...
user avatar
  • 825

Only top scored, non community-wiki answers of a minimum length are eligible