Hot answers tagged

30 votes
Accepted

How do I know the patch version of my vim?

You seem to simply have an unpatched version of vim, otherwise the :version command or the --version parameter would list the patches on the second line. For example on my machine it says: VIM - Vi ...
user avatar
16 votes
Accepted

How do I tell if Vi or Vim is installed on my Linux distribution?

Vim started as a clone of vi and has almost all of the commands and features of the original vi, plus a lot of enhancements. (See :help design-compatible.) It can be compiled into one of basically ...
user avatar
  • 5,874
15 votes
Accepted

How to check whether Vim is built as a 32-bit or 64-bit application?

Testing the value of the win64 feature should tell you: :echo has("win64") If the output is 1, then your Vim installation is 64-bit. See: :help has() :help feature-list and search for 64.
user avatar
  • 5,874
12 votes
Accepted

How can I check if Vim is 32 bit or 64 bit? (On Linux!)

Since you're on Ubuntu, use the file command: $ file -L "$(command -v vim)" /usr/bin/vim.gnome: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/...
user avatar
  • 23.8k
10 votes

How do I tell if Vi or Vim is installed on my Linux distribution?

Since you're on Ubuntu, verify if Vim is installed by running dpkg -l | grep vim Check the available alternatives to Vi by running update-alternatives --list vi Set your favorite alternative to Vi ...
user avatar
  • 101
8 votes

Gundo plugin requires python 2.4 when version 2.7 is installed

Try the undotree plugin: Someone asked me about the difference with Gundo, here is a list of differences, or advantages. Pure vimscript implementation and no 3rd-party libraries(like ...
user avatar
  • 6,370
6 votes
Accepted

When was getcharstr() introduced? And how could I have found the answer my self from :help?

This was patch v8.2.2957, which can be found by examining a full clone of github.com/vim/vim and any of # message search; fast enough I didn't need any of the other limiting options git log -1 --grep ...
user avatar
  • 20.9k
6 votes
Accepted

Vim 6.4 broke after adding plugin file to runtimepath

I am sorry, but you won't get happy with your ancient Vim 6.4 and plugins. Most of the scripting functionality have been added with the Vim 7 version and beyond. The old 6 version did only have very ...
user avatar
6 votes

Gundo plugin requires python 2.4 when version 2.7 is installed

Add this to your .vimrc if has('python3') let g:gundo_prefer_python3 = 1 endif I was getting similar error. The above worked for me (I am using Manjaro Linux, and installed community/python-...
user avatar
  • 161
6 votes

How can I check if Vim is 32 bit or 64 bit? (On Linux!)

A "pure" Vim way, just because we can: :let is_64_bits = match(strpart(readfile(resolve('/proc/' . getpid() . '/exe'), 'b', 1)[0], 4, 1), '\%x02') != -1 So, how does it work? Split up in multiple ...
user avatar
6 votes
Accepted

Did Vim ever use a different versioning scheme?

Yes, they were both caused by changes to the packaging and unrelated to Vim itself. The first epoch bump (since all packages without an explicit epoch have an implicit 0 epoch) was introduced when ...
user avatar
  • 10.4k
5 votes

How do I tell if Vi or Vim is installed on my Linux distribution?

Quick command to tell if it's vi or vim vi -h this will display the help info in my case : $ vi -h VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 7 2016 16:03:11) [... skip other info ...] So ...
user avatar
5 votes

How can I automate checking for new Vim releases on Windows?

It seems that chocolatey could be the solution to your problem. It is a package manager for Windows. (With the ambition of being "sort of apt-get for Windows") If you are ready to use it to ...
user avatar
  • 46.2k
3 votes
Accepted

Why is the version of Vim displayed by 'apt' different from the one displayed in Vim?

As described in /usr/share/doc/vim/NEWS.Debian.gz, the Debian packages have switched to building against Python3 for Stretch. If you upgraded a system to Stretch and didn't see this message, then I ...
user avatar
  • 10.4k
3 votes

How can I get more features?

If you want more features (and something more up to date than whats in the apt packages), you have to compile it yourself. You say you are on Debian, and all these should work on that platform. You ...
user avatar
2 votes
Accepted

Suddenly running :colorscheme breaks lightline

I suspect https://github.com/vim/vim/pull/6970 and related https://github.com/vim/vim/issues/4405 Basically, before the patch it was impossible to put vim into full "default colors mode" as ...
user avatar
  • 10.1k
2 votes

Version conflict between vi and vim

You don't need to use original vi program, just add following alias to your bashrc. alias vi='vim -u NONE'
user avatar
  • 335
1 vote
Accepted

Unknown function: strptime on Linux Mint

As it turned out, I was running an older version of Vim. Updating using the following "three-liners" solved the problem. sudo add-apt-repository ppa:jonathonf/vim sudo apt update sudo apt ...
user avatar
  • 302
1 vote
Accepted

Problems with paths that includes swedish characters

This is solved by removing mac_precompose_path from the Vim source code. A fork where this is fixed can be found here: https://github.com/OskarPersson/vim I tested this by creating a Homebrew ...
user avatar

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