Hackfut Security File Manager
Current Path:
/usr/share/vim/vim74/indent
usr
/
share
/
vim
/
vim74
/
indent
/
π
..
π
README.txt
(1.6 KB)
π
aap.vim
(265 B)
π
ada.vim
(10.89 KB)
π
ant.vim
(290 B)
π
automake.vim
(231 B)
π
awk.vim
(7.57 KB)
π
bib.vim
(346 B)
π
bst.vim
(1.87 KB)
π
c.vim
(325 B)
π
cdl.vim
(4.07 KB)
π
ch.vim
(470 B)
π
chaiscript.vim
(1.11 KB)
π
changelog.vim
(264 B)
π
clojure.vim
(11.85 KB)
π
cmake.vim
(2.69 KB)
π
cobol.vim
(8 KB)
π
config.vim
(2.12 KB)
π
cpp.vim
(329 B)
π
cs.vim
(327 B)
π
css.vim
(1.68 KB)
π
cucumber.vim
(2.56 KB)
π
cuda.vim
(305 B)
π
d.vim
(510 B)
π
dictconf.vim
(325 B)
π
dictdconf.vim
(326 B)
π
docbk.vim
(324 B)
π
dtd.vim
(11.39 KB)
π
dtrace.vim
(451 B)
π
dylan.vim
(2.6 KB)
π
eiffel.vim
(3.13 KB)
π
erlang.vim
(45.15 KB)
π
eruby.vim
(2.11 KB)
π
eterm.vim
(638 B)
π
falcon.vim
(13.65 KB)
π
fortran.vim
(6.41 KB)
π
framescript.vim
(786 B)
π
gitconfig.vim
(817 B)
π
gitolite.vim
(996 B)
π
haml.vim
(2.14 KB)
π
hamster.vim
(1.37 KB)
π
html.vim
(14.46 KB)
π
htmldjango.vim
(273 B)
π
idlang.vim
(1.53 KB)
π
ishd.vim
(1.8 KB)
π
java.vim
(4.02 KB)
π
javascript.vim
(336 B)
π
jsp.vim
(462 B)
π
ld.vim
(1.71 KB)
π
lifelines.vim
(637 B)
π
liquid.vim
(1.83 KB)
π
lisp.vim
(353 B)
π
logtalk.vim
(1.65 KB)
π
lua.vim
(1.87 KB)
π
mail.vim
(308 B)
π
make.vim
(3.35 KB)
π
matlab.vim
(1.88 KB)
π
mma.vim
(2.17 KB)
π
mp.vim
(6.37 KB)
π
objc.vim
(1.61 KB)
π
ocaml.vim
(8.9 KB)
π
occam.vim
(4.53 KB)
π
pascal.vim
(5.52 KB)
π
perl.vim
(5.67 KB)
π
perl6.vim
(3.42 KB)
π
php.vim
(18.97 KB)
π
postscr.vim
(1.58 KB)
π
pov.vim
(2.58 KB)
π
prolog.vim
(1.42 KB)
π
pyrex.vim
(326 B)
π
python.vim
(5.61 KB)
π
r.vim
(14.44 KB)
π
readline.vim
(681 B)
π
rpl.vim
(1.79 KB)
π
rst.vim
(1.35 KB)
π
ruby.vim
(17.13 KB)
π
sass.vim
(1018 B)
π
scheme.vim
(241 B)
π
scss.vim
(191 B)
π
sdl.vim
(2.7 KB)
π
sh.vim
(3.95 KB)
π
sml.vim
(6.27 KB)
π
sql.vim
(1.18 KB)
π
sqlanywhere.vim
(12.77 KB)
π
tcl.vim
(1.56 KB)
π
tcsh.vim
(1.21 KB)
π
tex.vim
(9.47 KB)
π
tf.vim
(1.46 KB)
π
tilde.vim
(994 B)
π
treetop.vim
(677 B)
π
vb.vim
(2 KB)
π
verilog.vim
(7.44 KB)
π
vhdl.vim
(13.48 KB)
π
vim.vim
(2.76 KB)
π
xf86conf.vim
(679 B)
π
xhtml.vim
(269 B)
π
xinetd.vim
(1.17 KB)
π
xml.vim
(2.77 KB)
π
xsd.vim
(253 B)
π
xslt.vim
(297 B)
π
yacc.vim
(769 B)
π
yaml.vim
(4.02 KB)
π
zimbu.vim
(3.8 KB)
π
zsh.vim
(231 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: 2013-07-21 " 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 + &sw endif if cline =~ '^\s*[)}\]Β»>]' let ind = ind - &sw endif " Indent lines that begin with 'or' or 'and' if cline =~ '^\s*\(or\|and\)\>' if line !~ '^\s*\(or\|and\)\>' let ind = ind + &sw endif elseif line =~ '^\s*\(or\|and\)\>' let ind = ind - &sw 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