blob: a35a238a2f7e43088921212954d3c5ddacdd3789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
" Rust vim settings
" Indentation
setlocal expandtab
setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
" Comment string
setlocal commentstring=//\ %s
" Add a trailing comma when expanding elements to multiple lines
let b:argwrap_tail_comma = 1
nnoremap <buffer>Zr :!cargo run<CR>
nnoremap <buffer>Zb :!cargo build<CR>
|