mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
add some more cheets
This commit is contained in:
@@ -3,17 +3,23 @@
|
|||||||
Generel stuff that I need to get into my muscle memory.
|
Generel stuff that I need to get into my muscle memory.
|
||||||
|
|
||||||
* `C-W [hjkl]` - switch to window left, above, below, right
|
* `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
|
* `C-L` - clear highlight
|
||||||
* `<C-o><C-o>` - Jump to last edited filed
|
* `<C-o><C-o>` - Jump to last edited filed
|
||||||
* `Control-o <<command>>` - For a single normal operation in insert mode
|
* `Control-o <<command>>` - 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/<<some-pattern>>/d` delete lines containing pattern
|
* `:g/<<some-pattern>>/d` delete lines containing pattern
|
||||||
* `:v/<<some-pattern>>/d` delete lines NOT containing pattern
|
* `:v/<<some-pattern>>/d` delete lines NOT containing pattern
|
||||||
|
* `g[;,]` - goto older/newer position in changelist
|
||||||
|
|
||||||
### edit macros
|
### edit macros
|
||||||
* `"ip` to past register `i` in buffer
|
* `"ip` to past register `i` in buffer
|
||||||
* `"iyy` to yank into register `i`
|
* `"iyy` to yank into register `i`
|
||||||
|
|
||||||
|
## search'n'replace
|
||||||
|
* `\ze` in regular expressions to start from here with replacing
|
||||||
|
|
||||||
## Remember lately added config
|
## Remember lately added config
|
||||||
|
|
||||||
* `gdefault` - do always global substitute
|
* `gdefault` - do always global substitute
|
||||||
|
|||||||
Reference in New Issue
Block a user