Terminal Development Startup Kit
This repo contains what I find useful in developing from a Terminal. I hope you find it useful too. This repo contains three things:
- .vimrc for the ViM, a terminal text-editor.
- .tmux.conf for TMux, a terminal application that allows you to run more terminals inside a terminal.
- .bash-profile, a shortcut for running frequently used commands in terminal.
- Easily navigate different TMux and Vim panes from ThoughtBot
- 256 color support on tmux
- Mouse support
- Code Helpers
- ViM Display
- File navigation
Clone this repository
$ git clone https://github.com/jssolichin/terminal-development-startup-kit.git
Place .vimrc, .tmux.conf, and .bash_profile into your home (~/) directory
$ cd terminal-development-startup-kit $ mv .vimrc ~/ $ mv .tmux.conf ~/ $ mv .bash_profile ~/
$ cd ~/.vim/bundle $ git clone https://github.com/gmarik/Vundle.vim
$ source ~/.bash_profile
``` npm install -g js-beautify ```
See other formatters available at vim-autoformat’s repo.
Please follow the direction on each colorscheme's repo
Once done, at the bottom of the .vimrc, you can comment out the color schemes you do not want with a quotation mark.
Nice Airline Triangles
Please follow the direction here for how to install the neccesary fonts to enable nicer looking ViM display.
Once done, at the bottom of the .vimrc, you can change
let g:airline_powerline_fonts = 0
to a value of 1.
###.vimrc There are too many things to list out on what the list of installed packages will do, so I recommend you check out each package installed from the list of features above and see what they can do. Most should work magically, but here are some functions that you may find to be a great starting point.
As always, you can press
tab to autocomplete. Press
: to type in commands to ViM
Autoformat a file
Fuzzy search a file
ctrl+p Then open the file in a new tab by pressing
Open a tree list of the folder
Changing between panes (h,j,k,l being directions that one uses in ViM)
###.tmux.conf The above key combo should also switch between panes. Thus those buttons can allow you to switch between ViM and Tmux panes seamlessly.
###.bash_profile Sometimes when you work for a long time with vim, it may leave residues of .swp, .swn, .sw*, which are ViM's swap files (where your changes are stored). The included .bash_profile adds commands for managing these.
Note: you should not need to delete swp files yourself except when things get to wild (e.g. ViM crashing and leaving a lot of swp files lying around.). User's discretion is advised.
- findswp: list the .swp files that exist within the folder (where .swp is actually .sw*)
- delswp: delete ALL the .swp files that exist within the folder (where .swp is actually .sw*)
Edit your .vimrc using ViM. In ViM, run:
You can press
ctrl+r in terminal and start typing to auto- complete based on recently ran commands.
You can press
ctrl+c inside a program (e.g. ViM) to minimize. Type in
fg in the console afterward to maximize it again.