aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
AgeCommit message (Collapse)AuthorFilesLines
2017-11-08Correct prefix for b:undo_* variableTom Ryder1-1/+1
This was causing nasty errors whenever I started editing a Perl file.
2017-11-08Use "nunmap" not "unmap" for b:undo_* varTom Ryder1-3/+3
We only want to remove the normal mode mapping, since that's all we set.
2017-11-08Remove null command from b:undo_* variablesTom Ryder1-2/+2
I didn't realise that a null command at the front of .e.g '|cmd|cmd2' printed the current line! Removed that.
2017-11-08Use consistent/thorough ftplugin/indent unloadingTom Ryder1-0/+6
Unload all maps too, with silent! in case they don't exist.
2017-11-04Adjust plugin code layout a lotTom Ryder1-6/+9
Including renaming big_file.vim and accompanying functions yet again, to big_file_options.vim. Trying to keep complex autocmd and mapping definitions on long lines broken up semantically; definition and options on one line, patterns or mapping key on the next, and the command to run on the last. Also trying to make sure that <silent>, <buffer>, and <unique> are applied in the correct places, and that all mapping commands are using the :<C-U> idiom for the command prefix.
2017-11-04Break long lines in check/lint/tidy mappingsTom Ryder1-3/+8
2017-11-04Make all lint/check/tidy maps local and silentTom Ryder1-3/+3
That is, apply <buffer> and <silent> to each of them, to make them only apply to the current buffer and to prevent them from echoing the command they're running.
2017-11-03Improve comments on check/lint/tidy mapsTom Ryder1-3/+3
2017-11-03Use direct :write !cmd instead of shellescape()Tom Ryder1-11/+6
This is a much better method of calling external programs on the buffer's contents, not just because it avoids the mess of :execute evaluation but also because it doesn't require that there actually be a filename for the current buffer. This drastically simplifies the HTML tidy(1) call in particular.
2017-11-03Use full ':execute' not just ':exe' in VimLTom Ryder1-2/+2
We should probably avoid this sort of abbreviation in scripts.
2017-11-03Check for availability of Vim shellescape()Tom Ryder1-6/+11
It doesn't seem to be in very old Vims; worth testing for to avoid errors if I try to use the function.
2017-11-03Use <Leader>/<LocalLeader> correctly in Vim configTom Ryder1-3/+3
From ":help <LocalLeader>": > In a global plugin <Leader> should be used and in a filetype plugin > <LocalLeader>. "mapleader" and "maplocalleader" can be equal.
2017-10-30Move filetype-specific indent options into indent/Tom Ryder1-7/+0
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.
2017-10-30Add some more file-specific indent preferencesTom Ryder1-0/+7
For some languages in which I write often: C, HTML, Perl, PHP, and shell scripts. All of these values presently match the defaults specified in config/indent.vim, but for languages I commonly use it's probably appropriate to have files to set the indent settings explicitly anyway, especially if we switched from a filetype with different values.
2017-10-30Move vim/after/ftplugin files into vim/ftpluginTom Ryder1-0/+6
None of the settings in here need to be run after the core configuration files are loaded, so I'll put them in a slightly more accessible or logical place. This adds a new target `install-vim-ftplugin`, and makes that a prerequisite of the `install-vim` target.