aboutsummaryrefslogtreecommitdiffstats
path: root/bundle
AgeCommit message (Collapse)Author
2018-03-25git-blamer: Refocus original window when blamer buffer is closedTeddy Wing
Previously, when the GitBlamer window was closed, the window it was opened from would not be re-focused. Because of this, you couldn't just pick up where you left off, you had to run a window command first. This change re-focuses the original window automatically, bringing you right where you were before opening GitBlamer. Unfortunately, this seemingly simple want is not easy to do in VimL. There's a `WinLeave` autocmd, but that event gets executed _before_ leaving a window. Similarly, the `BufWinLeave` autocmd we already had gets executed before the buffer is removed from the window. Because these events happen before the window is left, running the `wincmd w` command doesn't work. We need a way to run the command after the window is closed, allowing us to work with the new window layout and window numbers. In order to run `wincmd w` at the proper time, we add a new autocmd upon closing the GitBlamer window that gets executed when any window is entered. That autocmd refocuses the correct window and removes itself, having served its purpose. I used a tab variable to store the window number because it was a way to allow multiple GitBlamer instances in different tabs. Otherwise, the autocmd would be attached to a window that isn't correct in other tabs. Also, augroups can't have dynamic names, so we can't create them programmatically, preventing us from having multiple autocmds with different window numbers for different tabs. The disadvantage of using a tab variable is that window focus restoration doesn't work when multiple GitBlamers are opened in a single tab.
2018-03-24git-blamer: Fix bug when `nowrap`Teddy Wing
If `nowrap` is set, the plugin causes an error because it tries to concatenate the `restore` variable which hasn't been defined. Define the variable outside the `if &l:wrap` condition to ensure it's available for concatenation.
2018-03-07git-blamer: Set `nowrap` on bufferTeddy Wing
In order to get the cursor lines to correctly match up horizontally in all cases, set 'nowrap' on the buffer. To set 'wrap' back, follow fugitive.vim's example: https://github.com/tpope/vim-fugitive/blob/f3ccb0c12ee4985b8808f83059830a24cc92821c/plugin/fugitive.vim#L2038-L2040
2018-03-07git-blamer: Add `q` mapping to quit windowTeddy Wing
Makes it just a bit easier to close the GitBlamer window. Since we shouldn't need macros in this panel it should be fine.
2018-03-07git-blamer: Use `syncbind` to aid horizontal line alignmentTeddy Wing
Adding `syncbind` appears to fix the bug where in certain cases the GitBlamer cursor line and the buffer cursor line weren't horizontally aligned.
2018-03-07git-blamer: Use `cursor()` instead of `setpos()`Teddy Wing
Use the `cursor()` function to set the position of the cursor. This call is simpler than `setpos()`, and more descriptive than `execute l:top_line` (that was inspired by fugitive.vim, https://github.com/tpope/vim-fugitive/blob/f3ccb0c12ee4985b8808f83059830a24cc92821c/plugin/fugitive.vim#L2048-L2064)
2018-03-07git-blamer: Align cursor lines of buffer and GitBlamer windowTeddy Wing
Take the mechanism that Fugitive.vim uses: https://github.com/tpope/vim-fugitive/blob/f3ccb0c12ee4985b8808f83059830a24cc92821c/plugin/fugitive.vim#L2048-L2064 This positions the cursor lines on the same horizontal line so that blame information can be read on the same line as the code it corresponds to. Not sure, but it doesn't seem to work exactly right on one of my machines, but did appear to work correctly on another. Could just be the fault of 'wrap' though.
2018-03-07git-blamer: Remove terminating whitespaceTeddy Wing
I don't really like these any more.
2018-03-07git-blamer: Fix bug causing `cursorbind` to be set on other windowsTeddy Wing
In some instances with more than one window open, closing the GitBlamer window would cause other windows in the tab to have `cursorbind` (and presumably `scrollbind`) set. Fix the bug by setting `scrollbind` and `cursorbind` on the buffer (these are window-local variables, we'll have to find out if it's weird to set them on a buffer), and store the "restore" command in a buffer-local variable (local to the GitBlamer window).
2018-03-05Add 'vim-rails-locale-alternate' pluginTeddy Wing
Facilitates opening Rails locale files in alternate languages.
2018-02-06Create 'vim-latearliest' pluginTeddy Wing
Adds two new commands that allow you to move to the beginning and end of undo history.
2017-12-20Update 'vim-grappele' to v0.0.5Teddy Wing
Fixes a bug where pressing `gG` without first having used `[count]G` to store a location caused an error.
2017-07-09Update 'vim-grappele' to v0.0.4Teddy Wing
Doesn't clobber saved location when using `G` without a count.
2017-05-10Update 'vim-gitcha' to v0.0.2Teddy Wing
Show the completion menu even when there's only one result so we can still read the commit message subject. This allows for easy validation that we've autocompleted the right commit SHA.
2017-05-04whitespace-method-chain: Silence commandsTeddy Wing
If the commands result in errors, they should fail silently, because we may have exected them on things that don't match, like a line that has no '.'s or a single-line buffer.
2017-05-04whitespace-method-chain: Move function to autoloadTeddy Wing
Don't force the function to load on startup.
2017-05-04Rename 'whitespace-chain' to 'whitespace-method-chain'Teddy Wing
Give the plugin a clearer name.
2017-05-04Add 'whitespace-chain' pluginTeddy Wing
A new plugin to split method chains onto multiple lines. For example: scope.line.result(distinct: true).paginate becomes: scope .line .result(distinct: true) .paginate
2017-04-29Add 'vim-gitcha' pluginTeddy Wing
Provides completion of Git SHAs in commit messages. Super handy for referencing other commits without having to copy-paste and use the mouse. Was getting tired of that routine.
2017-03-31Add 'vim-argwrap' pluginTeddy Wing
Was getting annoyed at having to manually split function arguments from a single line to multiple lines. Planned on writing a little custom plugin to do this, but this one seems more well thought out and featureful than what I was thinking of. It also seems lighter and not as presumptive as another alternative I found: https://github.com/AndrewRadev/splitjoin.vim
2017-03-22Add 'vim-repeat' pluginTeddy Wing
Finally getting annoyed enough about not being able to '.'-repeat surround.vim commands. It's really nice to have repeating just work now.
2017-02-23Create 'insert-formatted-cal' pluginTeddy Wing
A plugin that will insert a given month from the `cal` program and format it such that I can insert `*`s next to days to flag them. I've been doing this manually for years and it finally seemed time to automate the process.
2017-02-17Add 'vim-rspec' pluginTeddy Wing
Make it more efficient to run RSpec tests right in Vim. It's been nearly 4 weeks since I started writing Rails code full time and I'd like to see if I can have a nicer system for running only the tests I'm interested in or working on at the moment.
2017-02-08Update 'vim-surround' to latest (v2.1/e49d6c245)Teddy Wing
It's been a few years and it turns out there's some cool new stuff in Surround, like support for arbitrary characters and other goodies.
2016-10-26Add 'vim-twodo' pluginTeddy Wing
This plugin has been sitting uncommitted in my .vim for many months now. I originally hadn't added it to the repo because it wasn't published. Now that it is, I can use the plugin's public Git link. Helps me keep track of my to-dos.
2016-10-26git-blamer: Open blame windows `leftabove`Teddy Wing
Based on my current Vim settings, splits open to the right (I have `splitright` turned on). This causes the blame window to open to the right of the file in question, which is weird, since normally that metadata appears to the left of the file. Open the Blamer split on the left by default to make the formatting more consistent with the normal `git blame` output.
2016-08-28First version of 'spellcycle' pluginTeddy Wing
A new plugin that cycles through a list of languages to use when spell checking. Using a couple of mappings, we can quickly change the `spelllang` to the language we want to write or read in. Languages are currently set to English and French, since those are the two that I use. The mappings are bound to `[l` and `]l` (in unimpaired.vim style) since those didn't seem to be used by anything.
2016-08-17Add 'vim-space-vlaze' pluginTeddy Wing
This plugin has been in my `bundle/` directory for nearly a year uncommitted. I think it's about time we formally inducted it, and made my game an official part of my vimrc.
2016-08-16Disable Slimv pluginTeddy Wing
I've had the plugin disabled but uncommitted for many months now. I think it's finally time to make the change official. Slimv is an excellent plugin, and makes it possible to have a good Common Lisp development environment in Vim. I'll still be using it for that reason. The trouble is that Slimv isn't a good plugin citizen: It overrides user defaults. I noticed that at some point many months ago, code I was writing was getting auto-indented. The "smart" kind of autoindent, not `set autoindent`. I _hate_ "smart" auto-indenting. Figured out that Slimv was the cause and immediately disabled the plugin. We may want to create a Bash alias that we can use exclusively for CL development that loads Slimv into the runtimepath instead of having it auto-loaded by Pathogen.
2016-06-17Update 'vim-grappele' to v0.0.3Teddy Wing
Fixes bug where `G` didn't push to the jumplist.
2016-06-08Update 'pick.vim' to latest (3df380f)Teddy Wing
This commit introduces compatibility with pick's latest 1.4.0 release.
2016-03-26Install Rust.vimTeddy Wing
The Rust language's Vim plugin.
2016-02-15Install SlimvTeddy Wing
Working Emacs with Evil-mode and SLIME felt pretty slow compared to my normal Vim speed. Trying Slimv to see if I can make it work for Common Lisp development in Vim.
2015-11-24Update 'vim-auditory' to v0.1.3Teddy Wing
Fixes `G` mapping and errors when executing `:AuditoryOn` and `:AuditoryOff` twice in a row.
2015-11-11Create 'copy' pluginTeddy Wing
A custom plugin that invokes a system copy to OS X's pasteboard using `pbcopy` via a Vim command. This allows us to specify a range of lines to copy in command mode, similar to the way that Chris Toomey's System Copy plugin provides an easy way to invoke a system copy using motions. With this plugin we can write: :5,21Copy to copy those lines. :12,'aCopy will also work. If your Vim is compiled with `+clipboard` support, you would instead write: :15,24y * Since I use a Vim that doesn't have clipboard support, I decided to use a plugin to get the same functionality rather than compile a new Vim.
2015-10-03Add 'scriptease' pluginTeddy Wing
To facilitate Vim plugin development.
2015-09-16Update 'vim-grappele' to v0.0.2Teddy Wing
To take advangage of the newly `<silent>` `G` command.
2015-09-14Add 'vim-grappele' pluginTeddy Wing
This will finally give me a way to repeat `G` commands. Should be useful since I often find myself entering a `G` command only to realise that I was in the wrong window and have to then type the whole thing again. With this plugin all I have to do is type a quick mapping to make the repeat happen.
2015-09-08git-blamer: Use `git blame -w`Teddy Wing
Add the `-w` flag to our `git blame` call in order to ignore whitespace changes so we can see who originally introduced a line's change even if there were subsequent whitespace changes made to the line.
2015-09-08Add 'vim-unstack' pluginTeddy Wing
Testing this plugin out. The hope is that it will allow me to quickly open the relevant bits of code from a stack trace. This also works without a `makeprg` so I could use if for Django stack traces for example. Still trying to get it to work.
2015-08-16Update auditory.vim to v0.1.2Teddy Wing
2015-07-26Add 'vim-system-copy' pluginTeddy Wing
Big thanks to Chris Toomey for creating this plugin. Something I was trying to achieve using my v_<leader>c mapping but which never felt right, especially since that only ever allowed me linewise copies and no characterwise ones. Found out about this one at the Boston Vim meetup back on May 20 (or maybe rediscovered, as it sounded familiar but I obviously never pursued it). This is something I've been wanting for a long while, as my own mapping for it worked fine but wasn't the most ideal.
2015-07-23vimrc: Move comment to git-blamer pluginTeddy Wing
Made more sense to move it there since all the functionality is now being performed in the plugin instead of in my vimrc.
2015-07-23Add git-blamer pluginTeddy Wing
Create a plugin that runs a `git blame` and opens the result in a new vertical split. This one builds on a43d3caaea3682f58aee6dc295e48cca415067c5 but improves it by adding some extra niceties including moving to the line the cursor was on in the original file, setting appropriate flags so that the split doesn't appear in the buffer list and becomes non-modifiable, and setting cursor and scroll binding so that the buffers scroll together. An `autocmd` resets the original buffer to `noscrollbind` and `nocursorbind`.
2015-07-13Remove 'Command-T' pluginTeddy Wing
I absolutely love Command-T, and it's served me so well over the last year and a few months. Its native Ruby C extension makes it super fast, much faster than CtrlP. That said, it can take 2-3 seconds to initialise if its cache is empty, so when I start a new Vim instance or clear Command-T's cache after adding or removing files or switching to a git branch that's very different, I have to wait for it to do its thing. This initialisation time really got on my nerves last week when I constantly had to clear Command-T's cache for some reason in order for it to list the files I was looking for, resulting in more waiting than I would have liked. Because of this, I went looking around at other options to test their speed. I've settled on Thoughtbot's pick(1) after testing out different fuzzy finder plugins.
2015-07-13Remove 'Unite' pluginTeddy Wing
My primary use case for Unite was as a potential replacement for Command-T. It's pretty cool, but since it operated at about the same speed as CtrlP on my large work project, I'm afraid I'm going to remove it in favour of pick.
2015-07-13Remove 'CtrlP' pluginTeddy Wing
Even with ag, ctrlp has been much too slow in my huge work project. Ctrlp actions consistenty take seconds to complete there. Settling on pick as my new fuzzy finder.
2015-07-12Install pick.vimTeddy Wing
Trying out the pick(1) fuzzy finder from Thoughtbot. Seeing how fast it is out of the gate.
2015-07-12Install CtrlPTeddy Wing
Testing out CtrlP as a Command-T alternative at the same time as Unite.vim. Figure I might as well try all of these to see which one I end up liking most.
2015-07-12Install Unite.vimTeddy Wing
Curious about other Command-T options because it's been feeling a bit slow lately. Testing out Unite.vim to see if it might work for me.