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

learn more… | top users | synonyms

0
votes
0answers
21 views

Vim not loading ftplugins files

I added java_getset.vim as ~/.vim/ftplugins/java_getset.vim, but when I run :scriptnames I don't see it listed. I pared my .vimrc file down to: set nocompatible filetype plugin on to remove ...
0
votes
3answers
65 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
39 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
22 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
57 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
75 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
154 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 ...
0
votes
0answers
13 views

Seeing output of `make` in MacVim GUI

I recently switched to using MacVim gui and I'm really enjoying it. One of the issues I'm currently facing, however, is that when I run a command (such as make), I see the output of the command in ...
0
votes
1answer
64 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
155 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
73 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
0answers
11 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?
1
vote
2answers
426 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
63 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
47 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
79 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
514 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
72 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
61 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
114 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 ...
0
votes
1answer
54 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
107 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 ...
0
votes
1answer
143 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
88 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
193 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 ...
3
votes
1answer
234 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
37 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
22 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
433 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
534 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
87 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
57 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
514 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
1answer
88 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
2answers
220 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
70 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
118 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.
3
votes
0answers
115 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 ...
1
vote
1answer
124 views

Annoying newline issue with MacVim

A lot of times when I open a file with MacVim and close it, without doing any saving, SVN always shows that the file was modified. Upon doing svn diff on the file, I get something like this: ...
1
vote
1answer
160 views

Vim: remap 'D' modifier on linux

I'm using Mac-oriented vimfiles with linux. In this config modifier D (Cmd key on Mac) is intensively used. I don't want to change every D to M, but I want to remap D to something like Meta or Alt. Is ...
1
vote
1answer
75 views

macvim highlights everything opening a file

When I open a file with MacVim, It highlights everything in red. I am not sure how to get rid of this permanently. How can I do this in .vimrc?
1
vote
0answers
30 views

MacVim Replace All not working properly

I have an html file that I need to replace some characters with html entities. Right now I'm trying to replace — with &mdash; but when I use the Replace All button, the result is that all of ...
1
vote
1answer
509 views

Is it possible to launch MacVim NOT in full screen mode?

Whenever I Launch MacVim it takes up the whole screen. I don't want this. Is there any way to prevent it from happening? I run OS X 10.8.
1
vote
2answers
156 views

Installing simplenote.vim for vim

I copied simplenote.vim to my ~/.vim/plugin directory and added the login variables to the .vimrc. When I launch vim, it will autocomplete :Simplenote. But when I add an argument and execute I get ...
2
votes
3answers
1k views

Vim + iTerm2 color issues

I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2. I try to get the solarized colorscheme working, but without luck so far. ...
-1
votes
1answer
114 views

How is OSX supposed to work without a mouse? [closed]

I'm a VIM user so I do buy the no-mouse manifesto. I do everything without a mouse and am more productive this way. OSX is not being very friendly, though. How I'm supposed to navigate through files ...
-1
votes
1answer
156 views

How to switch between two Vim windows (two separate instances) on separate monitors

Whats the keyboard shortcut to switch between running instances of Vim?
1
vote
1answer
307 views

Make vim plugin Syntastic mark more than the first error in php

I'm using vim on mac (both command line & MacVim) and installed the syntastic plugin for syntax error checking. I'm now using it and its standard php syntax_checker for php coding, but if there's ...
1
vote
1answer
2k views

why doesn't my .gitconfig work? (for external diff)

I added this in ~/.gitconfig: [diff] external = mvimdiff [difftool] prompt = false and made a 755 /bin/mvimdiff that: #!/bin/sh mvim -d "$2" "$5" in order to invoke MacVim as my git ...
3
votes
1answer
310 views

Is there any way to use multiple fonts simultaneously in Vim?

I'm looking to use Consolas and Helvetica (for example) within the same buffer.