aboutsummaryrefslogtreecommitdiff
path: root/vim
Commit message (Collapse)AuthorAgeFilesLines
* Add `abort` attribute to new autoload functionTom Ryder2018-11-301-1/+1
|
* Remove stray pipe from b:undo_indent settingTom Ryder2018-11-301-1/+1
|
* Remove pre-7.0 Vim handling/boilerplateTom Ryder2018-11-302-43/+30
|
* Update make_target.vim to v1.2.0Tom Ryder2018-11-301-0/+0
|
* Comment conditional set of <Plug>(InsertCancel)Tom Ryder2018-11-301-1/+1
|
* Require Vim 7 for filetype and syntax highlightsTom Ryder2018-11-303-13/+5
| | | | | | It's time! The rest of the vimrc can probably be allowed to load, though.
* Simplify a load guard for sh.vim syntax tweaksTom Ryder2018-11-291-3/+2
|
* Clear away a flag after HTML indent loadTom Ryder2018-11-291-0/+3
|
* Remove some Vim syntax boilerplateTom Ryder2018-11-293-18/+0
|
* Pare down after/indent scripts a fair bitTom Ryder2018-11-294-34/+5
| | | | | More overzealous undo-setting. I should wait until it becomes an actual issue.
* Remove some overzealous b:undo_* settingTom Ryder2018-11-292-23/+0
| | | | | It's not that these shouldn't be set, it's more that it's the wrong place to do it, especially before they've caused any actual problems.
* Add missing detail to a commentTom Ryder2018-11-291-1/+1
|
* Remove double-key mapping shortcutsTom Ryder2018-11-294-14/+0
| | | | | I never use these anyway; I'm firmly in the habit of using underscores to represent the current line these days.
* Remove boilerplate after/ftplugin load guardsTom Ryder2018-11-2913-62/+2
| | | | | | | | I'm likely going to move away from Vim 6.0 support, at least for all of this filetype stuff. We will keep the one filetype load guard we actually need, which is the HTML one, to stop plugins like markdown.vim from loading it.
* Simplify after/ftplugin for CTom Ryder2018-11-292-26/+3
| | | | | Allow the cpp plugin to load this, since it's the same anyway, and push all the undo stuff together.
* Set b:did_ftplugin flag in Vim ftpluginsTom Ryder2018-11-296-0/+6
|
* Adjust a vimrc comment for clarityTom Ryder2018-11-291-3/+3
|
* Simplify ft=sh subtype flag clearingTom Ryder2018-11-291-8/+3
| | | | | | These flags are also set and examined by the stock syntax for the "sh" filetype, so checking for whether they're set at runtime for the ftplugin just confuses things. Just clear them unconditionally instead.
* Add dummy function for HTML omnicompletionTom Ryder2018-11-291-0/+5
| | | | | | | The function invoked to detect the HTML type for omnicompletion is pretty big, sets a few buffer variables that it doesn't arrange to clear, and I don't use it at all. Loading a dummy function in its place seems to be better.
* Clear away stock ft=mail quoting mapsTom Ryder2018-11-291-0/+7
|
* Wrap autocmd! clear for ft=mail in :executeTom Ryder2018-11-291-2/+2
| | | | See commit 0748687.
* Add timestamp augroup clearing to Vim ft=htmlTom Ryder2018-11-291-0/+1
|
* Abbreviate Vim ft=html autocmd clearingTom Ryder2018-11-291-1/+1
|
* Restore value of 'colorcolumn' after ft=gitcommitTom Ryder2018-11-291-0/+1
|
* Wrap Vim gitcommit autocmd clear in :executeTom Ryder2018-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | Noticed that my b:undo_ftplugin script for this filetype was only getting halfway through its work, and stopping at this command. From `:help autocmd`: > Note: The ":autocmd" command can only be followed by another command when the > '|' appears before {cmd}. This works: > :augroup mine | au! BufRead | augroup END > But this sees "augroup" as part of the defined command: > :augroup mine | au! BufRead * | augroup END > :augroup mine | au BufRead * set tw=70 | augroup END > Instead you can put the group name into the command: > :au! mine BufRead * > :au mine BufRead * set tw=70 > Or use :execute: > :augroup mine | exe "au! BufRead *" | augroup END > :augroup mine | exe "au BufRead * set tw=70" | augroup END
* Correct indentation in a few vim/after scriptsTom Ryder2018-11-263-15/+15
|
* Move b:undo_ftplugin unsets for C inline with setsTom Ryder2018-11-262-4/+6
|
* Remove vim-tiny workaround for 'undodir' settingTom Ryder2018-11-251-2/+2
| | | | | | | | | | | | | | Commit 575f00d changed the setting for 'undodir' and similar path-based settings to set the values conditionally based on the operating system being used, while still setting them sensibly for "tiny" builds of Vim on Unix, which skips all :if blocks. This isn't necessary for 'undodir', because a tiny build of Vim won't have the persistent_undo feature required for the option to exist at all, so we can make this particular setting a little less awkward. The 'backupdir' and 'directory' settings, however, need to keep their existing structure to remain interoperable.
* Define b:undo_indent for Perl buffersTom Ryder2018-11-251-0/+9
| | | | This should probably be pushed upstream.
* Set missing b:undo_indent instructions for AWKTom Ryder2018-11-251-0/+7
| | | | | Switching filetypes from "awk" to another type doesn't load the indentation of the new type, due to the absence of this setting.
* Undo shell script dialect flags from filetype.vimTom Ryder2018-11-251-0/+10
| | | | | These local buffer variable flags weren't being cleared correctly on a filetype change.
* Correct RHS of (un)important mail ftplugin mapTom Ryder2018-11-231-2/+2
| | | | | | | | | | | | | This resolves the issue raised in f1b6f3b, where the mappings did not work if the cursor was on the first line. I had the colon `:` that starts the `ex` command and the `<C-U>` that clears any existing command around the wrong way. Because CTRL-U in normal mode scrolls up, it fails if we're already on the top line, and the rest of the mapping looks to be skipped. There don't seem to be any other instances of the same error that I can find.
* Remove font settingsTom Ryder2018-11-221-7/+0
| | | | | | I'm pretty tired of messing with all these. The defaults are fine, and render nice and quickly; it's just too much of a hassle making it all pixel-perfect, and the anti-aliasing is so often just rubbish.
* Make more of an effort with sudoedit(8) stripsTom Ryder2018-11-221-8/+44
| | | | | | | | | | | | | | Handle both kinds of templated temporary files produced by sudoedit(8): * /var/tmp/foo.XXXXXXXX * /var/tmp/fooXXXXXXXX.bar This means that editing /etc/resolv.conf now highlights correctly, having also in this commit moved the sudo detection to *before* the .conf fallback. The hardcoded temporary path for finding the files probably needs to be either determined at runtime or made configurable by the user.
* Add resolv.conf Vim filetype detectionTom Ryder2018-11-221-0/+4
|
* Add hostconf Vim filetype detection for hosts(5)Tom Ryder2018-11-221-0/+4
|
* Restore 'visualbell' Vim settingTom Ryder2018-11-211-0/+3
| | | | | | Commit 35ba8df removed this, but the bell still rings on a TTY and in an X terminal outside of tmux. I didn't notice because the machine I was using doesn't have a PC speaker.
* Add Bash settings to Vim readline highlightingTom Ryder2018-11-162-0/+5
| | | | | This includes the creation of a hitherto-unneeded Makefile target install-vim-syntax.
* Add missing left angle bracket to filetype undoTom Ryder2018-11-141-1/+1
|
* Ignore unset variables in sh.vim clear scriptTom Ryder2018-11-011-1/+1
| | | | | | | | | Error message is: Error detected while processing /home/tom/.vim/after/syntax/sh.vim: line 10: E108: No such variable: "g:is_kornshell" Press ENTER or type command to continue
* Revert "Replace paste_open.vim with paste_hook....Tom Ryder2018-09-142-50/+3
| | | | | | | This reverts commit dce5abc0724428f805562dd32bf9a71677d55aaa. On review, paste_open is good enough. I can always dig this back up again if I need to.
* Replace paste_open.vim with paste_hook.vimTom Ryder2018-09-122-3/+50
| | | | Still a little experimental; no documentation (or distribution) yet.
* Correct &laststatus default value testTom Ryder2018-09-091-1/+1
|
* Update cursorline_current.vim pluginTom Ryder2018-09-091-0/+0
|
* Unset 'laststatus' and 'ruler' only if they're setTom Ryder2018-09-071-2/+6
|
* Specify object type in commentsTom Ryder2018-09-071-2/+2
|
* Add "whole buffer" object an experimentTom Ryder2018-09-071-0/+3
|
* Update cursorline_current.vim pluginTom Ryder2018-09-051-0/+0
|
* Update vertical_region.vim pluginTom Ryder2018-09-051-0/+0
|
* Scrap the nvim.vim runtime includeTom Ryder2018-09-052-12/+9
| | | | | It's overkill; just add comments explaining why we're setting what the Vim default is.