From 37283debe00de50de7a97989d2907c53e4abcc2e Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Mon, 4 Mar 2019 00:08:18 +0100 Subject: [PATCH] add some more cheets --- vim/.vim/cheatsheet.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/.vim/cheatsheet.md b/vim/.vim/cheatsheet.md index c8ca4fb..a54518f 100644 --- a/vim/.vim/cheatsheet.md +++ b/vim/.vim/cheatsheet.md @@ -3,17 +3,23 @@ Generel stuff that I need to get into my muscle memory. * `C-W [hjkl]` - switch to window left, above, below, right +* `C-W x` - switch to windows +* `C-W C-o` - only current window, close others * `C-L` - clear highlight * `` - Jump to last edited filed * `Control-o <>` - For a single normal operation in insert mode -* `gx` - on URL to open it in the browser - WUUT +* `gx` - on URL/file via xdg-open/open * `:g/<>/d` delete lines containing pattern * `:v/<>/d` delete lines NOT containing pattern +* `g[;,]` - goto older/newer position in changelist ### edit macros * `"ip` to past register `i` in buffer * `"iyy` to yank into register `i` +## search'n'replace +* `\ze` in regular expressions to start from here with replacing + ## Remember lately added config * `gdefault` - do always global substitute