aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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.
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-09vimrc: Set 'grepprg' to RipgrepTeddy Wing
Enable project search within Vim using Ripgrep.
2019-12-09Add ideas for 'case_star' pluginTeddy Wing
Mappings for case sensitive versions # and *. Not completely figured out yet.
2019-11-18vimrc: Add v_<leader>w mapping to search with RipgrepTeddy Wing
We already have an n_<leader>w mapping. This new one gives us the ability to refine the search term to include more than a single word. now we can include multiple words and punctuation in searches.
2019-11-18vimrc: Add gS mapping to ArgWrapTeddy Wing
After reading Drew Neil's Follow My Leader again (http://vimcasts.org/blog/2014/02/follow-my-leader/), I discovered this issue in which Tim Pope suggests mappings for the SplitJoin plugin: https://github.com/AndrewRadev/splitjoin.vim/issues/14#issuecomment-9666431 This inspired my to add a mapping for `ArgWrap`. I decided not to before because `:ar<Tab><Enter>` seemed like it wasn't much effort to type. But, why not make this a touch quicker? At first I considered `cJ`, which is available: nnoremap cJ :ArgWrap<cr> However, in the aforementioned issue, Pope suggests `gS` as being a free lhs sequence, which seems nicer.
2019-11-18ftdetect/json.vim: Disable on Vim < 8Teddy Wing
Recent Vims have a built-in JSON syntax plugin which is a little easier to read than the JavaScript highlighting. Use the built-in one on Vim 8 and higher.
2019-11-18projects/aodocs.vim: Add <C-x>u command mapping to insert UFO ticket folderTeddy Wing
Add a shortcut to quickly insert the UFO ticket folder path at the command line to save me the trouble of having to type & complete it manually.
2019-11-04Add ftplugin/javascript.vimTeddy Wing
Add bindings to insert `debugger` statements in JavaScript.
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-10-21Remove ftplugin/gitcommit_pullreq_editmsg.vimTeddy Wing
Now that I effectively removed the `checktime` augroup in cc86bdf4af5212a3b2a7960e65c402eac71091c1, this is no longer necessary. Also, it errors because `checktime` no longer exists.
2019-10-15projects/aodocs.vim: Set Shell indentation rulesTeddy Wing
2019-09-30projects/aodocs.vim: Set CSS indentation rulesTeddy Wing
2019-09-30projects/aodocs.vim: Add mappings to enable/disable ESLint debuggerTeddy Wing
Mappings for JavaScript files that add and remove the `no-debugger: warn` rule to `.eslintrc`.
2019-09-26surround.vim: Add `s` for GitHub suggestion surroundingTeddy Wing
Use `s` to wrap text in a GitHub suggestion. Before: Text After: ``` suggestion Text ```