Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [macos]

For questions specific to the macOS (formerly OS X) operating system.

2
votes
1answer
33 views

Can Neovim API get the text in command input area?

I'm developing a GUI client of Neovim, and looking for the way to get the text in command input area using msgpack-rpc. I mean that the 'text in command input area' is the bottom of Neovim window. (...
1
vote
0answers
37 views

Cannot type backslash (\) in Vim [closed]

I am starting to work with vim in iterm2 on macOS. Whenever I am in insert mode and try to type a backslash, the cursor jumps to the buttom of the Terminal-window and a forward slash appears. I have ...
0
votes
1answer
34 views

Why do windows not have syntax after split?

I am trying to create my own C++ environment inside of VIM. So far, this is my setup when I run $ vim ~/shape.cpp: for example: As you can see, only NERDTree has full syntax highlighting (which isn'...
0
votes
1answer
147 views

How to install the latest version of Vim on macOS?

I'd use Homebrew to install Vim on macOS, with brew install vim, but the Homebrew Formula for Vim seems to install many additional features that I don't need. For example, while I do plan on using Vim ...
1
vote
2answers
192 views

How to delete a file from within a vimscript?

I'm trying to automate cleaning up old vim undo files that are for files that have since been deleted. So far I've created a new vim script at ~/.vim/autoload/cleanupUndos.vim: function ...
0
votes
1answer
45 views

How to disable the command key in Vim in Mac?

How to disable the command key in Vim in Mac? I accidentally press command + w and close the view or command + p and print opens up, it is super annoying. I couldn't find any reference on this ...
1
vote
1answer
367 views

Why some information can't been shown at status bar with iTerm2?

Installed vim with SpaceVim on macOS. When ran vim in the iTerm2 terminal, the information can't been shown rightly at status bar. Much of them been shown as ?. Why?
3
votes
1answer
280 views

Installing Vundle: “fatal: could not create leading directories”

Following the instructions on the Vundle GitHub page, entering git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim in terminal on MacOS gives fatal: could not create ...
2
votes
0answers
59 views

Color questions for macOS

I just got a mac and have been trying to setup Vim 8 on the built-in terminal. I am mostly having some difficulties with colors. 1) After set number, how do I change the line number colors? I tried ...
1
vote
0answers
155 views

Nvim not getting correct terminal size opening session in tmux [closed]

MacOS Sierra 10.12.6 + iTerm2, build 3.1.4 + NeoVim 0.2.0_1. I run on iTerm a Tmux session loaded with teamocil [session] In one of tmux windows there's an instance of nvim working smoothly, ...
3
votes
2answers
196 views

Using vim as manpager: works on Linux, fails on macOS

:h manpager describes how to use vim as a manpager: Works on: - Linux - Mac OS - FreeBSD - Cygwin - Win 10 under Bash Untested: - Amiga OS - BeOS - OS/2 For bash,zsh,ksh or dash ...
0
votes
1answer
120 views

How to make <S-A-Left> and <S-A-Right> work in vim within Mac Terminal

I'm using these keyboard shortcuts to navigate/manipulate tabs in MacVim " tab navigation nnoremap <silent> <S-Left> :tabprevious<CR> nnoremap <silent> <S-Right> :...
1
vote
1answer
63 views

Vim prints options on quit

I've noticed that recently when I quit vim it prints the following text to the terminal: --- Options --- background=dark helplang=en relativenumber cursorline number scroll=11 runtimepath=~/...
1
vote
2answers
560 views

Vim not starting server

Context: I'm trying to use vim's clientserver mode on Mac OS X, using iterm2. I've compiled vim with clientserver via brew, and I've got XQuartz installed also. This is to allow continuous ...
0
votes
0answers
60 views

Unable to delete *old* characters after upgrading to vim 8.0 [duplicate]

I recently upgraded my system VIM to 8.0.0893 (stable) from the system default 7.4 using Homebrew and including the --with-override-system-vi. After doing so I confirmed that I was now using VIM 8.0. ...
2
votes
1answer
576 views

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

When using the vim installed by default in macOS 10.12.5, I can copy text from the terminal by using cmd-C and pasting it into another applications. But when I use the latest version of vim (8.0....
2
votes
1answer
266 views

Control (or respond to) Input Method on Mac OS?

Occasionally, I need to edit text in Chinese, and the input method I use makes it extremely tedious to do so with vim. Each time I want to leave insert mode, I have to <C-]> (to return to normal ...
0
votes
1answer
90 views

(OSX) Can't run gvim from gvim

I make a file called run_gvim_thing.sh in my home dir. Inside of that is the command gvim myfile.py && echo "yay". If I run that file from terminal it launches gvim with myfile.py. If I run ...
1
vote
0answers
63 views

VIM resets columns variable after Ctrl+z

I start up vim using the following command: vim -u NONE -U NONE -c ':set columns=40 nu' Then, I push vim to the foreground... ...and return. For some reason, VIM has changed the columns variable to ...
3
votes
3answers
151 views

How can I show a preview of my LaTeX buffer without stealing focus from Vim?

I'm using Vim to write LaTeX on my Mac. I could make a shortcut to execute pdflatex (it should be possible right?) and see the result on Preview. But it steals the focus when it updates to the new ...
0
votes
1answer
401 views

Python quit unexpectedly [closed]

When I start vim (homebrew installation, /usr/local/bin/vim), I get the error "Python quit unexpectedly." How do I make python work with my vim? $ which vim /usr/local/bin/vim $ which python /usr/...
1
vote
2answers
1k views

Youcompleteme on Mac OS X

I'm trying to use the YouCompleteMe auto completion plugin. I have installed MacVim version 7.4. I followed the instructions on the linked page for Mac OS X by making the symlink: ln -s /usr/local/...
0
votes
1answer
381 views

Cancel mouse highlight on mac

Whenever I use vim, sometimes I make a single-touch touchpad on vim screen and it makes a highlight like the picture below. The problem is this I cannot cancel this highlight. right click doesn't ...
5
votes
2answers
847 views

Pasting from cliboard in osx returns ^M instead of newline

I'm having a problem with pasting on MacOS Sierra. When I copy text with newlines, I can paste it in a terminal without issue. e.g.: Text to be copied: echo 'Foo' echo 'Bar' result from terminal (...
3
votes
1answer
119 views

Some umlauts and extended Latin characters are shown as fullwidth

In Vim, I find each of ü and ß takes up fullwidth, i.e. twice as fat as ASCII characters. I am writing some German-learning notes, and find this to be very confusing, since I have been mistaken that ...
4
votes
2answers
4k views

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

I have recently upgraded to Vim 8 using Homebrew, but my vi commands still load the OS-provided version 7.4 of Vim. I could add an alias to vi, but is there another way?
5
votes
1answer
120 views

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

I've installed macvim on OSX 10.11.6 using brew install macvim --with-override-system-vim. This worked fine. I now have some new aliases/symlinks (I'm not too familiar with the differences): . #in ...
2
votes
2answers
335 views

Emulate Apple “option” and “command” key text motions?

I mostly use Vim (or MacVim) to edit text, but occasionally (such as in writing this question), I use the Mac OS text editing keybindings built in to all text entry fields accessed through a Mac. I ...
1
vote
2answers
1k views

Solarized color scheme doesn't work Mac Terminal.app

I want to use the Solarized Light theme in both my Terminal and VIM. I seem to have got it working in Terminal, I downloaded the entire package from their website, tree output, and then in my ...
0
votes
2answers
441 views

Make neovim background the same colour as the terminal background

In addition to what was asked above, is there also a way for (neo)vim background colour to change when the terminal background colour is changed? It's running in OSX in the default terminal app.
-1
votes
1answer
82 views

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

Code % http://vi.stackexchange.com/a/7627/2923 if has("win32") || has("win64") :vnoremap <Leader>gf :<C-U>'<,'>g/^/silent! exec "!START /B gnvim " . shellescape('<cfile>') &...
4
votes
2answers
5k views

How to Start Graphical Neovim from OS X Terminal?

I have installed the terminal neovim which starts by nvim, and the graphical neovim. I cannot find the keybinding to start the graphical neovim in Terminal. I installed the neovim by following ...
1
vote
1answer
59 views

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

command! -nargs=0 -bar UpdateBuff if empty(bufname('%')) \| browse confirm write \| else \| confirm ...
3
votes
0answers
80 views

:!make is at least 10times slower compared to terminal on MacOS X

I am using MacVim version 7.4. I am authoring a large LaTeX file and I use a GNU Makefile to compile the documents along with lots of figures and other targets. The command make generates lots of ...
5
votes
0answers
216 views

Properly restore terminal title after suspending vim

I'm using Vim 7.3 on OS X Terminal version 2.6.1 (OS X version 10.11.2). If it's relevant, my version is compiled without X11. When I open a file in Vim, the terminal title bar changes to show the ...
0
votes
1answer
306 views

vi or vim: Mac/Iterm 2 highlight-paste [closed]

When editing with Vim on Macbook Pro with Iterm2 interface I can copy text by highlighting text with left-button double click on mouse, paste text by pressing center wheel on mouse. Instead of (2) I ...
5
votes
1answer
529 views

Problems with paths that includes swedish characters

Update I've now also tried this on my Arch setup and everything works fine there. vim --version on that machine says: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 28 2015 08:49:36) Included ...
3
votes
1answer
900 views

How to uninstall NeoBundle in OS X?

I was trying to revamp the vim editor so I installed NeoBundle but I didn't like it. How can I uninstall it completely? I followed the installation instructions given in the readme: $ curl https://...
4
votes
0answers
226 views

Encoding issue with filename in MacVim

Question In MacVim I type :tabe jäderberg.txt to open a buffer for that file. The file does not yet exist. My status line displays the file name jäderberg.txt. I do i<C-r>% to put the file name ...
1
vote
1answer
342 views

Terminal in Mac OS X Yosemite gets messed up after exiting vim

This happens with either stock Yosemite terminal, or iterm2. When I exit vim, this is my terminal. As you can see, colors are messed up in my terminal after exiting vim and it doesn't come back ...
3
votes
1answer
309 views

Why is the cursorline always showing after the cursor moves over a line?

Can anyone can help me, my vim always shows the cursorline, like this: I have set nocursorline in the ~/.vimrc, but it has no effect. vim version is: 7.4.622 vim is run on OSX 10.10.3, how to ...
6
votes
1answer
633 views

Clipboard sharing broke under MacOS X

I'm using (roughly) the same config for my mac and my ubuntu machine. I use set clipboard=unnamed,unnamedplus To conveniently share vim's clipboard with the system clipboard. However, lately the ...
2
votes
2answers
90 views

PDF viewer syncing

The Mac latex editor 'TeXShop' has a great feature -- I can right-click anywhere in my tex and it shows me the corresponding character of the generated PDF. Similarly I can click on PDF and jump to ...
2
votes
1answer
340 views

CtrlP searches entire machine

I use CtrlP with vim, installed it with Plug and have it set up mostly to default settings. Whenever I use the plugin though, it seems to search through all my files on my entire machine. So instead ...
2
votes
2answers
88 views

How to map CMD+Alt alone to the command?

I am trying to map Cmd+Alt to start searching in vim (/). The only question is: how would I do this? I know to map Alt in vimscript is by typing <A> but I do not know how to do Cmd. I also want ...
4
votes
2answers
3k views

I can't get 256 colours to work with Vim in iTerm2 on MacOS X

I am having a rough time getting the colors right with my vim setup and the color scheme I want to use. Using: OSX 10.10.2 Vim 7.4 iTerm2 (Set to report terminal type as "xterm-256color") gruvbox ...