aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
AgeCommit message (Collapse)Author
2017-12-20autoload/grappele.vim: Only try to recall if a location was savedTeddy Wing
Previously, if `gG` (the recall mapping) was pressed before previously having pressed a `G` command, the following error would appear: Error detected while processing function grappele#Recall: line 1: E121: Undefined variable: s:line E116: Invalid arguments for function grappele#Grappele This happened because no previous `G` location had been saved. Displaying an error here makes for a bad user experience. Instead if this happens, we should just do nothing. To prevent the error, check for the existence of the `s:line` variable before trying to use it.
2017-07-09autoload/grappele.vim: Don't save location when using `G` directlyTeddy Wing
Previously, we would save the location of the `G` command regardless of whether it was used with a count or not. Thus, `34G` and `G` would both save locations. Saving the location of `G` isn't really useful, but it's easily accessed. Instead, only save location when using a count with `G`. This allows the Grappele command to be useful even after having pressed `G`.
2016-06-17autoload/grappele.vim: Push to jumplistTeddy Wing
Turns out that invoking `G` wouldn't push your movement to the jumplist (unlike Vim's real `G`). This was not only confusing, it was also wrong. Just an oversight on my part that I didn't notice until now.
2015-09-13Create G recall commandTeddy Wing
* Add mapping for the recall command. Using `gG` because it's quick, easy to remember, and doesn't appear to be used for anything. * Create `grappele#Recall()` function that goes to the last `G` count * Store the most recent count passed into `G` Using the recall command, you can `G` to the same count that you previously used no matter what buffer you're now in. TODO: The `G` command appears to be running slowly now for whatever reason. Investigate what's going on.
2015-09-13Replicate n_G functionalityTeddy Wing
Go to the end of the buffer when typed with no count, otherwise go to the line specified by `v:count`.
2015-09-13Initial commit. Project setup.Teddy Wing
* Basic setup for the plugin: * `loaded` global * Create mapping definition based on style from tpope and System Copy * Create dummy function in autoload