Skip to main content
Share Your Experience: Take the 2024 Developer Survey
16 votes
Accepted

How do I run Homebrew vi on macOS instead of the older version Apple provided?

This is happening because the OS's vi is ahead of Homebrew vi in the PATH. While you could fix it by putting /usr/local/bin ahead of /usr/bin in the PATH, that would be a security hole since Homebrew ...
Warren Young's user avatar
12 votes
Accepted

Installing or building vim with +python3 support for Python 3.7.x on linux

Probably your default python3 is 3.6. You need, then, tell the build process to use python3.7. You can do that with the parameters --with-python3-command: ./configure --with-python3-command=python3.7 ...
João A. Toledo's user avatar
12 votes

Installing or building vim with +python3 support for Python 3.7.x on linux

make clean distclean before running the configure command for vim. This worked for me. There was lots of cached items hanging around from before that were interfering with vim configure.
CyclicUniverse's user avatar
8 votes
Accepted

Not able to copy from terminal when using vim from homebrew on macOS

There are few thing you can do to solve this. Homebrew compiled Huge version, while default Vim is in Normal version. Huge adds for example clipboard and more mouse/terminal support. This makes ...
grodzik's user avatar
  • 4,638
8 votes
Accepted

How to Start Graphical Neovim from OS X Terminal?

There is a nice implementation of NeoVim GUI for macOS named VimR (R = Refined). It has a native file manager and works fine and fast with mouse gestures and macOS UI. VimR comes with a command line ...
Hamid Rouhani's user avatar
8 votes

changing cursor to block in insert mode on Neovim

enter this command in vim to use block cursor in insert mode: :set guicursor=i:block
network_dios's user avatar
7 votes

How do I run Homebrew vi on macOS instead of the older version Apple provided?

Homebrew has an option --with-override-system-vi that can be used with brew install vim to do this.
Alex Best's user avatar
7 votes

How do I enable Bash keyboard shortcuts while in Insert mode?

Type <c-o> to temporarily leave insert mode and use normal mode keys instead. To create insert mode maps, read :h normal-index and :h insert-index. Then create insert maps that does about the ...
Tommy A's user avatar
  • 6,780
7 votes
Accepted

Can you use neovim in a gui like mvim or gvim? (Mac OS X)

There are several GUIs for Neovim because it externalises the user interface elements, so any GUI can draw these in different ways. There's a list that tracks the status of these projects. My ...
Tae's user avatar
  • 2,135
6 votes
Accepted

Why does terminal vim enter replace mode with my vimrc file?

If you are seeing a similar issue and using Windows Terminal jump down to the "Update" below. Seeing <ESC> used as the LHS of a key mapping causes me some discomfort. You've ...
B Layer's user avatar
  • 19.9k
6 votes
Accepted

If one can diff from Vim without the need to boot `vimdiff` then why is it a binary program?

vimdiff as well as the other binaries are just symbolic links to the actual vim binary. This is done because when vim starts up it checks under which name it has been started and does perform some ...
Christian Brabandt's user avatar
5 votes
Accepted

Pasting from cliboard in osx returns ^M instead of newline

Basically when you paste using cmd + V, it is just throwing the content of the macOS clipboard at vim. It is just like typing each character that is in the clipboard literally into vim. That sometimes ...
hgiesel's user avatar
  • 1,944
5 votes
Accepted

Vim prints options on quit

From your .vimrc: ... set cursorline set " <- HERE syntax on ... This set command must be causing it. Looks like during initialization Vim dumps output to terminal, but you don't ...
xaizek's user avatar
  • 1,788
4 votes

Vim not starting server

I had exactly the same problem when trying to get vimtex working with Skim. That is, I had vim 8 installed with --with-client-server (showing as +clientserver) and XQuartz running but --servername ...
lemonad's user avatar
  • 141
4 votes

Can you use neovim in a gui like mvim or gvim? (Mac OS X)

I recommend neovim-qt (GitHub - equalsraf/neovim-qt). It is plain vanilla, cross-platform, stable, actively developed, and fast enough. To install on Mac using Homebrew: brew tap equalsraf/homebrew-...
otter.pro's user avatar
  • 508
3 votes

How do I enable Bash keyboard shortcuts while in Insert mode?

Tim Pope has made a plugin to do exactly that, the RSI shortcuts on insert mode: https://github.com/tpope/vim-rsi
rbernabe's user avatar
  • 801
3 votes

How do I run Homebrew vi on macOS instead of the older version Apple provided?

Since I don't have enough points to make a comment and i have seen --with-override-system-vi a ton of times I hope this helps someone else. Options were removed from brew - [github]: https://github....
phanzink's user avatar
3 votes
Accepted

When using macvim with symlinks, is opening vim just calling mvim -v?

mvim is a shell script which uses the name it's run as to decide what to do: # Next, peek at the name used to invoke this script, and set options # accordingly. name="`basename "$0"`" gui= opts= # ...
muru's user avatar
  • 24.9k
3 votes
Accepted

Cancel mouse highlight on mac

You can use fn to bypass Mouse Reporting for programs like vim. (i.e. do fn+left-mouse button to clear the selection.) Source: https://superuser.com/questions/125102/mac-os-x-terminal-mouse-support/...
Autofire's user avatar
3 votes

Emulate Apple "option" and "command" key text motions?

MacVim GUI Opt-Left and Opt-Right already do what you want by default, as well as Alt-Backspace. Cmd-Left and Cmd-Right are mapped to <Home> and <End> by default. You can remap them to ...
romainl's user avatar
  • 41k
3 votes
Accepted

Whitespace Tabs Show Differently in gVim on Windows/Linux versus MacVim on Mac OS

Got an answer on the vim_use Google group. It came down to priorities, and which vimrc is being used. For MacVim, there's a .gvimrc as well as a .vimrc file, and the .gvimrc file was overriding the ....
Adrian Keister's user avatar
3 votes
Accepted

is it possible to map numpad differently?

There are special keys <k0> to <k9> and <kPlus>, <kMinus>, <kDivide>, <kMultiply>, <kEnter>, and <kPoint>, which can be mapped separately, e.g., ...
Jürgen Krämer's user avatar
3 votes
Accepted

How to ident the cursor to the indentation of the above line?

The reason that o works the way it does is that, with autoindent or smartindent set, it will insert whitespace in order to match the indentation of the previous line. When you move downwards in ...
Rich's user avatar
  • 32.1k
3 votes
Accepted

Contextual Snippets in UltiSnips not working

The problem is that you have updated your plugins in the transition Linux to Mac. This also brings a major update of Vimtex, in which the syntax plugin has been included as part of Vimtex. Part of the ...
Karl Yngve Lervåg's user avatar
2 votes

How to Start Graphical Neovim from OS X Terminal?

Looks like the only NeoVim GUI for Mac OS X at the moment is Neovim.app. It installs a script called gnvim which behaves just like good old gvim, starting a GUI version and accepting all the ...
Alexander Batischev's user avatar
2 votes

How do I make key mappings for both OS X and Linux?

The following function is a start; it will probably fail on a number of cases. You can build off it: function! MyMap (...) let l:i = 0 if a:0 > 2 let l:opt = a:1 let l:i += ...
muru's user avatar
  • 24.9k
2 votes
Accepted

Solarized color scheme doesn't work Mac Terminal.app

I fixed the issue by setting g:solarized_termcolors to 16 instead of 256. let g:solarized_termcolors=16
minseong's user avatar
  • 2,333
2 votes

Pasting from cliboard in osx returns ^M instead of newline

Quoting from Bram: I assume you are talking about the command line, or entering search. Yes, it's intentional that the line break does not work like pressing Enter. The idea is that you are ...
Christian Brabandt's user avatar
2 votes
Accepted

Some umlauts and extended Latin characters are shown as fullwidth

Sorry, it's because I set :set ambiwidth=double. It makes some characters twice as wide as usual. I set :set ambiwidth=single, and all is fine. This line, I must have copied from some stranger's vimrc ...
Violapterin's user avatar
2 votes
Accepted

How do I evenly distribute GVim windows started from a key-binding?

It appears as though your needs may be met by using tabs. See :help tabpage in Vim for general help, but here are a few relevant commands: Start Vim with vim -p filename ... to open each file in a ...
8bittree's user avatar
  • 1,536

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