From 702661e39b2a1e41ff546d2fdf314a27a0c71da1 Mon Sep 17 00:00:00 2001 From: jacob Date: Sat, 24 Feb 2018 22:29:55 +0100 Subject: [PATCH] first edit of vim article --- drafts/vim.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 drafts/vim.md diff --git a/drafts/vim.md b/drafts/vim.md new file mode 100644 index 0000000..c210aaf --- /dev/null +++ b/drafts/vim.md @@ -0,0 +1,12 @@ +![](/../images/2017-12-02/a.png) + + +before learning to use Vim, I was intrigued by it, but had a really hard time undeesranding why anyone wouæd go to the trouble of learning to use such a difficult control scheme. Well, the answer was... there isn't that much to learn. If you have a regulare keyboard for example, there is no reason to start using hjkl instead. + +Second, coding is often mostly about editing, and boy does vim make that easier: + +Cut all inside deliminator and go into insert mode? c+i+[deliminator]. Cut the next two lines? 2+d+d. Change a word? c + i + w + [new word]. + Do that again somewhere else? Just press period. There are variations to these actions, but it's mostly stuff like that, that is so amazing when using Vim. Editing is _quick_! + + The problem is that normal actions are a bother for a first time: Search for a word? Press forward slash. Save? press colon + w. Quit? Colon + q. Open another file while inside Vim? Colon + e and then write the fucking path yourself you lazy millenial. Or install plugins. Fucking plugins. It's insane to ask that as the first thing, but you will god damn need some plugins. +