Questions tagged [macos]

Questions specific to the macOS operating system.

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
3 answers
701 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 ...
ravron's user avatar
  • 161
5 votes
0 answers
323 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 ...
Andrew Barnett's user avatar
5 votes
0 answers
342 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 ...
jjaderberg's user avatar
  • 3,499
4 votes
0 answers
1k views

iTerm2 and VI key mappings

I am trying to use a few keys and key combinations with VI (VIM - Vi IMproved 8.2) running in iTerm2 3.4.15 with zsh on macOS Monterey 12.1 on the Apple M1 Max chip. So far, I tried to set ...
slybloty's user avatar
  • 143
3 votes
0 answers
883 views

Mapping a "Command" key in neovim / alacritty

I am failing to map Command+T, Command+[ and Command+] keys in Neovim under macOS / Alacritty. I've reduced my Alacritty to be minimal: env: TERM: xterm-256color font: size: 16 key_bindings: - {...
oldhomemovie's user avatar
2 votes
0 answers
96 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 ....
ogirginc's user avatar
  • 345
2 votes
0 answers
112 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 ...
Davis Owen's user avatar
2 votes
0 answers
114 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 ...
domoremath's user avatar
2 votes
0 answers
95 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 ...
Bichoy's user avatar
  • 193
1 vote
0 answers
2k views

error: there was a problem with the editor "vi" -- while trying to change deployment file

Facing this error error: there was a problem with the editor "vi" when trying to change a deployment file in the Kubernetes cluster (AKS) kubectl edit deploy xxxxx -o yaml upon exiting the ...
Manoj vardhan reddy's user avatar
1 vote
1 answer
469 views

Vim display won't refresh in XQuartz

I got a new laptop (macOS Big Sur 11.5.1) and vim does not work correctly in an XQuartz terminal window. Many commands that should erase characters on the screen (such as backspacing while in insert ...
Nicholas Loehr's user avatar
1 vote
0 answers
40 views

Can I use Mac keybindings in insert mode?

I use Vim on a Mac book, and I am wondering if it is possible for me to use Mac keybindings when I am in insert mode. For example, option + delete to remove the word before the cursor, command + ← to ...
zyy's user avatar
  • 239
1 vote
0 answers
256 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. ...
Sophie McCarrell's user avatar
1 vote
0 answers
484 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: '...
CodingWithBeginnersMind's user avatar
1 vote
0 answers
854 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 ...
buncis's user avatar
  • 111
1 vote
0 answers
754 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 ...
Sebastian's user avatar
1 vote
0 answers
310 views

Sign column font is cut off

I have an issue where the signs in my sign column are cut off in the middle (screenshot below). Changing the Guifont or the font size doesn't seem to matter. It looks fine in terminal neovim. I am ...
bronzehedwick's user avatar
0 votes
0 answers
58 views

Why is the buffer being overwritten with the commands I use in normal mode?

I am using Alacritty terminal on MacOS and when I am type commands in Normal mode sometimes it writes them over the text. For example, when moving with l, it prints the l in an empty space it finds in ...
Miguel Cortes's user avatar
0 votes
1 answer
124 views

Resizing split panes in vim with {n}Ctrl-W +/- not working as described on MacOS

I am using vim on MacOS. I have one vertical split down the middle and two panes split horizontally on the left side ( :Vex Ctrl wh :Sex ). From my understanding nCtrl w +|- should resize the focused ...
ThinkingInBits's user avatar
0 votes
1 answer
114 views

Does Vim Cache the Output of system()?

Does it? I'm not sure. I'm getting this error, and it seems to be looking for a nonexistent cache folder: E282: Cannot read from "/var/folders/yh/z3ydby_56qz7mltrddsv3lqw0000gn/T/vi3voZp/0" ...
Samuel Bacay's user avatar
0 votes
0 answers
296 views

Pasting via vim doesn't paste whole text and gets stuck in the insert paste mode

For a while now, I've been dealing with a problem where when pasting a large amount of text, such as the code in this gist, into a file via vim, only part of the copied text gets pasted, then stops ...
Hunter T.'s user avatar
  • 101
0 votes
0 answers
54 views

Toggle between vim and non-vim controls

How can you get a running instance of Vim to stop using all custom mappings, and possibly even some defaults, and start using a new set of mappings. And then be able to toggle back. Specifically, I'...
Polo's user avatar
  • 41
0 votes
1 answer
4k views

How to reset neovim setting on MacOS to its default completely?

I installed neovim on MacOS Big Sur via homebrew. Then created the init.vim using vim-bootstrap (the languages I picked were C, Go, Haskell, Ocaml, and Rust) and put it on ~/.config/nvim/init.vim. ...
anta40's user avatar
  • 143
0 votes
0 answers
120 views

Vim Plug installment error on MacOS: Error creating directory /Users/api/.vim/autoload

I just migrated today from VSCode to Vim, and I need a little bit of help regarding the installation of Vim Plug. I installed Vim with Homebrew, and now I want to install Vim Airline. The tutorial I ...
AporBokor's user avatar
0 votes
0 answers
338 views

Map left command key to left control key in terminal only?

I've asked this question over on AskDifferent without any luck. I'm using neovim to edit code and am needing to create a mapping to bind to <cmd-w> to <C-w>. How would I go about this on ...
Bdyce's user avatar
  • 101
0 votes
0 answers
301 views

Why does PASTE mode mess up my text sometimes?

If I go to this web page on my MacOS, hit Command+A to highlight all the text, Command+C to copy it, open vim, enter insert mode, and paste with Command+V, it looks like: If I do exactly the same ...
John's user avatar
  • 227
0 votes
0 answers
396 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 &...
shoe's user avatar
  • 101
0 votes
0 answers
74 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 ...
todd_dsm's user avatar
  • 135
0 votes
0 answers
77 views

How do I fix <DEL> behavior on macOS in VIM 8.1?

I've recently installed "huge" VIM 8.1 with Lua support (on macOS via MacPorts). This installation is side-by-side with my "normal" VIM 8.0 which lacks Lua support, so I have access to both versions. ...
LiamF's user avatar
  • 185
0 votes
0 answers
198 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? ...
user2719875's user avatar