We’re rewarding the question askers & reputations are being recalculated! Read more.

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
4
votes
1answer
172 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
159 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
166 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
219 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
121 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
593 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 + [...
1
vote
1answer
489 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 ...
2
votes
1answer
52 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
357 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
73 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
333 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
171 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&...
2
votes
1answer
338 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
324 views

Integrate MacVim and RStudio

I'm using MacVim, and I want to write codes for R in MacVim. I want to have a hotkey which can: Send a line where the cursor is in MacVim to RStudio, execute the code in RStudio, and back a cursor to ...
1
vote
0answers
57 views

MacVim current tab goes black when closing another tab

I am currently having an issue with MacVim: If two tabs are open say tabA and tabB. When I am on tabA and then close tabB, the tabA goes black and I need to refresh it. I do the refresh with command +...
1
vote
1answer
308 views

Can't get color output in MacVim's command line

When I try and trigger PHPUnit tests within MacVim, I can't see coloured outputs in my command line:
2
votes
1answer
60 views

Going back to the [n] last edited position

I read the following on vim tips '`' ('' is a mark specifier): move to the position of the given mark) - mark '.' is the last edited position My question is suppose I have two line Line 1 Line ...
4
votes
0answers
261 views

Encoding issue with filename in MacVim

Question In MacVim I type :tabe jäderberg.txt to open a buffer for that file. The file does not yet exist. My status line displays the file name jäderberg.txt. I do i<C-r>% to put the file name ...
3
votes
0answers
82 views

Why did MacVim try to connect to Vimium server?

So, I have installed Vimium today, and when I first relaunched MacVim, my Little Snitch showed that it tried to connect to vimium.github.io, which it never did before. Why did it do that and how has ...
2
votes
3answers
2k views

Scrolling down multiple lines with Ctrl+e

I know i can scroll down using ctrl+e and up using control ctrl+y. Any idea how I can scroll multiple lines with ctrl+e ? I am looking for a quick solution for scrolling down in vim ?
1
vote
0answers
96 views

Permission Error when using vim-geeknote [closed]

I was trying to use vim-geeknote in MacVim (Kaoriya Edition, MacVim modified for Japanese environment). I followed the official way of installing geeknote and it works in terminal (with sudo). I ...
13
votes
1answer
644 views

Why is MacVim starting differently every other invocation?

I noticed when I sat down to do some work on my MacBook today that at some point recently something had gotten screwed up with respect to my .gvimrc settings: when I launched MacVim, everything seemed ...
4
votes
2answers
130 views

Repeating the last move using . (w followed by .)

I read that . is used for repeating the last command in Normal Mode. So if I used the command 2w move forward two words and then press . then I would expect to move two words more however this does ...
1
vote
1answer
999 views

How to change Vim's :hardcopy printfont?

I would like to be able to print in other than Courier font using the :ha command. Investigating more closely, I found that it is documented that the Courier font is always used: - 'printfont' - The ...
3
votes
1answer
405 views

How can I force a page break in MacVim's printed output?

I've discovered the :hardcopy command, which is the equivalent of the Command-P command in MacVim. I've also found that it accepts ranges. For instance, in my markdown file, I can split the sections ...
3
votes
2answers
282 views

Where does MacVim send its printed files?

I found out about printing using the :hardcopy command, and on my Mac it opens up the output in a PDF named "0.pdf", then the next printing from that file opens "1.pdf", etc. I can save these files, ...
4
votes
1answer
362 views

MacVim doesn't redraw screen properly [closed]

Sometimes when I do something like saving, opening another file or another tab, the screen isn't changing states properly. At first I thought it was just my computer being slow, but then I noticed ...
2
votes
1answer
288 views

E334: Menu not found: Window.Minimize

I'm using MacVim installed with brew and everything works pretty fine, but (and there always is a "but") when I launch it as mvim from the terminal, it says Error detected while processing /usr/...
2
votes
0answers
84 views

:!make is at least 10times slower compared to terminal on MacOS X

I am using MacVim version 7.4. I am authoring a large LaTeX file and I use a GNU Makefile to compile the documents along with lots of figures and other targets. The command make generates lots of ...
3
votes
1answer
140 views

Specifying the line on which the cursor should start at

I am working on a project that could really benefit if I can open vim by specifying a line number/ match so that the file would open with the cursor positioned on that line. Is there a way to do that ...
3
votes
1answer
138 views

How can I drag a file onto MacVim and make it open in a split, not a new tab?

I have MacVim 7.1 (patch level 903). When I drag a file onto it from the Finder, desktop, etc., it opens in a new tab. However, I would prefer that it open in a split. According to :help drag-n-drop, ...
3
votes
2answers
322 views

Vimfiler (a plugin): how to open .doc file using MS Word

I have a question regarding a plugin called Vimfiler. What I want is to open a .doc/.docx file using MS Word from Vimfiler. For this, I added the following call vimfiler#set_execute_file('doc,docx', '...
2
votes
0answers
254 views

Send SIGINT to iTerm from vim

I'm using vim-rspec on a mac with macvim and iterm. I'm using this command to clear the iTerm screen and run the test in iTerm. let g:rspec_command = "clear && rspec {spec}" let g:...
1
vote
0answers
511 views

vim youcompleteme not working

Currently i'm working on Node.js and I wanted some additional plugins which can help me learning this new technology. I installed tern_for_js and YouCompleteMe from Vundle. I also compiled YCM, but I ...
6
votes
1answer
2k views

How do I convert a String to a Number, catching invalid strings?

I am trying to convert a String '1' to a Number (int) 1 in a vimL script. I have used the built-in command str2nr() so far, however I was not able to write this in an elegant and effective way. ...
4
votes
1answer
1k views

How to write message strings to a file using vim script?

I would like to create two functions, one for sending a message string to Vim's own messaging system and one to dump the message string to a file. Now, I have already progressed in figuring this out ...
0
votes
1answer
698 views

How to make sure every 'echo[msg]' command is visible?

I have a couple of functions chained together to verbose messages in my status line in MacVim. I have noticed that in one particular occasion a line is blank and is not delivering the message it is ...
4
votes
1answer
2k views

How to move cursor in a specific column

I know that there is already a method to move the cursor to a particular line in vim like :25 and it moves to line number 25. But can I configure vim to move to 15th column in 25th line say something ...
10
votes
1answer
3k views

Get the current window/buffer/tabpage in Vimscript

In python, when using the vim module, it is incredibly simple to get the current window/buffer/tabpage: current_win = vim.current.window current_buff = vim.current.buffer current_tabpage = vim....
2
votes
1answer
620 views

Vundle/vim can't see changes in .vimrc

I'm enforcing some strange behaviour of Vundle plugin. Basically, from time to time, i'm not able to install new plugins using :PluginInstall because Vundle can't see the new Plugin entries in my ....
3
votes
2answers
1k views

Using Vim/GVim for slideshow presentation

I came across this video about Vim. I would like to ask how can you create a presentation like in the video which seems to run inside Vim. On some slides there are also real pictures displayed. Check ...
1
vote
0answers
25 views

Parentheses off the page stop being recognized

I am using a recorded macro to manually wrap an extremely long string in a python script, like this: blah = ('blahblah ... blah blah') to blah = ('blahblah...' 'blahblah...' ... ...
7
votes
1answer
2k views

Mouse wheel scrolling inserts characters

I'm using macvim inside tmux inside iTerm2. Basically I just want to be able to scroll the buffer using the mousewheel. I've set set -g moude-mouse on in my .tmux.conf, and set mouse=a set ttymouse=...
3
votes
1answer
342 views

Why is the cursorline always showing after the cursor moves over a line?

Can anyone can help me, my vim always shows the cursorline, like this: I have set nocursorline in the ~/.vimrc, but it has no effect. vim version is: 7.4.622 vim is run on OSX 10.10.3, how to ...
1
vote
0answers
79 views

How do I prevent MacVim from automatically starting Terminal.app on OSX 10.10?

I have a laptop with latest OSX 10.10.4 and have tried to install latest MacVim via homebrew, cask and "releases" section in github page. All works fine, but starting MacVim also opens Terminal.app, ...
0
votes
1answer
114 views

Old source code files display unexpected characters

I'm attempting to open the recently released source files of the ancient DeluxePaint on MacVim, however, every file has an unexpected sequence of ^Z^Z^Z^Z^Z... characters at the end: Two questions: ...
8
votes
3answers
1k views

How to simply remove braces

One of my friend told me that I can use the trick below to remove a pair of curly brackets. Put the cursor inside the curly bracket pair you want to remove. y i { to yank the text in braces , then v ...
4
votes
2answers
711 views

MacVim Text rendering problem when scroll up and down

This could be a rare issue related to individual environment. But it's so annoying that can't help me asking for help. Please have a look at following captured photos which is fine before scrolling ...
5
votes
1answer
146 views

MacVim thinks I have unmatching parentheses, until I place cursor over each parenthesis

I am trying out MacVim for the first time and Vim seems to think I have a surplus of closing parentheses: However, Vim seems to change it's mind. Each highlighted closing parenthesis is no longer ...
2
votes
0answers
117 views

Explore command causing errors

I open vim and then use the command :Explore. Then I got these errors: Error detected while processing function netrw#Explore..netrw#LocalBrowseCheck..<SNR>16_NetrwBrowse..<SNR>...