Bez popisu

Weiyi Lou 4a91b4c581 Simplify README.md před 10 roky
ack 0310a09947 add `.ackrc` před 12 roky
bin 7c93fd5e8f Add `dotfiles/bin` path před 10 roky
git 90766b2060 Add vim-plug to repo, Update git ignores před 10 roky
homebrew 158a6f2c9b Update brewfile, add tmux vim mode lines před 10 roky
irssi deebd959da add irssi scripts for nick colors, and nick and window lists před 13 roky
tmux dca5434207 Fix tmux options for 2.1+ před 10 roky
vim f07245016a Install FZF to try again před 10 roky
vimperator dc9eb02bde Revert vimperator to auto-fade flash messages před 10 roky
zsh f07245016a Install FZF to try again před 10 roky
.gitignore e3215b1c37 Add NeoVim XDG config, update vim-plug před 10 roky
.gitmodules e8c0dd5673 Remove tmux-colors-solarized, update vim-plug před 10 roky
README.md 4a91b4c581 Simplify README.md před 10 roky
setup.sh fb05ca71bc Fix git detection bug, git prompt colour issues před 10 roky

README.md

dotfiles

Configuration files for:

  • Vim (7.4+) or NeoVim
  • Vimperator (3.8+)
  • Tmux
  • Zsh
  • Other bits and pieces

Heavy preference for vim-like bindings.

Requirements

  • zsh has been used with 4.3.17+.
  • vim can work with 7.3, but best with 7.4.

Recommended

Installation

$ cd ~
$ git clone https://code.parsleygardens.net/cinaeco/dotfiles.git
$ ~/dotfiles/setup.sh

Make sure the default shell is ZSH. Restart the terminal session after that.

Usage

Below is a non-exhaustive list of how this config is used.

Zsh

  • z folder jumping enabled, i.e. z regex = cd /path/with/regex.
  • Shell prompt displays Git repository info and work tree status.
  • Mostly-Mnemonic Git shortcuts, e.g. gs is git status, gd is git diff.
  • SSH agent use is encouraged. ssh-add is run at shell start if an identity is not already loaded.
  • A .zshlocal file can contain machine-specific settings.

Vim

Space is the <Leader>.

  • <Leader>w saves.
  • <Leader>q closes files.
  • <Leader>l lists loaded buffers and lets you jump to them by number.
  • <Leader>p fuzzy-finds files.
  • <Leader>f fuzzy-finds functions in the current file.
  • <Leader>t opens a function/variable list for the current file.
  • <Leader>n toggles line numbers.
  • <Leader>c finds VCS conflict markers.
  • Additional text objects exist (see 'Text Objects' in plugins.vim).
  • Saving .pandoc files also outputs .docx versions.
  • :Goyo for distraction-free writing.
  • :Dark, :Light and :Neon colour schemes available.

Tmux

<C-a> = Ctrl-a = the tmux prefix.

  • <C-a> + [vi motion] moves around panes.
  • <C-a> + <C-[vi motion]> moves around windows.
  • Alt/Meta + number moves to window number (1-10).
  • <C-a> + - cuts a pane horizontally,
  • <C-a> + \ cuts a pane vertically (think |).
  • <C-a> + s starts synchronized panes.
  • <C-a><C-s> swaps between sessions.
  • Mouse support works for selecting and resizing panes/windows.

Vimperator

Apart from the default Vimperator goodness e.g.

  • / searches like vim.
  • f and F follow links on this tab/in a new tab.
  • et cetera...

These dotfiles provide the following:

  • h and l - move left and right between tabs.
  • j and k - scroll the page down and up.
  • H, J, K, L - scroll the page slowly (left, down, up, right).
  • <C-h> and <C-l> - relocate a tab left and right.