Skip to content

Instantly share code, notes, and snippets.

@oshikryu
Created September 8, 2014 19:34
Show Gist options
  • Save oshikryu/9a9c9eea6957e665a298 to your computer and use it in GitHub Desktop.
Save oshikryu/9a9c9eea6957e665a298 to your computer and use it in GitHub Desktop.
git shortcuts
w next word
e end of word
b is back a word
dd line
split buffer
ctr +l w + v
EQUAL window widths:
ctrl + w + =
switch buffer
ctrl + w
( in tmux, use hjkl to switch between splits )
move to first non blank char of line
^
pastes stuff from clipboard with correct indentation
“ + p
copy stuff from vim to system clipboard
“+y
leader key is \
nerd commenter:
cc is comment cu is uncomment
open new buffer and save in directory
:vnew
:e dashboard/widgets/table.coffee
jump to line
123G
regular expression search
:%s/foo/bar/g
:%s/foo/bar/gc
css syntax completion
ctrl + x , ctrl + o for css syntax completion
npm install -g grunt-init in ROOT
git clone [email protected]:gruntjs/grunt-init-jquery.git~/.grunt-init/jquery
gruntfile
npm init THIS IS TO MAKE package.json
npm install grunt --save-dev TO INSTALL GRUNTFILE
m access nerd tree menu
* Use <c-t> or <c-v>, <c-x> to open the selected entry in a new tab or in a new split.
:grep [keyword] /file/location
:copen
ctrl + o ### i [characters] esc
web/dev/dashboard ./test_server
grunt watch in dev/dashboard
https://github.com/davidhalter/jedi-vim
:qa quit all
ctrl + [ —> selection mode
v + whatever selection
y
ctrl + a && ctrl + c
http://zzapper.co.uk/vimtips.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment