The vim ruby syntax seems to screw up comments that have multiple hashes. E.g. I like to differentiate
### section heading comments,
## non-inline comments, and
x = a + b # inline comments
But reformatting the comments (e.g. with “gq}”) always screws them up, unless you do:
$ mkdir -p ~/.vim/after/syntax
$ cat > ~/.vim/after/syntax/ruby.vim
set comments=n:#
which tells vim that multiple hash marks are ok.
ruby without textmate? is that even legal in this state?
i’m allowed to say things like that, it’s like jews making jewish jokes http://dotfiles.org/~brendano/.vimrc
Good god. Mighty big file you got there son. Mighty big.
Do you have a recommendation for handling large numbers of open files in Vim? That’s the thing I miss most about Emacs. Primarily I’m looking for a way to see the list of recently-opened buffers and switch to them easily. I’ve been using a plugin called “MRU” but it’s not quite what I want…
yeah, default vim is pretty lousy for lots of open files. The most basic way, :set hidden, :bn, and :bp, is pretty poor.
I like “bufexplorer”, which is just like emacs electric-buffer-list, and I bind it to a single keystroke “;” so ;[down][enter] to switch to the most recently used buffer, and same again to switch again.
for lots of files in a directory, I like “NERD Tree Explorer” the best.
both are on vim.org.
Bufexplorer is pretty much exactly what I was looking for.
And NERDTree lets me create files, fixing irritation #2 with vim. Thanks for improving my life!