| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This is a portable method that will work on very old Vims.
|
| |
|
| |
|
|
|
|
| |
Should make testing (!) easier later on.
|
| |
|
|
|
|
|
| |
This was causing the first line of the buffer to be printed on every
filetype change from Perl.
|
|
|
|
|
|
| |
This reverts commit f0b98feb769d9dfbbb0c1825b1291851795163db.
I changed my mind again.
|
|
|
|
|
| |
This one is pretty good, but I think I'll stick with the stock one for
now.
|
|
|
|
|
| |
I'm not sure I actually want to use this anymore; will remove it for now
in the next commit.
|
|
|
|
| |
Just a plain old syntax error.
|
|
|
|
|
| |
Don't add another two spaces if we already did on a previous line; get
the "base" indent first.
|
|
|
|
|
| |
This anchors lines in a Perl heredoc with no indent until it sees the
terminating word. It works really well.
|
|
|
|
|
| |
I think this is mixing two changes I made, which I neglected to commit
separately.
|
|
|
|
|
| |
The modulo operator has a higher precedence than the subtraction
operator, so it doesn't need to be cuddled.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
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.
|