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
2 votes
1 answer
56 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,114
-1 votes
2 answers
50 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
22 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
  • 550
1 vote
1 answer
43 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
  • 550
2 votes
2 answers
195 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
27 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
  • 550
0 votes
1 answer
137 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
  • 550
1 vote
0 answers
158 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
78 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
  • 550
0 votes
0 answers
45 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
86 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
1 vote
1 answer
124 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
107 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
0 answers
304 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
24 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
158 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
260 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
75 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
  • 651
1 vote
0 answers
445 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
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
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
0 votes
1 answer
65 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
0 votes
1 answer
683 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
415 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
1 answer
170 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
654 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,460
0 votes
1 answer
85 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
75 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
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
0 votes
2 answers
99 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
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
235 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
48 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
211 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
448 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
29 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,245
1 vote
0 answers
765 views

Vim: How to have YouCompleteMe autocomplete shell script variable names and functions from "source"d files?

I use macvim with YouCompleteMe (YCM), which I recently updated and recompiled. I followed the YCM instructions for OSX. I'm also using iterm2, tmux and zsh, all of which are installed with brew and ...
Life5ign's user avatar
  • 111
0 votes
1 answer
200 views

Is there an equivalent to Xcode's quick jump bar (to navigate Swift MARK annotations within a file)?

Does a rough equivalent to this Xcode quick jump bar feature exist as a Vim plugin? I haven't been able to find any good leads on one in my research. It's a way to navigate sections in a file - in the ...
aehlke's user avatar
  • 151
0 votes
1 answer
376 views

In Vim How to jump to last, second last or some n'th character from the end in current line

Suppose I have a string like takeThisAsAFunction(someParameter, someNestedFn(furtherNesting(foo, oneMoreNesting())), someText); ^ ...
CodeTalker's user avatar
1 vote
4 answers
2k views

How can I view a list of all of the features that can be checked for using `has()` in Vim?

How can I view a list of all of the features that can be checked for using has() in Vim? I recently came to know the has() function for testing the presence of "features" (see below). :h ...
Shuzheng's user avatar
  • 1,245
1 vote
1 answer
27 views

<esc>v$ without trailing space?

I want to use $ in visual mode but it always includes a trailing space (even if there isn't one on the line). How do I make it so $ only goes to the actual last letter?
Tallboy's user avatar
  • 177
2 votes
2 answers
3k views

Why does peachpuff colorscheme looks completely different in terminal and GUI (MacVim)?

I've installed MacVim using Brew: brew cask install neovim I'm using the macOS's Terminal.app to run MacVim in Terminal mode. I've experimented with :colorscheme peachpuff, since many recommends that ...
Shuzheng's user avatar
  • 1,245
2 votes
1 answer
88 views

Handle the autocomplete dependency trough different languages

Recently I have started to switch from IntelliJ stack to Vim as main IDE. Vim with plugins seems awesome to me once you get into it. Sadly during my process to switch from one to another, I realized ...
Adrian Asensio Monterde's user avatar
0 votes
1 answer
57 views

Unintended automatic join behavior and move in editting

I have to following lines in my .vimrc file (being .vimrc is irrelevant, other files the same), noremap D "_d "Make Y behave like other capitals (C, D) nnoremap Y y$ When I started to delete "_d ...
Kevin Powell's user avatar
2 votes
1 answer
651 views

Jump to definition (CTRL-]) slow on windows

I have a big source code base on both Mac and Windows on which I work on this with MacVim/NeoVim. When using CTRL-] to search tag through a 1.6G tags file, I got immediate result with MacVim while ...
Yukun Du's user avatar
1 vote
0 answers
56 views

How do I navigate using tags in a personal copy of the vim documentation?

As background: I am a beginner in VIM and I want to go through the built-in vim manual, but with my own copy (not the system copy) so that I can practice in the manual text as I go along (I also ...
Jordan Mandel's user avatar
3 votes
1 answer
3k views

How to match paragraphs of text ending with a character?

This problem that seems trivial is beating me real hard. I'm trying to create a couple of syntax highlighting directives for a custom language that is structured in paragraphs separated by at least ...
Jon Mod's user avatar
  • 33