http://ethanschoonover.com/solarized
Enable press and hold movement
https://discussions.apple.com/thread/6058293?tstart=0
bold indicates insert mode
:Ev
corresponding view
:Ec
corresponding controller
\t
- run test
:A
- show alternate file (test/implementation)
<c-g>
- open files in gem directory
\cc
- comment out line
\ci
- toggle commented lines
vat
- select all text with the curret indentation
<C-x>,
- emmet expension
_
- convert next occurrence of _
in snake_case to CamelCase
:Tagbar
- show a list of methods
:Gist
create public gist
:Gist -p
create private gist
:Gbrowse
- show link to gitub
:.Gbrowse
- show link in github with line number
:Mm
show preview of markdown
:b [buff name]
will open buffer with that (part-)name or buffer number
<c-w>
close buffer
:set wildignore
:promptrepl
open MacVim serach promt
:help [name]
show helptags
b
go to beginning of current word
cntrl-v
select columns
[num]V
select num lines
:TOhtml
create HTML repsentation from the current file (with formatting)
:!open %
open current file in browser
J
move line down
K
move line up
*
search of current text in the file
:ChooseColor
open colorpicker
\\w
activate easy motion
\\f{char}
activate easy motion for a given {char}
:Ag! "stuff"
search for "stuff"
:Ag!
- seach for word under cursor
AgHelp!
search through vim helptags
<C-]>
go into the definition of class/module/etc under the cursor
<C-t>
go back to where came from
\be
- open buffer explorer window
:
repeat the last command
:[command] [up-key]
- search for [command]
:Gsearch [term]
search through the files for term so that it can later be replaced with :Greplace
:Tagbar
- shows/hide the structure of a file based on ctags
<c-n>
select word under cursor, press again to sent the next one, and do regular changes to update all selections
<C-X>-
<% %>
<C-X>=
foo<%= ^ %>
tag<C-X>Enter
<C-X>/
closes the last open tag
F5
refresh
S{ - surround with { -(visual mode) ds{ - delete surrounding {
m
go to the parent directory
C
- change the root directory to current directory
s
- open in split windows
Ctrl-W r
- move window to the right
- move to the position
- enter column visual mode
CTRL+v
- select the column
- enter into column insert mode
shift+i
- insert the text
- type
Esc
install git install homebrew brew bundle
install oh-my-zsh
find . -name ".*" -type f -exec cp -- "{}" ~/. ;
sudo apt install apt-clone
apt-clone clone .