Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
26 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
34 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
27 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 ...
0
votes
0answers
20 views

Why does MacVim show `@` and blank space for long strings? [duplicate]

This drives me really insane... Say I have a short line of text on line 32, and a very long string on line 33, say 10,000 characters long... if I have word-wrap on, it ONLY shows line 32 and stops ...
1
vote
0answers
69 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
0answers
59 views

How to stop vim from erroring on scrolls

I've noticed that sometimes vim throws some errors related to memory (like the one below) when I'm scrolling through many lines using either j or k. Is there something that I can do to prevent this ...
0
votes
1answer
44 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 ...
4
votes
2answers
78 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
106 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>...
0
votes
0answers
19 views

Yanks/deletes (even 'large ones') not saving/shifting through numbered registers

Running Vim snapshot 73 on Mac El Capitan. This problem happens whether I use my normal setup (with .vimrc etc) or even if I run as vim -u NONE or vim -i NONE When I yank or cut a piece of text (...
0
votes
1answer
307 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
236 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
135 views

How do I turn off undercurls in Vim-GUIs?

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

Unable to compile the YCM Plugin

I have installed YouCompleteMe (YCM) using Vundle successfully: Plugin 'VundleVim/Vundle.vim' Helptags However, I am unable to compile the YCM plugin. The instructions to be followed are: cd ~/....
0
votes
1answer
79 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
819 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
48 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
130 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?
2
votes
2answers
522 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
41 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
520 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
87 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
87 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 ...
0
votes
0answers
33 views

ctrlp in macvim does not search deeper than 5 level

I'm facing an issue with Ctrl-P plugin on MacVim. Apparently, it only searches 5 level deep. I have a django project and the architecture looks like this: MyProject/apps/MyApp/static/MyApp/js/...
1
vote
1answer
345 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
121 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
111 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
41 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
94 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 ...
2
votes
0answers
596 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
170 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
102 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
42 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
93 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
133 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
71 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
81 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
156 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
296 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
148 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
317 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
66 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
263 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
124 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&...
7
votes
1answer
1k 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
165 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 ...
1
vote
1answer
348 views

YouCompleteMe C++ semantic completion does not work for . operator

For the majority of Semantic triggers in C++ YCM works fine, but I've been unable to make it work for the . operator on a type. (For example, for a vector type I'd like to have the list of its ...
6
votes
1answer
2k views

How to preview the result of markdown file edited in vim?

I use vim to edit latex, but latex is bit too heavy for taking notes casually on daily basis, so I decided to use markdown instead. So, I want to configure vim so that I could view markdown ...