15
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 ...
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 ...
11
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.
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 ...
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 ...
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
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
4
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 ...
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-...
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
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....
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/...
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=
# ...
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 ...
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 ....
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.,
...
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 ...
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 ...
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 ...
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 += ...
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
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 ...
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 ...
2
votes
How to uninstall NeoBundle in OS X?
Remove the lines in .vimrc and delete the folder ~/.vim/bundle/neobundle.vim
The installation is just cloning a github repo and then loading with the lines you added to .vimrc
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
macos × 121terminal × 23
macvim × 21
neovim × 19
key-bindings × 18
vimrc × 16
iterm2 × 11
cut-copy-paste × 9
colorscheme × 8
vimscript × 5
gvim × 5
vimscript-python × 4
command-line × 3
split × 3
linux × 3
os-clipboard × 3
syntax-highlighting × 2
indentation × 2
insert-mode × 2
plugin-system × 2
filetype-tex × 2
plugin-you-complete-me × 2
cursor × 2
plugin-ultisnips × 2
plugin-nerdtree × 2