aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Git commit cursor column with snip lineTom Ryder2018-07-231-10/+11
|
* Don't quote first and last lines of range if blankTom Ryder2018-07-171-1/+8
| | | | | This allows quoting paragraphs and blocks using { } and similar motions, doing what I mean.
* Add reformatting analogue to quote mappingsTom Ryder2018-07-161-0/+12
|
* Adaptive 'colorcolumn' for gitcommit filetypeTom Ryder2018-07-141-0/+20
|
* Expand and comment quoting functionsTom Ryder2018-07-141-2/+21
|
* Change mail quoting to generic autoload functionTom Ryder2018-07-142-11/+11
| | | | I intend to use it elsewhere.
* Replace mail.vim quoting mappingsTom Ryder2018-07-131-0/+11
|
* Remove session_lazy.vimTom Ryder2018-07-101-25/+0
| | | | | I think this is the wrong approach, and maybe even a slight security risk.
* Add session_lazy.vim pluginTom Ryder2018-07-101-0/+25
| | | | | | | Mostly to properly tie down the way I want sessions to behave while I write my book. No documentation yet!
* Overhaul ftplugin check, lint, tidyTom Ryder2018-07-093-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
* Move shebang updating into filetype.vimTom Ryder2018-07-081-7/+0
| | | | Much more logical location.
* Add shebang_update.vim pluginTom Ryder2018-07-051-0/+7
| | | | | This plugin updates the filetype after every insert operation that changes the first line. No documentation yet.
* Spin off Vim Perl version bump into ftpluginTom Ryder2018-07-041-45/+0
|
* Have Vim Perl major version bump map reset minorTom Ryder2018-07-041-5/+5
|
* Rewrite Perl version-number bump Vim funcsTom Ryder2018-07-041-9/+26
|
* Add _v/_V Vim maps for Perl version bumpsTom Ryder2018-07-031-0/+28
|
* Merge HTML timestamp into after/ftplugin/html.vimTom Ryder2018-07-012-15/+17
| | | | | I don't see myself breaking this out into its own ftplugin, and the Makefile can be simpler this way.
* Add new html/timestamp.vim ftpluginTom Ryder2018-07-011-0/+15
| | | | | Not sure if this one will get published--it's a bit ad-hoc in its current state.
* Refactor ftplugins into single filesTom Ryder2018-06-301-0/+15
| | | | Each thereby effectively becomes its own .vimrc for that type.
* Remove stray vim/autoload/vimrc.vim fileTom Ryder2018-06-301-39/+0
|
* Clear local leader maps on filetype changeTom Ryder2018-06-251-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.
* Add missing !Tom Ryder2018-06-171-1/+1
|
* Use autoload function for tidy filtersTom Ryder2018-06-171-0/+7
|
* Refine compiler#Make() functionTom Ryder2018-06-171-1/+23
|
* Use autoload function for temp-makeprg :lmakeTom Ryder2018-06-171-0/+11
|
* Move markdown_autoformat.vim funcs back to localTom Ryder2018-06-041-63/+0
| | | | No advantage to making them autoload
* Use heuristics on Markdown to guess autoformatTom Ryder2018-06-041-0/+24
|
* Refactor suspend_autoformat.vim, add autoloadTom Ryder2018-06-041-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.
* Junk detect_background.vim and thereby autoloadTom Ryder2018-05-311-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.
* Join short-circuit line in detect_background.vimTom Ryder2018-01-211-2/+1
| | | | | This makes the block work correctly when 'compatible' is set and 'C' is in 'cpoptions'.
* Don't use VimL ==# for number comparisonsTom Ryder2017-11-061-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.
* Make background detection return not set valueTom Ryder2017-11-061-2/+5
| | | | This approach allows more flexibility from the caller's side.
* Add 'abort' attribute to autoload functionTom Ryder2017-11-051-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.
* Add short-circuit boilerplate to pluginsTom Ryder2017-11-041-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.
* Adjust plugin code layout a lotTom Ryder2017-11-041-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.
* Rename toggle plugin again, use commands not funcsTom Ryder2017-11-041-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.
* Use same comment boilerplate for custom pluginsTom Ryder2017-11-041-2/+8
| | | | A brief explanation, an author name, and the license should do fine.
* Rename and refactor option toggle pluginTom Ryder2017-11-041-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.
* Don't suggest mappings in Vim plugin commentsTom Ryder2017-11-041-0/+54
| | | | Pretty useless, really.
* Move Vim background detection logic into pluginTom Ryder2017-11-041-0/+18
|
* Use install(1) rather than symlinkingTom Ryder2014-09-281-1/+0
|
* Used direct symlink instead of linking directory.Tom Ryder2012-01-302-1/+1
|
* Added Pathogen back in again.Tom Ryder2012-01-191-0/+1
|
* Gotta be honest with myself, just not using these plugins. Don't really need ↵Tom Ryder2011-11-281-233/+0
| | | | Pathogen.
* Upgraded pathogenTom Ryder2011-09-071-9/+100
|
* Adding Pathogen file.Tom Ryder2011-04-121-0/+142