aboutsummaryrefslogtreecommitdiffstats
path: root/bundle
AgeCommit message (Collapse)Author
2023-11-06bundle/prr: Use stock diff highlightingTeddy Wing
Change the diff highlighting to use the groups in: PREFIX/share/vim/vim90/syntax/diff.vim This way, the diff colours look like normal diffs.
2023-11-06Add 'prr' plugin @ 9b44c3f2d4b79013a00aae82cb59fe63306967caTeddy Wing
Provides syntax highlighting for Prr code review files. This code was copied from the 'prr' repository (https://github.com/danobi/prr/) at commit 9b44c3f2d4b79013a00aae82cb59fe63306967ca (https://github.com/danobi/prr/commit/9b44c3f2d4b79013a00aae82cb59fe63306967ca). The Vim plugin lives in a subdirectory of the 'prr' repository, which made it tricky to include as a submodule. I added GPLv2 license headers based on the license of the Prr project, however the Vim code seems to indicate it was based on Vim-licensed code, so I'm not clear on what the actual license is supposed to be. I'm assuming it's GPL.
2023-08-09projects/aodocs.vim: Move 'wchat' plugin here and change file pathTeddy Wing
I only use this command in an AODocs context. Today, I decided to change the path where these temporary files are saved. Since the path now uses a project-specific path variable, it made sense to move the command into the project file.
2023-06-14git-blamer: Restore &wrap setting on closeTeddy Wing
When the blame window is closed, ensure the wrap setting is restored. Not sure where `l:wrap` came from, maybe just an oversight on my part.
2023-03-19insert-layout: Don't load in Vim <9Teddy Wing
Since this plugin is written in Vim9script, it won't work in any earlier version. Add a guard to prevent the plugin from loading in earlier Vim versions.
2023-03-19insert-layout: Add comments for documentationTeddy Wing
2023-03-19insert-layout: Move functions to autoloadTeddy Wing
Clean up the plugin file and move the bulk of the work to autoload.
2023-03-19insert-layout: Remove old commented in-progress codeTeddy Wing
2023-03-19insert-layout: Error when 'xkbswitch' command not availableTeddy Wing
If the 'xkbswitch' command isn't available, we shouldn't be adding any autocmds.
2023-03-19insert-layout: Don't remove autocmds in `InsertLayoutOn`Teddy Wing
I assumed that I should be removing existing autocmds before adding new ones. If you ran the `:InsertLayout` command more than once, I didn't want old autocmds to stick around. The line was commented out because it fails on the first call to `:InsertLayout`, since at that point the `insert_layout` augroup doesn't exist. On closer inspection, however, it turns out that the old autocmds are not retained when running `:InsertLayout` subsequent times. Rather, the newly-defined ones are overwriting the old ones. So we don't need to worry about removing the old autocmds before adding new ones.
2023-03-19insert-layout: Add completion to `InsertLayout` commandTeddy Wing
This allows us to complete the command's keyboard layout identifier making it easier to select one.
2023-03-19insert-layout: Add commands to turn insert layout on and offTeddy Wing
Add two new commands, `InsertLayout` and `InsertLayoutOff`, which allow us to activate a different keyboard layout for insert mode and restore the previous layout when leaving insert wode. Works reasonably well, but needs a bit of cleaning up now.
2023-03-19Add 'insert-layout' plugin ideaTeddy Wing
This uses `xkbswitch` to change keyboard layouts on insert enter and leave. For now it's only a proof of concept. The plan is to make an `:InsertLayout` command that takes an argument defining the keyboard layout to use in insert mode. When returning to normal mode, it should switch back to the previous layout. This uses https://github.com/myshov/xkbswitch-macosx/.
2023-03-09Add 'vim-mutt-aliases' pluginTeddy Wing
Easily complete email addresses from the Mutt aliases file when composing an email message.
2022-11-09Add 'wchat' pluginTeddy Wing
Add a new `:WChat` command to quickly save temporary files based on a timestamp. I've been doing this manually to write chat messages but it occurred to me that it would be nice to save a bit of thought and effort for this.
2022-08-20Update 'vim-go' to latest (b524371788bcdd87215c6e59ca4b2853553077a4)Teddy Wing
I needed to run `:GoInstallBinaries`, but this failed as I'm using Go 1.18, and the version of Vim-Go I was using installed binaries with `go get` instead of the new `go install`. This was updated and fixed in 359230b942b3aba79d011aa446bfcf70c12bc217.
2022-06-01Add 'context.vim' pluginTeddy Wing
Shows code context including the enclosing function, class, namespace, etc.
2022-05-26macports-checksums: Add `b:undo_ftplugin`Teddy Wing
2022-05-26Add 'macports-checksums' pluginTeddy Wing
A new command that appends MacPorts checksums for a given file.
2022-05-24Add 'paredit' pluginTeddy Wing
Make Common Lisp development more fluid.
2022-05-22godoc: Clear `goRawString` syntax groupTeddy Wing
2022-05-11Add 'godoc' pluginTeddy Wing
Create a new 'godoc' filetype that highlights the same as 'go' except without the character group. This makes Go docs produced by the `go doc` command more readable.
2022-05-07Update 'vlime' to latest (3205f02306314ab8cfc9034cf72097891c923e9d)Teddy Wing
I had a problem loading the SWANK server so I thought a plugin update might fix it. Turns out it was an unrelated path override problem causing an old Slime/Swank version to be loaded.
2021-11-15Update 'vim-twodo' to v0.2.0Teddy Wing
Adds new motion bindings.
2021-10-06Create 'date' pluginTeddy Wing
Add a command to insert the current date after point. Saves me a bit of typing, as well as effort remembering the current date.
2021-10-06Add 'vim-git-todo' pluginTeddy Wing
I've been using this locally on one machine since I finished writing the plugin, but apparently forgot to add it to my .vim.
2021-09-05Add 'mpvim' plugin @ 513c455d5a902fff2b38edf86abc15c36688bf85Teddy Wing
Provides syntax highlighting for MacPorts Portfiles. This code was copied from the 'macports-contrib' repository (https://github.com/macports/macports-contrib) at commit 513c455d5a902fff2b38edf86abc15c36688bf85 (https://github.com/macports/macports-contrib/tree/513c455d5a902fff2b38edf86abc15c36688bf85). The Vim plugin lives in a subdirectory of the 'macports-contrib' repository, so I'd have to include a whole mess of files that don't relate to Vim if I wanted to add the plugin as a submodule. I'd just as soon not have to copy the files into my repository tree like this, but it's better than adding a non-Vim submodule. Assuming it's okay to add these files to my repository, as the port file for this plugin describes it as being BSD licensed: https://github.com/macports/macports-ports/blob/12d7b1597bef875058758c9c587b7593f39a5af1/editors/mpvim/Portfile Unfortunately, there's no BSD license or copyright notice included in the plugin code. But I'm going to assume I'm allowed to redistribute it.
2021-01-26Add 'vlime' pluginTeddy Wing
Use Vlime instead of Slimv for a Common Lisp environment.
2021-01-26Remove 'slimv' pluginTeddy Wing
Haven't been using this plugin. Recently started a Common Lisp project, but am going to use Vlime instead, which seems to integrate better with user configuration.
2021-01-26git-blamer: Add `-M` flag to `git-blame` callTeddy Wing
Don't change the author for moved lines.
2020-10-21Add 'buffer-delete' pluginTeddy Wing
I was having trouble with slow `<C-p>` completion, and figured out it was due to the fact that I had about 300 buffers open. Many of these buffers weren't being actively used, and were just loaded in from Vim sessions past. When I removed the unloaded buffers, completion sped up like a whistle. Thanks to 'sidyll' (https://stackoverflow.com/users/557306/sidyll) on Stack Overflow for explaining how to get "all" buffer numbers (or at least all possible buffer numbers up to the highest one open), as well as the filtering logic: https://stackoverflow.com/questions/17931507/vimscript-number-of-listed-buffers/17933352#17933352 I leveraged the above to get the buffer numbers of all unloaded buffers, then delete the buffers by number. It was originally a temporary command-mode line, but I decided it could be beneficial to save the code just in case I need it again.
2020-10-04Update 'vim-grappele' to v0.3.0Teddy Wing
Adds operator-pending and visual mode mappings.
2020-06-15Add 'vim-tbuffer' pluginTeddy Wing
2020-05-08Add 'typescript-vim' pluginTeddy Wing
The JavaScript plugin I'm using does an okay job syntax highlighting TypeScript, but some identifiers don't get highlighted. Now that I'm doing a project in TypeScript, it's nice to have everything highlighted correctly.
2020-04-15Add 'vim-table-mode' pluginTeddy Wing
Makes it easier to reformat plain text tables.
2020-04-15Add 'vim-textobj-quote' pluginTeddy Wing
Make it easier to write with typographers' quotes. Depends on 'vim-textobj-user'.
2020-03-25todo: Rename plugin to 'todo-comments'Teddy Wing
This plugin (specifically the `autoload/todo.vim` file) was colliding with the 'vim-twodo' plugin, which uses the same file name. Rename this plugin to prevent name conflicts.
2020-03-24Update 'vim-twodo' to v0.1.1Teddy Wing
Includes fixes and useful new features.
2020-03-24git-shortcuts: Move to the previous commit if on a "commit" lineTeddy Wing
Previously, if the cursor was on a commit line and not at the start of the line, the `[[` command would move to the start of the current line: commit 7a06e3db5d7a47a05558dd6557f23e665cc26c39 ^ *[[* commit 7a06e3db5d7a47a05558dd6557f23e665cc26c39 ^ This change causes the cursor to move correctly to the previous commit.
2020-03-12todo: Add count support to TODO movement commandsTeddy Wing
2020-03-12todo: Silence mappingsTeddy Wing
2020-03-12todo: Add `<Plug>` mappingsTeddy Wing
2020-03-12todo: Add load guardTeddy Wing
2020-03-12todo: Move functions to autoloadTeddy Wing
2020-03-12Add 'todo' pluginTeddy Wing
Add a plugin with mappings to move to the next and previous TODO. Needs some cleanup and count support.
2020-02-12Update 'vim-go' to latest (b3c3b6585)Teddy Wing
This includes a change that allows `gopls` to be disabled: https://github.com/fatih/vim-go/commit/e3a0e1ead2c14aa27d1d34950c0c43a7b296e368
2020-02-12Add 'searchop' pluginTeddy Wing
2019-12-15Add 'nohai' pluginTeddy Wing
2019-12-13cmd-escape: Make the plugin code more robustTeddy Wing
* Move functions into autoload * Remove unused `s:Activate()` and `s:Deactivate()`. These were development ideas. * Add a load guard
2019-12-13Add 'cmd-escape' plugin ideaTeddy Wing
A mapping that toggles <Space> to insert '\ ', automatically escaping spaces when entering file names (such as when creating files with spaces in their names). Working, but I now need to clean up the code.