Coder Social home page Coder Social logo

dotfiles's Introduction

My Dotfiles

These are dotfiles that I use to make my workflow the most efficient and comfortable. Feel free to fork and customize!

Screenshot

screenshot

TMUX

  • Prefix is set to CTRL-A. I mapped my CAPS button to CTRL for quick access.

  • Smart pane switching to easily move between tmux/vim panes: Prefix-h,j,k,l.

  • Panes are created with - (horizontal split) and | (vertical split).

  • Resize panes using Prefix-H,J,K,L.

  • Vim copy / pasting (in copy mode): Prefix-v to start, Prefix-y to copy, prefix-P (uppercase P) to paste.

  • Control-r for reverse command history search (uses fzf)

  • Control-t fuzzy finds files in a directory (uses fzf)

  • Option select to copy/paste with clipboard

NEOVIM

Plug-ins:

Fuzzy Find (fzf)
  • Activate with Control-t.

  • Cancel with Control-c.

Autocomplete (deoplete)
  • While typing, press Control-n to see possible completions.

  • Esc to cancel.

Directory Tree Viewer (NERDTree)
  • Toggle with ',' followed by 'n' 't'.

  • Refresh with ',' followed by 'n' 'r'.

  • Toggle hidden files with Shift i.

Undo Tree (undotree)
  • View undo history with F5.
Commenting (vim-commentary)
  • To toggle comments, press 'g' 'c' on a highlighted block of code.
Rails Testing (vim-test)
  • Run nearest test, ',' followed by 'r' 'n'
  • Run tests in whole file, ',' followed by 'r' 'f'
  • Run last test, ',' followed by 'r' 'l'

Features:

  • Persistant undos (allows undos even after closing and reopening a file)

  • No need to press shift while typing : (remaps ; to :)

  • Use F2 to toggle paste mode

  • Abort vim search by double tapping ESC

  • Open/close folds with SPACE

  • Use 'j' 'k' to ESCAPE (remaps jk to ESC)

  • Save session with ',' 's'. Use vim -S to restore

  • Reformat your whole file with 'cu' (clean-up)

  • Highlights trailing whitespace or extralong lines

  • Removes trailing whitespace on save

iTerm Settings

  • For the same terminal color theme as vim: set the theme to base16-oceanicnext.dark.256.itermcolors

  • Automatically join your running tmux session by sending the following text at start: tmux attach -t mysession || tmux new -s mysession

Steps to adapt

  1. Fork / clone the repo

  2. Run the install shell script: ./install If you get an error, you might need to make the install script executable: chmod u+x install.sh

  3. Install the tmux plugins by typing: Prefix-I

  4. Open vim and enter: :PlugInstall If you get errors installing the vim plugins, make sure you have installed the xcode dev tools: xcode-select --install

  5. Restart your terminal

Enjoy! โœŒ

dotfiles's People

Contributors

giladoved avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.