The name given to the OS X port of gVim, the popular editor.
0
votes
1answer
631 views
In MacVim, how do I disable arrow keys in insert mode?
I have added this to my .vimrc:
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
...
4
votes
2answers
865 views
How can I add some padding to the macvim text area
I would like to add some padding between my text and the left edge of the window (or the right edge of the line numbers).
0
votes
1answer
160 views
Setting active window on Vim startup
I'm using MacVim with the Taglist plugin, which I want to be open all the time when I start MacVim.
So in my .gvimrc I have the following
:TlistToggle
Which opens the sidebar when I load my MacVim ...
10
votes
1answer
2k views
Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers?
Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers? (If it does so at all).
Background:
Throughout a semi intense seminar I was taking notes in an unnamed/unsaved MacVim buffer ...
0
votes
3answers
341 views
Mac OSX: opening .cc files with MacVim instead of Xcode by default
In Mac OSX 10.6.4, I'm trying to change the default application for opening .cc files from Xcode to MacVim, but Xcode or OSX won't abide. Here's a screenshot:
Notice how the clicking "Change ...
1
vote
1answer
581 views
How to trigger VIM's autocmd key mappings for .js or .pl files
Using VIM (MacVim to be specific) I've been trying to add a number of shortcuts to my .vimrc file that have different syntax in different languages.
I'm using autocmd to add different keymappings ...
0
votes
1answer
299 views
NERDTree does not open in the directory from which macvim was opened
I upgraded my macvim to 7.3 recently and I can no longer open nerdtree or netw in the directory in which macvim was opened, it always opens in my home directory.
For example,
If I open macvim in ...
1
vote
1answer
323 views
special characters in MacVim
I added the Vim plugins and such from this page http://github.com/akitaonrails/vimfiles.
I followed the instructions on the page and it all worked out fine, except the part on getting Command-T to ...
2
votes
1answer
366 views
How can I stop MacVim showing a whole screen of extra scroll?
Whenever I load files into MacVim it seems to retain the full screen full of ~ lines.
This means that scroll is always out by a complete screen which is fairly annoying. Is there a way to avoid this ...
3
votes
1answer
1k views
Getting (Mac)Vim to Work With RVM
I'm using RVM to manage Ruby installs and Gems, and MacVim to create and edit Ruby files.
I have a key command in my ~/.vimrc mapped to evaluate a loaded Ruby file and print the output. It looks ...
6
votes
4answers
2k views
VIM - leaves .swp files after crash
I use MacVim (snapshot 51) to edit a the Python/HTML/etc files in moderately sized project. Every few months my system locks up or crashes, and Vim leaves a plethora of .*.swp files around. When I go ...
3
votes
3answers
894 views
Is there a way to forward-delete in insert-mode in vim?
Is there a way to forward-delete in insert-mode in vim? I'm using a MacVim. I tried "Control-D", but it obviously doesn't work. I'm searching the official documentation, but cannot find. Any help ...
7
votes
3answers
627 views
Is there a way to “lock” the viewport in vim?
I recently started using Vim with NERDTree. The annoying thing is when I close the buffer, NERDTree expands to fill the rest of the screen, and I have to open another file and reopen NERDTree to get ...
6
votes
2answers
1k views
Vim - Displaying Code Output in a New Window á la Textmate?
A few months back I switched from Textmate to Vim. Overall I really love Vim, but one of the things I miss from Textmate is using the ⌘R command to run Ruby code and having the results neatly ...
1
vote
1answer
122 views
Starting vim at top of the screen
I'm an avid MacVim user and every time I launch it the window starts about 2 rows too far down on the screen to where I have to drag it up to the top of my screen every time. Is there anything I can ...
7
votes
7answers
3k views
$PATH in Vim doesn't match Terminal
I'm using MacVim and when I don't launch it from the Terminal (mvim) its $PATH does not include what I have set in my .bash_profile. It only seems to have the default values, ...
1
vote
4answers
2k views
Snippets in Vim not working
I've been trying to get snippets to work with Vim (specifically, MacVim). I have tried both snippetsEmu and snipMate (preferred). Other plugins are working fine.
I have been able to get snippetsEmu ...
12
votes
1answer
3k views
How do you set the default window size in MacVim?
The default window size appears to be 24x80 but I'd prefer to set it so new windows appear in the size 50x90. Is there a way to set this default?