<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-nohai/plugin, branch extra-mode-maps</title>
<subtitle>Search commands with nohlsearch</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/'/>
<entry>
<title>Make visual and operator-pending mode mappings work</title>
<updated>2019-12-19T06:48:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-18T00:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=9eef44718da202b17d360e5189a8d3b79cf6c74a'/>
<id>9eef44718da202b17d360e5189a8d3b79cf6c74a</id>
<content type='text'>
The existing `s:CRAndNohlsearch()` function doesn't work as-is in visual
or operator-pending modes. Add special handling for these modes that
results in the &lt;CR&gt; command mode mapping behaving differently in order
to support a selection.

TODO: Need to handle `cg/` `cg?`. Currently this inserts
`hlsearch&lt;CR&gt;gv`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The existing `s:CRAndNohlsearch()` function doesn't work as-is in visual
or operator-pending modes. Add special handling for these modes that
results in the &lt;CR&gt; command mode mapping behaving differently in order
to support a selection.

TODO: Need to handle `cg/` `cg?`. Currently this inserts
`hlsearch&lt;CR&gt;gv`.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/nohai.vim: Add visual mode mappings</title>
<updated>2019-12-17T23:16:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-17T23:16:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=3200e6362269fcfa19fd4667c80f26f6509ab97e'/>
<id>3200e6362269fcfa19fd4667c80f26f6509ab97e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/nohai.vim: Add operator-pending mappings</title>
<updated>2019-12-17T23:11:36+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-17T23:11:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=893bee02e30851010cc6111c5cc60452cf41191e'/>
<id>893bee02e30851010cc6111c5cc60452cf41191e</id>
<content type='text'>
Make operator-pending versions of the `g/` and `g?` mappings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make operator-pending versions of the `g/` and `g?` mappings.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2019-12-14T19:02:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T19:02:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=c85ebc483e4ce512edef128a563f7be08f9c6994'/>
<id>c85ebc483e4ce512edef128a563f7be08f9c6994</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add guards around the default mappings</title>
<updated>2019-12-14T17:43:42+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T17:43:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=26dbeebebf9ff0315b1abd6925a451c080a66d56'/>
<id>26dbeebebf9ff0315b1abd6925a451c080a66d56</id>
<content type='text'>
Don't define the default `g/` and `g?` mappings if there are already
Nohai mappings or if those are already defined.

Add a `g:nohai_no_maps` variable to disable plugin mappings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't define the default `g/` and `g?` mappings if there are already
Nohai mappings or if those are already defined.

Add a `g:nohai_no_maps` variable to disable plugin mappings.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/nohai.vim: Add a load guard</title>
<updated>2019-12-14T16:53:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T16:53:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=92067a48d822307a9167908648f87c1f370612c5'/>
<id>92067a48d822307a9167908648f87c1f370612c5</id>
<content type='text'>
In addition to the default, don't load the plugin if the `CmdlineEnter`
and `CmdlineLeave` autocmd events don't exist.

Learned that these events were introduced in Vim 8.0.1206:
https://vi.stackexchange.com/questions/15875/how-to-test-if-certain-event-is-supported
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In addition to the default, don't load the plugin if the `CmdlineEnter`
and `CmdlineLeave` autocmd events don't exist.

Learned that these events were introduced in Vim 8.0.1206:
https://vi.stackexchange.com/questions/15875/how-to-test-if-certain-event-is-supported
</pre>
</div>
</content>
</entry>
<entry>
<title>Move functions to autoload/</title>
<updated>2019-12-14T16:32:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T16:32:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=6d86b086fd480c2403eb93775f72ac67aea41ca1'/>
<id>6d86b086fd480c2403eb93775f72ac67aea41ca1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add descriptions to script functions</title>
<updated>2019-12-14T16:25:45+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T16:20:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=7c9b04778a88926e2349770a5e8e3e8c09221bc7'/>
<id>7c9b04778a88926e2349770a5e8e3e8c09221bc7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename `s:CR()` to `s:CRAndNohlsearch()`</title>
<updated>2019-12-14T16:15:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T16:15:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=abbb118307779a07067427ccd611f71719da143b'/>
<id>abbb118307779a07067427ccd611f71719da143b</id>
<content type='text'>
Seemed like I should make the name more explicit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Seemed like I should make the name more explicit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary code in `CmdlineEnter` command</title>
<updated>2019-12-14T16:02:03+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T16:02:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=fdee7afc4e9378f0235ef52fb35e63b8219e7ffd'/>
<id>fdee7afc4e9378f0235ef52fb35e63b8219e7ffd</id>
<content type='text'>
* The `s:Nohai()` function is unnecessary, as it does the same thing as
  `s:AddMapping()`. Call `s:AddMapping()` directly instead.
* Don't bother checking `cmdwin_char`. Because we limit the
  `CmdlineEnter` `autocmd` to `/` and `?`, the `s:AddMapping()` function
  will only ever be called on `/` and `?`, thus checking its value in a
  condition is redundant.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* The `s:Nohai()` function is unnecessary, as it does the same thing as
  `s:AddMapping()`. Call `s:AddMapping()` directly instead.
* Don't bother checking `cmdwin_char`. Because we limit the
  `CmdlineEnter` `autocmd` to `/` and `?`, the `s:AddMapping()` function
  will only ever be called on `/` and `?`, thus checking its value in a
  condition is redundant.
</pre>
</div>
</content>
</entry>
</feed>
