Questions tagged [macos]

Questions specific to the macOS operating system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

MacOS - Vim overriding my highlight config in ~/.vimrc

~/.vimrc: set backspace=2 set nocompatible set clipboard^=unnamed,unnamedplus syntax on set expandtab tabstop=2 shiftwidth=2 set smartindent set hlsearch set incsearch set ignorecase set number ...
ray's user avatar
  • 1
0 votes
1 answer
38 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
76 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
2 votes
0 answers
364 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
0 votes
2 answers
129 views

Syntax highlighting with only some allowed colours

In my ubuntu gnome-terminal I have vims default syntax highlighting color scheme + some color-tuning made in my gnome-terminal to filter out most colors with green except red, purple and brown. ...
MD. Mohiuddin Ahmed's user avatar
-1 votes
1 answer
163 views

What is the Vim shortcut on Mac to expand emmet snippet? [closed]

I am in newbie to Neovim. I have tried CMD Y but it is not working.
GroxDots's user avatar
0 votes
0 answers
43 views

MacOS neovim-nightly build error: implicit declaration of function

macos 13.2(apple chip) Build prerequisites already installed. build param: make CMAKE_BUILD_TYPE=Release log: /Users/agou-ops/GitHub_workspace/neovim-nightly/src/nvim/lua/treesitter.c:149:3: error: ...
Crystal's user avatar
1 vote
1 answer
16 views

How to turn off highlighting/colors for changes/current edits?

Recently (within the past year?) vim has started tracking changes as I edit, and highlighting those changes with a different color. I've given it a try, but I'd like to turn that specific feature off ...
Angelo's user avatar
  • 113
0 votes
1 answer
38 views

:ter source ~/.zshrc return executing job failed: No such file or directory

I have tried the solutions suggested here but none worked. The issue is easily reproducible, just run :ter source ~/.zshrc No special requirements for .zsrch and the .vimrc files, they can be empty (...
Barzi2001's user avatar
  • 440
0 votes
0 answers
146 views

Neovim: Detect phpstan.neon in the folder hierarchy above the current file

I have recently started using Neovim and I like it a lot. But I have some trouble using PHPstan with the appropiate phpstan.neon file. Let's say i have this folder/file structure - projects - ...
Cudos's user avatar
  • 101
0 votes
0 answers
452 views

How to detect Ctrl+Enter in (neo)vim

My system is macOS. The terminal simulator I'm using is Alacritty. I run neovim inside a tmux session. In my case, both ↵ and control↵ send ^M(visually here, in fact it's a single char). So there is ...
NeoZoom.lua's user avatar
  • 1,242
0 votes
0 answers
145 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 ...
StrangeRanger's user avatar
0 votes
0 answers
52 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
  • 31
1 vote
1 answer
103 views

Why is nvim updating the clipboard on start?

I use set clipboard=unnamed in my configuration. When I open nvim with nvim, the clipboard is left unchanged but if I open with nvim . the latest entry of the clipboard is always something unexpected. ...
mathieux51's user avatar
0 votes
1 answer
23 views

ctrl+a works when I ssh to linux machines but not on my local mac [closed]

I like to use ctrl+a in vim to increase numbers. I recently upgraded my mac to Calelina, and the ctrl+a command no longer works in vim. The strange thing is, when I ssh to different linux machines, I ...
kilojoules's user avatar
0 votes
1 answer
53 views

How do I give mvim Full Disk Access on macOS?

How can I use mvim to open files that require extra permissions on macOS? I've given MacVim Full Disk Access in "Security & Privacy": That allows me to open MacVim (by double clicking ...
idbrii's user avatar
  • 591
0 votes
1 answer
28 views

Possible to have no delay on <Esc> and also have Option+BS work in macOS/Kitty?

I make use of macOS's ability to press Option+BS to delete an entire word when typing and making mistakes. To make this work in Neovim I have the following mapping in my mappings.lua: map("i"...
Ben Frain's user avatar
  • 217
1 vote
1 answer
281 views

How to change foreground color of character underneath cursor?

I've tried setting the highlight rules below but it does not work. Whatever color I choose, the color of the character stays the same. I'm using xfce4-terminal on Linux and Terminal.app on Mac OSX. ...
Looft's user avatar
  • 113
2 votes
1 answer
314 views

Emoji does not render correctly when yanked from Neovim and pasted into a macOS GUI app like TextEdit

My issue I am new to Neovim/Vim, and I am using the Neovim from Scratch config as a starting point. It works well for me for the most part. I have a peculiar encoding issue affecting emoji that ...
Paul Jacobson's user avatar
4 votes
0 answers
928 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
0 votes
1 answer
3k 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
111 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
1 vote
0 answers
1k 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
0 votes
2 answers
102 views

Delete until the start of next visible line?

I'm using MacOS. As title, for example before the command: $('h1#title') .css({'font-size': '80px', 'text-align': 'center'}_)_ .text() .testing() .tset() (Notice that the blank line ...
NeoZoom.lua's user avatar
  • 1,242
0 votes
1 answer
630 views

Brew installed MacVim with excusively Python3

Have installed MacVim using brew on an M1 (ARM) MacOs. When trying to use python-mode extension the next error is shown: [Pymode]: error: Pymode requires vim compiled with +python3 (exclusively). Most ...
Gonzalo Matheu's user avatar
1 vote
1 answer
865 views

Vim Can't Delete on MacOS

I'm using vim 8.2.3017 built from source (the build version is not important since whatever version I use there exists this problem) on MacOS. The problem in brief: I can only delete characters ...
Chrimpyslime's user avatar
1 vote
1 answer
407 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
0 votes
2 answers
169 views

cryptic error since Big Sur upgrade, :PlugInstall doesn't work, and none of my plugins work

Error: Error detected while processing BufWinEnter Autocommands for "*"..function <SNR>3_LocalVimRC[322]..BufWinEnter Autocommands for "*"..function <SNR>3_LocalVimRC: ...
Sophie McCarrell's user avatar
2 votes
2 answers
1k views

How to add python3 interface to vim?

I want to use Ultisnips and get the following error: E319: Sorry, the command is not available in this version: py3 import vim Press ENTER or type command to continue Error detected while processing /...
Rhi's user avatar
  • 121
1 vote
1 answer
145 views

Native support for Apple Silicon

Is there a timeline for when the Mac-version of Vim will get native support for Apple's new system architecture, Apple Silicon?
Hanna's user avatar
  • 11
1 vote
1 answer
2k views

Can't use <Tab> in insert mode

I installed neovim on my mac and use the config I have from my Ubuntu laptop but I can't use Tab in insert mode (not indent). I press the tab and nothing happened. Everything is fine on my Ubuntu ...
t.Ac3__'s user avatar
  • 11
1 vote
0 answers
37 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
0 votes
0 answers
290 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
1 vote
1 answer
104 views

Lightlin background colors not displaying in MacOS Terminal

Background colors in the status line (and elsewhere in vim) are not displaying. This may be because I am using someone else's Lightline config, but it looks quite different to what I am seeing. My ...
CATboardBETA's user avatar
0 votes
1 answer
26 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/...
Yu Zhang's user avatar
  • 103
0 votes
0 answers
269 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
1 vote
0 answers
216 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
480 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
4 votes
1 answer
1k views

How to install more features to built-in Vim in macOS?

When I type :version inside Vim and I got a list of features as below, and I realized that there are some features/packages not installed by default (-python3 for example). How do I include/install ...
NeoZoom.lua's user avatar
  • 1,242
3 votes
1 answer
597 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 ...
Nitin's user avatar
  • 235
1 vote
0 answers
801 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
0 votes
1 answer
212 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 ...
Zaiba's user avatar
  • 1
0 votes
0 answers
307 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
2 votes
0 answers
62 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
  • 315
0 votes
1 answer
1k 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 ...
guckmalmensch's user avatar
1 vote
0 answers
56 views

No + or * register on Linux (accessed via SSH from macOS)? [duplicate]

I am on Ubuntu 14.04.3 and Vim 8.2. I'm trying to figure out how to access either the * or + clipboard on Ubuntu but it seems like it doesn't exist? After doing "*yy and "+yy on lines of ...
David542's user avatar
  • 2,335
2 votes
1 answer
397 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 ...
ogirginc's user avatar
  • 315
0 votes
1 answer
331 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>...
Magnus's user avatar
  • 111
4 votes
2 answers
9k 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 ...
Gagan's user avatar
  • 149
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