.files
- Clone this repository:
git clone http://github.com/arkokoley/dotfiles cd dotfiles- Run the bootstrap script:
./bootstrap.sh - Set your terminal font to
Inconsolata for Powerline - Profit!
-
Toggle directory view:
,d -
Get rainbow parenthesis:
,r -
Multicursor editing:
- To start multicursor (select a word):
F3 - Select next word:
Ctrl + n - Deselect last word:
Ctrl + p - Skip next word:
Ctrl + x - quit Multicursor:
ESC
- To start multicursor (select a word):
-
Tabs and Splits:
- New tab:
Ctrl + t - Move between tabs:
Ctrl + lorCtrl + h - Vertical split:
Ctrl + s - Move between splits:
,lor,h - Close tab/split:
Ctrl + w
- New tab:
-
Search for files and open them, like in Sublime text:
Ctrl + pand type filename, select from given options -
Commenting/Uncommenting lines with ease:
- Comment n(eg 10) number of lines:
10,cc - Uncomment n(eg 5) number of lines:
5,cu
- Comment n(eg 10) number of lines:
-
Change surrounding braces, parenthesis, html/xml tags:
,cs<current><new surround>Eg, change " in "Hello" to ' :,cs"'Change {} in { World } to () :,cs{) -
Read HackerNews within Vim:
,hn- Open a link in vim:
o,Oto open in Browser - To go back:
u - To close:
:bd
- Open a link in vim:
-
Show/hide class outline viewer, similar to ones in IDEs like Eclips, JetBrains:
,t -
Run shell/terminal commands in vim:
! <command>Eg, compilingx.cfile to n:! gcc x.c -o nIf that is too limiting for you, run a entire terminal within vim
,m: a terminal window pops up. Use,mto close the window. -
Spell Check:
,sto toggle spell check. Incorrect words apprear in red, grammer errors in blue.,fto correct words.
-
Specially mapped keys:
;mapped to:, removing the necessity of using shift and;key for Normal commands starting with:.wmapped to:w: saves the file.zzmapped to:wq: saves the file and quits.o <filename>mapped to:e <filename>: Opens for editing.jkin insert mode, mapped to<ESC>: For quickly changing modes without moving to the esc position.
-
Remove old plugins:
,clean -
Update plugins installed:
,update