mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 06:38:02 -08:00
remove: plugins/non-default vim sections
This commit is contained in:
264
tools/vim.txt
264
tools/vim.txt
@@ -352,267 +352,3 @@ q: list command history
|
|||||||
:%le remove all leading whitespace
|
:%le remove all leading whitespace
|
||||||
:%y yank whole file
|
:%y yank whole file
|
||||||
:[range]norm Ihi run a sequence of commands on a range of lines
|
:[range]norm Ihi run a sequence of commands on a range of lines
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > ACK
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Ack Search recursively in directory
|
|
||||||
o to open (same as enter)
|
|
||||||
go to preview file (open but maintain focus on ack.vim results)
|
|
||||||
t to open in new tab
|
|
||||||
T to open in new tab silently
|
|
||||||
q to close the quickfix window
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > CHEAT
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Cheat open cheat sheet (with autocomplete)
|
|
||||||
<leader>ch open cheat sheet for word under the cursor
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > GIST
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Gist post whole text to gist
|
|
||||||
:Gist XXXXX get gist XXXXX
|
|
||||||
:Gist -l list my gists
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > GUNDO
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:GundoToggle show undo tree
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > LUSTYJUGGLER
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
<Leader>lj show open buffers
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > NERDCOMMENTER
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
<leader>cc comment out line(s)
|
|
||||||
<leader>c<space> toggle the comment state of the selected line(s)
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > NERDTREE
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:NERDTreeToggle show / hide file browser
|
|
||||||
:NERDTreeFind show current file in file browser
|
|
||||||
:Bookmark name bookmark the current node as "name"
|
|
||||||
|
|
||||||
FILE
|
|
||||||
----
|
|
||||||
|
|
||||||
o open in prev window
|
|
||||||
go preview
|
|
||||||
t open in new tab
|
|
||||||
T open in new tab silently
|
|
||||||
i open split
|
|
||||||
gi preview split
|
|
||||||
s open vsplit
|
|
||||||
gs preview vsplit
|
|
||||||
|
|
||||||
DIRECTORY
|
|
||||||
---------
|
|
||||||
|
|
||||||
o open & close node
|
|
||||||
O recursively open node
|
|
||||||
x close parent of node
|
|
||||||
X close all child nodes of current node recursively
|
|
||||||
e explore selected dir
|
|
||||||
|
|
||||||
BOOKMARK
|
|
||||||
--------
|
|
||||||
|
|
||||||
o open bookmark
|
|
||||||
t open in new tab
|
|
||||||
T open in new tab silently
|
|
||||||
D delete bookmark
|
|
||||||
|
|
||||||
TREE NAVIGATION
|
|
||||||
---------------
|
|
||||||
|
|
||||||
P go to root
|
|
||||||
p go to parent
|
|
||||||
K go to first child
|
|
||||||
J go to last child
|
|
||||||
<C-j> go to next sibling
|
|
||||||
<C-k> go to prev sibling
|
|
||||||
|
|
||||||
FILESYSTEM
|
|
||||||
----------
|
|
||||||
|
|
||||||
C change tree root to the selected dir
|
|
||||||
u move tree root up a dir
|
|
||||||
U move tree root up a dir but leave old root open
|
|
||||||
r refresh cursor dir
|
|
||||||
R refresh current root
|
|
||||||
m show menu
|
|
||||||
cd change the CWD to the selected dir
|
|
||||||
|
|
||||||
TREE FILTERING
|
|
||||||
--------------
|
|
||||||
|
|
||||||
I hidden files
|
|
||||||
f file filters
|
|
||||||
F files
|
|
||||||
B bookmarks
|
|
||||||
|
|
||||||
OTHER
|
|
||||||
-----
|
|
||||||
|
|
||||||
q close the NERDTree window
|
|
||||||
A zoom (maximize-minimize) the NERDTree window
|
|
||||||
? toggle help
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > PDV
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
<C-P> generate PHP DOC
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > PICKACOLOR
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:PickHEX choose color in system color picker
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > SNIPMATE
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
<tab> expand snippet
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > SPARKUP
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
<C-e> execute sparkup (zen coding expansion)
|
|
||||||
<C-n> jump to the next empty tag / attribute
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > SURROUND
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
cs'" change surrounding quotes to double-quotes
|
|
||||||
cs(} change surrounding parens to braces
|
|
||||||
cs({ change surrounding parens to braces with space
|
|
||||||
ds' delete surrounding quotes
|
|
||||||
dst delete surrounding tags
|
|
||||||
ysiw[ surround inner word with brackets
|
|
||||||
vees' surround 2 words (ee) with quotes '
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > TABULAR
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Tabularize /, line the selected lines up on the commas
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > TAGLIST
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:TlistToggle open / close taglist window
|
|
||||||
<enter> jump to tag or file
|
|
||||||
<space> display the tag prototype
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > UNIMPAIRED
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
[space new line above
|
|
||||||
]space new line below
|
|
||||||
[e exchange line above
|
|
||||||
]e exchange line below
|
|
||||||
[x XML encode
|
|
||||||
]x XML decode (with htmlentities)
|
|
||||||
[q jump to previous quickfix item
|
|
||||||
]q jump to next quickfix item
|
|
||||||
[Q jump to first quickfix item
|
|
||||||
]Q jump to last quickfix item
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > VIM-FUGITIVE
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Git run a git command
|
|
||||||
:Gstatus git status : - to (un)stage , p to patch, C to commit
|
|
||||||
:Gcommit git commit
|
|
||||||
:Gread empty the buffer and revert to the last commit
|
|
||||||
:Gwrite write the current file and stage the results
|
|
||||||
:Gmove git mv
|
|
||||||
:Gremove git rm
|
|
||||||
:Glog git log
|
|
||||||
:Gdiff perform a vimdiff against the current file of a certain revision
|
|
||||||
:Gblame open blame information in a scroll bound vertical splitt
|
|
||||||
:Gbrowse open github
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > VIM-MARKDOWN-PREVIEW
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Mm preview markdown document in webbrowser
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > VIM-PEEPOPEN
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
<Leader>p open the current directory with the peepopen application (fuzzy search)
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# PLUGINS > VIM-SYMFONY
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
:Sview open template file
|
|
||||||
:Saction open action file
|
|
||||||
:Smodel open model file
|
|
||||||
:Sfilter open filter file
|
|
||||||
:Sform open form file
|
|
||||||
:Spartial open partial file / write selected content in partial + include
|
|
||||||
:Scomponent open component file / write selected content in component + include
|
|
||||||
:Salternate open alternate model file (class - table class)
|
|
||||||
:Symfony execute task
|
|
||||||
|
|||||||
Reference in New Issue
Block a user