<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim_config.git/lua/mappings.lua, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.mikehanus.xyz/nvim_config.git/atom?h=master</id>
<link rel='self' href='https://git.mikehanus.xyz/nvim_config.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.mikehanus.xyz/nvim_config.git/'/>
<updated>2024-02-27T22:36:05Z</updated>
<entry>
<title>update some mappings</title>
<updated>2024-02-27T22:36:05Z</updated>
<author>
<name>jdhao</name>
<email>jdhao@hotmail.com</email>
</author>
<published>2024-02-27T22:27:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mikehanus.xyz/nvim_config.git/commit/?id=2f8482639db32c665f78a211bd007aa9fc14d0c4'/>
<id>urn:sha1:2f8482639db32c665f78a211bd007aa9fc14d0c4</id>
<content type='text'>
1. fix a typo in gJ mapping when setting the mark, the correct syntax is
   `mz` (set mark `z`), not `zm`

2. fix bug with `iB` text object: previously `viB` does not work as
   expected, because it does not select the entire buffer as expected.
   After much investigation, I found it is because the `&lt;cmd&gt;` mapping
   argument. If we use `&lt;cmd&gt;` argument for mapping, the mode does not
   change. So if we use `viB`, inititally we are still in visual mode.
   Later in the implementation, when we use `` normal! `&lt;V`&gt;  `` to
   select the entire buffer, it interferes with original visual mode. As
   a result, the entire buffer is not selected. In the text obj
   implementation, we can use `exe "normal! \&lt;Esc&gt;"` to clear the visual
   mode and make `viB`, but this is not ideal. I think it is eaiser to
   just not use the `&lt;cmd&gt;` argument and use `:&lt;C-U&gt;` instead.
</content>
</entry>
<entry>
<title>fix multi-line yank issue, close #220</title>
<updated>2023-08-28T19:11:32Z</updated>
<author>
<name>jdhao</name>
<email>jdhao@hotmail.com</email>
</author>
<published>2023-08-28T19:08:51Z</published>
<link rel='alternate' type='text/html' href='https://git.mikehanus.xyz/nvim_config.git/commit/?id=fc1c447319d2eca318c751d641f9ce8ce6a92005'/>
<id>urn:sha1:fc1c447319d2eca318c751d641f9ce8ce6a92005</id>
<content type='text'>
The previous way of keep the cursor while yanking is not perfect.
It will break multi-line yank (`{count}yy`).
</content>
</entry>
<entry>
<title>feat: move lua conf under lua directory</title>
<updated>2023-07-28T20:28:36Z</updated>
<author>
<name>jdhao</name>
<email>jdhao@hotmail.com</email>
</author>
<published>2023-07-28T20:27:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mikehanus.xyz/nvim_config.git/commit/?id=e53ee104ec251b11b84045dec7782b9b7a03479f'/>
<id>urn:sha1:e53ee104ec251b11b84045dec7782b9b7a03479f</id>
<content type='text'>
</content>
</entry>
</feed>
