-
-
Save kjm0001/c4bce69bda7f72ca93a93b3c4a79357e to your computer and use it in GitHub Desktop.
Revisions
-
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `C` | Delete until end of line and insert | | | `cc` | Delete whole line and insert | | | `dd` | Delete line *(Cut)* | The deleted texts will be copied in Vim’s clipboard | | `2dd` | Delete 2 lines *(Cut)* | | | `dw` | Delete to next word | | | `db` | Delete to beginning of word | | | `ciw` | Change (replace) entire word. (Delete current word that pointed by cursor) | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `C` | Delete until end of line and insert | | | `cc` | Delete whole line and insert | | | `dd` | Delete line *(Cut)* | The deleted texts will be copied in Vim’s clipboard | | `2dd` | Delete 2 line *(Cut)* | | | `dw` | Delete to next word | | | `db` | Delete to beginning of word | | | `ciw` | Change (replace) entire word. (Delete current word that pointed by cursor) | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ "scrollStepSize": 60, "smoothScroll": true, "grabBackFocus": false, "searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\ng: https://www.google.com/search?q=%s Google\nl: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\nyt: https://www.youtube.com/results?search_query=%s YouTube\ngm: https://www.google.com/maps?q=%s Google Maps\nb: https://www.bing.com/search?q=%s Bing\nyd: https://yandex.com/search/?text=%s Yandex\nd: https://duckduckgo.com/?q=%s DuckDuckGo\naz: https://www.amazon.com/s/?field-keywords=%s Amazon\nqw: https://www.qwant.com/?q=%s Qwant\ngh: https://github.com/search?q=%s GitHub", "searchUrl": "https://www.google.com/search?q=", "userDefinedLinkHintCss": "/*\nhttps://github.com/dracula/vimium\nDracula theme for Vimium\nby Trollwut ([email protected]). This code is in the public domain.\nTo use:\n 1. Copy the code.\n 2. Go to the Vimium options.\n 3. Click Show Advanced Options.\n 4. Under Advanced Options, scroll down to CSS for link hints.\n 5. Paste the code in the text field.\n 6. Click Save Changes.\n 7. Go to the website of your choice (or, if you have it open already, reload it) and check out the results.\n*/\n\n/* Link hint boxes */\ndiv > .vimiumHintMarker {\n background: #282a36;\n font-size: 12px;\n border: 0.25em solid #ffb86c;\n border-radius: 0.34em;\n box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);\n}\n\n/* Link hint text */\ndiv > .vimiumHintMarker span {\n color: #f8f8f2;\n font-size: inherit;\n text-shadow: none;\n}\n\n/* Link hint matching characters */\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #6272a4;\n}\n\n/* HUD (\"heads-up display\") bar */\ndiv.vimiumHUD {\n background: #282a36;\n border: 1px solid #6272a4;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background: #282a36;\n}\n\ndiv.vimiumHUD .hud-find {\n background: #282a36;\n border: none;\n color: #f8f8f2;\n}\n\ndiv.vimiumHUD span#hud-find-input{\n color: #f8f8f2; /* 'Foreground' color */\n}\n\ndiv.vimiumHUD span#hud-match-count {\n color: #6272a4; /* 'Comment' color */\n}\n\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #6272a4; /* 'Comment' color */\n}\n\n#vomnibar{\n background-color: #44475A;\n}\n\n#vomnibar input {\n color: #f8f8f2;\n font: -moz-window;\n /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/\n font-size: 20px;\n height: 34px;\n margin-bottom: 0;\n padding: 4px;\n background-color: #282a36;\n border-radius: 3px;\n border: 1px solid #6272a4;\n box-shadow: #bd93f9 0px 0px 1px;\n width: 100%;\n outline: none;\n box-sizing: border-box;\n}\n\n#vomnibar .vomnibarSearchArea {\n display: block;\n padding: 10px;\n background-color: #6272a4;\n border-radius: 4px 4px 0 0;\n border-bottom: 0px solid #bd93f9;\n}\n\n#vomnibar ul {\n background-color: #44475a;\n border-radius: 0 0 4px 4px;\n list-style: none;\n padding-top: 0;\n padding-bottom: 0;\n margin-block-start: 2px;\n margin-block-end: 0px;\n}\n\n#vomnibar li {\n border-bottom: 1px solid #6272a4;\n line-height: 1.1em;\n padding: 7px 10px;\n font-size: 16px;\n color: #f8f8f2;\n position: relative;\n display: list-item;\n margin: auto;\n}\n\n#vomnibar li .vomnibarBottomHalf {\n font-size: 15px;\n margin-top: 3px;\n padding: 2px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #bd93f9;\n margin-right: 4px;\n}\n#vomnibar li .vomnibarRelevancy {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n background-color: #282a36;\n color: #f8f8f2;\n font-family: monospace;\n width: 100px;\n overflow: hidden;\n}\n\n#vomnibar li .vomnibarUrl {\n white-space: nowrap;\n color: #50fa7b;\n}\n\n#vomnibar li .vomnibarMatch {\n font-weight: bold;\n color: #ffb86c;\n}\n\n#vomnibar li em, #vomnibar li .vomnibarTitle {\n color: #f8f8f2;\n margin-left: 4px;\n font-weight: normal;\n}\n#vomnibar li em { font-style: italic; }\n#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {\n color: #ffb86c;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #6272a4;\n font-weight: normal;\n}\n\n#vomnibarInput::selection {\n background-color: #8be9fd;\n}" } -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -181,7 +181,7 @@ To activate search completion, type `o` to activate vomnibar and then type the s | `w` | https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s | Wikipedia | | `g` | https://www.google.com/search?q=%s | Google | | `l` | https://www.google.com/search?q=%s&btnI | I'm feeling lucky... | | `yt` | https://www.youtube.com/results?search_query=%s | YouTube | | `gm` | https://www.google.com/maps?q=%s | Google Maps | | `b` | https://www.bing.com/search?q=%s | Bing | | `yd` | https://yandex.com/search/?text=%s | Yandex | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -181,7 +181,7 @@ To activate search completion, type `o` to activate vomnibar and then type the s | `w` | https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s | Wikipedia | | `g` | https://www.google.com/search?q=%s | Google | | `l` | https://www.google.com/search?q=%s&btnI | I'm feeling lucky... | | `yt` | https://www.youtube.com/results?search_query=%s | YouTube | | `gm` | https://www.google.com/maps?q=%s | Google Maps | | `b` | https://www.bing.com/search?q=%s | Bing | | `yd` | https://yandex.com/search/?text=%s | Yandex | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ "scrollStepSize": 60, "smoothScroll": true, "grabBackFocus": false, "searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\ng: https://www.google.com/search?q=%s Google\nl: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\ny: https://www.youtube.com/results?search_query=%s YouTube\ngm: https://www.google.com/maps?q=%s Google Maps\nb: https://www.bing.com/search?q=%s Bing\nyd: https://yandex.com/search/?text=%s Yandex\nd: https://duckduckgo.com/?q=%s DuckDuckGo\naz: https://www.amazon.com/s/?field-keywords=%s Amazon\nqw: https://www.qwant.com/?q=%s Qwant\ngh: https://github.com/search?q=%s GitHub", "searchUrl": "https://www.google.com/search?q=", "userDefinedLinkHintCss": "/*\nhttps://github.com/dracula/vimium\nDracula theme for Vimium\nby Trollwut ([email protected]). This code is in the public domain.\nTo use:\n 1. Copy the code.\n 2. Go to the Vimium options.\n 3. Click Show Advanced Options.\n 4. Under Advanced Options, scroll down to CSS for link hints.\n 5. Paste the code in the text field.\n 6. Click Save Changes.\n 7. Go to the website of your choice (or, if you have it open already, reload it) and check out the results.\n*/\n\n/* Link hint boxes */\ndiv > .vimiumHintMarker {\n background: #282a36;\n font-size: 12px;\n border: 0.25em solid #ffb86c;\n border-radius: 0.34em;\n box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);\n}\n\n/* Link hint text */\ndiv > .vimiumHintMarker span {\n color: #f8f8f2;\n font-size: inherit;\n text-shadow: none;\n}\n\n/* Link hint matching characters */\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #6272a4;\n}\n\n/* HUD (\"heads-up display\") bar */\ndiv.vimiumHUD {\n background: #282a36;\n border: 1px solid #6272a4;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background: #282a36;\n}\n\ndiv.vimiumHUD .hud-find {\n background: #282a36;\n border: none;\n color: #f8f8f2;\n}\n\ndiv.vimiumHUD span#hud-find-input{\n color: #f8f8f2; /* 'Foreground' color */\n}\n\ndiv.vimiumHUD span#hud-match-count {\n color: #6272a4; /* 'Comment' color */\n}\n\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #6272a4; /* 'Comment' color */\n}\n\n#vomnibar{\n background-color: #44475A;\n}\n\n#vomnibar input {\n color: #f8f8f2;\n font: -moz-window;\n /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/\n font-size: 20px;\n height: 34px;\n margin-bottom: 0;\n padding: 4px;\n background-color: #282a36;\n border-radius: 3px;\n border: 1px solid #6272a4;\n box-shadow: #bd93f9 0px 0px 1px;\n width: 100%;\n outline: none;\n box-sizing: border-box;\n}\n\n#vomnibar .vomnibarSearchArea {\n display: block;\n padding: 10px;\n background-color: #6272a4;\n border-radius: 4px 4px 0 0;\n border-bottom: 0px solid #bd93f9;\n}\n\n#vomnibar ul {\n background-color: #44475a;\n border-radius: 0 0 4px 4px;\n list-style: none;\n padding-top: 0;\n padding-bottom: 0;\n margin-block-start: 2px;\n margin-block-end: 0px;\n}\n\n#vomnibar li {\n border-bottom: 1px solid #6272a4;\n line-height: 1.1em;\n padding: 7px 10px;\n font-size: 16px;\n color: #f8f8f2;\n position: relative;\n display: list-item;\n margin: auto;\n}\n\n#vomnibar li .vomnibarBottomHalf {\n font-size: 15px;\n margin-top: 3px;\n padding: 2px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #bd93f9;\n margin-right: 4px;\n}\n#vomnibar li .vomnibarRelevancy {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n background-color: #282a36;\n color: #f8f8f2;\n font-family: monospace;\n width: 100px;\n overflow: hidden;\n}\n\n#vomnibar li .vomnibarUrl {\n white-space: nowrap;\n color: #50fa7b;\n}\n\n#vomnibar li .vomnibarMatch {\n font-weight: bold;\n color: #ffb86c;\n}\n\n#vomnibar li em, #vomnibar li .vomnibarTitle {\n color: #f8f8f2;\n margin-left: 4px;\n font-weight: normal;\n}\n#vomnibar li em { font-style: italic; }\n#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {\n color: #ffb86c;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #6272a4;\n font-weight: normal;\n}\n\n#vomnibarInput::selection {\n background-color: #8be9fd;\n}" } -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -188,5 +188,3 @@ To activate search completion, type `o` to activate vomnibar and then type the s | `d` | https://duckduckgo.com/?q=%s | DuckDuckGo | | `az` | https://www.amazon.com/s/?field-keywords=%s | Amazon | | `gh` | https://github.com/search?q=%s | GitHub | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 65 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -125,3 +125,68 @@ Text objects let you operate (with an *operator*) in or around text blocks (*obj | `:delmarks {a-zA-Z}` | Delete specific marks | | | `:delm abc` | Delete marks a, b and c | | | `:delm!` | Delete all marks but not marks A-Z | | # [Vimium](https://github.com/philc/vimium) Cheatsheet [Vimium](https://www.philc.co/vimium/) is a browser extension that provides keyboard-based navigation and control of the web in the spirit of the Vim editor. > 📖 References > > - [Dracula them for Vimium](https://draculatheme.com/vimium) ## 🧭 Navigation | Keystroke(s) | Description | Note | | --------------- | ------------------------------------------------------------ | ---- | | `?` | Show the help dialog for a list of all available keys | | | `h` `j` `k` `l` | Arrow keys (⬅️ ⬇️ ⬆️ ➡️) | | | `gg` | Scroll to top of the page | | | `G` | Scroll to bottom of the page | | | `d` | Scroll down half a page | | | `u` | Scroll up half a page | | | `f` | Open a link in the current tab | | | `F` | Open a link in a new tab | | | `r` | Reload page | | | `gs` | View source | | | `i` | Enter insert mode -- all commands will be ignored until you hit Esc to exit | | | `yy` | Copy the current url to the clipboard | | | `yf` | Copy a link url to the clipboard | | | `o` | Open URL, bookmark, or history entry | | | `O` | Open URL, bookmark, history entry in a new tab | | | `b` | Open bookmark | | | `B` | Open bookmark in a new tab | | | `/` | Enter find mode -- type your search query and hit enter to search, or Esc to cancel | | | `n` / `N` | Next/previous matching search pattern | | | `H` | Go back in history | | | `L` | Go forward in history | | | `J` | Go one tab left | | | `K` | Go one tab right | | | `^` | Visit the previously-visited tab | | | `t` | Create new tab | | | `yt` | Yank (duplicate) current tab | | | `x` | Close current tab | | | `X` | Restore closed tab (i.e. unwind the 'x' command) | | | `T` | Search through your open tabs | | | `W` | Move current tab to new window | | | `<a-p>` | Pin/unpin current tab | | | `ge` | Edit the current URL | | | `gE` | Edit the current URL and open in a new tab | | ## 🔍 [Search Completion](https://github.com/philc/vimium/wiki/Search-Completion) To activate search completion, type `o` to activate vomnibar and then type the search completion keyword as defined in settings (such as 'g') and press space. | Keystroke(s) | Description | Note | | ------------ | ------------------------------------------------------------ | -------------------- | | `w` | https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s | Wikipedia | | `g` | https://www.google.com/search?q=%s | Google | | `l` | https://www.google.com/search?q=%s&btnI | I'm feeling lucky... | | `y` | https://www.youtube.com/results?search_query=%s | YouTube | | `gm` | https://www.google.com/maps?q=%s | Google Maps | | `b` | https://www.bing.com/search?q=%s | Bing | | `yd` | https://yandex.com/search/?text=%s | Yandex | | `d` | https://duckduckgo.com/?q=%s | DuckDuckGo | | `az` | https://www.amazon.com/s/?field-keywords=%s | Amazon | | `gh` | https://github.com/search?q=%s | GitHub | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 25 additions and 25 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +1,26 @@ { "settingsVersion": "1.67", "exclusionRules": [ { "pattern": "https?://mail.google.com/*", "passKeys": "" } ], "filterLinkHints": false, "waitForEnterForFilteredHints": true, "hideHud": false, "keyMappings": "# Insert your preferred key mappings here.", "linkHintCharacters": "sadfjklewcmpgh", "linkHintNumbers": "0123456789", "newTabUrl": "about:newtab", "nextPatterns": "next,more,newer,>,›,→,»,≫,>>", "previousPatterns": "prev,previous,back,older,<,‹,←,«,≪,<<", "regexFindMode": false, "ignoreKeyboardLayout": false, "scrollStepSize": 60, "smoothScroll": true, "grabBackFocus": false, "searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\ng: https://www.google.com/search?q=%s Google\nl: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\ny: https://www.youtube.com/results?search_query=%s Youtube\ngm: https://www.google.com/maps?q=%s Google maps\nb: https://www.bing.com/search?q=%s Bing\nd: https://duckduckgo.com/?q=%s DuckDuckGo\naz: https://www.amazon.com/s/?field-keywords=%s Amazon\nqw: https://www.qwant.com/?q=%s Qwant", "searchUrl": "https://www.google.com/search?q=", "userDefinedLinkHintCss": "/*\nhttps://github.com/dracula/vimium\nDracula theme for Vimium\nby Trollwut ([email protected]). This code is in the public domain.\nTo use:\n 1. Copy the code.\n 2. Go to the Vimium options.\n 3. Click Show Advanced Options.\n 4. Under Advanced Options, scroll down to CSS for link hints.\n 5. Paste the code in the text field.\n 6. Click Save Changes.\n 7. Go to the website of your choice (or, if you have it open already, reload it) and check out the results.\n*/\n\n/* Link hint boxes */\ndiv > .vimiumHintMarker {\n background: #282a36;\n font-size: 12px;\n border: 0.25em solid #ffb86c;\n border-radius: 0.34em;\n box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);\n}\n\n/* Link hint text */\ndiv > .vimiumHintMarker span {\n color: #f8f8f2;\n font-size: inherit;\n text-shadow: none;\n}\n\n/* Link hint matching characters */\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #6272a4;\n}\n\n/* HUD (\"heads-up display\") bar */\ndiv.vimiumHUD {\n background: #282a36;\n border: 1px solid #6272a4;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background: #282a36;\n}\n\ndiv.vimiumHUD .hud-find {\n background: #282a36;\n border: none;\n color: #f8f8f2;\n}\n\ndiv.vimiumHUD span#hud-find-input{\n color: #f8f8f2; /* 'Foreground' color */\n}\n\ndiv.vimiumHUD span#hud-match-count {\n color: #6272a4; /* 'Comment' color */\n}\n\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #6272a4; /* 'Comment' color */\n}\n\n#vomnibar{\n background-color: #44475A;\n}\n\n#vomnibar input {\n color: #f8f8f2;\n font: -moz-window;\n /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/\n font-size: 20px;\n height: 34px;\n margin-bottom: 0;\n padding: 4px;\n background-color: #282a36;\n border-radius: 3px;\n border: 1px solid #6272a4;\n box-shadow: #bd93f9 0px 0px 1px;\n width: 100%;\n outline: none;\n box-sizing: border-box;\n}\n\n#vomnibar .vomnibarSearchArea {\n display: block;\n padding: 10px;\n background-color: #6272a4;\n border-radius: 4px 4px 0 0;\n border-bottom: 0px solid #bd93f9;\n}\n\n#vomnibar ul {\n background-color: #44475a;\n border-radius: 0 0 4px 4px;\n list-style: none;\n padding-top: 0;\n padding-bottom: 0;\n margin-block-start: 2px;\n margin-block-end: 0px;\n}\n\n#vomnibar li {\n border-bottom: 1px solid #6272a4;\n line-height: 1.1em;\n padding: 7px 10px;\n font-size: 16px;\n color: #f8f8f2;\n position: relative;\n display: list-item;\n margin: auto;\n}\n\n#vomnibar li .vomnibarBottomHalf {\n font-size: 15px;\n margin-top: 3px;\n padding: 2px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #bd93f9;\n margin-right: 4px;\n}\n#vomnibar li .vomnibarRelevancy {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n background-color: #282a36;\n color: #f8f8f2;\n font-family: monospace;\n width: 100px;\n overflow: hidden;\n}\n\n#vomnibar li .vomnibarUrl {\n white-space: nowrap;\n color: #50fa7b;\n}\n\n#vomnibar li .vomnibarMatch {\n font-weight: bold;\n color: #ffb86c;\n}\n\n#vomnibar li em, #vomnibar li .vomnibarTitle {\n color: #f8f8f2;\n margin-left: 4px;\n font-weight: normal;\n}\n#vomnibar li em { font-style: italic; }\n#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {\n color: #ffb86c;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #6272a4;\n font-weight: normal;\n}\n\n#vomnibarInput::selection {\n background-color: #8be9fd;\n}" } -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 26 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,26 @@ { "settingsVersion": "1.67", "exclusionRules": [ { "pattern": "https?://mail.google.com/*", "passKeys": "" } ], "filterLinkHints": false, "waitForEnterForFilteredHints": true, "hideHud": false, "keyMappings": "# Insert your preferred key mappings here.", "linkHintCharacters": "sadfjklewcmpgh", "linkHintNumbers": "0123456789", "newTabUrl": "about:newtab", "nextPatterns": "next,more,newer,>,›,→,»,≫,>>", "previousPatterns": "prev,previous,back,older,<,‹,←,«,≪,<<", "regexFindMode": false, "ignoreKeyboardLayout": false, "scrollStepSize": 60, "smoothScroll": true, "grabBackFocus": false, "searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\ng: https://www.google.com/search?q=%s Google\nl: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\ny: https://www.youtube.com/results?search_query=%s Youtube\ngm: https://www.google.com/maps?q=%s Google maps\nb: https://www.bing.com/search?q=%s Bing\nd: https://duckduckgo.com/?q=%s DuckDuckGo\naz: https://www.amazon.com/s/?field-keywords=%s Amazon\nqw: https://www.qwant.com/?q=%s Qwant", "searchUrl": "https://www.google.com/search?q=", "userDefinedLinkHintCss": "/*\nhttps://github.com/dracula/vimium\nDracula theme for Vimium\nby Trollwut ([email protected]). This code is in the public domain.\nTo use:\n 1. Copy the code.\n 2. Go to the Vimium options.\n 3. Click Show Advanced Options.\n 4. Under Advanced Options, scroll down to CSS for link hints.\n 5. Paste the code in the text field.\n 6. Click Save Changes.\n 7. Go to the website of your choice (or, if you have it open already, reload it) and check out the results.\n*/\n\n/* Link hint boxes */\ndiv > .vimiumHintMarker {\n background: #282a36;\n font-size: 12px;\n border: 0.25em solid #ffb86c;\n border-radius: 0.34em;\n box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);\n}\n\n/* Link hint text */\ndiv > .vimiumHintMarker span {\n color: #f8f8f2;\n font-size: inherit;\n text-shadow: none;\n}\n\n/* Link hint matching characters */\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #6272a4;\n}\n\n/* HUD (\"heads-up display\") bar */\ndiv.vimiumHUD {\n background: #282a36;\n border: 1px solid #6272a4;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background: #282a36;\n}\n\ndiv.vimiumHUD .hud-find {\n background: #282a36;\n border: none;\n color: #f8f8f2;\n}\n\ndiv.vimiumHUD span#hud-find-input{\n color: #f8f8f2; /* 'Foreground' color */\n}\n\ndiv.vimiumHUD span#hud-match-count {\n color: #6272a4; /* 'Comment' color */\n}\n\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #6272a4; /* 'Comment' color */\n}\n\n#vomnibar{\n background-color: #44475A;\n}\n\n#vomnibar input {\n color: #f8f8f2;\n font: -moz-window;\n /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/\n font-size: 20px;\n height: 34px;\n margin-bottom: 0;\n padding: 4px;\n background-color: #282a36;\n border-radius: 3px;\n border: 1px solid #6272a4;\n box-shadow: #bd93f9 0px 0px 1px;\n width: 100%;\n outline: none;\n box-sizing: border-box;\n}\n\n#vomnibar .vomnibarSearchArea {\n display: block;\n padding: 10px;\n background-color: #6272a4;\n border-radius: 4px 4px 0 0;\n border-bottom: 0px solid #bd93f9;\n}\n\n#vomnibar ul {\n background-color: #44475a;\n border-radius: 0 0 4px 4px;\n list-style: none;\n padding-top: 0;\n padding-bottom: 0;\n margin-block-start: 2px;\n margin-block-end: 0px;\n}\n\n#vomnibar li {\n border-bottom: 1px solid #6272a4;\n line-height: 1.1em;\n padding: 7px 10px;\n font-size: 16px;\n color: #f8f8f2;\n position: relative;\n display: list-item;\n margin: auto;\n}\n\n#vomnibar li .vomnibarBottomHalf {\n font-size: 15px;\n margin-top: 3px;\n padding: 2px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #bd93f9;\n margin-right: 4px;\n}\n#vomnibar li .vomnibarRelevancy {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n background-color: #282a36;\n color: #f8f8f2;\n font-family: monospace;\n width: 100px;\n overflow: hidden;\n}\n\n#vomnibar li .vomnibarUrl {\n white-space: nowrap;\n color: #50fa7b;\n}\n\n#vomnibar li .vomnibarMatch {\n font-weight: bold;\n color: #ffb86c;\n}\n\n#vomnibar li em, #vomnibar li .vomnibarTitle {\n color: #f8f8f2;\n margin-left: 4px;\n font-weight: normal;\n}\n#vomnibar li em { font-style: italic; }\n#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {\n color: #ffb86c;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #6272a4;\n font-weight: normal;\n}\n\n#vomnibarInput::selection {\n background-color: #8be9fd;\n}" } -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -125,4 +125,3 @@ Text objects let you operate (with an *operator*) in or around text blocks (*obj | `:delmarks {a-zA-Z}` | Delete specific marks | | | `:delm abc` | Delete marks a, b and c | | | `:delm!` | Delete all marks but not marks A-Z | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 67 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,12 @@ # [Vim](https://www.vim.org/) Cheatsheet Johnny Miller, Sun Oct 2 13:58:53 CST 2022 [**Vim**](https://en.wikipedia.org/wiki/Vim_(text_editor)) ([/vɪm/](https://en.wikipedia.org/wiki/Help:IPA/English); a contraction of ***Vi IMproved***) is a [free and open-source](https://en.wikipedia.org/wiki/Free_and_open-source), [screen-based text editor](https://en.wikipedia.org/wiki/Screen-based_text_editor) program. It is an improved clone of [Bill Joy](https://en.wikipedia.org/wiki/Bill_Joy)'s [vi](https://en.wikipedia.org/wiki/Vi). > 📖 References > > - [Vim help files](https://vimhelp.org/) > - [Vim cheatsheet](https://devhints.io/vim) > - [Great Practical Ideas for Computer Scientists vim cheat sheet](https://www.cs.cmu.edu/~15131/f17/topics/vim/vim-cheatsheet.pdf) > - [A Great Vim Cheat Sheet](https://vimsheet.com/) @@ -15,31 +16,37 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 [TOC] ## 📚 Glossary - Operators let you operate in a range of text (defined by *motion*). These are performed in normal mode. See more: [Motions and operators](https://vimhelp.org/motion.txt.html#operator) - Text objects let you operate (with an *operator*) in or around text blocks (*objects*). ## 🧭 Navigation | Keystroke(s) | Description | Note | | --------------- | ---------------------------------- | ----------- | | `h` `j` `k` `l` | Arrow keys (⬅️ ⬇️ ⬆️ ➡️) | | | `b` / `w` | Previous/next word | | | `ge` / `e` | Previous/next end of word | | | `0` *(zero)* | Start of line | | | `^` | Start of line *(after whitespace)* | | | `$` | End of line | | | `gg` | First line | | | `G` | Last line | | | `:n` | Go to line `n` | | | `nG` | Go to line `n` | | | `zz` | Center this line in editor window | | | `zt` | Top this line in editor window | | | `zb` | Bottom this line | | | `H` | Move to top of screen | | | `M` | Move to middle of screen | | | `L` | Move to bottom of screen | | | `/pattern` | Search for pattern | | | `?pattern` | Search backward for pattern | | | `n` | Next matching search pattern | | | `N` | Previous match | | | `gd` | Go to definition | JetBrains | | `{` / `}` | Jump to previous/next paragraph | Visual mode | ## 📝 Editing @@ -55,11 +62,17 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `C` | Delete until end of line and insert | | | `cc` | Delete whole line and insert | | | `dd` | Delete line *(Cut)* | The deleted texts will be copied in Vim’s clipboard | | `2dd` | Delete 2 linen *(Cut)* | | | `dw` | Delete to next word | | | `db` | Delete to beginning of word | | | `ciw` | Change (replace) entire word. (Delete current word that pointed by cursor) | | | `cw` / `ce` | Change (replace) to the end of the word. | | | `u` | Undo changes | | | `<C-R>` | Redo changes | `<C-R>` = `ctrl + r` | | `Esc` / `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | | `<C-C>` | Exit insert mode (corrupt), and abort current command | `<C-C>` = `ctrl + c` | | `<` / `>` | Indent right/left | Visual mode. Operators | | `=` | Autoindent | | ## 📋 Clipboard @@ -83,3 +96,33 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `a` | Enter insert node and append text after where cursor is | | | `i` | Enter insert node and insert text before where cursor is | | | `Esc` / `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | ## 💬 Text Objects Text objects let you operate (with an *operator*) in or around text blocks (*objects*). | `v` | `i` | `p` | | -------- | -------------------- | ----------- | | Operator | [i]nside or [a]round | Text object | | Keystroke(s) | Description | Note | | ------------ | ------------------------------------------------------- | ---- | | `vip` | Select paragraph | | | `yip` | Yank inner paragraph | | | `ciw` | Change (replace) entire word | | | `ggvG` | Select all text. (Go to top, visual mode, go to bottom) | | ## 🏷 Marks | Keystroke(s) | Description | Note | | -------------------- | ------------------------------------------------------------ | ---- | | `m{a-z}` | Set mark {a-z} at cursor position | | | `m{A-Z}` | A capital mark {A-Z} sets a global mark and will work between files | | | ``{a-zA-Z}` | Move cursor to the position where the mark was set | | | `'{a-zA-Z}` | Move cursor to the start of the line where the mark was set | | | `''` | Go back to the previous jump location | | | `:marks` | List marks | | | `:delmarks {a-zA-Z}` | Delete specific marks | | | `:delm abc` | Delete marks a, b and c | | | `:delm!` | Delete all marks but not marks A-Z | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -83,5 +83,3 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `a` | Enter insert node and append text after where cursor is | | | `i` | Enter insert node and insert text before where cursor is | | | `Esc` / `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 17 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,17 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 [**Vim**](https://en.wikipedia.org/wiki/Vim_(text_editor)) ([/vɪm/](https://en.wikipedia.org/wiki/Help:IPA/English); a contraction of ***Vi IMproved***) is a [free and open-source](https://en.wikipedia.org/wiki/Free_and_open-source), [screen-based text editor](https://en.wikipedia.org/wiki/Screen-based_text_editor) program. It is an improved clone of [Bill Joy](https://en.wikipedia.org/wiki/Bill_Joy)'s [vi](https://en.wikipedia.org/wiki/Vi). > 📖 References > > - [Vim cheatsheet](https://devhints.io/vim) > - [Great Practical Ideas for Computer Scientists vim cheat sheet](https://www.cs.cmu.edu/~15131/f17/topics/vim/vim-cheatsheet.pdf) > - [A Great Vim Cheat Sheet](https://vimsheet.com/) > - [Vim Cheat Sheet](https://vim.rtorr.com/) **Table of Contents** [TOC] ## 🧭 Navigation @@ -68,3 +72,16 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `P` | Paste before from Vim’s clipboard | | | `"*p` / `"+p` | Paste from system clipboard | | | `"*y` / `"+y` | Paste to system clipboard | | ## 👀 Mode Switching | Keystroke(s) | Description | Note | | --------------- | -------------------------------------------------------- | -------------------- | | `v` | Enter visual mode | | | `V` | Enter visual line mode | | | `<C-V>` | Enter visual block mode | | | `a` | Enter insert node and append text after where cursor is | | | `i` | Enter insert node and insert text before where cursor is | | | `Esc` / `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -68,5 +68,3 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `P` | Paste before from Vim’s clipboard | | | `"*p` / `"+p` | Paste from system clipboard | | | `"*y` / `"+y` | Paste to system clipboard | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 33 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,8 +16,8 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | Keystroke(s) | Description | Note | | --------------- | ---------------------------------- | --------- | | `h` `j` `k` `l` | Arrow keys (⬅️ ⬇️ ⬆️ ➡️) | | | `b` / `w` | Previous/next word | | | `ge` / `e` | Previous/next end of word | | | `0` *(zero)* | Start of line | | | `^` | Start of line *(after whitespace)* | | | `$` | End of line | | @@ -39,20 +39,34 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 ## 📝 Editing | Keystroke(s) | Description | Note | | --------------- | ------------------------------------------------------------ | --------------------------------------------------- | | `a` | Append | | | `A` | Append from end of line | | | `i` | Insert | | | `o` / `O` | Next line Add blank line below/above current line | | | `J` | Join next line of text with current line | JetBrains plugin: `ideajoin` | | `s` | Delete char and insert | | | `S` | Delete line and insert | | | `C` | Delete until end of line and insert | | | `cc` | Delete whole line and insert | | | `dd` | Delete line *(Cut)* | The deleted texts will be copied in Vim’s clipboard | | `ciw` | Change (replace) entire word. (Delete current word that pointed by cursor) | | | `u` | Undo changes | | | `<C-R>` | Redo changes | `<C-R>` = `ctrl + r` | | `Esc` / `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | | `<C-C>` | Exit insert mode (corrupt), and abort current command | `<C-C>` = `ctrl + c` | ## 📋 Clipboard | Keystroke(s) | Description | Note | | ------------- | --------------------------------- | ------------------------------------------------------- | | `x` | Delete character *(Cut)* | The deleted character will be copied in Vim’s clipboard | | `dd` | Delete line *(Cut)* | Copy in Vim’s clipboard | | `yy` | Yank line *(Copy)* | Copy in Vim’s clipboard | | `p` | Paste from Vim’s clipboard | | | `P` | Paste before from Vim’s clipboard | | | `"*p` / `"+p` | Paste from system clipboard | | | `"*y` / `"+y` | Paste to system clipboard | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,4 +56,3 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `<C-R>` | Redo changes | `<C-R>` = `ctrl + r` | | `Esc` */* `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | | `<C-C>` | Exit insert mode (corrupt), and abort current command | `<C-C>` = `ctrl + c` | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -57,4 +57,3 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `Esc` */* `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | | `<C-C>` | Exit insert mode (corrupt), and abort current command | `<C-C>` = `ctrl + c` | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 45 additions and 22 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,25 +13,48 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 ## 🧭 Navigation | Keystroke(s) | Description | Note | | --------------- | ---------------------------------- | --------- | | `h` `j` `k` `l` | Arrow keys (⬅️ ⬇️ ⬆️ ➡️) | | | `b` */* `w` | Previous/next word | | | `ge` */* `e` | Previous/next end of word | | | `0` *(zero)* | Start of line | | | `^` | Start of line *(after whitespace)* | | | `$` | End of line | | | `gg` | First line | | | `G` | Last line | | | `:n` | Go to line `n` | | | `nG` | Go to line `n` | | | `zz` | Center this line in editor window | | | `zt` | Top this line in editor window | | | `zb` | Bottom this line | | | `H` | Move to top of screen | | | `M` | Move to middle of screen | | | `L` | Move to bottom of screen | | | `/pattern` | Search for pattern | | | `?pattern` | Search backward for pattern | | | `n` | Next matching search pattern | | | `N` | Previous match | | | `gd` | Go to definition | JetBrains | ## 📝 Editing | Keystroke(s) | Description | Note | | ----------------- | ------------------------------------------------------------ | --------------------------------------------- | | `a` | Append | | | `A` | Append from end of line | | | `i` | Insert | | | `o` / `O` | Next line Add blank line below/above current line | | | `J` | Join next line of text with current line | JetBrains plugin: `ideajoin` | | `s` | Delete char and insert | | | `S` | Delete line and insert | | | `C` | Delete until end of line and insert | | | `cc` | Delete whole line and insert | | | `dd` | Delete line (and cut) | The deleted texts will be copied in clipboard | | `ciw` | Change (replace) entire word. (Delete current word that pointed by cursor) | | | `u` | Undo changes | | | `<C-R>` | Redo changes | `<C-R>` = `ctrl + r` | | `Esc` */* `<C-[>` | Exit insert mode | `<C-[>` = `ctrl + [` | | `<C-C>` | Exit insert mode (corrupt), and abort current command | `<C-C>` = `ctrl + c` | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 [TOC] ## 🧭 Navigation | Keystroke(s) | Description | Note | | --------------- | ---------------------------------- | ---- | @@ -35,5 +35,3 @@ Johnny Miller, Sun Oct 2 13:58:53 CST 2022 | `?pattern` | Search backward for pattern | | | `n` | Next matching search pattern | | | `N` | Previous match | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 39 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,39 @@ # Vim Cheatsheet Johnny Miller, Sun Oct 2 13:58:53 CST 2022 > 📖 References > > - [Vim cheatsheet](https://devhints.io/vim) > - [Great Practical Ideas for Computer Scientists vim cheat sheet](https://www.cs.cmu.edu/~15131/f17/topics/vim/vim-cheatsheet.pdf) > - [A Great Vim Cheat Sheet](https://vimsheet.com/) > - [Vim Cheat Sheet](https://vim.rtorr.com/) [TOC] ## 🧭 Navigation | Keystroke(s) | Description | Note | | --------------- | ---------------------------------- | ---- | | `h` `j` `k` `l` | Arrow keys (⬅️ ⬇️ ⬆️ ➡️) | | | `b` */* `w` | Previous/next word | | | `ge` */* `e` | Previous/next end of word | | | `0` *(zero)* | Start of line | | | `^` | Start of line *(after whitespace)* | | | `$` | End of line | | | `gg` | First line | | | `G` | Last line | | | `:n` | Go to line `n` | | | `nG` | Go to line `n` | | | `zz` | Center this line in editor window | | | `zt` | Top this line in editor window | | | `zb` | Bottom this line | | | `H` | Move to top of screen | | | `M` | Move to middle of screen | | | `L` | Move to bottom of screen | | | `/pattern` | Search for pattern | | | `?pattern` | Search backward for pattern | | | `n` | Next matching search pattern | | | `N` | Previous match | | -
johnnymillergh revised this gist
Oct 2, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ -
johnnymillergh revised this gist
Sep 23, 2022 . 1 changed file with 62 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,62 @@ "" Source your .vimrc "source ~/.vimrc "" -- Suggested options -- " Show a few lines of context around the cursor. Note that this makes the " text scroll if you mouse-click near the start or end of the window. set scrolloff=5 " Do incremental searching. set incsearch " Don't use Ex mode, use Q for formatting. map Q gq " Join next line of text with current line with shift + j. set ideajoin "" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t "" Map \r to the Reformat Code action "map \r <Action>(ReformatCode) "" Map <leader>d to start debug "map <leader>d <Action>(Debug) "" Map \b to toggle the breakpoint on the current line "map \b <Action>(ToggleLineBreakpoint) " Find more examples here: https://jb.gg/share-ideavimrc " Shortcuts handler for conflicts between JetBrains and Vim sethandler <C-;> a:vim sethandler <C-S-;> a:vim sethandler <C-A> a:vim sethandler <C-C> a:ide sethandler <C-D> a:ide sethandler <C-E> a:ide sethandler <C-F> a:ide sethandler <C-H> a:vim sethandler <C-K> a:ide sethandler <C-L> a:vim sethandler <C-R> a:ide sethandler <C-S> a:vim sethandler <C-T> a:ide sethandler <C-U> a:vim sethandler <C-V> a:ide sethandler <C-W> a:vim sethandler <C-X> a:ide sethandler <C-Y> a:ide " Activate the plugin: Which-Key set which-key set timeoutlen=2500 " Activate plugin: IdeaVimMulticursor " set multicursor " map q <Plug>(multicursor-ms/) " map z <Plug>(multicursor-mcv) " map Z <Plug>(multicursor-mcr) " Activate plugin: IdeaVim-EasyMotion set easymotion -
johnnymillergh revised this gist
Sep 23, 2022 . 1 changed file with 1 addition and 61 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,61 +1 @@ -
johnnymillergh revised this gist
Sep 23, 2022 . 1 changed file with 61 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,61 @@ "" Source your .vimrc "source ~/.vimrc "" -- Suggested options -- " Show a few lines of context around the cursor. Note that this makes the " text scroll if you mouse-click near the start or end of the window. set scrolloff=5 " Do incremental searching. set incsearch " Don't use Ex mode, use Q for formatting. map Q gq set ideajoin "" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t "" Map \r to the Reformat Code action "map \r <Action>(ReformatCode) "" Map <leader>d to start debug "map <leader>d <Action>(Debug) "" Map \b to toggle the breakpoint on the current line "map \b <Action>(ToggleLineBreakpoint) " Find more examples here: https://jb.gg/share-ideavimrc " Customized key bindings JetBrains and Vim sethandler <C-;> a:vim sethandler <C-S-;> a:vim sethandler <C-A> a:vim sethandler <C-C> a:ide sethandler <C-D> a:ide sethandler <C-E> a:ide sethandler <C-F> a:ide sethandler <C-H> a:vim sethandler <C-K> a:ide sethandler <C-L> a:vim sethandler <C-R> a:ide sethandler <C-S> a:vim sethandler <C-T> a:ide sethandler <C-U> a:vim sethandler <C-V> a:ide sethandler <C-W> a:vim sethandler <C-X> a:ide sethandler <C-Y> a:ide " Activate the plugin: Which-Key set which-key set timeoutlen=2500 " Activate plugin: IdeaVimMulticursor " set multicursor " map q <Plug>(multicursor-ms/) " map z <Plug>(multicursor-mcv) " map Z <Plug>(multicursor-mcr) " Activate plugin: IdeaVim-EasyMotion set easymotion -
johnnymillergh created this gist
Sep 23, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@