<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotvim/plugin, branch master</title>
<subtitle>My vim configuration</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/'/>
<entry>
<title>plugin/go.vim: Disable 'vim-go' in Vim &lt; 7.4</title>
<updated>2022-04-24T18:54:05+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-04-24T18:54:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=c75087d87e30825d645d4e920fa7420256eceecb'/>
<id>c75087d87e30825d645d4e920fa7420256eceecb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>vimrc: Replace `t` cabbrev with `T` command alias</title>
<updated>2020-10-13T17:11:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-13T16:58:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=284d25e594cc6cd39547f3ee7e9f568b2017aabd'/>
<id>284d25e594cc6cd39547f3ee7e9f568b2017aabd</id>
<content type='text'>
Alias `T` to `TComment` instead of using a cabbrev.

The abbreviation would mess up commands with "t" in them, like turning
`tjump` into `TCommentjump`.

Replace the abbreviation with a new `T` command that acts as an alias
for `TComment`. I didn't include argument completion because I don't use
that. Otherwise, replicate the `TComment` command's definition and pass
all parameters to it. This gives us a short alias for commenting, and
`T` is the first completion with `:t&lt;Tab&gt;`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Alias `T` to `TComment` instead of using a cabbrev.

The abbreviation would mess up commands with "t" in them, like turning
`tjump` into `TCommentjump`.

Replace the abbreviation with a new `T` command that acts as an alias
for `TComment`. I didn't include argument completion because I don't use
that. Otherwise, replicate the `TComment` command's definition and pass
all parameters to it. This gives us a short alias for commenting, and
`T` is the first completion with `:t&lt;Tab&gt;`.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/abbreviations.vim: Add cabbrevs for T-prefixed commands</title>
<updated>2020-09-18T17:39:36+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-18T17:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=18dacd037f756066a92972687b53d5ce94d2c96b'/>
<id>18dacd037f756066a92972687b53d5ce94d2c96b</id>
<content type='text'>
I used to be able to type:

    :59-63T&lt;Tab&gt;&lt;Enter&gt;

to comment out a block. Now, since `TBuffer` is earlier alphabetically
than `TComment`, the above no longer works.

Add two command line abbreviations to make it easier to use these two
commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I used to be able to type:

    :59-63T&lt;Tab&gt;&lt;Enter&gt;

to comment out a block. Now, since `TBuffer` is earlier alphabetically
than `TComment`, the above no longer works.

Add two command line abbreviations to make it easier to use these two
commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>surround.vim: Add `s` for GitHub suggestion surrounding</title>
<updated>2019-09-26T19:42:28+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-09-21T17:10:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=401cb76a4466b72896a528646e51c95435ce35ff'/>
<id>401cb76a4466b72896a528646e51c95435ce35ff</id>
<content type='text'>
Use `s` to wrap text in a GitHub suggestion.

Before:

    Text

After:

    ``` suggestion
    Text
    ```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use `s` to wrap text in a GitHub suggestion.

Before:

    Text

After:

    ``` suggestion
    Text
    ```
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/better_autoread.vim: Disable automatic `checktime` on Vim 8</title>
<updated>2019-05-24T22:01:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-05-24T22:01:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=cc86bdf4af5212a3b2a7960e65c402eac71091c1'/>
<id>cc86bdf4af5212a3b2a7960e65c402eac71091c1</id>
<content type='text'>
I kept getting E211 errors when switching Git branches with
added/missing files or E321 errors. Normally, I'd get the error once,
dismiss it, and be done with it, but on a new machine with a recent Vim
install, the errors kept coming back up every few seconds,
insupportable.

Unless I can think of something better, take a heavy-handed approach and
disable this on new Vims.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I kept getting E211 errors when switching Git branches with
added/missing files or E321 errors. Normally, I'd get the error once,
dismiss it, and be done with it, but on a new machine with a recent Vim
install, the errors kept coming back up every few seconds,
insupportable.

Unless I can think of something better, take a heavy-handed approach and
disable this on new Vims.
</pre>
</div>
</content>
</entry>
<entry>
<title>Create custom tabline.vim plugin</title>
<updated>2014-07-01T03:33:48+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-07-01T03:30:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=9a48292c5dffb741115b0241c18962bae817e2c7'/>
<id>9a48292c5dffb741115b0241c18962bae817e2c7</id>
<content type='text'>
Add a plugin for a custom tabline. Still a lot of room for improvement
here, but I really wanted something that would tell me the tab numbers
to make it easier for me to switch between tabs using #gt.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a plugin for a custom tabline. Still a lot of room for improvement
here, but I really wanted something that would tell me the tab numbers
to make it easier for me to switch between tabs using #gt.
</pre>
</div>
</content>
</entry>
<entry>
<title>unimpaired_paste: fix `yi` mapping (change to `yoi`)</title>
<updated>2014-06-15T00:32:13+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-06-15T00:32:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=5b1d2482f222092ae55ec3ad23f414f5f7a1b3e3'/>
<id>5b1d2482f222092ae55ec3ad23f414f5f7a1b3e3</id>
<content type='text'>
Made a mistake. Using `yi` means that commands like `yi(` don't work
anymore so change the mapping to `yoi` because I can't think of anything
better.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Made a mistake. Using `yi` means that commands like `yi(` don't work
anymore so change the mapping to `yoi` because I can't think of anything
better.
</pre>
</div>
</content>
</entry>
<entry>
<title>unimpaired_paste: add `yi` mapping</title>
<updated>2014-06-14T23:23:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-06-14T23:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=7b01a1db66efde6c79df75f1646569f4b9148a4e'/>
<id>7b01a1db66efde6c79df75f1646569f4b9148a4e</id>
<content type='text'>
I often find that I want to delete the line inserted from the `yo`
mapping. This adds a mapping that doesn't add the line in the first
place so I don't have to go back and delete it after pasting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I often find that I want to delete the line inserted from the `yo`
mapping. This adds a mapping that doesn't add the line in the first
place so I don't have to go back and delete it after pasting.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add custom plugin better_autoread</title>
<updated>2014-06-03T12:32:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-06-03T12:32:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=0d89392cdc386c5dc179386d0e51f82bcf24bf7d'/>
<id>0d89392cdc386c5dc179386d0e51f82bcf24bf7d</id>
<content type='text'>
Make a plugin out of a Stack Overflow post for a better autoread
augroup.

The `autoread` setting in vim will automatically reload a file if it's
been changed outside of vim (if you've made unsaved changes vim will
prompt before loading the file). By default, however, vim doesn't
automatically detect when a file has changed. It only happens when you
do certain things. This sets up an autocmd to force a check a bit more
often by tying into the CursorHold events. A bit hackish it seems but it
works like a charm.

This has been sorely needed especially since yesterday when I was
switching git branches in a project several times and editing various
files only to be alerted upon saving that the file on disk has changed.
Previously I would say it was a minor annoyance to have to type :e! in
those situations. Yesterday it was a freaking pain in the glaiven since
it happened unexpectedly so many times and after I was ready to
commit/save edits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make a plugin out of a Stack Overflow post for a better autoread
augroup.

The `autoread` setting in vim will automatically reload a file if it's
been changed outside of vim (if you've made unsaved changes vim will
prompt before loading the file). By default, however, vim doesn't
automatically detect when a file has changed. It only happens when you
do certain things. This sets up an autocmd to force a check a bit more
often by tying into the CursorHold events. A bit hackish it seems but it
works like a charm.

This has been sorely needed especially since yesterday when I was
switching git branches in a project several times and editing various
files only to be alerted upon saving that the file on disk has changed.
Previously I would say it was a minor annoyance to have to type :e! in
those situations. Yesterday it was a freaking pain in the glaiven since
it happened unexpectedly so many times and after I was ready to
commit/save edits.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tpope's paste helper from unimpaired.vim</title>
<updated>2014-05-25T01:11:28+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-05-25T00:58:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=2a47d76e47119095e523b9946df423575793acd1'/>
<id>2a47d76e47119095e523b9946df423575793acd1</id>
<content type='text'>
Copy of Tim Pope's paste helper. I didn't want the full unimpaired.vim
but this functionality is really useful, so including it here in a
separate plugin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Copy of Tim Pope's paste helper. I didn't want the full unimpaired.vim
but this functionality is really useful, so including it here in a
separate plugin.
</pre>
</div>
</content>
</entry>
</feed>
