Skip to content

Instantly share code, notes, and snippets.

View GonzaloRMDT's full-sized avatar

Gonzalo Ramírez Muñoz de Toro GonzaloRMDT

View GitHub Profile
@Starefossen
Starefossen / vim-cheats.md
Last active July 18, 2024 16:40
My vim cheat sheet for working with tabs and window splits.

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab
@jseed
jseed / gist:5d022570ea52ee09a8f43913214496f1
Last active July 22, 2024 19:30
PowerShell command to delete all branches except master
git checkout master; git branch -D @(git branch | select-string -NotMatch "master" | Foreach {$_.Line.Trim()})
@mahemoff
mahemoff / README.md
Last active July 20, 2024 21:58
Vim Terminal Mode - A short introduction

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings