Skip to content

andremedeiros/dotfiles

Repository files navigation

Dotfiles

This is my dotfiles repo. There are many others, but this one is mine.

The dotfiles here are managed with Thoughtbot's rcm

Installation

xcode-select --install
mkdir -p ~/src/github.com/andremedeiros
git -C ~/src/github.com/andremedeiros clone https://github.com/andremedeiros/dotfiles.git
cd ~/src/github.com/andremedeiros/dotfiles
script/bootstrap
git remote set-url origin [email protected]:andremedeiros/dotfiles.git

You can also add secret/proprietary dotfiles on your iCloud drive. Anything inside iCloud Drive/dotfiles will also be symlinked with the same rules as here.

Keyboard bindings

NeoVim

Leader is bound to Space

Editing

  • [leader]-j List buffers
  • [leader]-p List files
  • [leader]-t Toggles tagbar
  • [leader]-z Toggles zoom on active pane
  • [leader]-\ Toggles project navigation
  • H Move to beginning of line
  • L Move to end of line
  • / / Stop searching
  • [leader]-doc Opens documentation for word under cursor

Git status

  • ctrl+n / ctrl+p Navigates through the files in the status buffer
  • - Stages / unstages a file
  • C Commit

Go

  • [leader]-god Go to definition
  • [leader]-gor Run the current file
  • [leader]-got Run tests
  • [leader]-gotf Run tests (current function)

Tmux

Leader is bound to Ctrl+Space

Splitting

  • [leader]-| Split vertically
  • [leader]-- Split horizontally

Navigation

  • [leader]-h Navigate to left pane
  • [leader]-l Navigate to right pane
  • [leader]-k Navigate to pane above
  • [leader]-j Navigate to pane below
  • [leader]-w Navigate windows
  • [leader]-s Navigate sessions
  • [leader]-[ Enter scroll mode (q quits)

Session

  • [leader]-c New window
  • [leader]-z Zoom on current pane

Shortcuts

TBD

Guides