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
2answers
30 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 ...
0
votes
0answers
17 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: '...
0
votes
0answers
11 views

Why is visualbell failing to work in Macvim?

I start Macvim without any .vimrc (by the simple method of deleting the .vimrc file) The system beep works (testing by hitting the escape key a few times) I run :set visualbell and smack escape a ...
1
vote
0answers
15 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
1answer
32 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
1answer
36 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 ...
0
votes
1answer
35 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 :...
1
vote
1answer
21 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
0answers
95 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 ...
0
votes
1answer
30 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 ...
0
votes
1answer
41 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); ^ ...
0
votes
2answers
51 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
vote
1answer
17 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?
2
votes
2answers
580 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 ...
2
votes
1answer
34 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
1answer
44 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
0answers
27 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
1answer
117 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 ...
0
votes
1answer
914 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
0answers
41 views

Key repeat quit working under MacVim?

Somehow Key Repeat (hold down key for repeat) (For Cursor Movement keys) just quit working under Mac Vim! (Has worked fine for years. Works fine in other apps, terminal app.) Did I hit a bad ...
0
votes
1answer
89 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 ...
2
votes
1answer
27 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
vote
1answer
281 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 ...
0
votes
0answers
102 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 ...
1
vote
2answers
891 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
1answer
56 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
1answer
86 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 ...
0
votes
2answers
55 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 ...
1
vote
0answers
155 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
0answers
38 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 ...
4
votes
1answer
930 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, ...
-1
votes
1answer
119 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
1answer
58 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
0answers
42 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 ...
0
votes
0answers
41 views

Mapping Buffer Movement [duplicate]

How can I configure Vim and MacVim to respond to control-arrow and meta-{h,l} key-presses? The configuration below is ignored by both. I'm using iTerm2 (version 3.2.7), Tmux (version 2.8), and Vim (...
0
votes
0answers
68 views

What is the [0/0] that pops up in corner of tmux vim if I try to scroll up?

When I'm in vim on tmux with terminal and I scroll up, the cursor will jump to where my mouse is and show a [0/0] on the right corner of my window. When that happens, I can't type or move the cursor ...
1
vote
1answer
404 views

Unable to use the clipboard when inside terminal (:term) on macOS

Actually, I am unable to do so when I am using MacVim Application. But inside iterm using Vim (the same MacVim release), I am able to. They also both use the same .vimrc . Both versions compiled ...
0
votes
1answer
167 views

vim is messed up in iterm

I installed both mvim(macvim) and vim through brew. vim was installed using "brew install vim " (with python3, doesn't matter ). The OS is High Sierra. While mvim is completely fine, vim is ...
0
votes
1answer
115 views

How to apply a custom highlight file?

I'm playing with Vim highlight, so I made the following (syntax.vim): hi Comment ctermfg=DarkGray hi LineNR ctermfg=DarkGray hi CursorLineNR ctermfg=Red hi String ctermfg=Gray hi PreProc ctermfg=...
1
vote
1answer
88 views

Avoid “write partial file”?

I use MacVim. I write-to-file frequently using ":w". I often have some lines selected visually when I do this, and get an annoying "Write partial file" dialogue (which more annoyingly doesn't tab ...
1
vote
0answers
104 views

macvim does not recognize math latex symbols anymore

I am running Macvim 8.0.1633 (146) on macos 10.13.3 Weirdly, even with syntax on, the math highlighting is plain wrong: Here, I didn't search for end{equation} Does anyone know what is going on?
1
vote
1answer
276 views

neocomplete error when using latest spf13-vim

I have been using spf13-vim for a while now. Recently I have upgraded by pulling down master from GitHub repo. After the updates I see that spf13-vim has neocomplete enabled by default. One of the ...
6
votes
2answers
425 views

MacVim - doesnt find programs in PATH when running commands using “!”

When I'm using vim in a terminal, it uses the PATH I have set, and I can run programs and scripts located in my ~/bin folder using ! For example :! some_bash_script.sh When I try this in MacVim, it ...
3
votes
1answer
241 views

Can I retain and restore all the GUI windows and its files on launch on Vim?

I'm currently using the session saving to restore the state when the app (MacVim) is closed. nnoremap <leader>q :mksession! ~/.vim/Session.vim<CR>:wqa<CR> nnoremap <leader>...
7
votes
1answer
2k views

how to make vim properly render RTL (Right to Left) languages

I get this on my vim: but the arabic translation is showing all messed up (in reverse orderlike dessem pu) it should instead show like this (this is rendered in source tree:) How to I make this ...
3
votes
1answer
2k views

Delay before running vim command?

This is probably just a bandaid for a greater problem, but I had the following code for MacVim (GUI mode) in my .vimrc autocmd GUIEnter * winpos 100 50 The problem is it's not working properly on ...
2
votes
1answer
260 views

How do I turn off undercurls in Vim-GUIs?

How do I globally turn off undercurls in Vim-GUIs (GVim & MacVim)?
0
votes
1answer
662 views

How to make <S-A-Left> and <S-A-Right> work in vim within Mac Terminal

I'm using these keyboard shortcuts to navigate/manipulate tabs in MacVim " tab navigation nnoremap <silent> <S-Left> :tabprevious<CR> nnoremap <silent> <S-Right> :...
1
vote
1answer
4k views

NERDTreeTabs error message: E492: Not an editor command

I am using macvim Version 8.0.1098 (137) MacOS Sierra 10.12.6. I downloaded NerdTree tabs from here. I am using pathogen to manage my plugins. All the plugins work except this one. This is the error ...
1
vote
0answers
61 views

Display issue: Vertically center in line when using linespace 20

I have set linespace 20 in my .vimrc and I quite like the clarity it provides. The only issue I see right now is: Notice how the spacing at the top end of the line is more than the bottom end of ...