clone of my dotfiles.ssp.sh
1
fork

Configure Feed

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

minors

sspaeti efbf77f0 bc50d065

+21 -8
+2 -1
Brewfile
··· 12 12 brew "docker", link: false 13 13 brew "docker-machine" 14 14 brew "hugo" 15 - brew "neovim" 15 + brew "neovim", args: ["HEAD"] 16 + brew "node" 16 17 brew "pandoc" 17 18 brew "postgresql", restart_service: true 18 19 brew "python@3.8", link: true
+19 -7
vim/vim-shortcuts.md
··· 1 + latest are in obsidian://open?vault=SecondBrain&file=%F0%9F%92%A1%20Resources%2F%F0%9F%8C%8D%20Wiki%20%F0%9F%93%82%20Files%2F%F0%9F%90%A7%20Linux%2FVim%20%26%20Tmux%2FVim%20and%20Tmux%20Shortcuts 2 + 1 3 2 4 # learning VIM 3 5 4 - 5 - 6 6 commands I learned and useful 7 - 8 7 9 8 zz -> centers your cursor to the middle 10 9 ; -> if you search something with f or t, it will search for the next one ··· 28 27 t -> find to a character. with ; next. With T you find backward 29 28 30 29 ## More Navigation 30 + 31 31 ^U: move up half a screen 32 32 ^D: move down half a screen 33 33 L: puts cursor into lowest part of your code ··· 39 39 J: join the current line with the next one (delete what's between) 40 40 41 41 ## Do even more Navigation 42 + 42 43 ctrl+p: fuzzy finding for files 43 44 :e open a new file 44 - ctrl+ˆ: toggle between two open files 45 + ctrl+ˆ: toggle between two open files 46 + 45 47 ### local marks 48 + 46 49 m-any-key: set a marker on that key. with '-any-key you can jump back to that marker. you can set multiple markers 47 - useful when you work in a file for long! 50 + useful when you work in a file for long! 51 + 48 52 ### global marks 53 + 49 54 same as local also set with m, but this time the any key will be capitalized 55 + 50 56 ### buffer operation 57 + 51 58 c-^ switching between latest two files in buffer 52 59 :b starting-file-name <tab> will serach your buffer and let you switch between files 53 60 :bd closes/deletes current buffer (will not delete when you saved, it just unloads from buffer) 61 + 54 62 ## window operations 63 + 55 64 ctrl+w: entering window mode 56 65 then: 57 66 v: vertical split ··· 62 71 :Ex opens the file-three 63 72 64 73 ## visual mode 74 + 65 75 v -> visual mode (characters) 66 76 V -> line mode 67 77 ctrl + v -> column mode! 68 78 ctrl+v and any command after hit ESC -> will do it on all selected lines of columns 69 79 70 80 ## recording macros 71 - 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. 72 81 82 + 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. 73 83 74 84 . -> redo any cmd you did before !! 75 85 76 86 ## text-objects or nouns 87 + 77 88 p -> change paragraph 78 89 w -> word 79 90 s -> sentense 80 91 81 - [ ( { < -> A [], (), or {} block 92 + [ ( { < -> A [], (), or {} block 82 93 t -> tag 83 94 b -> block B-> block in 84 95 R -> Insert mode -> replaces existing text 85 96 r -> replace one character 86 97 87 98 # Learnings 99 + 88 100 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"'