Skip to content

klgilbert/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Shortcuts and Keyboard Customizations

  • Trackpad: Disable Natural Scrolling

  • Keyboard Shortcuts: Map Caps Lock to Control

  • Keyboard Shortcuts: Mission Control > Misson Control => "Shift + Cmd + Up"

  • Keyboard Shortcuts: Mission Control > Application windows => "Shift + CMD + Down"

  • Spotlight: Uncheck "Show Spotlight search"

  • Dock Settings: Check "Automatically hide and show the Dock"

Applications

  • Caffeinate or Amphetamine
  • Brave
  • 1Password
  • Typora
  • DataGrip
  • Rectangle
  • Raycast
  • Postman

Installation

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Repository

git clone https://github.com/klgilbert/dotfiles ~/.dotfiles
cd ~/.dotfiles

Homebrew Formulae and Casks

brew bundle

RCM

RCRC=rcrc rcup

ZSH Plugins

zplug install

Tmux Plugins

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Installing plugins

  1. Add new plugin to ~/.tmux.conf with set -g @plugin '...'
  2. Press prefix + I (capital i, as in Install) to fetch the plugin.

Uninstalling plugins

  1. Remove (or comment out) plugin from the list.
  2. Press prefix + alt + u (lowercase u as in uninstall) to remove the plugin.

Vim Plugins

vim +PlugInstall +qa

Customization

Vim

Basic customizations

  • Line numbers
  • Ruler (line and column numbers)
  • No wrap (turn off per-buffer via :set wrap)
  • Soft 2-space tabs, and default hard tabs to 2 spaces
  • Show trailing whitespace as .
  • Make searching highlighted, incremental, and case insensitive unless a capital letter is used
  • Always show a status line
  • Allow backspacing over everything (indentations, eol, and start characters) in insert mode
  • <C-P> inserts the directory of the current file into a command
  • Automatically resize splits when resizing the Vim window (GUI only)
  • <leader>ew expands to :e (directory of current file)/ (open in the current buffer)
  • <leader>es expands to :sp (directory of current file)/ (open in a horizontal split)
  • <leader>ev expands to :vsp (directory of current file)/ (open in a vertical split)
  • <leader>et expands to :tabe (directory of current file)/ (open in a new tab)
  • <F4> toggles paste mode.
  • <leader>fef formats the entire file
  • <leader>u converts the entire word to uppercase
  • <leader>l converts the entire word to lowercase
  • <leader>U converts the first char of a word to uppercase
  • <leader>L converts the first char of a word to lowercase
  • <leader>cd changes the path to the active buffer's file
  • <leader>md creates the directory of the active buffer's file (For example, when editing a new file for which the path does not exist.)
  • gw swaps the current word with the following word
  • <leader>ul underlines the current line with =
  • <leader>tw toggles wrap
  • <leader>fc finds the next conflict marker (tested with Git conflicted files)
  • Remap <Down> and <Up> to gj and gk (Wrapped text is not considered a single long line of text.)
  • <leader>hs toggles highlight search
  • <leader>= adjusts viewports to the same size (<C-w>=)

Plugins

All plugins are maintained using vim-plug

  1. Fuzzy Finder
  2. Git Gutter

A Vim plugin which shows a git diff in the 'gutter' (sign column). It shows whether each line has been added, modified, and where lines have been removed. You can also stage and revert individual hunks.

  1. Vim Trailing Whitespace

This plugin causes all trailing whitespace to be highlighted in red. To fix the whitespace errors, just call :FixWhitespace. By default it operates on the entire file. Pass a range (or use V to select some lines) to restrict the portion of the file that gets fixed.

  1. Vim Tmux Navigator

This plugin provides the following mappings which allow you to move between Vim panes and tmux splits seamlessly.

  1. SuperTab

In insert mode, start typing something and hit <TAB> to tab-complete based on the current context.

  1. Ack.vim

Ack.vim uses ack to search inside the current directory for a pattern. You can learn more about it with :help Ack.

  1. Vim Polyglot

A collection of language packs for Vim

  1. Vim Eunuch

Vim sugar for the UNIX shell commands

  1. Fugitive (Git Support)

Fugitive adds pervasive git support to git directories in vim. For more information, use :help fugitive

  1. Obsession

Continuously updated session files

  1. Surround

Quoting/parenthesizing made simple

  1. Unimpaired

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published