<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-nohai, branch master</title>
<subtitle>Search commands with nohlsearch</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/'/>
<entry>
<title>Add README</title>
<updated>2019-12-14T20:24:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T20:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=89152f2e6ba1fe65515c3a038051377cd00e9451'/>
<id>89152f2e6ba1fe65515c3a038051377cd00e9451</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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 documentation</title>
<updated>2019-12-14T18:55:37+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T18:52:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=9ae3c68f3a193c1d3ed387b23ea4ddb89756865f'/>
<id>9ae3c68f3a193c1d3ed387b23ea4ddb89756865f</id>
<content type='text'>
* Create a help file with plugin documentation
* Generate help tags
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Create a help file with plugin documentation
* Generate help tags
</pre>
</div>
</content>
</entry>
<entry>
<title>s:AddMapping(): Silence `:nohlsearch` output</title>
<updated>2019-12-14T17:54:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-12-14T17:54:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-nohai/commit/?id=2c9242d8640bbf491bb01274328f71272f322a22'/>
<id>2c9242d8640bbf491bb01274328f71272f322a22</id>
<content type='text'>
The `silent!` command I was using didn't silence the `:nohlsearch`
output after pressing `&lt;CR&gt;`. Use `&lt;silent&gt;` in the mapping instead to
silence it, allowing the Nohai search commands to produce output similar
to the regular `/` and `?` commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `silent!` command I was using didn't silence the `:nohlsearch`
output after pressing `&lt;CR&gt;`. Use `&lt;silent&gt;` in the mapping instead to
silence it, allowing the Nohai search commands to produce output similar
to the regular `/` and `?` commands.
</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>
