Questions tagged [macos]
For questions specific to the macOS (formerly OS X) operating system.
79
questions
0
votes
0answers
7 views
How to set/get env path in macvim? [closed]
Using macvim on macOS. If open it from terminal by
$ mvim .
The env values(such as PATH setting in ~/.bashrc) set in terminal can be set to macvim. But if start macvim and open a project fold or a ...
0
votes
1answer
20 views
cannot save raw plug.vim file [closed]
MacOS, I am trying to save plug.vim file by:
navigate to https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Using save file as option to save plug.vim to this location /usr/share/vim/...
0
votes
0answers
30 views
Alternative to screen/tmux for window management, that can survive a restart
I just bought a new macbook and I want to start my dev environment fresh. [I've been using the same sorta broken setup for about 5 years now]
Currently, I use vim, in a screen session, in a terminal. ...
0
votes
0answers
53 views
YouCompleteMe installation-problem with Vim, Vundle on macOS 10.4.6/hombrew
I tried to install YCM. After some faults, Vundle shows that the install is complete, but YCM-Server is down. When I ran install.py I allways get this kind of error
...
' fatal error:
'...
2
votes
1answer
89 views
Contextual Snippets in UltiSnips not working
I have been using vimtex with UltiSnips for a while on Linux platform and it has been working just fine.
Recently, I switched to MacBook Air M1 for the same and installed the above mentioned plugins ...
1
vote
0answers
109 views
how to make vim colorscheme work on big sur terminal?
some say I need to install iTerm because osx terminal only support 16 colors
but when I check the terminal.app it use xterm-256 and it support 256 color test
some say default osx doesn't support 256 ...
5
votes
2answers
339 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 ...
1
vote
1answer
455 views
Why does terminal vim enter replace mode with my vimrc file? [duplicate]
I mostly use MacVim, but sometimes I'm in the terminal and use the CLI vim.
I recently decided to clean up my vimrc file, retaining only what I knew I wanted. It works fine with MacVim, but when I ...
0
votes
1answer
60 views
How to map command+shift+right to widen vim split?
When I use 5<C-w>> in vim it makes my currently selected split increase by '5'. When I try to create this mapping on my Mac:
noremap <silent> <D-S-Left> 5<C-w><<CR>...
0
votes
1answer
29 views
Vim indentation different on linux and macOS
I'm using vim to write in C for college. My .c files need to abide to specific formatting rules. While I'm writing my files on Linux, the .c files will be evaluated on macOS. I noticed that any tabs ...
0
votes
0answers
36 views
How to override the terminal title bar preferences in Vim
I have only the Working directory or document and Active process name preferences checked for Terminal window titles. Then in VIM I use a custom titlestring. However, the title bar is displayed as &...
2
votes
0answers
40 views
Key Registration Problem
I have a problem that sometimes happens when I do type in Neovim. It does not register keys or mouse clicks correctly, which causes me to restart the iTerm session and rescue the working file with ....
3
votes
1answer
196 views
If one can diff from Vim without the need to boot `vimdiff` then why is it a binary program?
Before you start reading.
Before having answers, I thought vimdiff was a binary program because I'm used to Debian's file, which seems not to honor POSIX (but I didn't knew); but then I used macOS 10....
1
vote
1answer
667 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 ...
0
votes
0answers
120 views
How to tell Vim 8 to use a specific python interpreter?
I'm trying to setup deoplete for Vim in mac os. One requirement for this is to install pynvim which I did with pip3 install pynvim
Now within Vim, :python3 import pynvim throws an error ImportError: ...
0
votes
1answer
94 views
“Error detected while processing /Users/mycomputer/.vimrc:” when I try to open a file
New to vim. I'm on MacOS and every time I do vim something.txt, it gives me
Error detected while processing /Users/mycomputer/.vimrc:
line 128:
E471: Argument required
Press ENTER or type command to ...
2
votes
1answer
69 views
Can't Copy Non-ASCII Characters
I can't copy Non-ASCII charaters from Neovim anymore when I select them with mouse or crtl + v.
For example, I have the Turkish word Bankası written in my editor. When I yank and paste it to somewhere ...
4
votes
2answers
435 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 ...
1
vote
0answers
299 views
changing cursor to block in insert mode on Neovim
I am a new neovim user. I am currently on MacOS, and using iTerm as my terminal emulator. I am using Neovim 0.4.3.
I would like to configure my neovim in such a way that the cursor in insert mode is ...
8
votes
3answers
8k 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?
0
votes
0answers
26 views
script colors to solarized
using macOS, I've colored the Terminal app by importing the Solarized theme but the scripts I write inside the terminal are not displayed in the Solarized theme. :colorscheme="default"
While ...
1
vote
2answers
114 views
Problems after update to OSX Catalina
I recently updated my MacBook to OSX Catalina and now I am getting some unwanted behavior in vim (though it seems to be working overall?).
On opening vim I see the following stream of errors (...
0
votes
1answer
79 views
in macOS, shell escape to bash not zsh
On macOS I've set my login shell to bash instead of zsh, which became the default in Catalina (Terminal > Preferences > General > Shells open with: > /bin/bash).
But when I shell escape from vi (from ...
0
votes
1answer
37 views
Suggested short-cuts for “Command” shortcuts used across most programs
I often find myself using the following no matter what the program is:
Cmd s to save.
Cmd a to select-all
Cmd t to open a new tab
Cmd c to copy
Cmd v to paste
Cmd z to undo
Cmd Shift z to redo
That ...
3
votes
3answers
131 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 ...
0
votes
1answer
1k views
Can you use neovim in a gui like mvim or gvim? (Mac OS X)
Maybe a stupid question but is it possible to run neovim on a GUI like gvim or mvim?
I need some GUI to do remote work within Filezilla
Thanks
1
vote
1answer
58 views
simultaneous “vi <(command)” in macOS
In macOS Catalina, from Terminal, bash, vim 8.1, I launch vi <(command1) to see the output of a command.
From another terminal, I launch another vi <(command2).
Then vim complains that it's ...
1
vote
1answer
228 views
How to ident the cursor to the indentation of the above line?
I want to move the cursor to the indentation of the line above.
As seen from the example below, when I move the cursor down (j or arrow-down), it goes to the start of the line. This is both true for ...
1
vote
1answer
38 views
Why does :! open -a terminal or :! start cmd create totally new “applications”?
Edit: on Windows, looks like it's opening in sysWOW64 instead of system32. Any ideas why?
Title. Basically, both of these commands are supposed to open a new console, the former on my mac and the ...
4
votes
0answers
170 views
MacOS Terminal CPU spike after exiting Vim
I'm using Vim 8.1 from homebrew on MacOs 10.14.6. Whenever I exit vim back to the terminal, the first keypress in the terminal afterward results in a beachball and CPU spike to 100%, with terminal ...
2
votes
0answers
32 views
How to mimic Alt key functionality from ubuntu gnome to OSX iTerm2?
When I use Vim on my home Ubuntu computer, I am able to use alt-[key] as a quick way to jump from insert mode to normal mode and immediately run the [key] command. One thing I frequently do is: alt-j ...
1
vote
0answers
214 views
Random characters appear in my buffer but they are not part of the current file
I really don't know what details to give except for some screenshots and my vimrc file, I think it is because of a plugin but I am really not sure. Random characters just appear. Note that they are ...
1
vote
0answers
64 views
Pressing <Alt-3> (left alt key) suddenly maps to Esc (and not the character “#”) using iTerm2 [closed]
Characteristics:
MacOS 10.14.6
I'm using VIM as text editor for a few weeks, with both Terminal and iTerm2
I could write character dependent on hitting key alt (left alt key in iTerm) without ...
1
vote
1answer
110 views
is it possible to map numpad differently?
Currently, the numpad does the usual things(input numbers and so on). numlock does nothing.
I wonder if you can differentiate numbers/char entered on the numpad from those typed on the main section ...
-1
votes
1answer
126 views
Whitespace Tabs Show Differently in gVim on Windows/Linux versus MacVim on Mac OS
I am having difficulty getting MacVim to behave and look the same as gVim on Windows or Linux. Here's an example:
gVim on Windows:
MacVim on Mac OS:
These are viewing precisely the same file. The ...
0
votes
0answers
38 views
has('mac') returns 0, but I'm on a mac? [duplicate]
I am using vim in a terminal on my mac.
I understand that the command:
echo has('mac')
should return 1 (it does on macvim), because it's running on a mac. But it returns 0. Can anyone tell me why ...
1
vote
1answer
168 views
Why does VIM change the columns variable after Ctrl+z? (Setting the width of text in the VIM editor)
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 ...
0
votes
0answers
127 views
How to bind command+s to save file on macOS?
I have a Macbook. I want to save files by pressing command + s (this should happen if it is in insert mode or not, and I want it to go to non-insert mode after it is saved).
How do I do this?
...
3
votes
1answer
336 views
Paste mode sometimes inserting “<Paste>”
Sometimes when I paste (via cmd+v) some text into neovim, it inserts <Paste> at the bottom, i.e:
This
was pasted and
I got some bonus letters
<Paste>
I can't figure where this text comes ...
0
votes
1answer
52 views
Loading UTF keymap file
I need to load a particular keymap file that enables me to write underscore, special characters by typing
:set keymap=iast
where iast.vim is my keymap file
This no longer works. Where should this ...
2
votes
1answer
171 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
1k 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 ...
1
vote
1answer
262 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'...
2
votes
2answers
733 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
311 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 ...
2
votes
1answer
1k 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
2answers
1k 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 ...
1
vote
1answer
586 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
2answers
383 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 ...
2
votes
0answers
93 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
...