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]

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

1
vote
1answer
22 views

MacVim - how to make mouse based selection be “visual mode”?

Sometimes I select text in vim using the mouse. I'd like that selection to be treated the same as a visual mode selection, so I can immediately start running commands against it. Is there a way I ...
1
vote
0answers
20 views

Vim session with splits with remote ssh files

I use to use vim session to keep my opened files. I do it remotely, ssh remote machine and do things there. Today I tried to open remote files in local Vim, I mean with netrw: :e scp://user@remoteip/...
0
votes
1answer
613 views

Homebrew “linkapps” command not found. What can replace it so I can use MacVim as default editor for some file types?

My Homebrew version is: Homebrew 1.7.1-114-g545eb91 Homebrew/homebrew-core (git revision 279277; last commit 2018-08-04) When I run: brew linkapps The response I get is: Error: Unknown command: ...
0
votes
0answers
43 views

Installing earlier versions of software with Homebrew

I am running Mac OSX 10.11 (El Capitan) and would like to avoid upgrading. When using homebrew to install macvim, I got the following error. Error: Your Xcode (7.3.1) is outdated. Please update to ...
0
votes
1answer
153 views

Launch macvim in Mac terminal in current directory

I know that I can open macvim in terminal using open -a macvim. The problem is it opens in the user home directory. How can I open it so the directory is in the current directory?
2
votes
0answers
35 views

Vim movement delay on lines with 40 or more symbols

I like to visually delimit source code by long comment lines: In C++ I use 80 / characters, in Python I use 80 # characters, etc. Over the years I've noticed that Vim occasionally hiccups (stops ...
2
votes
1answer
764 views

How to use vimium to select text from a page

Background I'm a religious fanatical devoted believer of vimium. It speeds up my internet usage like nothing else. I'm also (naturally) a heavy user of vim itself. Question How can I actually ...
1
vote
0answers
203 views

Vim - Detect Caps Lock Status

My question is simple and straightforward! =D In this thread @OsQu... Vim - Is Capslock on? ... says that you can use the Automation Hotkey Scripting (AHK) below to detect the Caps Lock (on/off) ...
0
votes
1answer
41 views

Disable confirmation for loading file on file changed (MacVim)

This question specifically regards MacVim (for OS X). MacVim detects if the file changed on the disk. However, it's asking for confirmation / selection every time: I want it to use Load File or Load ...
1
vote
1answer
800 views

Setting alias to use Macvim in terminal instead of standard Vim

I want to use MacVim console app instead of a standard vim. In order to accomplish that I try to set alias: alias vim="/usr/local/Cellar/macvim/8.0-119_1/MacVim.app/Contents/MacOS/Vim" But for some ...
0
votes
2answers
252 views

Plugins configuration file for Vim

I'm quite new to Vim, and, since I'm writing my very own .vimrc file, I was wondering if there is a way to store all the commands relative to a certain plugin configuration in one external file, in ...
0
votes
1answer
271 views

Selecting the “Don't Save” button using the keyboard

In MacVim, when you try to close a window with unsaved changes (by pressing cmdw), a window pops up to confirm, with 3 buttons: Don't Save Cancel Save... The third one is blue, the others are ...
0
votes
1answer
174 views

Open file in new window from macvim

In MacVim, I can use :e file to open a file in a new buffer or :tabe file to open a file new a new tab. How can I open a file in a new window? I would be happy with ⌘+N followed by :e file, but that ...
1
vote
0answers
116 views

MacVIM not displaying tab/buffer line in Fullscreen mode on OSX Captain

I used :Fullscreen command to send the MacVIM to full-screen mode. (This is a function in "vim-shell" written by xolox, available on Github through the author.) Everything worked fine (I started Vim ...
0
votes
0answers
17 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
116 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
150 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 ...
1
vote
1answer
189 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?
2
votes
1answer
563 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 ...
2
votes
1answer
48 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
32 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
90 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
4answers
3k 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: /Applications/MacVim.app/...
0
votes
1answer
46 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
3k 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 ...
3
votes
1answer
192 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
604 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
395 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
79 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: /usr/...
1
vote
1answer
1k 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
687 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
963 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 ...
2
votes
1answer
4k 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 ...
3
votes
2answers
988 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 ...
2
votes
1answer
1k 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
633 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
103 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
6k 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 files ...
-1
votes
1answer
233 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. feedkeys("/pathern\...
0
votes
1answer
113 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 ...
1
vote
1answer
389 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
2k 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
200 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 Test()<CR&...
3
votes
1answer
766 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
470 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
147 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
157 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
830 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
803 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 need,...
2
votes
3answers
679 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 ...