# How do I escape \`\<\` in a mapping?

**URL:** <https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441>\
**Category:** Help\
**Created:** [December 20, 2020, 5:20pm UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441 "2020-12-20T17:20:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![todd](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/todd/32/746_2.png) [@todd](https://discuss.kakoune.com/u/todd)\
**Post date:** [December 20, 2020, 5:20pm UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441/1 "2020-12-20T17:20:18Z")

</div>

Here’s a simple mapping that selects the current indentation block and indents it on level, then it re-selects it.

```
map global normal L '<a-i>i><a-i>i' -docstring 'move right'

```

But when I try to do the same thing with the `<` mapping:

```
map global normal H '<a-i>i<<a-i>i' -docstring 'move left'

```

I get the following error:

```
'map' unable to parse modifier in '<<a-i>'

```

It also doesn’t work when I try to do something like `\<` or use `%{}`

Note: This is obviously a non-sensical example because I already have what I want selected.

---

<div class="post-metadata">

**Author:** ![tototest99](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/tototest99/32/629_2.png) [@tototest99](https://discuss.kakoune.com/u/tototest99)\
**Post date:** [December 20, 2020, 5:29pm UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441/2 "2020-12-20T17:29:49Z")

</div>

I skimmed your post but it’s probably a `<lt>` for \< and `<gt>` for \> matter.

---

<div class="post-metadata">

**Author:** ![todd](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/todd/32/746_2.png) [@todd](https://discuss.kakoune.com/u/todd)\
**Post date:** [December 20, 2020, 5:50pm UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441/3 "2020-12-20T17:50:15Z")

</div>

That did the trick. I need to get better at RTFM. Thanks!

---

<div class="post-metadata">

**Author:** ![todd](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/todd/32/746_2.png) [@todd](https://discuss.kakoune.com/u/todd)\
**Post date:** [December 21, 2020, 5:42am UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441/4 "2020-12-21T05:42:03Z")

</div>

I hate to create a new thread for this. Do you know how to map something to `<a-;>`?

```
map global normal O <alt-;>

```

I get the following error:

```
'map' unable to parse modifier in '<alt-;>'
```

---

<div class="post-metadata">

**Author:** ![tototest99](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/tototest99/32/629_2.png) [@tototest99](https://discuss.kakoune.com/u/tototest99)\
**Post date:** [December 21, 2020, 5:57am UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441/5 "2020-12-21T05:57:44Z")

</div>

`map global normal O "<a-;>"`

I recommand to read `doc expansions` and to play a bit with quotes for various commands: `echo`, `exec`, `eval`…

---

<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:** [December 21, 2020, 6:19am UTC](https://discuss.kakoune.com/t/how-do-i-escape-in-a-mapping/1441/6 "2020-12-21T06:19:02Z")

</div>

Problem one (as described by @tototest99) is that `;` separates commands, so you need to stick it in quotes (or use the alternative spelling, `<semicolon>`).

Problem two is the actual cause of the error message you’re seeing. The prefix for the Alt modifier is `a-`, not `alt-`, so Kakoune doesn’t recognise which modifier you’re talking about, and throws an error.
