aboutsummaryrefslogtreecommitdiffstats
path: root/bundle
AgeCommit message (Collapse)Author
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.
2019-12-13case-star: Get `c#` mapping working in the middle of a wordTeddy Wing
After trying a few different approaches, finally settled on a mapping implementation for `c#` that seems to work both at the start and in the middle of a word. Previously, as the TODO on line 1 indicates, if the cursor was on the start of the word, we'd move to the previous match using `c#`. However, if the cursor was in the middle of the word, `c#` would move to the start of the word, when it should instead move to the previous match. First tried to solve the movement problem using `search()`. Managed to find a formula that did what I wanted, but search highlighting isn't applied when searching within functions. This function (in particular the 'z' flag) allows us to move to the previous match even when starting in the middle of the word: call search('\C' . expand('<cword>'), 'bz')<CR> I then tried an <expr> mapping against a function that would call: call search('\<', 'bc') first to move to the start of the word (even when already on the start of the word), then return the `?...` command to run the search for the previous match. This, however, didn't work because the above mentioned `search()` call wasn't part of the <expr> mapping, and it's likely the search was undone, similar to what I encountered next. I then tried to run an `execute 'normal! ?...'` command to run the search, preceded still by the aforementioned `search()` call to move to the beginning of the word. This did not work because it turns out that searches in a function are undone when that function returns: :h function-search-undo This behaviour is also the likely reason why my `search()` + <expr> function didn't work. Finally, tried an <expr> mapping containing both the `search()` call to move to the beginning of the word and the `?...` command to search for the previous match (all returned in the <expr> string). Once I got the syntax right, this seems to do exactly what I want. Left the in-between code states for reference. I'll be cleaning those up later.
2019-12-09git-shortcuts: Silence mappingsTeddy Wing
The printed commands were distracting.
2019-12-09Add ideas for 'case_star' pluginTeddy Wing
Mappings for case sensitive versions # and *. Not completely figured out yet.
2019-10-27git-shortcuts: Add commit movement omapsTeddy Wing
Omaps for `[[` and `]]` commit motion commands.
2019-10-27Add 'git-shortcuts' pluginTeddy Wing
An ftplugin that provides `[[` and `]]` mappings to move between commits in `git log` output.
2019-09-11github-url: Fix URL generation when `:pwd` is below repository rootTeddy Wing
If the `:pwd` was a subdirectory of the repository root, the path in the constructed GitHub URL would not include any subdirectories up to and including the current working directory. This created an incorrect path in the URL, resulting in a 404.
2019-06-08diff_corrections: Use better autocmdsTeddy Wing
Thanks to Christian Brabandt (https://vi.stackexchange.com/users/71/christian-brabandt) for describing better autocmds for detecting diff mode: https://vi.stackexchange.com/questions/12847/automatically-disable-cursorline-when-in-diff-mode/12852#12852 And for making the patch (https://github.com/vim/vim/commit/04f62f881c5743d2fdaf7324f6a715381f0d5fcf) that allows diff mode to be detected with the OptionSet event.
2019-06-05Add 'jira-text-formatting-notation-help' pluginTeddy Wing
Plugin that opens a window containing the text formatting guide for Jira. The guide is taken from: $ w3m -dump 'https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all' Since I'm using the go-jira CLI, I need the reference for any special formatting I want to use. I figured it would help to have that information right next to my Vim buffer instead of having to switch to a browser and open the web page.
2019-06-03diff_corrections: Set 'wrap'Teddy Wing
Soft wrap in diffs. Recently encountered diffs with super long lines and thought it would be nice to be able to see everything on one page without having to scroll horizontally.
2019-06-03diff_corrections: Add `cx` mapping to close tabTeddy Wing
Add a mapping to quickly close a tab. Makes it easier to close files that I've finished reviewing. Thanks to user9433424 (https://vi.stackexchange.com/users/6960/user9433424) on the Vi Stack Exchange for the very detailed explanation of how to restore a mapping: https://vi.stackexchange.com/questions/7734/how-to-save-and-restore-a-mapping/7735#7735 Using user9433424's mapping restore code, and ignoring the case where a mapping is defined both globally and local to a buffer.
2019-06-03Add 'undotree' pluginTeddy Wing
2019-05-17diff-corrections: Don't load if the lambda feature isn't availableTeddy Wing
I wrote the `s:SaveCommentColor()` function using a lambda for `filter()`ing. However, not all Vims have `lambda` support. And it doesn't exist before Vim 7.4 I think. Use this guard to avoid causing errors on startup for those Vims without lambdas.
2019-05-17diff-corrections/plugin: Add load guardTeddy Wing
2019-05-17diff-corrections: Restore old 'cursorline' and Comment highlightTeddy Wing
When diff mode is deactivated, the old values for 'cursorline' and the Comment highlight colour should be restored. Thanks to Tony Mechelynck (http://vim.1045645.n5.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=28373) for the tip on how to save and restore highlight colours: > The following is untested. It requires Vim version 7. > > function SaveCursorColor() > redir => highlight > silent hi Cursor > redir END > if highlight =~ 'links to ' > let s:hl-link = matchstr(highlight, 'links to \zs\S*') > elseif highlight =~ '\<cleared\>' > let s:hl-link = 'NONE' > else > let s:hl-link = '' > for substr in ['term', 'cterm', 'ctermfg', 'ctermbg', > \ 'gui', 'guifg', 'guibg', 'guisp'] > if highlight =~ substr . '=' > let s:hl-{substr} = matchstr(highlight, > \ substr . '=\S*') > else > let s:hl-{substr} = '' > endif > endfor > endif > endfunction > function RestoreCursorColor() > if !exists('s:hl-link') > echoerr 'Cursor not saved, cannot restore' > return > endif > hi clear Cursor > if s:hl-link == '' > exe 'hi Cursor' s:hl-term s:hl-cterm s:hl-ctermfg > \ s:hl-ctermbg s:hl-gui s:hl-guifg s:hl-guibg > \ s:hl-guisp > elseif hl-link != 'NONE' > exe 'hi link Cursor' s:hl-link > endif > endfunction > > > Best regards, > Tony. http://vim.1045645.n5.nabble.com/How-to-save-restore-the-hightlight-for-cursor-td1182624.html
2019-05-17plugin/diff_corrections.vim: Increase 'tabpagemax' to 200Teddy Wing
The default is 10. Set it to a ridiculously large number so that we can open one tab per file during a code review.
2019-05-11diff-corrections: Move corrections to `autoload`Teddy Wing
Makes the code a little nicer and more extensible without the line continuations. Only change the highlight colour for the 'twilight256' colour scheme.