From 447137cd744d80f498062558c94e31c187b947eb Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Sat, 3 Jun 2017 01:07:10 -0400 Subject: Tweaks to rust cfg for vim --- vim/ftplugin/rust.vim | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'vim/ftplugin') diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim index 8bdfbe5..7d378b9 100644 --- a/vim/ftplugin/rust.vim +++ b/vim/ftplugin/rust.vim @@ -1,12 +1,11 @@ "" " Rust config -" TODO: Move to ftplugin " -au FileType rust nmap (rust-def) -au FileType rust nmap g (rust-def-split) -au FileType rust nmap g (rust-def-vertical) -au FileType rust nmap K (rust-doc) -au FileType rust compiler cargo -au FileType rust set formatprg=rustfmt +nmap (rust-def) +nmap g (rust-def-split) +nmap g (rust-def-vertical) +nmap K (rust-doc) +compiler cargo +setl formatexpr=rustfmt#FormatRange() " -- cgit v1.2.3-70-g09d2