The name given to the OS X port of gVim, the popular editor.

learn more… | top users | synonyms

0
votes
0answers
12 views

Installing MacVim issue with 'src/' directory and ./configure command

The MacVim Readme_mac says I need to cd to a directory called 'src/', but it doesn't exist by default. Should I just create it or does it absence raise a flag? also when I do $ ./configure --help it ...
1
vote
1answer
12 views

How can I unconditionally open any fold present, without errors, when invoking from the command-line?

So, this is similar to ‘execute command with range silently’; but that's in a mapping, and so the solution isn't applicable to what I'm trying to do. I'm using the Skim PDF-viewer with LaTeX Sync, ...
1
vote
0answers
38 views

MacVim switching tabs & El Capitan split screen

Using El Capitan's split screen feature, I'd like to have MacVim open in the left half and Terminal open in the right half. This works fine, until I try to switch tabs in MacVim via the keyboard ...
0
votes
0answers
66 views

MacVim doesn't display on El Capitan

I just upgraded to El Capitan installed MacVim 7.3. When I start it there is no display just the menu bar. Is there some magic incantation I need to perform?
0
votes
0answers
7 views

MacVim cmd+a (select all) no longer works

I haven't tweaked my .vimrc for MacVim in a while. But I notice recently cmd+a no longer works. Instead it clears the buffer and types a g instead: When I go: :verbose nmap <D-a> It says: no ...
0
votes
0answers
86 views

MacVim.app doesnt open any edit windows

i installed macvim with brew install macvim brew link macvim brew linkapps i am on os x el capitan, but had same problem on yosemite if i go to /usr/local/Cellar/macvim/7.4-80/bin and execute ...
1
vote
1answer
28 views

How can I treat a logical block as a text object in Vim?

Here's a situation I'm in every day: 0 .outer_selector { 1 2 .inner_selector { 3 margin: 0; 4 padding: 0; 5 6 input { display: none; } 7 } 8 9 } Now I want to cut and paste the ...
1
vote
0answers
16 views

How do I get Dash Doc App to respect indentation on MacVim?

Couldn't do the same as the answer in the question below. How do I get Dash Doc App to respect indentation? Has someone run into the same problem with Vim? -- Edit: I can't reuse the question ...
0
votes
1answer
50 views

Replace terminal's vi with windowed vim for root

I'm on Mac OS X, but I guess this is the same for other unixes. Every time I type vi on the terminal, I want to open the GUI version of Vim (in Mac OS it's called mvim). For my user, I got it ...
1
vote
3answers
696 views

How to point MacVim to the right perl on OSX 10.10?

When I try to use MacVim from the command line, I get dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: ...
0
votes
1answer
24 views

“Cmd”+“Shift”+“N” works in MacVim but not terminal VIM

I use iTerm2 on Mac OS X 10.10 (Yosemite) and I installed YADR and that comes with all its configurations and mappings. One of the mappings maps Cmd+Shift+N to NERDTreeToggle. This however works in ...
0
votes
1answer
927 views

Compiling vim with python support - installing powerline

I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before. I have powerline installed properly (it ...
2
votes
1answer
80 views

Check if vim is compiled with +X11 in .vimrc

I have two copies of vim installed. One is installed with macvim and necessarily configured with -X11 (to work with Cocoa), while the other is configured to +X11 (used in terminal, to work with a ...
2
votes
1answer
190 views

MacVim / Vim retain content of all buffers (like Sublime Text). Preserve swap?

TL;DR: Can Vim store its swap files, and loads the same set of swap files and buffers on load every time? I'm on a Mac (OS: Maverick), where a number of application keeps the data in some sort of ...
0
votes
3answers
194 views

mapping jj to escape in macvim works but not in terminal vim

In my vimrc I have: inoremap jj <ESC> Using the latest macvim I can hit jj and i'll jump from insert to command mode, but using the same vimrc with just regular vim in iterm2 it just inserts ...
2
votes
1answer
49 views

why is vim calling this script on startup?

I'm trying to use a custom color scheme. On startup, I can see that vim is loading my scheme, but after that it loads another scheme, overwriting mine. Here's the output of :scriptnames: 1: ...
1
vote
1answer
314 views

How to adjust statusline height in MacVim?

I just installed powerline for mvim. It works fine except my statusline is a bit too big which makes it look weird: How can I fix this?
0
votes
1answer
236 views

VIM Crashes/Freezes on specific files Mac OSX Mavericks

I've recently switched over to using VIM and use a friends .vimrc that works well for him https://github.com/dtothefp/dotfilesv2/blob/master/vim/vimrc.symlink I first installed vim through Homebrew ...
0
votes
1answer
350 views

Inconsolata font with powerline support and italics

Is there an Inconsolata font package with italics and support for powerline? I have only been able to find: powerline-fonts - has powerline support but no italics Inconsolata-LGC - has italics but ...
0
votes
1answer
2k views

Open Macvim within terminal without opening a new window

Every time I try to edit a file, I do mvim file.txt in the terminal then a new MacVim window pops up. But if I do vim file.txt, it will not open a new window. Instead, it will initialise vim within ...
1
vote
2answers
395 views

MacVim always return focus to terminal upon leaving

I'm running Mavericks and I recently started playing around with sshfs to try to boost my productivity by using MacVim (I've been using in-terminal vim for a few years now). I really like MacVim. I ...
1
vote
1answer
481 views

Vim - How Recognize Spaces as Tabs (set listchars=tab)

I wonder if it is possible to use a configuration for that command "set listchars=tab:▒░,trail:·" to "see" 4 spaces as tabs and get the effect of the picture below (using real tabs)... I use the ...
0
votes
1answer
222 views

Vim conceal feature is applied to active line

I am using MacVim with the vim-latex plugin. There is a conceal feature turned on by default that converts LaTeX symbols to unicode in vim itself so the source is easier to read. I think this is ...
0
votes
1answer
35 views

Keep window size when resizing font in MacVim

When changing the font size in MacVim on OSX (Cmd +,Cmd -), the window is resized as well. Is there a setting that makes MacVim keep its window's size, when the font is resized?
2
votes
2answers
2k views

Opening files with MacVim from command line

From my command line I'm inputting the command open .lists This is opening the text file in TextEdit. I'm pretty sure some file extensions will open with MacVim. I'm unsure how to get all text ...
-2
votes
1answer
88 views

Vim - Using Functions to Search (.vimrc)

I'm have a timing problem with a function that I use to search in Vim. I need the search to be executed immediately, not after the function ends. I'm using "feedkeys" function (eg. ...
0
votes
1answer
62 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
0
votes
0answers
147 views

vim and macvim are not reading my .vim directory

I have installed vim and macvim using macports, and tried copying over my .vim directory from linux. Neither seems to read anything from that directory: my customizations for folding and indenting ...
1
vote
1answer
1k views

how to install a color scheme with yadr

someone advised me to use yadr, which is supposed to make installing dotfiles etc much easier for vim however I just couldn't figure out a way to install base16 through yadr.. before I had to ...
0
votes
3answers
108 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
1
vote
1answer
162 views

How can I check if the cursor is at the end of a line?

Gentleman, Simple question about Vim! How can I check if the cursor is at the end of a line using a function in vimrc? []'s
0
votes
1answer
211 views

Automatic indentation with MacVim

How can I change the automatic indentation in MacVim? My problem is that when editing a TeX file, every time I type, for example, (, vim decides to indent the line for me. Here is a video of my ...
1
vote
1answer
76 views

Vim completion based on language

Right now if I hit ctrl + n it will complete words that are in the current document. I've also found a way to define a dictionary. I'm just unsure how to get vim to complete based on keywords in a ...
2
votes
3answers
118 views

Is there a clever way to underline a heading?

This isn't a particularly important, but it's something I've been curious about for a while. I write a lot of documentation using rST (Sphinx). This is how you write a heading: My Awesome Heading ...
1
vote
1answer
500 views

Should I bother moving stuff from vimrc to gvimrc?

Is is worth moving gui-related options out of my vimrc and into a gvimrc if there's only a couple such options? I'm kind of inclined to keep everything in one place and house gui options inside if ...
0
votes
4answers
346 views

Vim: Jump to previous cursor position, NOT edit point

I am trying to write a tiny macro to append a ; to the end of the current line (A;), then return to the cursor position from which I jumped before executing the macro. C-o and C-i are not what I ...
2
votes
3answers
363 views

How to use macvim to ssh into a headless server

I am using Mac OS X 10.7.5 I installed macvim for the first time in my life. I enjoyed using MacVim I was wondering how to SSH from it into a headless server within the MacVim itself. Currently, I ...
4
votes
1answer
423 views

Vim: don't move cursor when I scroll (via mouse)

When I scroll up/down and the cursor is in the visible region, it stays at that place. However, when I scroll and the cursor reaches the edge (bottom or top), it will move along with my scrolling so ...
0
votes
1answer
65 views

MacVim: make URLs clickable

I want to be able to click on URLs I see in MacVim. How can I do that? Is that possible?
0
votes
1answer
26 views

mvim: display number of columns in window?

I'm transitioning to MacVim from terminal vim, and I've gotten used to the "80 x 24" display at the top of terminal windows (COLS x ROWS). Is there a way to enable some such display in MacVim?
3
votes
2answers
659 views

Second user vimrc file usage on vim running on Mac os X 10.8.5 (Mountain Lion)

I am using MacVim: :version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 17:49:20) MacOS X (unix) version I've executed :version in vim (to check what patches I had installed) and ...
2
votes
1answer
1k views

Why is MacVim much faster than Vim in the Terminal?

I've been using Vim and MacVim as may main development tool for last two weeks and have noticed that the cursor scroll speed is much fast and fluent in MacVim than it is in Vim in the Terminal. It's a ...
2
votes
1answer
129 views

Why is Vim adding asterisks to my .css file?

I'm editing a .css file with Vim (MacVim, actually), and when I type * followed by a newline, it automatically adds another * at the beginning of the next line. What setting is this, and how can I ...
0
votes
0answers
70 views

Vim uses system ruby and python

I have installed Python and Ruby using Homebrew and RVM respectively and they work fine in terminal, but Vim (both system and MacVim from Homebrew) launches system ones for some reason. :! which ...
1
vote
2answers
1k views

Homebrew says I have macvim installed

I haven't used macvim in a while, and not sure how to get it running. Homebrew says I have version 7.3.64 installed, yet I can't seem to find it in 'finder' or the command line. How do I get it ...
0
votes
2answers
153 views

How can I make the active MacVim tab more obvious in fullscreen mode?

When I use MacVim normally and have multiple tabs open, it's easy to see which tab is active because it's much lighter than the others. However, in fullscreen mode, they are all the lighter color and ...
0
votes
3answers
428 views

Making MacVim/gVim “block” the terminal until closed

A long time ago, before I switched to vims, I used an editor for OS X known as TextMate. (Anyone remember that? ;) Its command-line binary, mate, allowed for a mate -w flag, which would block the ...
0
votes
2answers
82 views

relativenumber stuck on in MacVim

Some time ago I experimented with the relativenumber setting. It almost never turned on, so I finally gave up and took it out of my .vimrc. Now it seems that every time I open up a new instance, I ...
0
votes
3answers
156 views

How to send custom command to terminal?

Say, I want to run "echo hello" when I press <leader>T How can I write the script? Is there any way to do it nicely? I'm thinking about creating a custom command.
4
votes
0answers
148 views

Multiple linked sessions/instances of Vim and R with Vim-r-plugin

OSX 10.8. MacVim + Vim-r-plugin = Vim sends commands to R. Awesome! (Note I'm here asking about using MacVim and R.app (i.e. w/ Gui), not either in a terminal, since for this purpose I need both to ...