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
1answer
18 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
27 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
47 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
71 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
37 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 ...
2
votes
1answer
164 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
35 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
24 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
33 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
16 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
166 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
77 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
42 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
44 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
84 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
129 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
175 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
152 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
942 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
656 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
202 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
262 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
2k 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
56 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
247 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
978 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
112 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
2k 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
115 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?
2
votes
0answers
91 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
484 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
175 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) ...
2
votes
3answers
171 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
2k 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
49 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
119 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
1k 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 ...
2
votes
0answers
219 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 !...
2
votes
1answer
147 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 ...
2
votes
1answer
48 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.
4
votes
1answer
169 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
155 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
181 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
110 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
165 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
562 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
159 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
50 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
354 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 ...