aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/perl.vim
Commit message (Collapse)AuthorAgeFilesLines
* Require semicolon on same line of heredocTom Ryder2018-07-071-0/+1
|
* Inline ternary condition in Perl Vim indentTom Ryder2018-07-071-3/+1
|
* More speed refactoring for Perl Vim indentTom Ryder2018-07-071-23/+18
|
* Rearrange heredoc/POD indent check for speedTom Ryder2018-07-071-9/+10
|
* Refine Perl line cont hints in Vim indentTom Ryder2018-07-071-4/+4
|
* Simplify Vim Perl shiftwidth calculationTom Ryder2018-07-071-4/+3
| | | | This is a portable method that will work on very old Vims.
* Simplify POD Vim indenting behaviourTom Ryder2018-07-071-6/+6
|
* Add POD rules to Vim Perl indentTom Ryder2018-07-071-18/+34
|
* Pass Vim indent line into Perl functionTom Ryder2018-07-071-4/+4
| | | | Should make testing (!) easier later on.
* Further extension of Perl Vim line cont rulesTom Ryder2018-07-071-8/+15
|
* Remove misplaced separator in b:undo_indentTom Ryder2018-07-071-1/+1
| | | | | This was causing the first line of the buffer to be printed on every filetype change from Perl.
* Revert "Remove Vim Perl indent"Tom Ryder2018-07-071-0/+114
| | | | | | This reverts commit f0b98feb769d9dfbbb0c1825b1291851795163db. I changed my mind again.
* Remove Vim Perl indentTom Ryder2018-07-071-114/+0
| | | | | This one is pretty good, but I think I'll stick with the stock one for now.
* Committing final state of Vim Perl indentTom Ryder2018-07-071-12/+16
| | | | | I'm not sure I actually want to use this anymore; will remove it for now in the next commit.
* Correct end of heredoc pattern in Vim Perl indentTom Ryder2018-07-071-1/+1
| | | | Just a plain old syntax error.
* Adjust continued line indent for Vim PerlTom Ryder2018-07-071-1/+1
| | | | | Don't add another two spaces if we already did on a previous line; get the "base" indent first.
* Add heredoc support to Vim Perl indent pluginTom Ryder2018-07-071-2/+51
| | | | | This anchors lines in a Perl heredoc with no indent until it sees the terminating word. It works really well.
* Refactor rules in Vim Perl indent scriptTom Ryder2018-07-071-18/+6
| | | | | I think this is mixing two changes I made, which I neglected to commit separately.
* Remove unneeded parens in Vim Perl indent scriptTom Ryder2018-07-071-1/+1
| | | | | The modulo operator has a higher precedence than the subtraction operator, so it doesn't need to be cuddled.
* Rearrange settings in Vim Perl indent scriptTom Ryder2018-07-071-4/+4
| | | | | | The version of this indent script bundled with Vim sets the 'indentexpr' and 'indentkeys' options before the GetPerlIndent() function; may as well follow that pattern.
* Adjust a few Vim Perl indent commentsTom Ryder2018-07-071-5/+5
|
* Get 'shiftwidth' in Vim Perl indent portablyTom Ryder2018-07-071-1/+3
| | | | | | | | | | | From `:help shiftwidth()`: > Returns the effective value of 'shiftwidth'. This is the 'shiftwidth' > value unless it is zero, in which case it is the 'tabstop' value. This > function was introduced with patch 7.3.694 in 2012, everybody should > have it by now. I'd like my stuff to work on older versions, though, and it's not hard to make it work.
* Adjust leading comment for Vim Perl indentTom Ryder2018-07-071-5/+1
|
* Refactor opening of Vim Perl indent scriptTom Ryder2018-07-061-6/+5
|
* Add a comment to Vim Perl indent rulesTom Ryder2018-07-061-0/+2
|
* Add attempt at own Vim Perl indentingTom Ryder2018-07-061-0/+74
|
* Use b:undo variables correctlyTom Ryder2017-11-071-2/+0
| | | | | | | | | | | Setting or adding to b:undo_indent and b:undo_ftplugin variables, which I only learned about just now, allows me to avoid the _GLOBAL.vim hack and remove some files from both vim/indent/ and vim/ftplugin/. These variables aren't subjected to :execute automatically in anything older than Vim 7.0, but I don't think that's too much of a concern as the only real reason they're needed are for changing filetypes in the same buffer, which doesn't happen that often anyway.
* Use a common file to restore global indent optsTom Ryder2017-10-301-6/+2
| | | | | | Remove the duplicated code instated to use the global defaults for indent-related options and put it into a common file to source with :runtime.
* Move filetype-specific indent options into indent/Tom Ryder2017-10-301-0/+6
I'm still getting used to the structure of the configuration here, and had mistakenly put these indent-related settings into files in the ftplugin directory.