clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

markdown formatting

sspaeti 1ae7185a e3eb7c64

+67
+67
vim/vim-shortcuts.txt
··· 1 + 2 + 11.08.2021 3 + 4 + # learning VIM 5 + 6 + 7 + 8 + commands I learned and useful 9 + 10 + 11 + zz -> centers your cursor to the middle 12 + ; -> if you search something with f or t, it will search for the next one 13 + gg -> start and G -> end 14 + w -> goes one word and W goes further, same for back with b and B 15 + b -> goes one word back 16 + e -> move to the end of your word 17 + % -> toggles between parentese forth and back if your inside one 18 + \* -> toggles through all your variable or word on in your text 19 + o -> will insert a new line and put you into insert mode directly. O will due it above 20 + C -> puts you into insert and replace until end of line 21 + a -> Insert text after the cursor 22 + A -> will put you into i mode and jump to end of line 23 + I -> Insert mode at the beginning of the line 24 + i -> go into insert mode before the cursor 25 + x -> will delete one character where your cursor is 26 + ~ -> will toggle the case 27 + ZZ : closes file same as :wq except it will not write anything to disk if nothing has changed. :x does the same 28 + 29 + f -> find a character, with ; next. with F you find backward 30 + t -> find to a character. with ; next. With T you find backward 31 + 32 + ## More Navigation 33 + ^U: move up half a screen 34 + ^D: move down half a screen 35 + L: puts cursor into lowest part of your code 36 + M: puts cursor in the middle part of your code 37 + H: puts cursort to the top (high?) part of your code 38 + Ctrl-i: jump to your previous navigation location 39 + ctrl-r : replace 40 + Ctrl-o: jump back to where you were 41 + J: join the current line with the next one (delete what's between) 42 + 43 + ## visual mode 44 + v -> visual mode (characters) 45 + V -> line mode 46 + ctrl + v -> column mode! 47 + ctrl+v and any command after hit ESC -> will do it on all selected lines of columns 48 + 49 + ## recording macros 50 + q -> record macros! after you need to say where to save. e.g. safe on a character. you can applay it with @ and that character. hit q to stop/save the recording. 51 + 52 + 53 + . -> redo any cmd you did before !! 54 + 55 + ## text-objects or nouns 56 + p -> change paragraph 57 + w -> word 58 + s -> sentense 59 + 60 + [ ( { < -> A [], (), or {} block 61 + t -> tag 62 + b -> block B-> block in 63 + R -> Insert mode -> replaces existing text 64 + r -> replace one character 65 + 66 + # Learnings 67 + Ctrl+r" - Insert the contents of the " register, aka the last yank/delete. e.g. if you want to replace single quotes with double: ciw'Ctrl+r"'