Last active
May 16, 2020 23:35
-
-
Save andreibosco/3c8d3d7b9e3346926e9bdeb8fd972461 to your computer and use it in GitHub Desktop.
Revisions
-
andreibosco revised this gist
May 16, 2020 . 1 changed file with 4 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 @@ -91,4 +91,7 @@ To jump between changes and stage/discard individual hunks: ### Ack Search pattern in files. - `:Ack [options] {pattern} [{directories}]` ### Auto-pairs https://github.com/jiangmiao/auto-pairs -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 4 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 @@ -88,3 +88,7 @@ To jump between changes and stage/discard individual hunks: - `Leader+c<space>`: Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa. - `Leader+cm`:Comments the given lines using only one set of multipart delimiters. - `Leader+cs`:Comments out the selected lines with a pretty block formatted layout. ### Ack Search pattern in files. - `:Ack [options] {pattern} [{directories}]` -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 9 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 @@ -16,6 +16,7 @@ ## Tips ### General - The standard Vim Leader key is the `\` character. - Close all buffers and quit: `:qa` - Save all buffers and quit: `:wqa` - To run terminal commands: `:!command` @@ -79,4 +80,11 @@ To jump between changes and stage/discard individual hunks: - `]c`: GitGutterNextHunk - `[c`: GitGutterPrevHunk - `<Leader>hs`: GitGutterStageHunk - `<Leader>hu`: GitGutterUndoHunk ### NERD-commenter - `Leader+cc`: Comment out the current line or text selected in visual mode. - `Leader+cn`: Same as cc but forces nesting. - `Leader+c<space>`: Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa. - `Leader+cm`:Comments the given lines using only one set of multipart delimiters. - `Leader+cs`:Comments out the selected lines with a pretty block formatted layout. -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 20 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 @@ -8,6 +8,7 @@ - [Vim cheatsheet](https://devhints.io/vim) ## Guides (Most of the stuff in here comes from these guides) - [10 essential Vim plugins for 2018](https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9) - [Top 10 Vim plugins for programming in multiple languages](https://opensource.com/article/19/11/vim-plugins) - [How I boosted my Vim](https://nvie.com/posts/how-i-boosted-my-vim/) @@ -60,4 +61,22 @@ To make a basic selection, use the `Ctrl+N` keystroke in normal mode, followed b - `I` – insert at start of range. - `A` – insert at end of range. More actions can be found in the plugin’s [quick start](https://github.com/terryma/vim-multiple-cursors#quick-start) information. ### vim-eunuch This cryptically-named plugin adds a dozen core Unix file operations as Vim commands in the context of the current file. ``` :Rename new_name.sh :Chmod +x :SudoWrite ``` ### surround It's easier to just check the project examples: https://github.com/tpope/vim-surround ### git-gutter To jump between changes and stage/discard individual hunks: - `]c`: GitGutterNextHunk - `[c`: GitGutterPrevHunk - `<Leader>hs`: GitGutterStageHunk - `<Leader>hu`: GitGutterUndoHunk -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 12 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 @@ -49,4 +49,15 @@ You can also use the resize commands: - `:resize [+-]N`: resize a horizontal split, increasing or decreasing height by N characters. - `:vertical resize [+-]N`: resize a vertical split, increasing or decreasing height by N characters. - `:resize N`: resize a horizontal split, setting height to N characters. - `:vertical resize N`: resize a vertical split, setting width to N characters. ## Plugins commands ### vim-multiple-cursor To make a basic selection, use the `Ctrl+N` keystroke in normal mode, followed by a motion: - `c` – change text. - `I` – insert at start of range. - `A` – insert at end of range. More actions can be found in the plugin’s [quick start](https://github.com/terryma/vim-multiple-cursors#quick-start) information. -
andreibosco revised this gist
May 16, 2020 . 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 @@ -17,6 +17,7 @@ ### General - Close all buffers and quit: `:qa` - Save all buffers and quit: `:wqa` - To run terminal commands: `:!command` ### Navigating tabs - New tab: `tabnew` or `CTRL+t` (if using my `.vimrc` file) -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 7 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,4 +1,4 @@ # VIM - Useful stuff ## Plugins - [Minimalist Vim Plugin Manager](https://github.com/junegunn/vim-plug) @@ -43,3 +43,9 @@ - `Ctrl+W _`: set height (ex. 50<C-w>_) - `Ctrl+W |`: set width (ex. 50<C-w>|) - `Ctrl+W =`: equalize width and height of all windows You can also use the resize commands: - `:resize [+-]N`: resize a horizontal split, increasing or decreasing height by N characters. - `:vertical resize [+-]N`: resize a vertical split, increasing or decreasing height by N characters. - `:resize N`: resize a horizontal split, setting height to N characters. - `:vertical resize N`: resize a vertical split, setting width to N characters. -
andreibosco renamed this gist
May 16, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 5 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 @@ -27,12 +27,16 @@ - Close all other tabs: `:tabo` or `:tabonly` ### Window/splits #### Splitting - `Ctrl+W v`: split vertically - `Ctrl+W s`: split horizontally #### Navigating - `Ctrl+W hjkl`: change focus of current windows split - `hjkl` are the keys that vim uses instead of the arrow keys (h = left, j = bottom, k = up, l = right) - `Ctrl+W HJKL`: move current window split - Note the uppercase, meaning you have to use shift+h, for example. #### Adjusting size - `Ctrl+W +/-`: increase/decrease height (ex. 20<C-w>+) - `Ctrl+W >/<`: increase/decrease width (ex. 30<C-w><) -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 7 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 @@ -27,6 +27,13 @@ - Close all other tabs: `:tabo` or `:tabonly` ### Window/splits #### Navigating - `Ctrl+W hjkl`: change focus of current windows split - `hjkl` are the keys that vim uses instead of the arrow keys (h = left, j = bottom, k = up, l = right) - `Ctrl+W HJKL`: move current window split - Note the uppercase, meaning you have to use shift+h, for example. #### Adjusting size - `Ctrl+W +/-`: increase/decrease height (ex. 20<C-w>+) - `Ctrl+W >/<`: increase/decrease width (ex. 30<C-w><) - `Ctrl+W _`: set height (ex. 50<C-w>_) -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 8 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 @@ -24,4 +24,11 @@ - Next tab: `gt` - Prior tab: `gT` - Numbered tab: `tabnumber gt` - Close all other tabs: `:tabo` or `:tabonly` ### Window/splits - `Ctrl+W +/-`: increase/decrease height (ex. 20<C-w>+) - `Ctrl+W >/<`: increase/decrease width (ex. 30<C-w><) - `Ctrl+W _`: set height (ex. 50<C-w>_) - `Ctrl+W |`: set width (ex. 50<C-w>|) - `Ctrl+W =`: equalize width and height of all windows -
andreibosco revised this gist
May 16, 2020 . 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 @@ -2,7 +2,7 @@ ## Plugins - [Minimalist Vim Plugin Manager](https://github.com/junegunn/vim-plug) - [VimAwesome](https://vimawesome.com/) ## Usage - [Vim cheatsheet](https://devhints.io/vim) -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 5 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 @@ -14,9 +14,14 @@ ## Tips ### General - Close all buffers and quit: `:qa` - Save all buffers and quit: `:wqa` ### Navigating tabs - New tab: `tabnew` or `CTRL+t` (if using my `.vimrc` file) - Close tab: `tabc` - Next tab: `gt` - Prior tab: `gT` - Numbered tab: `tabnumber gt` - Close all other tabs: `:tabo` or `:tabonly` -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 10 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 @@ -10,4 +10,13 @@ ## Guides - [10 essential Vim plugins for 2018](https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9) - [Top 10 Vim plugins for programming in multiple languages](https://opensource.com/article/19/11/vim-plugins) - [How I boosted my Vim](https://nvie.com/posts/how-i-boosted-my-vim/) ## Tips ### Navigating tabs - New tab: `tabnew` or `CTRL+t` (if using my `.vimrc` file) - Close tab: `tabc` - Next tab: `gt` - Prior tab: `gT` - Numbered tab: `tabnumber gt` -
andreibosco revised this gist
May 16, 2020 . 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 @@ -2,7 +2,7 @@ ## Plugins - [Minimalist Vim Plugin Manager](https://github.com/junegunn/vim-plug) - [VimAwesome](ttps://vimawesome.com/) ## Usage - [Vim cheatsheet](https://devhints.io/vim) -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 2 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,7 +1,8 @@ # VIM - Useful links ## Plugins - [Minimalist Vim Plugin Manager](https://github.com/junegunn/vim-plug) - [VimAwesome]https://vimawesome.com/ ## Usage - [Vim cheatsheet](https://devhints.io/vim) -
andreibosco revised this gist
May 16, 2020 . 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 @@ -8,4 +8,5 @@ ## Guides - [10 essential Vim plugins for 2018](https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9) - [Top 10 Vim plugins for programming in multiple languages](https://opensource.com/article/19/11/vim-plugins) - [How I boosted my Vim](https://nvie.com/posts/how-i-boosted-my-vim/) -
andreibosco renamed this gist
May 16, 2020 . 1 changed file with 8 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 @@ -1,3 +1,11 @@ # VIM - Useful links ## Plugin Manager - [Minimalist Vim Plugin Manager](https://github.com/junegunn/vim-plug) ## Usage - [Vim cheatsheet](https://devhints.io/vim) ## Guides - [10 essential Vim plugins for 2018](https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9) - [How I boosted my Vim](https://nvie.com/posts/how-i-boosted-my-vim/) -
andreibosco revised this gist
May 16, 2020 . 1 changed file with 3 additions 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 @@ -1,3 +1,3 @@ - [Minimalist Vim Plugin Manager](https://github.com/junegunn/vim-plug) - [10 essential Vim plugins for 2018](https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9) - [How I boosted my Vim](https://nvie.com/posts/how-i-boosted-my-vim/) -
andreibosco created this gist
May 16, 2020 .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,3 @@ - [Minimalist Vim Plugin Manager ]https://github.com/junegunn/vim-plug - [10 essential Vim plugins for 2018]https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9 - [How I boosted my Vim]https://nvie.com/posts/how-i-boosted-my-vim/