about summary refs log tree commit diff
path: root/src/etc/vim/ftplugin
AgeCommit message (Collapse)AuthorLines
2013-09-04Silence fo+=j error for users of Vim < 7.3.541.Chris Morgan-1/+3
2013-07-12Fix problem with switching between Rust buffers.Chris Morgan-1/+1
This was also causing trouble if one didn't have delimitMate installed.
2013-07-12Vim syntax: support lifetimes with delimitMate.Chris Morgan-1/+8
When it's a lifetime, a single quotation mark shouldn't have a matching single quotation mark inserted after it, as delimitMate does by default. Note that this is not without problems; a char literal coming after an odd number of lifetime markers will have its quotation marks behave a little strangely. That, however, is not my fault, but delimitMate's: https://github.com/Raimondi/delimitMate/issues/135
2013-07-11Fix comment indenting properly for Vim files.Chris Morgan-2/+13
Indentation now works correctly on subsequent lines of a multi-line comment, whether there are leaders (` * `) or not. (Formerly it was incorrectly doing a two-space indent if there was no leader.) By default, this no longer puts a ` * ` leader on `/*!` comments, as that appears to be the current convention in the Rust source code, but that can easily be re-enabled if desired: let g:rust_bang_comment_leader = 1
2013-07-10Add a Vim filetype plugin with useful tweaks.Chris Morgan-0/+25
This improves things like doc comment handling when you press Enter and making using `gf` or `<C-W>f` work on a `use x;` statement in the current directory.