path: root/vim/autoload
AgeCommit message (Collapse)AuthorFilesLines
2018-07-17Don't quote first and last lines of range if blankTom Ryder1-1/+8
This allows quoting paragraphs and blocks using { } and similar motions, doing what I mean.
2018-07-16Add reformatting analogue to quote mappingsTom Ryder1-0/+12
2018-07-14Adaptive 'colorcolumn' for gitcommit filetypeTom Ryder1-0/+20
2018-07-14Expand and comment quoting functionsTom Ryder1-2/+21
2018-07-14Change mail quoting to generic autoload functionTom Ryder2-11/+11
I intend to use it elsewhere.
2018-07-13Replace mail.vim quoting mappingsTom Ryder1-0/+11
2018-07-10Remove session_lazy.vimTom Ryder1-25/+0
I think this is the wrong approach, and maybe even a slight security risk.
2018-07-10Add session_lazy.vim pluginTom Ryder1-0/+25
Mostly to properly tie down the way I want sessions to behave while I write my book. No documentation yet!
2018-07-09Overhaul ftplugin check, lint, tidyTom Ryder3-40/+6
- Set 'equalprg' for HTML and Perl - Discard filter#Stable() - Set default :compiler for all applicable filetypes - Change local leader mappings for Perl and shell script merely to set :compiler, rather than running it - Bind global leader mapping for running :lmake! - Bind global leader mappings for applying 'equalprg' and 'formatprg' to the whole buffer, using a new autoloaded helper function vimrc#Anchor() to avoid the cursor jumping around
2018-07-08Move shebang updating into filetype.vimTom Ryder1-7/+0
Much more logical location.
2018-07-05Add shebang_update.vim pluginTom Ryder1-0/+7
This plugin updates the filetype after every insert operation that changes the first line. No documentation yet.
2018-07-04Spin off Vim Perl version bump into ftpluginTom Ryder1-45/+0
2018-07-04Have Vim Perl major version bump map reset minorTom Ryder1-5/+5
2018-07-04Rewrite Perl version-number bump Vim funcsTom Ryder1-9/+26
2018-07-03Add _v/_V Vim maps for Perl version bumpsTom Ryder1-0/+28
2018-07-01Merge HTML timestamp into after/ftplugin/html.vimTom Ryder2-15/+17
I don't see myself breaking this out into its own ftplugin, and the Makefile can be simpler this way.
2018-07-01Add new html/timestamp.vim ftpluginTom Ryder1-0/+15
Not sure if this one will get published--it's a bit ad-hoc in its current state.
2018-06-30Refactor ftplugins into single filesTom Ryder1-0/+15
Each thereby effectively becomes its own .vimrc for that type.
2018-06-30Remove stray vim/autoload/vimrc.vim fileTom Ryder1-39/+0
2018-06-25Clear local leader maps on filetype changeTom Ryder1-0/+39
Iterate through all the buffer-local mappings each time the filetype changes, and clear any that begin with the local leader, using two autoloaded functions and one autoload variable for :redir. I really don't think it should be this hard. I hope I haven't missed something in the documentation that makes this easier. I thought maparg() or mapcheck() might do it, but no such luck. Maybe I can refactor this later.
2018-06-17Add missing !Tom Ryder1-1/+1
2018-06-17Use autoload function for tidy filtersTom Ryder1-0/+7
2018-06-17Refine compiler#Make() functionTom Ryder1-1/+23
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