### nano `~$ nano logins.txt` - use commands at the bottom with ctrl key - very basic usage ### vim `~$ vim myfile` - vim is farm more advance, Likely installed on any system (vi or vim) - piv esc??? - REMEMBER COMMANDS WILL START WITH `:` - `wq` -> write & quit - `w` -> save - `qa!` -> force quit (no save) - `x` -> save & quit (dont update last modified date if no change) - Useful hotkeys - `U` -> essentially undo - [vim cheatsheet](https://vim.rtorr.com) ### astroNvim specific from [here](https://astronvim.com/basic%20usage/mappings) |Action|Mappings| |---|---| |Leader key|`Space`| |Local Leader key|`,`| |Resize up|`Ctrl + Up`| |Resize Down|`Ctrl + Down`| |Resize Left|`Ctrl + Left`| |Resize Right|`Ctrl + Right`| |Up Window|`Ctrl + k`| |Down Window|`Ctrl + j`| |Left Window|`Ctrl + h`| |Right Window|`Ctrl + l`| |Force Write|`Ctrl + s`| |Force Quit|`Ctrl + q`| |New File|`Leader + n`| |Close Buffer|`Leader + c`| |Next Tab (real vim tab)|`]t`| |Previous Tab (real vim tab)|`[t`| |Comment|`Leader + /`| |Horizontal Split|`\`| |Vertical Split|`\|`| ## Buffers |Action|Mappings| |---|---| |Next Buffer|`]b`| |Previous Buffer|`[b`| |Move Buffer Right|`>b`| |Move Buffer Left|`<b`| |Navigate to buffer tab with interactive picker|`Leader + bb`| |Close all buffers except the current|`Leader + bc`| |Close all buffers|`Leader + bC`| |Delete a buffer tab with interactive picker|`Leader + bd`| |Close all buffers to the left of the current|`Leader + bl`| |Go to the previous buffer|`Leader + bp`| |Close all buffers to the right of the current|`Leader + br`| |Sort buffers by extension|`Leader + bse`| |Sort buffers by buffer number|`Leader + bsi`| |Sort buffers by last modification|`Leader + bsm`| |Sort buffers by full path|`Leader + bsp`| |Sort buffers by relative path|`Leader + bsr`| |Open a buffer tab in a new horizontal split with interactive picker|`Leader + b\`| |Open a buffer tab in a new vertical split with interactive picker|`Leader + b\|`| ## Better Escape |Action|Mappings| |---|---| |Escape key|`jj`, `jk`| ## Neo-Tree |Action|Mappings| |---|---| |Neotree toggle|`Leader + e`| |Neotree focus|`Leader + o`| ## Dashboard Mappings |Action|Mappings| |---|---| |Dashboard (Home)|`Leader + h`| ## Session Manager Mappings |Action|Mappings| |---|---| |Save Session|`Leader + Ss`| |Last Session|`Leader + Sl`| |Delete Session|`Leader + Sd`| |Search Sessions|`Leader + Sf`| |Load Current Directory Session|`Leader + S.`| links: [[_LinuxTerminalCMDIndex]] tags: #linux #terminal #CMD