Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
vim /
vim82 /
ftplugin /
Delete
Unzip
Name
Size
Permission
Date
Action
8th.vim
833
B
-rw-r--r--
2026-07-14 04:08
a2ps.vim
470
B
-rw-r--r--
2026-07-14 04:08
aap.vim
979
B
-rw-r--r--
2026-07-14 04:08
abap.vim
800
B
-rw-r--r--
2026-07-14 04:08
abaqus.vim
3.31
KB
-rw-r--r--
2026-07-14 04:08
ada.vim
6.35
KB
-rw-r--r--
2026-07-14 04:08
alsaconf.vim
438
B
-rw-r--r--
2026-07-14 04:08
ant.vim
1.31
KB
-rw-r--r--
2026-07-14 04:08
arch.vim
431
B
-rw-r--r--
2026-07-14 04:08
art.vim
410
B
-rw-r--r--
2026-07-14 04:08
asm.vim
271
B
-rw-r--r--
2026-07-14 04:08
aspvbs.vim
1.87
KB
-rw-r--r--
2026-07-14 04:08
automake.vim
337
B
-rw-r--r--
2026-07-14 04:08
awk.vim
1.47
KB
-rw-r--r--
2026-07-14 04:08
bash.vim
474
B
-rw-r--r--
2026-07-14 04:08
basic.vim
625
B
-rw-r--r--
2026-07-14 04:08
bdf.vim
449
B
-rw-r--r--
2026-07-14 04:08
bst.vim
333
B
-rw-r--r--
2026-07-14 04:08
btm.vim
316
B
-rw-r--r--
2026-07-14 04:08
bzl.vim
3.03
KB
-rw-r--r--
2026-07-14 04:08
c.vim
2.22
KB
-rw-r--r--
2026-07-14 04:08
calendar.vim
462
B
-rw-r--r--
2026-07-14 04:08
cdrdaoconf.vim
383
B
-rw-r--r--
2026-07-14 04:08
cfg.vim
388
B
-rw-r--r--
2026-07-14 04:08
ch.vim
472
B
-rw-r--r--
2026-07-14 04:08
changelog.vim
9.09
KB
-rw-r--r--
2026-07-14 04:08
chicken.vim
1.68
KB
-rw-r--r--
2026-07-14 04:08
clojure.vim
3.33
KB
-rw-r--r--
2026-07-14 04:08
cmake.vim
867
B
-rw-r--r--
2026-07-14 04:08
cobol.vim
9.35
KB
-rw-r--r--
2026-07-14 04:08
conf.vim
434
B
-rw-r--r--
2026-07-14 04:08
config.vim
1.24
KB
-rw-r--r--
2026-07-14 04:08
context.vim
5.26
KB
-rw-r--r--
2026-07-14 04:08
cpp.vim
468
B
-rw-r--r--
2026-07-14 04:08
crm.vim
414
B
-rw-r--r--
2026-07-14 04:08
cs.vim
802
B
-rw-r--r--
2026-07-14 04:08
csc.vim
734
B
-rw-r--r--
2026-07-14 04:08
csh.vim
1.73
KB
-rw-r--r--
2026-07-14 04:08
css.vim
586
B
-rw-r--r--
2026-07-14 04:08
cucumber.vim
5.07
KB
-rw-r--r--
2026-07-14 04:08
cvsrc.vim
399
B
-rw-r--r--
2026-07-14 04:08
debchangelog.vim
11.18
KB
-rw-r--r--
2026-07-14 04:08
debcontrol.vim
1.8
KB
-rw-r--r--
2026-07-14 04:08
denyhosts.vim
383
B
-rw-r--r--
2026-07-14 04:08
dictconf.vim
434
B
-rw-r--r--
2026-07-14 04:08
dictdconf.vim
435
B
-rw-r--r--
2026-07-14 04:08
diff.vim
677
B
-rw-r--r--
2026-07-14 04:08
dircolors.vim
431
B
-rw-r--r--
2026-07-14 04:08
docbk.vim
530
B
-rw-r--r--
2026-07-14 04:08
dockerfile.vim
356
B
-rw-r--r--
2026-07-14 04:08
dosbatch.vim
1011
B
-rw-r--r--
2026-07-14 04:08
dosini.vim
459
B
-rw-r--r--
2026-07-14 04:08
dtd.vim
1.1
KB
-rw-r--r--
2026-07-14 04:08
dtrace.vim
1.12
KB
-rw-r--r--
2026-07-14 04:08
dune.vim
502
B
-rw-r--r--
2026-07-14 04:08
eiffel.vim
3.99
KB
-rw-r--r--
2026-07-14 04:08
elinks.vim
436
B
-rw-r--r--
2026-07-14 04:08
elm.vim
329
B
-rw-r--r--
2026-07-14 04:08
erlang.vim
2.03
KB
-rw-r--r--
2026-07-14 04:08
eruby.vim
4.6
KB
-rw-r--r--
2026-07-14 04:08
eterm.vim
470
B
-rw-r--r--
2026-07-14 04:08
falcon.vim
1.32
KB
-rw-r--r--
2026-07-14 04:08
fetchmail.vim
428
B
-rw-r--r--
2026-07-14 04:08
flexwiki.vim
1.83
KB
-rw-r--r--
2026-07-14 04:08
fortran.vim
4.95
KB
-rw-r--r--
2026-07-14 04:08
fpcmake.vim
592
B
-rw-r--r--
2026-07-14 04:08
framescript.vim
780
B
-rw-r--r--
2026-07-14 04:08
freebasic.vim
234
B
-rw-r--r--
2026-07-14 04:08
fstab.vim
426
B
-rw-r--r--
2026-07-14 04:08
fvwm.vim
390
B
-rw-r--r--
2026-07-14 04:08
gdb.vim
293
B
-rw-r--r--
2026-07-14 04:08
git.vim
1.34
KB
-rw-r--r--
2026-07-14 04:08
gitcommit.vim
2.26
KB
-rw-r--r--
2026-07-14 04:08
gitconfig.vim
376
B
-rw-r--r--
2026-07-14 04:08
gitrebase.vim
1.9
KB
-rw-r--r--
2026-07-14 04:08
gitsendemail.vim
157
B
-rw-r--r--
2026-07-14 04:08
go.vim
365
B
-rw-r--r--
2026-07-14 04:08
gpg.vim
433
B
-rw-r--r--
2026-07-14 04:08
gprof.vim
1.09
KB
-rw-r--r--
2026-07-14 04:08
groovy.vim
343
B
-rw-r--r--
2026-07-14 04:08
group.vim
425
B
-rw-r--r--
2026-07-14 04:08
grub.vim
434
B
-rw-r--r--
2026-07-14 04:08
haml.vim
1.94
KB
-rw-r--r--
2026-07-14 04:08
hamster.vim
1.92
KB
-rw-r--r--
2026-07-14 04:08
haskell.vim
551
B
-rw-r--r--
2026-07-14 04:08
help.vim
471
B
-rw-r--r--
2026-07-14 04:08
hgcommit.vim
363
B
-rw-r--r--
2026-07-14 04:08
hog.vim
1.36
KB
-rw-r--r--
2026-07-14 04:08
hostconf.vim
383
B
-rw-r--r--
2026-07-14 04:08
hostsaccess.vim
436
B
-rw-r--r--
2026-07-14 04:08
html.vim
1.59
KB
-rw-r--r--
2026-07-14 04:08
htmldjango.vim
331
B
-rw-r--r--
2026-07-14 04:08
i3config.vim
333
B
-rw-r--r--
2026-07-14 04:08
indent.vim
487
B
-rw-r--r--
2026-07-14 04:08
initex.vim
1005
B
-rw-r--r--
2026-07-14 04:08
ishd.vim
1.23
KB
-rw-r--r--
2026-07-14 04:08
j.vim
3.31
KB
-rw-r--r--
2026-07-14 04:08
java.vim
1.65
KB
-rw-r--r--
2026-07-14 04:08
javascript.vim
2.54
KB
-rw-r--r--
2026-07-14 04:08
javascriptreact.vim
244
B
-rw-r--r--
2026-07-14 04:08
jproperties.vim
292
B
-rw-r--r--
2026-07-14 04:08
json.vim
360
B
-rw-r--r--
2026-07-14 04:08
jsonc.vim
677
B
-rw-r--r--
2026-07-14 04:08
jsp.vim
1.96
KB
-rw-r--r--
2026-07-14 04:08
julia.vim
3.7
KB
-rw-r--r--
2026-07-14 04:08
kconfig.vim
703
B
-rw-r--r--
2026-07-14 04:08
kwt.vim
851
B
-rw-r--r--
2026-07-14 04:08
ld.vim
470
B
-rw-r--r--
2026-07-14 04:08
less.vim
502
B
-rw-r--r--
2026-07-14 04:08
lftp.vim
434
B
-rw-r--r--
2026-07-14 04:08
libao.vim
440
B
-rw-r--r--
2026-07-14 04:08
limits.vim
436
B
-rw-r--r--
2026-07-14 04:08
liquid.vim
1.85
KB
-rw-r--r--
2026-07-14 04:08
lisp.vim
759
B
-rw-r--r--
2026-07-14 04:08
logcheck.vim
453
B
-rw-r--r--
2026-07-14 04:08
loginaccess.vim
442
B
-rw-r--r--
2026-07-14 04:08
logindefs.vim
440
B
-rw-r--r--
2026-07-14 04:08
logtalk.dict
3.02
KB
-rw-r--r--
2026-07-14 04:08
logtalk.vim
416
B
-rw-r--r--
2026-07-14 04:08
lprolog.vim
1.25
KB
-rw-r--r--
2026-07-14 04:08
lua.vim
1.3
KB
-rw-r--r--
2026-07-14 04:08
m3build.vim
553
B
-rw-r--r--
2026-07-14 04:08
m3quake.vim
848
B
-rw-r--r--
2026-07-14 04:08
m4.vim
426
B
-rw-r--r--
2026-07-14 04:08
mail.vim
1.36
KB
-rw-r--r--
2026-07-14 04:08
mailaliases.vim
383
B
-rw-r--r--
2026-07-14 04:08
mailcap.vim
434
B
-rw-r--r--
2026-07-14 04:08
make.vim
1.03
KB
-rw-r--r--
2026-07-14 04:08
man.vim
6.42
KB
-rw-r--r--
2026-07-14 04:08
manconf.vim
444
B
-rw-r--r--
2026-07-14 04:08
markdown.vim
1.92
KB
-rw-r--r--
2026-07-14 04:08
masm.vim
390
B
-rw-r--r--
2026-07-14 04:08
matlab.vim
835
B
-rw-r--r--
2026-07-14 04:08
meson.vim
1.12
KB
-rw-r--r--
2026-07-14 04:08
mf.vim
3.17
KB
-rw-r--r--
2026-07-14 04:08
mma.vim
366
B
-rw-r--r--
2026-07-14 04:08
modconf.vim
477
B
-rw-r--r--
2026-07-14 04:08
modula2.vim
1.06
KB
-rw-r--r--
2026-07-14 04:08
modula3.vim
1003
B
-rw-r--r--
2026-07-14 04:08
mp.vim
3.63
KB
-rw-r--r--
2026-07-14 04:08
mplayerconf.vim
472
B
-rw-r--r--
2026-07-14 04:08
mrxvtrc.vim
798
B
-rw-r--r--
2026-07-14 04:08
msmessages.vim
1.11
KB
-rw-r--r--
2026-07-14 04:08
muttrc.vim
467
B
-rw-r--r--
2026-07-14 04:08
nanorc.vim
447
B
-rw-r--r--
2026-07-14 04:08
neomuttrc.vim
532
B
-rw-r--r--
2026-07-14 04:08
netrc.vim
428
B
-rw-r--r--
2026-07-14 04:08
nginx.vim
144
B
-rw-r--r--
2026-07-14 04:08
nroff.vim
424
B
-rw-r--r--
2026-07-14 04:08
nsis.vim
1.31
KB
-rw-r--r--
2026-07-14 04:08
objc.vim
296
B
-rw-r--r--
2026-07-14 04:08
ocaml.vim
23.2
KB
-rw-r--r--
2026-07-14 04:08
occam.vim
1.27
KB
-rw-r--r--
2026-07-14 04:08
octave.vim
2.15
KB
-rw-r--r--
2026-07-14 04:08
pamconf.vim
433
B
-rw-r--r--
2026-07-14 04:08
pascal.vim
1.55
KB
-rw-r--r--
2026-07-14 04:08
passwd.vim
424
B
-rw-r--r--
2026-07-14 04:08
pbtxt.vim
438
B
-rw-r--r--
2026-07-14 04:08
pdf.vim
2.55
KB
-rw-r--r--
2026-07-14 04:08
perl.vim
2.79
KB
-rw-r--r--
2026-07-14 04:08
php.vim
2.75
KB
-rw-r--r--
2026-07-14 04:08
pinfo.vim
435
B
-rw-r--r--
2026-07-14 04:08
plaintex.vim
1.12
KB
-rw-r--r--
2026-07-14 04:08
poke.vim
744
B
-rw-r--r--
2026-07-14 04:08
postscr.vim
1006
B
-rw-r--r--
2026-07-14 04:08
procmail.vim
479
B
-rw-r--r--
2026-07-14 04:08
prolog.vim
440
B
-rw-r--r--
2026-07-14 04:08
protocols.vim
457
B
-rw-r--r--
2026-07-14 04:08
ps1.vim
2.36
KB
-rw-r--r--
2026-07-14 04:08
ps1xml.vim
1009
B
-rw-r--r--
2026-07-14 04:08
pyrex.vim
766
B
-rw-r--r--
2026-07-14 04:08
python.vim
7.78
KB
-rw-r--r--
2026-07-14 04:08
qf.vim
508
B
-rw-r--r--
2026-07-14 04:08
quake.vim
439
B
-rw-r--r--
2026-07-14 04:08
r.vim
878
B
-rw-r--r--
2026-07-14 04:08
racc.vim
449
B
-rw-r--r--
2026-07-14 04:08
raku.vim
4.02
KB
-rw-r--r--
2026-07-14 04:08
readline.vim
438
B
-rw-r--r--
2026-07-14 04:08
registry.vim
740
B
-rw-r--r--
2026-07-14 04:08
reva.vim
709
B
-rw-r--r--
2026-07-14 04:08
rhelp.vim
758
B
-rw-r--r--
2026-07-14 04:08
rmd.vim
1.79
KB
-rw-r--r--
2026-07-14 04:08
rnc.vim
431
B
-rw-r--r--
2026-07-14 04:08
rnoweb.vim
1.03
KB
-rw-r--r--
2026-07-14 04:08
routeros.vim
682
B
-rw-r--r--
2026-07-14 04:08
rpl.vim
621
B
-rw-r--r--
2026-07-14 04:08
rrst.vim
1.56
KB
-rw-r--r--
2026-07-14 04:08
rst.vim
1.37
KB
-rw-r--r--
2026-07-14 04:08
ruby.vim
16.88
KB
-rw-r--r--
2026-07-14 04:08
rust.vim
6.42
KB
-rw-r--r--
2026-07-14 04:08
sass.vim
977
B
-rw-r--r--
2026-07-14 04:08
sbt.vim
347
B
-rw-r--r--
2026-07-14 04:08
scala.vim
1.12
KB
-rw-r--r--
2026-07-14 04:08
scdoc.vim
577
B
-rw-r--r--
2026-07-14 04:08
scheme.vim
1.41
KB
-rw-r--r--
2026-07-14 04:08
screen.vim
436
B
-rw-r--r--
2026-07-14 04:08
scss.vim
239
B
-rw-r--r--
2026-07-14 04:08
sensors.vim
455
B
-rw-r--r--
2026-07-14 04:08
services.vim
452
B
-rw-r--r--
2026-07-14 04:08
setserial.vim
439
B
-rw-r--r--
2026-07-14 04:08
sexplib.vim
348
B
-rw-r--r--
2026-07-14 04:08
sgml.vim
1.18
KB
-rw-r--r--
2026-07-14 04:08
sh.vim
1.17
KB
-rw-r--r--
2026-07-14 04:08
sieve.vim
469
B
-rw-r--r--
2026-07-14 04:08
slpconf.vim
477
B
-rw-r--r--
2026-07-14 04:08
slpreg.vim
476
B
-rw-r--r--
2026-07-14 04:08
slpspi.vim
467
B
-rw-r--r--
2026-07-14 04:08
solution.vim
959
B
-rw-r--r--
2026-07-14 04:08
spec.vim
5.63
KB
-rw-r--r--
2026-07-14 04:08
sql.vim
21.11
KB
-rw-r--r--
2026-07-14 04:08
sshconfig.vim
441
B
-rw-r--r--
2026-07-14 04:08
sudoers.vim
438
B
-rw-r--r--
2026-07-14 04:08
svg.vim
1.17
KB
-rw-r--r--
2026-07-14 04:08
swift.vim
733
B
-rw-r--r--
2026-07-14 04:08
swiftgyb.vim
421
B
-rw-r--r--
2026-07-14 04:08
sysctl.vim
453
B
-rw-r--r--
2026-07-14 04:08
systemd.vim
1.23
KB
-rw-r--r--
2026-07-14 04:08
systemverilog.vim
1.25
KB
-rw-r--r--
2026-07-14 04:08
tcl.vim
1002
B
-rw-r--r--
2026-07-14 04:08
tcsh.vim
1004
B
-rw-r--r--
2026-07-14 04:08
terminfo.vim
430
B
-rw-r--r--
2026-07-14 04:08
tex.vim
1.6
KB
-rw-r--r--
2026-07-14 04:08
text.vim
498
B
-rw-r--r--
2026-07-14 04:08
tidy.vim
861
B
-rw-r--r--
2026-07-14 04:08
tmux.vim
372
B
-rw-r--r--
2026-07-14 04:08
toml.vim
464
B
-rw-r--r--
2026-07-14 04:08
treetop.vim
416
B
-rw-r--r--
2026-07-14 04:08
tt2html.vim
434
B
-rw-r--r--
2026-07-14 04:08
typescript.vim
1.18
KB
-rw-r--r--
2026-07-14 04:08
typescriptreact.vim
787
B
-rw-r--r--
2026-07-14 04:08
udevconf.vim
434
B
-rw-r--r--
2026-07-14 04:08
udevperm.vim
432
B
-rw-r--r--
2026-07-14 04:08
udevrules.vim
426
B
-rw-r--r--
2026-07-14 04:08
updatedb.vim
443
B
-rw-r--r--
2026-07-14 04:08
vb.vim
3.39
KB
-rw-r--r--
2026-07-14 04:08
verilog.vim
1.93
KB
-rw-r--r--
2026-07-14 04:08
vhdl.vim
3.42
KB
-rw-r--r--
2026-07-14 04:08
vim.vim
4.39
KB
-rw-r--r--
2026-07-14 04:08
vroom.vim
924
B
-rw-r--r--
2026-07-14 04:08
wast.vim
470
B
-rw-r--r--
2026-07-14 04:08
xdefaults.vim
481
B
-rw-r--r--
2026-07-14 04:08
xf86conf.vim
434
B
-rw-r--r--
2026-07-14 04:08
xhtml.vim
1.99
KB
-rw-r--r--
2026-07-14 04:08
xinetd.vim
476
B
-rw-r--r--
2026-07-14 04:08
xml.vim
2.2
KB
-rw-r--r--
2026-07-14 04:08
xmodmap.vim
434
B
-rw-r--r--
2026-07-14 04:08
xs.vim
465
B
-rw-r--r--
2026-07-14 04:08
xsd.vim
1.14
KB
-rw-r--r--
2026-07-14 04:08
xslt.vim
539
B
-rw-r--r--
2026-07-14 04:08
yaml.vim
628
B
-rw-r--r--
2026-07-14 04:08
zimbu.vim
7.26
KB
-rw-r--r--
2026-07-14 04:08
zsh.vim
1.43
KB
-rw-r--r--
2026-07-14 04:08
Save
Rename
" Language: Rust " Description: Vim ftplugin for Rust " Maintainer: Chris Morgan <me@chrismorgan.info> " Maintainer: Kevin Ballard <kevin@sb.org> " Last Change: June 08, 2016 " For bugs, patches and license go to https://github.com/rust-lang/rust.vim if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 let s:save_cpo = &cpo set cpo&vim augroup rust.vim autocmd! " Variables {{{1 " The rust source code at present seems to typically omit a leader on /*! " comments, so we'll use that as our default, but make it easy to switch. " This does not affect indentation at all (I tested it with and without " leader), merely whether a leader is inserted by default or not. if exists("g:rust_bang_comment_leader") && g:rust_bang_comment_leader != 0 " Why is the `,s0:/*,mb:\ ,ex:*/` there, you ask? I don't understand why, " but without it, */ gets indented one space even if there were no " leaders. I'm fairly sure that's a Vim bug. setlocal comments=s1:/*,mb:*,ex:*/,s0:/*,mb:\ ,ex:*/,:///,://!,:// else setlocal comments=s0:/*!,m:\ ,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,:// endif setlocal commentstring=//%s setlocal formatoptions-=t formatoptions+=croqnl " j was only added in 7.3.541, so stop complaints about its nonexistence silent! setlocal formatoptions+=j " smartindent will be overridden by indentexpr if filetype indent is on, but " otherwise it's better than nothing. setlocal smartindent nocindent if !exists("g:rust_recommended_style") || g:rust_recommended_style != 0 setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab setlocal textwidth=99 endif " This includeexpr isn't perfect, but it's a good start setlocal includeexpr=substitute(v:fname,'::','/','g') setlocal suffixesadd=.rs if exists("g:ftplugin_rust_source_path") let &l:path=g:ftplugin_rust_source_path . ',' . &l:path endif if exists("g:loaded_delimitMate") if exists("b:delimitMate_excluded_regions") let b:rust_original_delimitMate_excluded_regions = b:delimitMate_excluded_regions endif let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate' " For this buffer, when delimitMate issues the `User delimitMate_map` " event in the autocommand system, add the above-defined extra excluded " regions to delimitMate's state, if they have not already been added. autocmd User <buffer> \ if expand('<afile>') ==# 'delimitMate_map' && match( \ delimitMate#Get("excluded_regions"), \ s:delimitMate_extra_excluded_regions) == -1 \| let b:delimitMate_excluded_regions = \ delimitMate#Get("excluded_regions") \ . s:delimitMate_extra_excluded_regions \|endif " For this buffer, when delimitMate issues the `User delimitMate_unmap` " event in the autocommand system, delete the above-defined extra excluded " regions from delimitMate's state (the deletion being idempotent and " having no effect if the extra excluded regions are not present in the " targeted part of delimitMate's state). autocmd User <buffer> \ if expand('<afile>') ==# 'delimitMate_unmap' \| let b:delimitMate_excluded_regions = substitute( \ delimitMate#Get("excluded_regions"), \ '\C\V' . s:delimitMate_extra_excluded_regions, \ '', 'g') \|endif endif if has("folding") && exists('g:rust_fold') && g:rust_fold != 0 let b:rust_set_foldmethod=1 setlocal foldmethod=syntax if g:rust_fold == 2 setlocal foldlevel< else setlocal foldlevel=99 endif endif if has('conceal') && exists('g:rust_conceal') && g:rust_conceal != 0 let b:rust_set_conceallevel=1 setlocal conceallevel=2 endif " Motion Commands {{{1 " Bind motion commands to support hanging indents nnoremap <silent> <buffer> [[ :call rust#Jump('n', 'Back')<CR> nnoremap <silent> <buffer> ]] :call rust#Jump('n', 'Forward')<CR> xnoremap <silent> <buffer> [[ :call rust#Jump('v', 'Back')<CR> xnoremap <silent> <buffer> ]] :call rust#Jump('v', 'Forward')<CR> onoremap <silent> <buffer> [[ :call rust#Jump('o', 'Back')<CR> onoremap <silent> <buffer> ]] :call rust#Jump('o', 'Forward')<CR> " Commands {{{1 " See |:RustRun| for docs command! -nargs=* -complete=file -bang -buffer RustRun call rust#Run(<bang>0, <q-args>) " See |:RustExpand| for docs command! -nargs=* -complete=customlist,rust#CompleteExpand -bang -buffer RustExpand call rust#Expand(<bang>0, <q-args>) " See |:RustEmitIr| for docs command! -nargs=* -buffer RustEmitIr call rust#Emit("llvm-ir", <q-args>) " See |:RustEmitAsm| for docs command! -nargs=* -buffer RustEmitAsm call rust#Emit("asm", <q-args>) " See |:RustPlay| for docs command! -range=% RustPlay :call rust#Play(<count>, <line1>, <line2>, <f-args>) " See |:RustFmt| for docs command! -buffer RustFmt call rustfmt#Format() " See |:RustFmtRange| for docs command! -range -buffer RustFmtRange call rustfmt#FormatRange(<line1>, <line2>) " Mappings {{{1 " Bind ⌘R in MacVim to :RustRun nnoremap <silent> <buffer> <D-r> :RustRun<CR> " Bind ⌘⇧R in MacVim to :RustRun! pre-filled with the last args nnoremap <buffer> <D-R> :RustRun! <C-r>=join(b:rust_last_rustc_args)<CR><C-\>erust#AppendCmdLine(' -- ' . join(b:rust_last_args))<CR> if !exists("b:rust_last_rustc_args") || !exists("b:rust_last_args") let b:rust_last_rustc_args = [] let b:rust_last_args = [] endif " Cleanup {{{1 let b:undo_ftplugin = " \ setlocal formatoptions< comments< commentstring< includeexpr< suffixesadd< \|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth< \|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 \|else \|unlet! b:delimitMate_excluded_regions \|endif \|if exists('b:rust_set_foldmethod') \|setlocal foldmethod< foldlevel< \|unlet b:rust_set_foldmethod \|endif \|if exists('b:rust_set_conceallevel') \|setlocal conceallevel< \|unlet b:rust_set_conceallevel \|endif \|unlet! b:rust_last_rustc_args b:rust_last_args \|delcommand RustRun \|delcommand RustExpand \|delcommand RustEmitIr \|delcommand RustEmitAsm \|delcommand RustPlay \|nunmap <buffer> <D-r> \|nunmap <buffer> <D-R> \|nunmap <buffer> [[ \|nunmap <buffer> ]] \|xunmap <buffer> [[ \|xunmap <buffer> ]] \|ounmap <buffer> [[ \|ounmap <buffer> ]] \|set matchpairs-=<:> \" " }}}1 " Code formatting on save if get(g:, "rustfmt_autosave", 0) autocmd BufWritePre *.rs silent! call rustfmt#Format() endif augroup END let &cpo = s:save_cpo unlet s:save_cpo " vim: set noet sw=8 ts=8: