vimrc

Embed vim settings in file

In some files I can see a commented line, usually the last, with vim settings. Does vim read these settings? If it does, are any limitations of what kind of settings man can put there? ...

NERDTree open in a new tab, as last tab in gvim?

In NERDTree ShiftT opens file in a new tab, but tab is positioned after the tab in which NERDTree is opened. It is possible to open the new tab at the end of tabs? ...

vim: add comment macros

Vim is almost perfect for me. But I still want a line comment and block comment feature, I want to know how to write a vimrc to do this in python and javascript. No Addons ...

Vim: Use shorter textwidth in comments and docstrings

From the mighty PEP 8: [P]lease limit all lines to a maximum of 79 characters. For flowing long blocks of text (docstrings or comments), limiting the length to 72 characters is recommended. When editing Python code in Vim, I set my textwidth to 79, and Vim automatically wraps long lines of Python code for me when I hit the charact...

project.vim and commands using the shift key

I'm trying to get up and running using project.vim but for some reason, none of the keybinding requiring a capital letter seem to be working. For example \C, which should create new project fold recursively, just acts like normal C, but \c operates as expected. Same thing with \R and \r. I'm using MacVim with Vim 7.3 (on a Mac, obvious...

How can I see the file or directory named passed to Vim from the command line?

I'd like to set up my .vimrc so that NERDTree is open whenever vim (or MacVim) is called from the command line with a directory argument, but closed when vim is called with a file argument. I looked through the list of vim's built-in variables but couldn't find anything that looked promising. ...