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
0 answers
30 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 ...
0 votes
0 answers
48 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'...
  • 11
0 votes
1 answer
19 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 ...
0 votes
0 answers
19 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 ...
0 votes
1 answer
86 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 ...
  • 233
0 votes
1 answer
13 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 ...
  • 525
1 vote
0 answers
204 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() ...
0 votes
0 answers
65 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 ...
1 vote
0 answers
121 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 ...
0 votes
1 answer
43 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....
  • 103
0 votes
1 answer
380 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 ...
-3 votes
1 answer
60 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
1 vote
0 answers
68 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 ...
1 vote
1 answer
96 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?
  • 11
1 vote
1 answer
218 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 ...
  • 781
0 votes
1 answer
27 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 ...
  • 3
0 votes
1 answer
49 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? ...
1 vote
0 answers
156 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
2 answers
70 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 ...
  • 135
0 votes
0 answers
455 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: '...
1 vote
0 answers
139 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) ...
1 vote
1 answer
41 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 ...
1 vote
1 answer
156 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 ...
1 vote
1 answer
291 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 :...
  • 235
1 vote
1 answer
24 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
1 vote
0 answers
501 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 ...
  • 111
0 votes
1 answer
116 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 ...
  • 141
0 votes
1 answer
207 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); ^ ...
1 vote
2 answers
761 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 ...
  • 1,075
1 vote
1 answer
24 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?
  • 167
2 votes
2 answers
2k 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 ...
  • 1,075
2 votes
1 answer
77 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 ...
0 votes
1 answer
51 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 ...
1 vote
0 answers
44 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 ...
3 votes
1 answer
2k 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 ...
  • 33
6 votes
2 answers
6k 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
0 votes
1 answer
329 views

Whats the benefit of using :term inside Vim compared to a separate terminal emulator app?

I am using iTerm2, which is working well for me. I've been using VIM for almost 2 years now, with MacVim. Then suddenly I became curious whether my coding experience will improve when I use terminal ...
  • 103
2 votes
1 answer
37 views

Select upto a given delimeter across multiple lines

I have a json file and I want to change keys of json file. For example { name: "John", age: 31, city:"New York", school:"xyz" } I want to make all keys uppercase. How can I do this with min ...
  • 1,569
0 votes
1 answer
735 views

Scrolling with trackpad not working Macvim

I have just installed MacVim on my new Macbook. But I have a problem: on Linux I was able to scroll through my code—vertically moving my cursor—by using my trackpad. But on Macvim this doesn't work ...
  • 303
0 votes
0 answers
210 views

Ultisnips stopped working this morning

I've been using Vim for about a year now (so still a newbie), but this morning UltiSnips stopped working for me. Any help would be really appreciated! When I run :UltiSnipsEdit! the console returns ...
  • 101
1 vote
2 answers
1k views

Font on Mac Catalina

I just now upgraded to Catalina on Mac (10.15) and immediately ran into an odd font behavior: when I open a file with MacVim (8.1.1722 (157)), the letters with tails (g, y, p...) have their tails cut ...
2 votes
1 answer
77 views

How to set printexpr on MacVim persistently?

Using MacVim 8.1.1722, if I print a buffer, it opens a PDF in Preview.app. I want to open the PDF in Google Chrome instead. So I changed the file association so open foo.pdf opens Google Chrome not ...
3 votes
1 answer
139 views

Float YCM completion candidate list to make more of entry previews visible?

Using plugin YouCompleteMe, I get useful previews of entries. However, if the cursor is near the end of the line, the list gets out of sight. Screenshots below; the latter with pumwidth=75. (First ...
  • 33
0 votes
2 answers
57 views

Using different character(s) as linebreak

Given an input file of the form #1. This STUFF Content related to 1 ...and some tips #4. Fouth heading 4para 4para #3. 3para 3para I'd like to be able to sort it to get: #1. This STUFF ...
  • 287
1 vote
0 answers
223 views

Simple .vimrc takes a very long time to save

Saving a file with :w takes several seconds for me, and I can't figure out the culprit. This is my .vimrc " Specify a directory for plugins " - For Neovim: ~/.local/share/nvim/plugged " - Avoid using ...
0 votes
0 answers
42 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 ...
  • 287
4 votes
1 answer
2k views

Are CTRL+C and <esc> the same?

I tried entering the key sequence <esc>+<n>+i+<some-char>+<esc> and it'll type <some-char> <n> times. But if I'm using a macbook keyboard there is no escape key, ...
  • 3,153
-1 votes
1 answer
233 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 ...
3 votes
1 answer
167 views

remap "undo key" to no op

I have a keyboard with an undo key right next to the esc key. I often miss esc, hit undo, which causes the vim process to be stopped. How can I remap the undo key in vim such that it doesn't do ...
1 vote
0 answers
52 views

Why does MacVim crash on Zoom

If I open Macvim, everything works fine, unless I zoom in (using Cmd+"+"). If I do that, then I get a strange black boarder around the added bit of the window and the whole thing freezes. This is ...
  • 287