Skip to main content

Questions tagged [macvim]

Vim modified to run as a native OSX ("Cocoa") application. This is NOT the Vim that's included on OSX by default.

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

indent python files with only 2 chars on linux

I have this project where python files are indented with 2 chars, not 4. On my mac, I use macvim (VIM - Vi IMproved 9.1 (2024 Jan 02, compilé Jan 4 2024 03:08:50)). When I edit a file like this: #!/...
exore's user avatar
  • 101
2 votes
1 answer
112 views

U (undo line) doesn't work on single line buffer

I am working through the user manual, doing the examples on a Mac using Vim (comes bundled with MacVim) on the terminal and was doing fine with undo (Chapter 2). Then with undo line or U, when doing ...
Miguel Cortes's user avatar
0 votes
0 answers
34 views

Termdebug won't show messages back from openocd

I am working with a microcontroller (stm32f4) and I am attempting to debug it by connecting Termdebug to openocd. Everything works nicely with the exception that the messages sent back from openocd (...
Barzi2001's user avatar
  • 650
2 votes
1 answer
70 views

Navigate to the URL provided by a COC LSP exention's diagnostic output

The diagnostic popup for some of the COC LSP extensions include a URL to get more information about a particular error. For example, coc-sh shows this (invoked through a mapping that calls <Plug&...
Pak's user avatar
  • 1,124
-1 votes
2 answers
85 views

Set key to toggle full screen in MacVim

I use Vim from bash and I use MacVim as a UI in macOS. I max out my desktops, and try to keep "1 app per desktop", so MacVim sits into its own desktop. Except that the app starts in full ...
jalanb's user avatar
  • 684
0 votes
1 answer
25 views

I cannot detect where is ^M in my .gvimrc

I have the following .gvimrc: vim9script # ----------------------------------- # This file is sourced AFTER .vimrc # ----------------------------------- set mousehide # Set fonts for gvim # fontsize ...
Barzi2001's user avatar
  • 650
-2 votes
1 answer
66 views

MacVim: how to prevent :[range]!say to remove text? [duplicate]

I am writing some prose and I find very useful to hear what I wrote from an external voice. I found the command say which I guess is only available on MacOsX (perhaps other OS have some equivalent). ...
Barzi2001's user avatar
  • 650
1 vote
1 answer
47 views

Help in positioning a popup menu in the screen

I am using MacVim and I wish a popup menu to always appear in the lower right corner of the screen (not the current window). I am using the following command: popup_create(items, { title: " ...
Barzi2001's user avatar
  • 650
2 votes
2 answers
234 views

Command to set the window width

Using MacVim, I can manually drag the edge of the window (watching the numbers in the title bar) to whatever width I want. Is there a command that will just immediately set it to a desired width? I ...
RadlyEel's user avatar
  • 141
0 votes
1 answer
30 views

How to set highlight for tab labels when using MacVim?

By looking :h hl-TabLine I have the following hl groups: But the actual colours are different, as you can see from the following image: Reading :h setting-guitablabel didn't help too much. Any hints?...
Barzi2001's user avatar
  • 650
0 votes
1 answer
160 views

How to configure git config to use MacVim and zsh to use Vim bundled in MacVim?

The following is an excerpt of my .gitconfig [core] editor = mvim autocrlf = false pager = less -FX commentchar = "#" [diff] tool = vimdiff guitool = vimdiff [merge] ...
Barzi2001's user avatar
  • 650
1 vote
0 answers
186 views

Neovim Slow Cursor Blinking

I'm trying to switch from Macvim to Neovim, but running into an issue that I can't figure out. I can't get guicursor to fully work. I say fully work because some of it does, e.g. setting ver25 or ...
Brian Ray's user avatar
  • 123
1 vote
1 answer
90 views

term_start won't open terminal in the desired position

If I run term_start('zsh', {'term_name': 'MYTER','vertical': v:true}) I get the expected behavior, but if I run term_start('zsh', {'term_name': 'MYTER','belowright': v:true}) will produce E475: ...
Barzi2001's user avatar
  • 650
0 votes
2 answers
111 views

Vim9script commands from command line result in E1124. Is it normal?

If I run e.g. :var a = 1 from the command line I end up in E1124: "var" cannot be used in legacy vimscript. Running on MacVim 9.0.1276. Is it normal behavior?
Barzi2001's user avatar
  • 650
0 votes
0 answers
49 views

When alt-tabbing, subfolders in Netrw change appearance and opens in preview window

I'm on macOS Ventura 13.2, using macVim and terminal vim. When I toggle Netrw, open a folder with a subfolder, and then cmd-tab away from vim and back again, that subfolder changes appearance and ...
najjt's user avatar
  • 1
0 votes
1 answer
101 views

vnoremap to sort highlighted lines by length not working as expected

I found a command that would sort highlighted lines by their length and wanted to make a mapping for it so that I could avoid typing it every time. vnoremap ,s :<C-U>'<,'> ! awk '{ print ...
Shreevathsa GP's user avatar
0 votes
1 answer
65 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
  • 650
1 vote
1 answer
166 views

Vim does not see single quotes

I want to use Vim (MacVim) to remove all single quotes from a file. I tried the following: :%s/'//g :%s/\'//g but in both cases, Vim returns: E486: Pattern not found: I get the same error when I ...
someguyinafloppyhat's user avatar
0 votes
0 answers
133 views

(mach-o file, but is an incompatible architecture (have 'arm64', ne ed 'arm64e')), '/usr/lib/vimproc_mac.so' (no such file)"

when I try to execute `:QuickRun I'm getting this message [vimproc] function quickrun#command#execute[10]..quickrun#run[10]..387[10]..379[1]..vimproc#pgroup_open[15]..<SNR>178_pgroup_open[7].....
whitesiroi's user avatar
0 votes
1 answer
68 views

MacVim: <Delete> key does not work in a terminal window

I happened to find that we may open 'Terminal windows' in Vim and am happy to stop using terminal app. (It's available in v8 and v9) However, when I have a typing mistake, pressing Delete key does not ...
Charles Jie's user avatar
0 votes
0 answers
413 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
25 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
1 vote
0 answers
180 views

In MacVim, I want to make it so the cursor does not blink

In my vimrc file, I have the two lines let &t_SI="\033[6 q" " start insert mode (steady bar, xterm) let &t_EI="\033[2 q" " end insert mode When I am in the ...
user42457's user avatar
0 votes
1 answer
294 views

How to display stdout/stderr of a program as overlay?

How can we display a program execution output from stdout or stderr as a overlay from inside VIM? I get that we can have keyboard shortcut mapping to compile and run, but I'm looking to display the ...
mtk's user avatar
  • 243
0 votes
1 answer
88 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
  • 681
1 vote
0 answers
526 views

Sorry, the command is not available in this version

I am trying to install the UltiSnips plugin using vim-plug (for everything else, vim-plug works just fine). I put this: call plug#begin('~/.vim/plugged') Plug 'sirver/ultisnips' call plug#end() ...
grepgrok's user avatar
0 votes
0 answers
121 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
2k views

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

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
1 answer
66 views

How do I make the statusline selectable in gvim/macvim?

With terminal vim I can just double click the statusline and select the filename, which is very handy. In gvim or macvim clicking the statusline prompts me to resize the active window, not very useful....
mihai's user avatar
  • 103
3 votes
0 answers
778 views

What Neovim GUIs have GUI scrollbars as described in vim under :h gui-scrollbars?

TL;DR I am looking for a Neovim GUI with GUI scrollbars as described in vim under :h gui-scrollbars (accessed on 2021-08-21). What GUI Vim scrollbars are like 2. Scrollbars *gui-...
Hotschke's user avatar
  • 4,800
0 votes
2 answers
744 views

Why does an empty vimrc file change my configuration (e.g. disable syntax highlighting)?

Here is the sshconfig syntax highlighting when i do not have any .vimrc file: Let's create an empty .virmc : $touch ~/.vimrc Now let's edit that same file again: Why is this happening? I'd like to ...
WestCoastProjects's user avatar
0 votes
1 answer
701 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
-2 votes
1 answer
69 views

How to replace *_Apple to Apple using VI?

I need to replace multiple lines using vi. For example, any numbers_Apple to Apple 0001_Apple 0010_Apple 1021_Apple … 8383_Apple to Apple
John Lee's user avatar
1 vote
0 answers
532 views

Mac + vim : character ASCII 160 instead 32 as space

This is a problem that is making me crazy so any help is welcomed :-) That happens to me mainly when typing scripts with Vim in Mac but I think I got the problem somethimes when typing some commands ...
islegmar's user avatar
1 vote
2 answers
2k views

No fold found with Python code, Mac and Debian

I'm trying to get vim to do code folding with my python code and I could really use your help with the last bit here. I have this in my ~/.vimrc: set number "set tabstop=2 "set expandtab &...
Jeff Welling's user avatar
1 vote
1 answer
192 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
705 views

How to run internal (Neo)Vim ":Command" from external Terminal?

I'm using MacOSX, and I have script on Terminal, and since I will probably forget how to update everything inside Vim/NeoVim, is it possible to pass command, e.g. :PlugUpdate, to nvim/vim so that I ...
NeoZoom.lua's user avatar
  • 1,540
1 vote
2 answers
72 views

MacVim mode() does not return 'c' for Command mode when pressing ':'

mode() won't return anything when I go into Command mode. I use this for StatusLine info: set statusline+=%{mode()} as a test to see what mode() returns. pressing c or C and my StatusLine stays as ...
TonyB's user avatar
  • 11
0 votes
1 answer
90 views

How can I drag a file onto MacVim and make it open in a new buffer instead of new tab?

I have MacVim 8.2.2576. When I drag a file onto it from the Finder it opens in a new tab. I have seen the :help drag-n-drop but I did not see any option as I prefer. Is there any ways to configure ...
null's user avatar
  • 3
0 votes
1 answer
83 views

Map comma in select mode to exit select mode, enter insert mode, append a comma

Is it possible to remap comma in select mode to exit select mode, enter insert mode, [optionally: go the end of the last selection (which the cursor seems to be for ultisnips)] and append a comma? ...
codepoet's user avatar
  • 101
1 vote
0 answers
264 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
0 votes
2 answers
100 views

After selecting a string in visual mode, how should I change the selected string into a different string?

So I have a configuration file that I want to modify using Vim. I want to change a ******* into something else, but after selecting the ******* in visual mode, I am not sure what am I supposed to do ...
jxhyc's user avatar
  • 135
1 vote
0 answers
485 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
245 views

What are the acceptable values for termwinkey?

What are the acceptable values for termwinkey? From VIM's documentation, it appears that any single keystroke (multi-byte or not) should be valid. However, setting it to <D-'> (my first choice) ...
Mark Wilbur's user avatar
1 vote
1 answer
49 views

Type into two places at once [duplicate]

I am working in macvim with a latex file where I have an index where terminology is being stored (using \usepackage{imakeidx} and \makeindex). I have a command for inserting terminology with emphasis ...
aladdinoscopy's user avatar
1 vote
1 answer
214 views

MacVim Text Randomly Disappeared [closed]

I am using MacVim to write code in C++. I went to modify my vimrc file and accidentally clicked :w when in the file. After doing this, all the text seemed to disappear. After a while, I realized the ...
ifandonlyif's user avatar
1 vote
1 answer
456 views

UltiSnips loaded but not working by default in MacVim

I am using vim-plug to load many plugins into MacVim running through Rosetta on MacBook Air M1. One of the plugins is UltiSnips by SirVer. The problem is that UltiSnips does load (checked via :...
Nitin's user avatar
  • 235
1 vote
1 answer
34 views

not finding the name of and plugin

I've installed "awesome" config for my vim; It has a plugin that shows some stuff on the left bar. I don't know its name, what's its name? and how can I disable it
Parsa Ghasemi's user avatar
1 vote
0 answers
30 views

How can I make `<Shift>+<LeftArrow>` and `<Shift>+<RightArrow>` key bindings work using MacVim?

How can I make <Shift>+<LeftArrow> and <Shift>+<RightArrow> key bindings work using MacVim? I often use these (default) key bindings in Insert mode to move the cursor one word ...
Shuzheng's user avatar
  • 1,285