about summary refs log tree commit diff
path: root/src/etc/vim/ftplugin/rust.vim
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-07-07 22:19:59 -0700
committerKevin Ballard <kevin@sb.org>2014-07-07 22:22:25 -0700
commit9dc667d472630c52a792f47e8ea67337ec23b224 (patch)
tree62bf00beca2230c9d381f03039db25d6787433df /src/etc/vim/ftplugin/rust.vim
parent94cfd1b4adb16b059e1b596c7f3f96af4fc7726b (diff)
downloadrust-9dc667d472630c52a792f47e8ea67337ec23b224.tar.gz
rust-9dc667d472630c52a792f47e8ea67337ec23b224.zip
Remove rust_colorcolumn, set textwidth to 99
The latest change to aturon/rust-guidelines states that lines must not
exceed 99 characters. This gets rid of the 80/100 split, so we don't
need to customize colorcolumn amymore.
Diffstat (limited to 'src/etc/vim/ftplugin/rust.vim')
-rw-r--r--src/etc/vim/ftplugin/rust.vim23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/etc/vim/ftplugin/rust.vim b/src/etc/vim/ftplugin/rust.vim
index 2b1261c35b5..39edc1f9a20 100644
--- a/src/etc/vim/ftplugin/rust.vim
+++ b/src/etc/vim/ftplugin/rust.vim
@@ -2,7 +2,7 @@
 " Description:  Vim syntax file for Rust
 " Maintainer:   Chris Morgan <me@chrismorgan.info>
 " Maintainer:   Kevin Ballard <kevin@sb.org>
-" Last Change:  July 06, 2014
+" Last Change:  Jul 07, 2014
 
 if exists("b:did_ftplugin")
 	finish
@@ -37,22 +37,7 @@ setlocal smartindent nocindent
 
 setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
 
-" Line lengths {{{2
-
-" Rust style conventions for line lengths say you SHOULD not go over 80
-" columns and MUST not go over 100.
-" Without a good 'formatexpr' we can't automatically wrap code, but we can
-" still wrap comments just fine with 'textwidth'.
-setlocal textwidth=80
-
-" We can also use 'colorcolumn' to highlight both the 80 and 100 limits. Not
-" everyone likes this so it's gated.
-if exists('g:rust_colorcolumn')
-	setlocal colorcolumn=+1,101
-	let b:rust_colorcolumn=1
-endif
-
-" }}}2
+setlocal textwidth=99
 
 " This includeexpr isn't perfect, but it's a good start
 setlocal includeexpr=substitute(v:fname,'::','/','g')
@@ -112,10 +97,6 @@ endif
 let b:undo_ftplugin = "
 		\ setlocal formatoptions< comments< commentstring< includeexpr< suffixesadd<
 		\|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth<
-		\|if exists('b:rust_colorcolumn')
-		  \|setlocal colorcolumn<
-		  \|unlet b:rust_colorcolumn
-		\|endif
 		\|if exists('b:rust_original_delimitMate_excluded_regions')
 		  \|let b:delimitMate_excluded_regions = b:rust_original_delimitMate_excluded_regions
 		  \|unlet b:rust_original_delimitMate_excluded_regions