.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 + l
orCtrl + h
- Vertical split:
Ctrl + s
- Move between splits:
,l
or,h
- Close tab/split:
Ctrl + w
- New tab:
-
Search for files and open them, like in Sublime text:
Ctrl + p
and 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
,O
to 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.c
file to n:! gcc x.c -o n
If that is too limiting for you, run a entire terminal within vim
,m
: a terminal window pops up. Use,m
to close the window. -
Spell Check:
,s
to toggle spell check. Incorrect words apprear in red, grammer errors in blue.,f
to correct words.
-
Specially mapped keys:
;
mapped to:
, removing the necessity of using shift and;
key for Normal commands starting with:
.w
mapped to:w
: saves the file.zz
mapped to:wq
: saves the file and quits.o <filename>
mapped to:e <filename>
: Opens for editing.jk
in insert mode, mapped to<ESC>
: For quickly changing modes without moving to the esc position.
-
Remove old plugins:
,clean
-
Update plugins installed:
,update