# How to look around conveniently?

**URL:** <https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977>\
**Category:** Help\
**Created:** [January 25, 2022, 2:00pm UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977 "2022-01-25T14:00:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazevec](https://discuss.kakoune.com/letter_avatar_proxy/v4/letter/j/ea666f/32.png) [@jazevec](https://discuss.kakoune.com/u/jazevec)\
**Post date:** [January 25, 2022, 2:00pm UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/1 "2022-01-25T14:00:52Z")

</div>

I’m a neovim user who pokes in kakoune once in a while.

Currently my main beef with kak is that I can’t easily look around and read a source file. Examples:

1. In Vim, I often look around by moving by a paragraph. That’s shift-[ in Vim and it’s not too bad. I can jump to the next code block. In kak, it seems to be accomplished by alt-a p, and I’m currently unsure how to go in the other direction. I tried alt-[ p and then I can go to the start of the current paragraph, but it’s very unwieldy for something I would use on a ragular basis!

2. I don’t know how to move the screen around by a small amount. There’s CTRL-u and CTRL-d for scrolling half a screen. That’s it? I need some convenient ways to scroll. Some HTML files have no empty lines between them and scrolling by paragraph won’t work.

3. When I have multiple selections, especially in a HTML file with long lines, I can’t conveniently scroll the screen to the start of the lines (left). I know about commands 'v’iew and 'g’oto, but goto drops selections while view only goes to the leftmost selection which can be far from line start.

4. When I have

---

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [January 25, 2022, 2:31pm UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/2 "2022-01-25T14:31:35Z")

</div>

1. “to next paragraph” in Kakoune is `]p` and “to previous paragraph” is `[p`
  - Kakoune’s `<a-a>` and `<a-i>` are more like Vim’s `va` and `vi`, they select around the current cursor(s) rather than moving forward or backward

2. You can scroll the screen up or down by a single line with `vk` or `vj` respectively, or just use the scroll-wheel on your mouse
  - (you may run into [bug 1517](https://github.com/mawww/kakoune/issues/1517))

3. I recommend using `Z` to save the current selections as the default mark, then `gh` to move each cursor to the beginning of the line it’s on (causing the screen to scroll to keep them visible), then `z` to restore the saved selections
  - Kakoune believes very strongly that the currently-active cursor should never scroll off the screen, mostly because Vim has the same behaviour
  - 'g’oto doesn’t _always_ drop selections; the movements that are relative to the current position of each cursor (`gh`, `gi`, `gl`) keep all the cursors, the movements that are relative to the buffer (`gg`, `gk`, `gj`, `ge`) or window (`gt`, `gb`, `gc`) cause all the cursors to pile up in those places, and then when duplicates are removed only one cursor remains

---

<div class="post-metadata">

**Author:** ![krobelus](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/krobelus/32/616_2.png) [@krobelus](https://discuss.kakoune.com/u/krobelus)\
**Post date:** [January 26, 2022, 8:12am UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/3 "2022-01-26T08:12:10Z")

</div>

I’ve mapped ]p to ]r which feels more convenient:

```auto
map global object r p
map global object R p

```

---

<div class="post-metadata">

**Author:** ![0phoff](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/0phoff/32/1016_2.png) [@0phoff](https://discuss.kakoune.com/u/0phoff)\
**Post date:** [January 28, 2022, 4:32pm UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/4 "2022-01-28T16:32:45Z")

</div>

I personally like the to use the view menu (`v` key) to move around, especially when using it in locked mode (`shift+v` key)!

`shift+v` and then hold j to go down  
`shift+v` and then hold l to go up

---

<div class="post-metadata">

**Author:** ![eyepatchOwl](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/eyepatchowl/32/735_2.png) [@eyepatchOwl](https://discuss.kakoune.com/u/eyepatchOwl)\
**Post date:** [January 30, 2022, 12:27am UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/5 "2022-01-30T00:27:59Z")

</div>

I use C-d same as vim for half pages

---

<div class="post-metadata">

**Author:** ![xfoo](https://discuss.kakoune.com/letter_avatar_proxy/v4/letter/x/cdc98d/32.png) [@xfoo](https://discuss.kakoune.com/u/xfoo)\
**Post date:** [February 6, 2022, 2:09pm UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/6 "2022-02-06T14:09:07Z")

</div>

See this thread for more ways to navigate paragraphs:

[https://discuss.kakoune.com/t/key-mappings-for-navigating-paragraphs/1558](https://discuss.kakoune.com/t/key-mappings-for-navigating-paragraphs/1558)

---

<div class="post-metadata">

**Author:** ![kkga](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/kkga/32/849_2.png) [@kkga](https://discuss.kakoune.com/u/kkga)\
**Post date:** [February 11, 2022, 5:42pm UTC](https://discuss.kakoune.com/t/how-to-look-around-conveniently/1977/7 "2022-02-11T17:42:43Z")

</div>

I have this and use it a lot

```auto
# navigate by paragraphs
map global normal <c-n> ']pj;'
map global normal <c-p> '[p;'

```

If you’re using a terminal that handles [ambiguous keys](https://github.com/mawww/kakoune/wiki/Ambiguous-Keys), you could also set it to `<c-j>` and `<c-k>` which would make more sense.
