aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-11-30prr-ui: Educate quotes in prr buffersTeddy Wing
2023-11-30prr-ui: Move to top of file on `PrrApprove` and `PrrReject`Teddy Wing
This puts the cursor in the correct position to quickly add a top-level review comment.
2023-11-27prr-ui: Add `PrrApprove` and `PrrReject` commandsTeddy Wing
Add commands to quickly approve or reject a pull request.
2023-11-27Add 'vim-fugitive' pluginTeddy Wing
Adding the plugin for real. It's been indispensable for code review.
2023-11-27Add 'prr-ui' pluginTeddy Wing
Make a plugin to facilitate Prr code reviews from within Vim.
2023-11-06projects/aodocs.vim: Set 'path' on Smartbar projectTeddy Wing
Enable `gf`.
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-06ftplugin/typescript.vim: Add 'prettier' formattingTeddy Wing
Set up formatting for the current buffer using 'prettier'.
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-09-25vimrc: Only turn on 'smoothscroll' if it's availableTeddy Wing
Keep supporting older versions of Vim.
2023-09-25vimrc: Turn on 'smoothscroll'Teddy Wing
I learned about this recently. According to https://vi.stackexchange.com/questions/11315/visual-scrolling-visual-c-e-and-c-y-across-wrapped-lines/42278#42278 it was added in Vim 9.0.0640. This allows scrolling within a soft-wrapped line, useful for writing prose, and very useful for reading files consisting of a single line, like a big JSON file or minified HTML.
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-08-03ftplugin/python.vim: Use consistent debugger mappingsTeddy Wing
I added these mappings before I developed a set of consistent cross-language build, test, etc. mappings. Re-use the mappings I came up with for adding a debugger line in Ruby. These are much easier to type than the current Leader commands.
2023-07-18ftplugin/ocaml.vim: Add `dune promote` bindingTeddy Wing
2023-07-18ftplugin/ocaml.vim: Add test bindingTeddy Wing
2023-07-18ftplugin/ocaml.vim: Add build and run mappingsTeddy Wing
2023-07-18ftplugin/ocaml.vim: Add indentation settingsTeddy Wing
All the OCaml code I've read so far uses two-space indentation.
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-04-25ftplugin/java.vim: Set TComment commentstring to '// %s'Teddy Wing
By default it's '/* %s */' which I don't like for line comments.
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-24vimrc: Turn off Vim-Go goimports on saveTeddy Wing
The new version of Vim-Go that I upgraded to added a new auto-format on save hook that runs goimports. Turn if off like we did with its automatic gofmt.
2022-08-20vimrc: Add `:Co` command, alias for `:Copy`Teddy Wing
I use this command frequently, and `:Copy` used to tab-complete first with `:Co<Tab>`, but since I installed the Context.vim plugin, the latter takes completion precedence. Add this alias to give `:Copy` the highest precedence.
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-28vimrc: Add `m,` mapping to save sessionTeddy Wing
I've been testing this binding as a candidate for a potential replacement of my existing `<leader>mk` mapping. It's easier on the hands than the existing one. Since `,` doesn't seem to be a valid mark location, and it's right next to the "m" key on a Qwerty keyboard, this seemed like an ideal combination of keys for a relatively frequent action.
2022-06-01vimrc: Disable context.vim by defaultTeddy Wing
Enable it by default in AODocs paths.
2022-06-01vimrc: Add `yp` mapping to paste from the "0 registerTeddy Wing
Makes it easier to search and replace with `n` and visual selection. Though perhaps `gn` would solve this? Though not in cases where I need to replace something that's different from the search pattern.
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-26vimrc: Remove Slimv settingsTeddy Wing
I removed the Slimv plugin in b0f617dcc33b2207dfb87b899a655f62ecad53ca. We no longer need these settings.
2022-05-26vimrc: Don't let Paredit change filetype plugin and indent settingsTeddy Wing
Paredit turns filetype indent on globally, messing up all files, not just Lisp files. Prevent Paredit from changing these settings. I don't think we really need Paredit's filetype indent as that's already handled by Vlime.
2022-05-24Add 'paredit' pluginTeddy Wing
Make Common Lisp development more fluid.
2022-05-22godoc: Clear `goRawString` syntax groupTeddy Wing
2022-05-22ftplugin/go.vim#s:GoDoc: Start at the top of the documentationTeddy Wing
Previously, the cursor would be at the bottom or the loaded documentation. It's more practical to start at the beginning. Also remove the empty first line.
2022-05-22ftplugin/go.vim#s:GoDoc: Change filetype to 'godoc'Teddy Wing
Get 'godoc' syntax highlighting.
2022-05-22ftplugin/go.vim#s:GoDoc: Remove unnecessary `|` in Ex commandsTeddy Wing
These were a holdover from when the lines were in a map binding. They're unnecessary now that they've been moved to a function.
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.
2022-05-05ftplugin/go.vim: Allow `:GoDoc` to work with `<cword>`Teddy Wing
This re-enables `K` keyworkprg functionality for the `GoDoc` command, this time using my custom version.
2022-05-05ftplugin/go.vim: Add `GoDoc` commandTeddy Wing
Override the `GoDoc` command from 'vim-go'. That one produces docs without the "-all" flag, and there's no option to enable "all". This gives me all the documentation for a package. This isn't as useful yet, as it breaks the `K` keywordprg.