add the old snippet md files

This commit is contained in:
Travis Shears 2025-06-05 16:20:57 +02:00
parent fc0dd204c7
commit bcf8313a4b
110 changed files with 3048 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---
title: "resizing vim windows with arrow keys"
date: 2020-01-11T12:50:53+01:00
draft: false
snippet_types: ["vim"]
---
If your comfortable in vim you only use the j,h,k,l movement keys leaving the arrow keys open to do
something more useful like window resizing!
```vim script
" Remap arrow keys to resize window
nnoremap <Up> :resize -2<CR>
nnoremap <Down> :resize +2<CR>
nnoremap <Left> :vertical resize -2<CR>
nnoremap <Right> :vertical resize +2<CR>
```
{{< asciicast-with-caption id="292983" title="demo window resizing" >}}