Sie sind auf Seite 1von 1

bash-support.

vim
V ERSION 4.2.1

H OT KEYS
Key mappings for Vim and gVim.
Plug-in: http://vim.sourceforge.net
Fritz Mehner (mehner.fritz@fh-swf.de)
(i) insert mode, (n) normal mode, (v) visual mode

Bash
\bps
\bsp
\ben
\bbu
\bse
\bso

[n]\cl
[n]\cj

\cs
[n]\cc
[n]\cu
\cfr
\cfu
\ch
\cd
\ct
\css
\ckc
\cma
\ce
\cr

parameter substitution (list)


special parameters (list)
environment (list)
builtins (list)
set options (list)
shopts (list)

Pattern Matching

Statements

V IM -P LUG - IN

(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
Comments

end-of-line comment
adjust end-of-line comments
set end-of-line comment col.
code comment
uncomment code
frame comment
function description
file header
date
date & time
script sections
keyword comments
plug-in macros
echo "actual line "
remove echo from actual line

(n, i, v)
(n, i, v)
(n)
(n, i, v)
(n, i, v)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)

(n, i)
(n, i)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
(n, i, v)
Tests

\sc
\sei
\sf
\sfo
\si
\sie
\ss
\su
\sw
\sfu
\se
\sp
\sae
\saa
\sas
\ssa
\san
\sai

case in ... esac


elif then
for in do done
for ((...)) do done
if then fi
if then else fi
select in do done
until do done
while do done
function
echo -e ""
printf "%s"
array element ${.[.]}
arr. elem.s (all) ${.[@]}
arr. elem.s (1 word) ${.[*]}
subarray ${.[@]::}
no. of arr. elem.s ${.[@]}
list of indices ${.[*]}

\ta
\tfp
\tft
\tfc
\ts
\toe
\tvs
\tfd
\tm

arithmetic tests
(n, i)
file permissions
(n, i)
file types
(n, i)
file characteristics
(n, i)
string comparisons
(n, i)
option is enabled
(n, i)
variables has been set
(n, i)
file descr. refers to a terminal
(n, i)
string matches regexp
(n, i)
IO-Redirection

\ior
\ioh

IO-redirections (list)
here-document

(n, i)
(n, i)

pzo
pzm
pom
peo
pae
ppc
pbr

zero or one, ?( | )
zero or more, *( | )
one or more, +( | )
exactly one, @( | )
anything except, !( | )
POSIX classes
${BASH_REMATCH[0. . .3]}

\nr
\nv
\nw
\ne
\ntl
\ntr
\nts

read code snippet


view code snippet
write code snippet
edit code snippet
edit templates
reread templates
choose style

\rr
\ra
\rba
\rc
\rco
\rd
\re
\rh
\rs
\rx
\ro

update file, run script


(n, i, v1 )
set script cmd. line arguments
(n, i)
set Bash cmd. line arguments
(n, i)
update file, check syntax
(n, i)
syntax check options
(n, i)
1
start debugger
(n, i)
make script executable/not exec.1 (n, i)
hardcopy buffer
(n, i, v)
plug-in settings
(n, i)
1,2
set xterm size
(n, i)
change output destination
(n, i)
Help

\hb
\hh
\hm
\hp

display the Bash manual


help (Bash builtins)
show manual (cmd. line utilities)
help (plug-in)

1
2

April 21, 2014

bash-support.vim

(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
(n, i)
Snippets
(n, i)
(n, i)
(n, i, v)
(n, i)
(n, i)
(n, i)
(n, i)
Run

(n,i)
(n,i)
(n,i)
(n,i)

Linux/U**x only
GUI only

Page 1 / 1

Das könnte Ihnen auch gefallen