X7ROOT File Manager
Current Path:
/usr/share/vim/vim80/indent
usr
/
share
/
vim
/
vim80
/
indent
/
π
..
π
README.txt
(1.6 KB)
π
aap.vim
(265 B)
π
ada.vim
(10.97 KB)
π
ant.vim
(290 B)
π
automake.vim
(243 B)
π
awk.vim
(7.59 KB)
π
bib.vim
(346 B)
π
bst.vim
(1.89 KB)
π
bzl.vim
(2.43 KB)
π
c.vim
(325 B)
π
cdl.vim
(4.15 KB)
π
ch.vim
(470 B)
π
chaiscript.vim
(1.11 KB)
π
changelog.vim
(264 B)
π
clojure.vim
(10.2 KB)
π
cmake.vim
(2.62 KB)
π
cobol.vim
(8.11 KB)
π
config.vim
(2.13 KB)
π
context.vim
(752 B)
π
cpp.vim
(329 B)
π
cs.vim
(327 B)
π
css.vim
(1.75 KB)
π
cucumber.vim
(2.62 KB)
π
cuda.vim
(305 B)
π
d.vim
(510 B)
π
dictconf.vim
(337 B)
π
dictdconf.vim
(338 B)
π
docbk.vim
(336 B)
π
dtd.vim
(11.59 KB)
π
dtrace.vim
(451 B)
π
dylan.vim
(2.64 KB)
π
eiffel.vim
(3.24 KB)
π
erlang.vim
(45.29 KB)
π
eruby.vim
(2.74 KB)
π
eterm.vim
(668 B)
π
falcon.vim
(13.72 KB)
π
fortran.vim
(7.27 KB)
π
framescript.vim
(816 B)
π
gitconfig.vim
(841 B)
π
gitolite.vim
(1.25 KB)
π
go.vim
(1.63 KB)
π
haml.vim
(2.16 KB)
π
hamster.vim
(1.39 KB)
π
hog.vim
(1.85 KB)
π
html.vim
(32.47 KB)
π
htmldjango.vim
(273 B)
π
idlang.vim
(1.58 KB)
π
ishd.vim
(1.83 KB)
π
j.vim
(1.77 KB)
π
java.vim
(4.19 KB)
π
javascript.vim
(15 KB)
π
json.vim
(4.32 KB)
π
jsp.vim
(462 B)
π
ld.vim
(1.75 KB)
π
less.vim
(243 B)
π
lifelines.vim
(637 B)
π
liquid.vim
(1.85 KB)
π
lisp.vim
(353 B)
π
logtalk.vim
(1.7 KB)
π
lua.vim
(1.88 KB)
π
mail.vim
(308 B)
π
make.vim
(3.41 KB)
π
matlab.vim
(1.92 KB)
π
mf.vim
(156 B)
π
mma.vim
(2.18 KB)
π
mp.vim
(11.06 KB)
π
nsis.vim
(3.18 KB)
π
objc.vim
(1.61 KB)
π
ocaml.vim
(8.94 KB)
π
occam.vim
(4.53 KB)
π
pascal.vim
(5.52 KB)
π
perl.vim
(5.76 KB)
π
perl6.vim
(3.46 KB)
π
php.vim
(21.91 KB)
π
postscr.vim
(1.61 KB)
π
pov.vim
(2.6 KB)
π
prolog.vim
(1.46 KB)
π
pyrex.vim
(326 B)
π
python.vim
(5.61 KB)
π
r.vim
(13.58 KB)
π
readline.vim
(711 B)
π
rhelp.vim
(2.77 KB)
π
rmd.vim
(1.17 KB)
π
rnoweb.vim
(1.06 KB)
π
rpl.vim
(1.82 KB)
π
rrst.vim
(1.17 KB)
π
rst.vim
(1.37 KB)
π
ruby.vim
(22.43 KB)
π
rust.vim
(6.35 KB)
π
sas.vim
(5.01 KB)
π
sass.vim
(950 B)
π
scala.vim
(18.97 KB)
π
scheme.vim
(372 B)
π
scss.vim
(191 B)
π
sdl.vim
(2.73 KB)
π
sh.vim
(5.58 KB)
π
sml.vim
(6.33 KB)
π
sql.vim
(1.18 KB)
π
sqlanywhere.vim
(12.86 KB)
π
systemd.vim
(205 B)
π
systemverilog.vim
(8.38 KB)
π
tcl.vim
(1.59 KB)
π
tcsh.vim
(1.24 KB)
π
teraterm.vim
(1.33 KB)
π
tex.vim
(13.18 KB)
π
tf.vim
(1.51 KB)
π
tilde.vim
(1012 B)
π
treetop.vim
(707 B)
π
vb.vim
(2.04 KB)
π
verilog.vim
(7.97 KB)
π
vhdl.vim
(14.32 KB)
π
vim.vim
(2.92 KB)
π
vroom.vim
(379 B)
π
xf86conf.vim
(709 B)
π
xhtml.vim
(269 B)
π
xinetd.vim
(1.2 KB)
π
xml.vim
(2.78 KB)
π
xsd.vim
(253 B)
π
xslt.vim
(297 B)
π
yacc.vim
(781 B)
π
yaml.vim
(5.34 KB)
π
zimbu.vim
(3.84 KB)
π
zsh.vim
(411 B)
Editing: perl6.vim
" Vim indent file " Language: Perl 6 " Maintainer: vim-perl <vim-perl@googlegroups.com> " Homepage: http://github.com/vim-perl/vim-perl " Bugs/requests: http://github.com/vim-perl/vim-perl/issues " Last Change: 2017 Jun 13 " Contributors: Andy Lester <andy@petdance.com> " Hinrik Γrn SigurΓ°sson <hinrik.sig@gmail.com> " " Adapted from indent/perl.vim by Rafael Garcia-Suarez <rgarciasuarez@free.fr> " Suggestions and improvements by : " Aaron J. Sherman (use syntax for hints) " Artem Chuprina (play nice with folding) " TODO: " This file still relies on stuff from the Perl 5 syntax file, which Perl 6 " does not use. " " Things that are not or not properly indented (yet) : " - Continued statements " print "foo", " "bar"; " print "foo" " if bar(); " - Multiline regular expressions (m//x) " (The following probably needs modifying the perl syntax file) " - qw() lists " - Heredocs with terminators that don't match \I\i* " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif let b:did_indent = 1 " Is syntax highlighting active ? let b:indent_use_syntax = has("syntax") setlocal indentexpr=GetPerl6Indent() " we reset it first because the Perl 5 indent file might have been loaded due " to a .pl/pm file extension, and indent files don't clean up afterwards setlocal indentkeys& setlocal indentkeys+=0=,0),0],0>,0Β»,0=or,0=and if !b:indent_use_syntax setlocal indentkeys+=0=EO endif let s:cpo_save = &cpo set cpo-=C function! GetPerl6Indent() " Get the line to be indented let cline = getline(v:lnum) " Indent POD markers to column 0 if cline =~ '^\s*=\L\@!' return 0 endif " Don't reindent coments on first column if cline =~ '^#' return 0 endif " Get current syntax item at the line's first char let csynid = '' if b:indent_use_syntax let csynid = synIDattr(synID(v:lnum,1,0),"name") endif " Don't reindent POD and heredocs if csynid =~ "^p6Pod" return indent(v:lnum) endif " Now get the indent of the previous perl line. " Find a non-blank line above the current line. let lnum = prevnonblank(v:lnum - 1) " Hit the start of the file, use zero indent. if lnum == 0 return 0 endif let line = getline(lnum) let ind = indent(lnum) " Skip heredocs, POD, and comments on 1st column if b:indent_use_syntax let skippin = 2 while skippin let synid = synIDattr(synID(lnum,1,0),"name") if (synid =~ "^p6Pod" || synid =~ "p6Comment") let lnum = prevnonblank(lnum - 1) if lnum == 0 return 0 endif let line = getline(lnum) let ind = indent(lnum) let skippin = 1 else let skippin = 0 endif endwhile endif if line =~ '[<Β«\[{(]\s*\(#[^)}\]Β»>]*\)\=$' let ind = ind + shiftwidth() endif if cline =~ '^\s*[)}\]Β»>]' let ind = ind - shiftwidth() endif " Indent lines that begin with 'or' or 'and' if cline =~ '^\s*\(or\|and\)\>' if line !~ '^\s*\(or\|and\)\>' let ind = ind + shiftwidth() endif elseif line =~ '^\s*\(or\|and\)\>' let ind = ind - shiftwidth() endif return ind endfunction let &cpo = s:cpo_save unlet s:cpo_save " vim:ts=8:sts=4:sw=4:expandtab:ft=vim
Upload File
Create Folder