From c012f55efda29f09179e921cf148d79deb57616e Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Sun, 7 May 2017 09:04:01 -0400 Subject: Much maturering of vim configs --- vim/ftplugin/rust.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vim/ftplugin/rust.vim (limited to 'vim/ftplugin') diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim new file mode 100644 index 0000000..8bdfbe5 --- /dev/null +++ b/vim/ftplugin/rust.vim @@ -0,0 +1,12 @@ +"" +" 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 +" + -- cgit v1.2.3-70-g09d2