path: root/vim/autoload
AgeCommit message (Collapse)AuthorFilesLines
2018-06-17Use autoload function for temp-makeprg :lmakeTom Ryder1-0/+11
2018-06-04Move markdown_autoformat.vim funcs back to localTom Ryder1-63/+0
No advantage to making them autoload
2018-06-04Use heuristics on Markdown to guess autoformatTom Ryder1-0/+24
2018-06-04Refactor suspend_autoformat.vim, add autoloadTom Ryder1-0/+39
* Add a function to suspend autoformatting for the duration of pasting lines. * Factor the ftplugin's functions out to be autoloaded; this requires Vim >=7.0, but it already needed that. * Add Makefile infrastructure for new autoload directories/files.
2018-05-31Junk detect_background.vim and thereby autoloadTom Ryder1-37/+0
It's too complicated and confusing, and doesn't do enough to justify wrecking Vim's own logic for doing this sort of thing. Better to just say `:set background=dark` and be done with it. This is the only one of my inline plugins with an `autoload` file, so we can get rid of that, too. Not worth packaging/publishing to www.vim.org.
2018-01-21Join short-circuit line in detect_background.vimTom Ryder1-2/+1
This makes the block work correctly when 'compatible' is set and 'C' is in 'cpoptions'.
2017-11-06Don't use VimL ==# for number comparisonsTom Ryder1-2/+2
The Google VimScript Guide says: <https://google.github.io/styleguide/vimscriptfull.xml#Portability> > Always use case-explicit operators for strings (=~# and =~?, never =~). > > This also applies to !~ == != > >= < and <= > This only applies for strings. == and >= are fine for numbers, but ==# > and >=# must be used for strings.
2017-11-06Make background detection return not set valueTom Ryder1-2/+5
This approach allows more flexibility from the caller's side.
2017-11-05Add 'abort' attribute to autoload functionTom Ryder1-1/+1
`vint -s` says: > vim/autoload/detect_background.vim:16:1: Use the abort attribute for > functions in autoload (see Google VimScript Style Guide (Functions)) All right, then. Doesn't seem to break vim.tiny or Vim 6.1.
2017-11-04Add short-circuit boilerplate to pluginsTom Ryder1-0/+7
Set a g:loaded_* flag to prevent repeated reloads, and refuse to load at all if &compatible is set or if required features are missing. Some more accommodating plugins avoid the problems 'compatible' causes by saving its value at startup into a script variable, setting the option to the Vim default, and then restoring it when the plugin is done, to prevent any of its flags from interfering in the plugin code: let s:save_cpo = &cpo set cpo&vim ... let &cpo = s:save_cpo unlet s:save_cpo I don't want this boilerplate, so I'm going to do what Tim Pope's modules seem to, and just have the plugin refuse to do a single thing if 'compatible' is set.
2017-11-04Adjust plugin code layout a lotTom Ryder1-2/+6
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-04Rename toggle plugin again, use commands not funcsTom Ryder1-51/+0
This method makes a bit more sense, and amounts to slightly less verbose mapping commands. It does really on the +user_commands feature being available, however.
2017-11-04Use same comment boilerplate for custom pluginsTom Ryder1-2/+8
A brief explanation, an author name, and the license should do fine.
2017-11-04Rename and refactor option toggle pluginTom Ryder1-46/+43
Renamed to flag_toggle.vim and placed in autoload using the namespaced autoload function syntax. I'm not sure this is the right approach yet, but I seem to pretty rarely use a Vim earlier than 7.1 these days.
2017-11-04Don't suggest mappings in Vim plugin commentsTom Ryder1-0/+54
Pretty useless, really.
2017-11-04Move Vim background detection logic into pluginTom Ryder1-0/+18
2014-09-28Use install(1) rather than symlinkingTom Ryder1-1/+0
2012-01-30Used direct symlink instead of linking directory.Tom Ryder2-1/+1
2012-01-19Added Pathogen back in again.Tom Ryder1-0/+1
2011-11-28Gotta be honest with myself, just not using these plugins. Don't really need ↵Tom Ryder1-233/+0
2011-09-07Upgraded pathogenTom Ryder1-9/+100
2011-04-12Adding Pathogen file.Tom Ryder1-0/+142