aboutsummaryrefslogtreecommitdiff
path: root/vim/after
Commit message (Collapse)AuthorAgeFilesLines
...
* Disable unwanted shell error syntax for any shellTom Ryder2017-11-081-12/+7
|
* Use sh.vim local vars not global POSIX hacksTom Ryder2017-11-081-7/+9
| | | | | | | | | | | | | | | | | | | Rather than setting g:is_posix and working around core syntax/sh.vim's ideas about Korn and POSIX shells, forego sh.vim's efforts to guess what shell the system /bin/sh is entirely. It's irrelevant to me anyway, since I'll often be writing shell scripts to run on an entirely different system. Instead, if we have a #!/bin/sh shebang reflected in the b:is_sh variable set by core filetype.vim, and we don't have any other buffer-level indication of what shell this is, assume it's POSIX, because I very rarely write Bourne. Then, after the syntax file is loaded, clear away all but one of the resulting b:is_* variables. I have a feeling this is going to end with me re-implementing this syntax file, possibly as separate sh.vim, bash.vim, and ksh.vim files.
* Correct variable name in commentTom Ryder2017-11-011-3/+2
| | | | | | This was unintentionally committed in e36efd4. The correct name of the variable is b:is_ksh. b:is_kornshell_proper was a rejected first revision of the name.
* Remove extraneous spacing between wordsTom Ryder2017-11-011-1/+1
| | | | No functional effect.
* Rearrange and better explain ksh syntax workaroundTom Ryder2017-10-301-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Move the rule setting the custom b:is_ksh variable used for this workaround (established in 52615f6) into an ftplugin file, rather than into ftdetect; the latter seems a much more appropriate place since by this point we've definitely decided the file type is "sh". From the revised comment in this changeset: >Setting g:is_posix above also prompts Vim's core syntax/sh.vim script >to set g:is_kornshell and thereby b:is_kornshell to the same value as >g:is_posix. > >That's very confusing, so before it happens we'll copy b:is_kornshell's >value as determined by filetype.vim and ~/.vim/ftdetect/sh.vim into a >custom variable b:is_ksh, before its meaning gets confused. > >b:is_ksh as a name is more inline with b:is_bash and b:is_sh, anyway, >so we'll just treat b:is_kornshell like it's both misnamed and broken. > >We can then switch on our custom variable in ~/.vim/after/syntax/sh.vim >to apply settings that actually *are* unique to Korn shell and its >derivatives.
* Correct a path in vim/after/syntax/sh.vimTom Ryder2017-10-301-3/+2
| | | | | This and the other files in the now-removed vim/after/ftdetect directory were moved to vim/ftdetect in f8af47b.
* Move vim/after/ftplugin files into vim/ftpluginTom Ryder2017-10-305-34/+0
| | | | | | | | | 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.
* Set whitespace options for VimL locallyTom Ryder2017-10-301-3/+3
| | | | | | Setting these options globally is probably what's been causing me to get so confused by my indentation level changing to zero when editing other files in the same Vim instance as a VimL file. This should correct it.
* Move PHP indent nixing into ~/.vim/indentTom Ryder2017-10-301-4/+0
| | | | | | | | | This method short-circuits the unwanted PHP expression-based indenting configuration completely, rather than running it all and then undoing it after the fact. This involves creating a new direction ~/.vim/indent, and a Makefile target install-vim-indent to copy everything into it.
* Move vim/after/ftdetect to vim/ftdetectTom Ryder2017-10-303-49/+0
| | | | | | | | | There's no particular reason to run these file detection rules after the plugins have run, so we'll put them in a more expected directory. I've created a new Makefile target to install this, `install-vim-ftdetect`, which is included as a prerequisite of the `install-vim` target.
* Move netrw.vim "after" script to plain configTom Ryder2017-10-301-11/+0
| | | | | | | | | | There's no particular need to set these options after netrw has loaded; they can be set before it's loaded, and the plugin will still observe them. This empties the vim/after/plugin directory. It doesn't need to be removed from the Makefile as there are no references to it; it was installed by a glob cp(1).
* More generic Mutt configurationTom Ryder2017-01-281-0/+12
| | | | | Remove some person and system specific stuff, including my signature; nothing complex about that, after all.
* Add syntax detection for xresources subfilesTom Ryder2017-01-091-0/+6
|
* Complete a commentTom Ryder2016-12-281-1/+1
|
* Rename all pdksh stuff to kshTom Ryder2016-12-171-1/+1
| | | | As part of a foray into more active use of ksh and derivatives.
* Remove unused nwatch diff filetyperTom Ryder2016-12-111-4/+0
|
* Wrap sh autocmds in a group to be politeTom Ryder2016-12-111-23/+28
|
* Wrap b:is_ksh hack in an autocmdTom Ryder2016-12-111-3/+5
| | | | So that it actually runs at the right time ...
* Still untangling the shell highlighting messTom Ryder2016-12-113-12/+111
|
* Disable sh error syntax highlighting for nowTom Ryder2016-12-111-0/+5
| | | | | Until I can figure out what's wrong with this syntax, or why the syntax highlighter thinks it's an error
* Set buffer type (not global type) for sh properlyTom Ryder2016-12-112-6/+9
|
* Make POSIX default for shell more specificTom Ryder2016-12-111-2/+4
|
* Adjust shell type detection rulesTom Ryder2016-12-111-23/+9
|
* Reset most of my sh.vim customizationsTom Ryder2016-12-112-81/+0
| | | | | | There's been a lot of work done to sh.vim since these customisations were made, and I can't remember why I made some of them. I'll work without them for a while and reapply any of them if needed.
* Set ~/.shrc as a shell scriptTom Ryder2016-08-311-0/+5
|
* Put dotfiles manuals into their own sectionTom Ryder2016-08-261-1/+1
| | | | This probably contains a few mistakes
* Assume POSIX shTom Ryder2016-08-201-0/+3
|
* Remove mail syntax after file for VimTom Ryder2016-03-311-10/+0
| | | | Turned out to be a bad idea.
* Remove blank lines at end of filesTom Ryder2016-03-2814-14/+0
|
* Refactor ed() wrapper, add rlwrap(1)Tom Ryder2016-03-161-0/+11
|
* Consistent quotingTom Ryder2015-10-211-1/+1
|
* Consistent commentsTom Ryder2015-10-211-2/+2
|
* Stop highlighting syslog errorsTom Ryder2015-07-271-0/+4
|
* Use surround commands to get current wordTom Ryder2015-06-171-1/+1
|
* Add tidy(1) function with \vTom Ryder2015-06-171-0/+3
|
* Add a function to make quick linksTom Ryder2015-06-171-0/+9
|
* Some new sh/bash detection rulesTom Ryder2015-06-101-3/+14
|
* Add a few missing Bash keywordsTom Ryder2015-06-041-0/+3
|
* Move syntax rules from sahara.vim to .vim/afterTom Ryder2015-06-042-0/+7
|
* Add han(1)Tom Ryder2015-05-211-0/+5
|
* Move netrw settings into after scriptTom Ryder2015-01-201-0/+12
|
* Safer syntax for command callsTom Ryder2015-01-151-6/+4
|
* Some Perl shortcuts I use oftenTom Ryder2015-01-151-0/+9
|
* Discard PHP's indentingTom Ryder2015-01-151-0/+5
| | | | | | | It keeps doing things I don't expect, and the code looks hard to change. autoindent should do the job. I might have a go at writing my own later to handle obvious cases like an opening brace or case statement on the previous line.
* No more auto-wrappingTom Ryder2014-12-032-6/+0
| | | | Annoys me more often than it helps
* Shell script syntax for /etc/default/*Tom Ryder2014-11-271-0/+5
|
* Whoops, missed a barTom Ryder2014-11-181-1/+1
|
* Type edited shell commands (^X^E, fc)Tom Ryder2014-11-171-0/+6
|
* Filetype for nwatch diffsTom Ryder2014-11-171-0/+5
|
* Update file detection rulesTom Ryder2014-11-031-2/+2
|