Bez popisu

Weiyi Lou 2816af3b87 Add FileCopy to vim, fix rename not creating folders před 10 roky
ack 0310a09947 add `.ackrc` před 13 roky
bin a5164315cf Suppress vim-plug warnings, deprecate zfs-destroy-auto-snaps před 10 roky
docs 59b7763f9f Add screenshot to readme před 10 roky
git dc0e1f63bc Add external file updater před 10 roky
shell 0c82ed4857 Fix bash prompt settings clobbering `z` před 10 roky
tmux 5b03175bf3 Change order of tmux hostname and session name před 10 roky
vim 2816af3b87 Add FileCopy to vim, fix rename not creating folders před 10 roky
vimperator dc9eb02bde Revert vimperator to auto-fade flash messages před 10 roky
.gitignore 910bbe6fde Add Alduin vim colorscheme, add dirvish `mc` mapping před 10 roky
.gitmodules ed495519dd Remove oh-my-zsh před 10 roky
Makefile 5728c7be88 Fix Makefile vim dependency and missing phonies před 10 roky
README.md e7f89de34c Degrade vim gracefully in older versions před 10 roky
install 5728c7be88 Fix Makefile vim dependency and missing phonies před 10 roky

README.md

dotfiles

Configuration files for:

  • Bash (3.2+) and Zsh (4.3.17+)
  • Vim (7+) and NeoVim
  • Vimperator (3.8+)
  • Tmux (1.8+)
  • Other bits and pieces

Heavy preference for Vim-like bindings.

Screenshot

Installation

Clone to a home folder and run make install or ./install.

Restart the terminal session.

Recommended

Usage

Below is a non-exhaustive list of dotfiles usage.

Bash/Zsh

  • Case-insensitive completion.
  • The excellent z and v commands:
    • z for folder jumping: z regex = cd /path/with/regex.
    • v for file editing: v regex = vim /path/with/regex.
  • Multi-line shell prompt that displays Git repo info and job count.
  • Mostly-Mnemonic Git shortcuts: gs = git status, gd = git diff, etc.
  • SSH agent automated - attempts to load identities with ssh-add on start.
  • Machine-specific settings can be contained in .local files:
    • bash: ~/.bashrc.local and ~/.bashenv.local
    • zsh: ~/.zshrc.local and ~/.zshenv.local

Vim

Space is the <Leader>.

  • <Leader>w saves.
  • <Leader>q closes.
  • <Leader>l lists loaded buffers and allows jumping 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.
  • - opens a file browser.
  • Additional text objects exist (see 'Text Objects' in plugins.vim).
  • Saving .pandoc files also outputs .docx versions.
  • :Goyo for distraction-free writing.
  • :Alduin, :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.