aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/rust.vim
diff options
context:
space:
mode:
authorTeddy Wing2016-04-06 11:39:36 -0400
committerTeddy Wing2016-04-06 11:39:36 -0400
commit13bd1612d5c980675b2a9ce9ebf3e3cefd68c3b2 (patch)
tree077a6cb95e9447807c6bc4a5c66595debc1e0d49 /ftplugin/rust.vim
parentdd7757bdd7b051c4f0aa2b7011b0a9b44a03a920 (diff)
downloaddotvim-13bd1612d5c980675b2a9ce9ebf3e3cefd68c3b2.tar.bz2
ftplugin/rust.vim: Don't preserve indentation on empty lines
Don't think we should be doing this in Rust so taking away my default behaviour.
Diffstat (limited to 'ftplugin/rust.vim')
-rw-r--r--ftplugin/rust.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim
index c45091f..0b1f2ae 100644
--- a/ftplugin/rust.vim
+++ b/ftplugin/rust.vim
@@ -7,5 +7,11 @@ setlocal softtabstop=4
setlocal shiftwidth=4
+" Don't preserve indentation on empty lines
+inoremap <buffer> <CR> <CR>
+nnoremap <buffer> o o
+nnoremap <buffer> O O
+
+
" Comment string
setlocal commentstring=//\ %s