add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
19
old_snippets/vim-window-resize.en.md
Normal file
19
old_snippets/vim-window-resize.en.md
Normal 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" >}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue