snippets/old_snippets/vim-jumps-fix.en.md

21 lines
758 B
Markdown

---
title: "remapping ability to jump"
date: 2020-01-11T13:09:41+01:00
draft: false
snippet_types: ["vim"]
---
Moving efficiently in vim is a massive topic but recently I just wanted to take advantage of the
jump list more but by xQuartz / xterm mac terminal setup meant the default key mappings we being
intercepted as promote / demote pane. Simple remap did the trick
```vim script
nnoremap <Leader>i <C-i>
nnoremap <Leader>o <C-o>
```
In the following demo I open this very post then navigate to my **.nvimrc** and yank the code
remapping snippet. With the snipped yanked, using this using jump list via **\<C-O>**, I jump back
to the markdown file I was editing and put.
{{< asciicast-with-caption id="292978" title="demo of using the jump list" >}}