macvim

vim indenting a block of code inward and outward

I am using mvim . I am trying to map keys so that I could visually select elements then I could indent the code inward or outward. However while doing outward work after every keystroke one more line at the bottom get selected. What is the fix. " Ctrl-x - move the block of visually selected code one tab right and keep visual mode alive ...

Making JavaSciptLint more configurable

I am using mvim with plugin JavaScriptLint. It works great. However sometimes I work on jQuery or other JavaScript libraries and every single time I save the file, I get tons of warning and cursor moves to the very first warning. What I would like to have is some way to turn this feature On or off. Something like :set enableJavaScript...

Configure Macvim's text selection to not include character under cursor

Using macvim, when I copy a text selection, it always includes the character under the cursor. For example, if the cursor is at the far left and I press shift-down arrow, it selects the entire line plus the first character of the next line (since the cursor is sitting over the next line's first character). Is there a way to configure m...

How I can refactor imap nmap vmap code in vim?

I can such code in my .vimrc file: imap <D-1> <ESC>1gt vmap <D-1> 1gt nmap <D-1> 1gt imap <D-2> <ESC>2gt vmap <D-2> 2gt nmap <D-2> 2gt imap <D-3> <ESC>3gt vmap <D-3> 3gt nmap <D-3> 3gt imap <D-4> <ESC>4gt vmap <D-4> 4gt nmap <D-4> 4gt imap <D-5> <ESC>5gt vmap <D-5> 5gt nmap <D-5> 5gt imap <D-6> <ESC>6gt vmap <D-6> 6gt nmap <D-6> 6g...

How to make FuzzyFinder pluggin open files in a new graphical tab in MacVim?

When I use FuzzyFinder plugin to open a new file in MacVim, it opens the new file at the same tab in a new buffer. How to tell FuzzyFinder to open thoses files in a new MacVim tab? ...

How do I increase the spacing of the line number margin in vim?

I have a problem with my colorscheme in vim: The line numbers are too close to the code. How I can increase the width of the line numbers' right margin? ...

Subversion with MacVim configured as the editor

I'm using Subversion to checkin a file on OSX. I have my EDITOR variable configured to MacVim My .profile includes: export EDITOR=/Applications/MacVim/mvim When I checkin with the -m option (svn ci somefile), MacVim gets launched but then Subversion immediately displays: Log message unchanged or not specified (a)bort, (c)ontinue, (e...

VIM Color scheme not loading by default

When I do :colorscheme vilight it loads the color scheme fine. So I added colorscheme vilight to my .vimrc but its not loading it on start. Am I missing something? Also in my config set background=dark syntax on colorscheme vilight set lines=60 columns=200 ...

MacVim and netrw - Press ENTER

Hey guys. I've set up MacVim to work with netrw for remote editing (yaaay!), but whenever I save a file, I get the following error: :!scp -q '/var/folders/PN/PNhWJAr5GGC0WfeLdFgWV++++TU/-Tmp-/v771493/0' 'remot_host:path/remote_file.css' Press ENTER or type command to continue Hitting ENTER removes it and I can edit again. I don't kn...

Drag drop open file in Macvim split window?

Hello. I like to use the split window feature in Vim. However I cannot seem to drag drop new files into the different sections. Doing so will just open a new tab. I don't like using tabs as I still need to flick between them and not much different to using separate windows. Is there anyway I can change this behaviour? It works fine o...

How to show tab character while using expandtab setting in vim

In my .gvimrc I have following lines: set listchars=tab:\.\ ,trail:- set softtabstop=2 set shiftwidth=2 set tabstop=2 set expandtab When I change last line to set noexpandtab the indents can be seen and marked with . Is there a way to make vim treat expanded tabs like "normal" tab so that list option works as expected? ...

Menu items messed up while using MacVim with Vim Latex

I just installed macvim yesterday and I have been trying to install vim latex today. The one thing I am confused about is the menu items on the top bar: ------------------------------------------------------------------------------- <apple icon> File Edit Tools Syntax TeX-Suite TeX-Environments TeX-Elements --------------------------...

Vim: How do I tell where a function is defined? (

I just installed macvim yesterday and I installed vim latex today. One of the menu items is calling a broken fuction (TeX-Suite -> view). When I click on the menu-time it makes this call: :silent! call Tex_ViewLatex() Question: Where can I find that function? Is there some way to figure out where it is defined? Just for cu...

Change font size macvim?

Hi there, I'm using macvim and I love it. I also happen to really like the default font. My question is: How do I change the font size in my .gvimrc? I want it to be bigger, without changing the font from the default. All the examples I've seen specify a font then a ':' then the size. So how do I just change the size not the font i...

Vim: return to command mode when focus is lost

I like my vim to get itself into command mode as often as possible. I think losing focus would be a good event to make that happen. Everything I found is for saving on lost focus. I'd like it to auto-return to cmd mode when switching tabs in macvim or when cmd+tabbing to another app. ...

vim trick to align blocks/end keywords in Ruby?

Is there a way to simply have my blocks and their closing end keyword align properly with vim? If I have a function which is nested with several conditions, things can start to get ugly fast. Can vim save the day? ...

Smooth scrolling and syntax highlighting in MacVim

Is there any way to get MacVim to scroll more smoothly TextMate style? While I'm here, is there a syntax file I can edit to add syntax highlighting to files? I have Velocity .vhtml files which are largely regular HTML with a bit of VTL thrown in. If I could just add .vhtml as an extension to the HTML syntax highlighter that would alread...

Is there any easy way to toggle "do/end" and "{}" in ruby in Vim?

Is there any easy way to toggle "do/end" and "{}" in ruby in Vim? (TextMate does this with ^{.) ...

Mac Vim: How can I change the default text color to be green? Default font? Macvim manual?

I have installed MacVim but I cannot figure out how to do some formatting things. The screen shot below shows: the file class1.jak (custom file type I have defined) open in both macvim and vim the left one is macvim the right one is the terminal Here is what I would like to do: The default color of my terminal is green. I wou...

Macvim: horizontal scroll bar

Using macvim, which is awesome. However I would love to have some kind of horizontal scroll bar. Is this possible? ...