aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-09-13vimrc: Set a fixed tall quickfix window height for vim-goTeddy Wing
By default, vim-go sets the quickfix window's height to be the number of quickfix items. This is problematic when, for example, there's a single error item, and the quickfix window opens below a narrow window (for example, in one of three vertical splits). In that case, the error gets line wrapped, and quickfix window is only one line tall, meaning I can't read the full error. Set the window height to Vim's default of 10 lines. Vim-go will collapse the height to 10 lines if the variable is set to a number greater than 10, and 5 lines was too short in practise.
2020-09-07projects/aodocs.vim: Use camel case for Go struct tagsTeddy Wing
AODocs JSON uses camel case, so this seems like a sensible default.
2020-09-07ftplugin/go.vim: Run shell tests with verbose flagTeddy Wing
In case I need to add logs for debugging.
2020-08-31ftplugin/go.vim: Create test file on alternate if it doesn't existTeddy Wing
When switching to a file's alternate (its test file), create the test if the file doesn't exist. By default, a warning is issued if the file doesn't exist. I wanted an easier way to create the test file. Previously I'd use: :e %:h<Tab><C-f>bbi_test<CR> This uses the function that the `Plug` mappings call under the hood, and turns on the `-bang` argument to have it create the test file if it doesn't exist.
2020-08-02ftplugin/rust.vim: Fix spacingTeddy Wing
2020-08-02ftplugin/rust.vim: Add mapping to run testsTeddy Wing
2020-07-27ftplugin/go.vim: Add mapping to run package tests with terminal outputTeddy Wing
The Vim-Go mappings run the tests in a job and add results to the Quickfix list. Add a new mapping that doesn't use Quickfix, and instead just runs the test command for the package that contains the current file, outputting the results to standard output. Gives me an additional alternative to view test results.
2020-07-19ftplugin/rust.vim: Add a command to run `cargo check`Teddy Wing
Faster than using `cargo build` for a feedback cycle.
2020-07-19Add after/ftplugin/rust.vimTeddy Wing
Fix bugs introduced by activating the Rust Vim plugin's ftplugin.
2020-07-19ftplugin/rust.vim: Activate Rust plugin's ftpluginTeddy Wing
Take advantage of the Rust Vim plugin's additional language-specific features, like `///` and `//!` comment handling.
2020-07-17ftplugin/rust.vim: Add mappings to build and runTeddy Wing
2020-07-17ftplugin/rust.vim: Turn on `b:argwrap_tail_comma`Teddy Wing
Rust style seems to prefer trailing commas.
2020-07-17Add ftdetect/hcss.vimTeddy Wing
Highlight Hasp files as CSS.
2020-07-04projects/aodocs.vim: Set 'path' for UFO extension projectTeddy Wing
Enable `gf` and related commands to work by setting the proper 'path', and ensuring the `.js` suffix is used on files.
2020-06-20vimrc: Add count support to `[q`, `]q`, `[w`, `]w`Teddy Wing
Allow these next/previous mappings for the quickfix and location list to take counts.
2020-06-15ftplugin/python.vim: Turn on `b:argwrap_tail_comma`Teddy Wing
Append a trailing comma when unwrapping arguments.
2020-06-15Add 'vim-tbuffer' pluginTeddy Wing
2020-06-15ftplugin/go.vim: Add `Ze` mapping to insert `if err` blockTeddy Wing
Vim-Go has a `:GoIfErr` command, which inserts an `if err != nil` check. Add a mapping for it to make it quicker to access.
2020-06-13colors/twilight256.vim: Highlight comments in a lighter grey colourTeddy Wing
I've been having some trouble reading comments, as the grey is rather low contrast. To improve readability, change the highlight colour to a lighter grey, increasing contrast.
2020-06-01ftplugin/go.vim: Turn on `b:argwrap_tail_comma`Teddy Wing
This adds a trailing comma when using ArgWrap. Go requires trailing commas, otherwise it reports compilation errors.
2020-05-08projects/aodocs.vim: Add mapping to copy the last TODO entryTeddy Wing
I've been keeping a daily to-do list. Every day, I copy yesterday's entry and use it as today's with some modifications. Add a mapping to automate copying the previous day's entry.
2020-05-08ftplugin/typescript.vim: Set 'commentstring'Teddy 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-29colors/twilight256: Remove underline on current line numberTeddy Wing
After upgrading to Vim 8.2, an underline was added to the line number of the current line. Remove this with `CursorLineNr` to restore the look from before the upgrade.
2020-04-24projects/aodocs.vim: Add SCSS and TypeScript indentationTeddy Wing
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-04-01projects/aodocs.vim: Update UFO Go import pathTeddy Wing
The import path was renamed.
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-25ftplugin/todo.vim: Highlight `todoUnimportant` as a light greyTeddy Wing
These are by default highlighted as `Ignore`, which makes them the same colour as finished and deleted to-dos. Set them to a light grey colour to make them more readable.
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-12ftplugin/go.vim: Add a mapping to open the alternate file in a splitTeddy Wing
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-26vimrc: Add `<C-w>e` mapping to open the current buffer in a new tabTeddy Wing
2020-02-26vimrc: Add `<leader>cF` mapping to copy the absolute path of a fileTeddy Wing
Analogue to `<leader>cf`, which copies the relative path.
2020-02-26projects/aodocs.vim: Use Firefox Nightly for :GoPlayTeddy Wing
2020-02-26vimrc: Turn off vim-go fmt on saveTeddy Wing
Got to be too annoying.
2020-02-26ftplugin/go.vim: Add mapping to show alternate fileTeddy Wing
Use `z<C-^>` to swap between test and implementation files. Gives me a faster way to navigate.
2020-02-26vimrc: Turn off vim-go ftplugin definition mappingsTeddy Wing
Since I turned `gopls` off, vim-go complains when I try to use a "go to definition" mapping. Turn off vim-go's overrides so I can use ctags, which is much faster than any of the Go tools.
2020-02-26ftplugin/go.vim: Enable the vim-go ftpluginTeddy Wing
Enable extra mappings, text objects, etc. provided by vim-go. Wanted function scoped motions and text objects, and this was the easy way to get them.
2020-02-26vimrc: Turn off `gopls` in vim-goTeddy Wing
The `gopls` tool is super slow and eats up way too many computing resources.
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
2020-02-12projects/aodocs.vim: Add `JiraOpen` commandTeddy Wing
A command that opens the Jira ticket ID cWORD in the browser.