Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
1answer
19 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
votes
0answers
14 views

Issue Building MacVim from GitHub Repo using XCode on OSX 10.9 [closed]

To diagnose an error in the brew install of the current version of MacVim, I took the MacVim Dev repo from GitHub using XCode; set up the MacVim code as a XCode build project under OSX SDK 10.9, and ...
0
votes
0answers
32 views

Delete key isnt working in vim [closed]

Using vim on my Mac via iterm, and whenever I try to use the delete key, it doesn't delete but move down by a bunch of lines (sorry, couldn't find out what exactly its doing to jump down so much). And ...
1
vote
0answers
26 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
34 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
12 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
81 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
59 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
38 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
34 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
76 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?
0
votes
1answer
90 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 ...
5
votes
2answers
127 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
136 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>...
3
votes
1answer
668 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 ...
1
vote
1answer
445 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
177 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
179 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
1k 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
53 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 ...
3
votes
3answers
178 views

Indent line to the right with CMD + ] in insert mode

This is a usual shortcut in other editors: indent the current line to the right with CMD+]. How can achieve this in MacVim without leaving the insert mode?
3
votes
2answers
802 views

How to use Lua in Vim?

I'm using MacVim snapshot 134 (on Mac OS X 10.9.5), which has support for Lua: $ vim --version | grep lua +dialog_con_gui +lua/dyn +rightleft +writebackup I've got Lua installed and ...
0
votes
1answer
95 views

Version conflict between vi and vim

I installed some plugins which is supported above vi version 7.4. When i open files with vi command its will show the plugin not supported with version 7.3. After that i was opened with vim command ...
0
votes
1answer
1k views

E488: Trailing Characters error after attempting to install vim-hybrid

So I'm trying to use Vim-Hybrid as my native Vim theme but I've been running into a couple issues with it. Everytime I run the vim command now, I've been receiving the following error message: E488: ...
1
vote
2answers
102 views

Moving Vim Plugins to a separated file [closed]

I want to separate my Vim Plugins to a separated file since I using more plugins in my .vimrc file. it this possible?
3
votes
0answers
88 views

Manual fold issue on both Mac & Ubuntu

When I set foldmethod=manual and then I'm typing <zc> E490: No fold found is raising. Same story with set foldmethod=marker. The behavior is the same on Mac Sierra and Ubuntu 16.04. I ...
1
vote
1answer
441 views

Macvim shell command not working as expected

I recently switched to macvim, Everything work perfectly apart from the :shell command, which produces weird output, I tried few solutions but noting seems to me working out. :shell \n\w\n\u $ [...
2
votes
2answers
158 views

How do I enable Bash keyboard shortcuts while in Insert mode?

I like using the Bash shortcuts while at the command line to move around and edit text. A sample of some commands from the link can be seen below: Ctrl + a Go to the beginning of the line (Home) ...
3
votes
3answers
139 views

Defining mappings for files of the “null” type through /ftplugin

For files of a certain filetype, specifying "file-type-specific" mappings is simple. If Vim opens a fill and return filetype=python after issuing command :set filetype? through command-line (native ...
1
vote
2answers
1k views

Youcompleteme on Mac OS X

I'm trying to use the YouCompleteMe auto completion plugin. I have installed MacVim version 7.4. I followed the instructions on the linked page for Mac OS X by making the symlink: ln -s /usr/local/...
0
votes
1answer
47 views

Not saving colon commands in MacVim

I am using MacVim on both work and home computers. My colon commands are being saved in my home computers but not on my work computer. My .vimrc on both computers is: set shell=/bin/bash execute ...
1
vote
1answer
104 views

How to let Gvim and Mvim source the same file, shared through Dropbox?

I am using Vim on multiple operating systems (OS X, Windows, Linux Mint) on a daily basis, and I chose to have those directory-free and/or distribution-independent settings synced across the machines ...
3
votes
0answers
928 views

Collapse all directories in NerdTree by default

I recently restored my computer to a clean install and copied over my dot files. MacVim behaves quite a bit differently than my previous install. One main thing is that NerdTree no longer collapses ...
3
votes
0answers
205 views

syntastic not working on macvim, but works perfectly fine on the terminal

I have an issue where in MacVim, I don't get any syntastic/eslint related functionality. When I run !which eslint in macvim, I get "eslint not found" - eslint is definitely installed. If I run !...
3
votes
1answer
136 views

Some umlauts and extended Latin characters are shown as fullwidth

In Vim, I find each of ü and ß takes up fullwidth, i.e. twice as fat as ASCII characters. I am writing some German-learning notes, and find this to be very confusing, since I have been mistaken that ...
3
votes
1answer
46 views

How should I move the cursor when running shell by using :sh?

If I use arrow keys, I will get the text in the above picture.
5
votes
1answer
146 views

When using macvim with symlinks, is opening vim just calling mvim -v?

I've installed macvim on OSX 10.11.6 using brew install macvim --with-override-system-vim. This worked fine. I now have some new aliases/symlinks (I'm not too familiar with the differences): . #in ...
3
votes
1answer
145 views

How to not close MacVim after the last tab is closed?

Can this be done by editing the .vimrc file? What I need is that after closing all tabs, a new tab is there like notepad++ does.
0
votes
1answer
127 views

How to remove these characters when tabbing on VIM

I'm having this characters '>' when I'm tabbing using VIM. how can I remove this when tabbing? It's very annoying
0
votes
2answers
104 views

Is it possible to increase the number of visible tabs in MacVim (without changing the window width)?

The question is more or less in the title, until recently I have the feeling that I got a fairly large number of visible tabs in any window of MacVim. I either updated MacVim or my system or something ...
0
votes
1answer
162 views

How do I approach understanding the EasyGrep documentation?

I haven't been coding too long, and I've recently switched over to MacVim. I'm starting to see why doing so has a high "learning curve." I'm not familiar with hardcore Vim commands, and I tried adding ...
0
votes
1answer
451 views

Highlighting word by word in “insert” mode?

New to Vim here; did several searches on how to do this in Vim, but without any luck (maybe it's too simple). I'm attempting to highlight words in sequence, in the same way that SHIFT + OPTION + [...
4
votes
1answer
156 views

Visually selecting a line and then deleting does not copy to black hole register

I would like to not have vim copy items to the default register when I delete or change an item; for that, the following configuration seems to do the job perfectly. However I noticed that the only ...
2
votes
1answer
48 views

How to trace the origin of an autocomplete feature, in order to turn it off?

Is there any way to trace the source of an auto-complete event within (Mac)Vim? Ie, where within which plugin this is and how it can be turned off? In my case, I type {} in a .tex file and it ...
-1
votes
2answers
349 views

Good Ways to Get Over that Vim Learning Curve? [closed]

I've done vimtutor several times when I get bored. I love the idea of Vim. It's keyboard shortcuts have a lot of relevancy to me and I just feel like there's a lot available to me, that wasn't ...
1
vote
1answer
72 views

ctrl+o and ctrl+i don't work with line skip motion 10j

I was very excited to see the relative line number feature in vim. Now vertical navigation would be a breeze, and instead of typing huge numbers, I can simply do 10j to move 10 lines down. However, ...
1
vote
1answer
302 views

What does Command+s do in MacVim?

Is a Command+s shortcut on a MacVim equivalent to wa ? I know that a wa will save all the data being displayed in all the viewport. Will the Command+s shortcut do the same ?
1
vote
1answer
145 views

Assign shortcut to a Split window resize Ctrl+w+|

I can expand a vertical split screen to occupy most of the area using Ctrl+w+| Now I would like to map that shortcut to Ctrl+m. I tried the following but it failed. nnoremap <C-m> <C-W&...
9
votes
1answer
2k views

Mapping Ctrl with equal sign

I am trying to map my Ctrl and plus sign together. This is what I am trying in my vimrc: nnoremap <C-=> : echo "Hello" <CR> However it seems like the mapping is not being triggered. ...
1
vote
1answer
230 views

Cut and copy : Blackhole and default register assignment

I currently have something like this in my vimrc. The reason i have this is because I do not want items to be copied to the default register when I delete or change. "Copy the contents of delete to ...