diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/list-of-filetypes.txt | 175 | ||||
-rw-r--r-- | doc/shortcuts.txt | 64 |
2 files changed, 212 insertions, 27 deletions
diff --git a/doc/list-of-filetypes.txt b/doc/list-of-filetypes.txt new file mode 100644 index 0000000..9752c6a --- /dev/null +++ b/doc/list-of-filetypes.txt | |||
@@ -0,0 +1,175 @@ | |||
1 | # this list can be generated with ':setfiletype <C-d>'. I have copied it to | ||
2 | # make it searchable. | ||
3 | |||
4 | 2html erlang master sinda | ||
5 | HGAnnotate eruby matlab sindacmp | ||
6 | PKGBUILD esmtprc maxima sindaout | ||
7 | a2ps esqlc mel sisu | ||
8 | a65 esterel messages skill | ||
9 | aap eterm mf sl | ||
10 | abap euphoria3 mgl slang | ||
11 | abaqus euphoria4 mgp slice | ||
12 | abc eviews mib slim | ||
13 | abel exim mix slpconf | ||
14 | acedb expect mma slpreg | ||
15 | ada exports mmix slpspi | ||
16 | aflex falcon mmp slrnrc | ||
17 | ahdl fan modconf slrnsc | ||
18 | alsaconf fasm model sm | ||
19 | amiga fdcc modsim3 smarty | ||
20 | aml fetchmail modula2 smcl | ||
21 | ampl fgl modula3 smil | ||
22 | ansible fish monk smith | ||
23 | ansible_hosts flexwiki moo sml | ||
24 | ansible_template focexec mp snnsnet | ||
25 | ant form mplayerconf snnspat | ||
26 | antlr forth mrxvtrc snnsres | ||
27 | apache fortran msidl snobol4 | ||
28 | apachestyle foxpro msmessages solidity | ||
29 | aptconf framescript msql spec | ||
30 | arch freebasic mupad specman | ||
31 | arduino fstab mush spice | ||
32 | art fvwm mustache splint | ||
33 | asciidoc fvwm2m4 muttrc spup | ||
34 | asm gdb mysql spyce | ||
35 | asm68k gdmo named sql | ||
36 | asmh8300 gedcom nanorc sqlanywhere | ||
37 | asn git nasm sqlforms | ||
38 | aspperl gitcommit nastran sqlhana | ||
39 | aspvbs gitconfig natural sqlinformix | ||
40 | asterisk gitolite ncf sqlj | ||
41 | asteriskvm gitrebase netrc sqloracle | ||
42 | atlas gitsendemail netrw sqr | ||
43 | augeas gkrellmrc nginx squid | ||
44 | autohotkey glsl nim srec | ||
45 | autoit gnash ninja sshconfig | ||
46 | automake gnomecat nix sshdconfig | ||
47 | ave gnuplot nosyntax st | ||
48 | avra go nqc stata | ||
49 | awk godefstack nroff stp | ||
50 | ayacc godoc nsis strace | ||
51 | b gohtmltmpl obj stylus | ||
52 | baan gotexttmpl objc sudoers | ||
53 | basic gp objcpp svg | ||
54 | bc gpg ocaml svn | ||
55 | bdf gprof occam swift | ||
56 | bib grads octave syncolor | ||
57 | bib_latexSuite gretl omnimark synload | ||
58 | bindzone groff opencl syntax | ||
59 | blade groovy openroad sysctl | ||
60 | blank group opl systemd | ||
61 | bst grub ora systemverilog | ||
62 | btm gsp pamconf tads | ||
63 | bzl gtkrc papp tags | ||
64 | bzr haml pascal tak | ||
65 | c hamster passwd takcmp | ||
66 | cabal handlebars pcap takout | ||
67 | calendar haskell pccts tap | ||
68 | catalog haste pdf tar | ||
69 | cdl hastepreproc perl taskdata | ||
70 | cdrdaoconf haxe perl6 taskedit | ||
71 | cdrtoc haxe_extended pf tasm | ||
72 | cf hb pfmain tcl | ||
73 | cfg help pgsql tcsh | ||
74 | ch hercules php teraterm | ||
75 | chaiscript hex phtml terminfo | ||
76 | change hgcommit pic tex | ||
77 | changelog hitest pike tex_LatexBox | ||
78 | chaskell hog pilrc tex_latexSuite | ||
79 | cheetah hostconf pine texinfo | ||
80 | chill hostsaccess pinfo texmf | ||
81 | chordpro hss plaintex text | ||
82 | cl html plantuml textile | ||
83 | clean html5 pli tf | ||
84 | clipper htmlcheetah plm thrift | ||
85 | clojure htmldjango plp tidy | ||
86 | cmake htmlm4 plsql tilde | ||
87 | cmake-indent htmlos po tli | ||
88 | cmake-syntax hxml pod tmux | ||
89 | cmusrc ia64 postscr tomdoc | ||
90 | cobol ibasic pov toml | ||
91 | coco icemenu povini tpp | ||
92 | coffee icon ppd trasys | ||
93 | color_coded idl ppwiz treetop | ||
94 | colortest idlang prescribe trustees | ||
95 | conaryrecipe indent privoxy tsalt | ||
96 | conf inform procmail tsscl | ||
97 | config initex progress tssgm | ||
98 | context initng prolog tssop | ||
99 | cpp inittab promela tt2 | ||
100 | cql ipfilter proto tt2html | ||
101 | crm ishd protocols tt2js | ||
102 | crontab iss ps1 twig | ||
103 | cryptol ist ps1xml typescript | ||
104 | crystal j psf uc | ||
105 | cs jal ptcap udevconf | ||
106 | csc jam pug udevperm | ||
107 | cscope_plus jargon puppet udevrules | ||
108 | csdl jasmine purescript uil | ||
109 | csh java purifylog updatedb | ||
110 | csp javacc pyrex upstart | ||
111 | css javascript python upstreamdat | ||
112 | cterm jess qf upstreaminstalllog | ||
113 | ctrlh jgraph qml upstreamlog | ||
114 | cucumber jinja2 quake upstreamrpt | ||
115 | cuda jovial r usserverlog | ||
116 | cupl jproperties racc usw2kagtlog | ||
117 | cuplsim json radiance vala | ||
118 | cuda jovial r usserverlog | ||
119 | cupl jproperties racc usw2kagtlog | ||
120 | cuplsim json radiance vala | ||
121 | cvs jsp ragel valgrind | ||
122 | cvsrc jst ratpoison vb | ||
123 | cweb jsx rc vbnet | ||
124 | cynlib julia rcs vcl | ||
125 | cynpp kconfig rcslog velocity | ||
126 | d kivy readline vera | ||
127 | dart kix rebol verilog | ||
128 | datascript kotlin redif verilogams | ||
129 | dcd kscript registry vgrindefs | ||
130 | dcl kwt remind vhdl | ||
131 | debchangelog lace resolv vim | ||
132 | debcontrol latextoc reva vimgo | ||
133 | debsources latte rexx viminfo | ||
134 | def ld rhelp virata | ||
135 | denyhosts ldapconf rib vmasm | ||
136 | desc ldif rmd voscm | ||
137 | desktop less rnc vrml | ||
138 | dictconf lex rng vroom | ||
139 | dictdconf lftp rnoweb vsejcl | ||
140 | diff lhaskell robots vundlelog | ||
141 | dircolors libao rpcgen wdiff | ||
142 | dirpager lifelines rpl web | ||
143 | diva lilo rrst webmacro | ||
144 | django limits rspec wget | ||
145 | dns liquid rst whitespace | ||
146 | dnsmasq lisp rtf winbatch | ||
147 | docbk lite ruby wml | ||
148 | docbksgml litestep rust wsh | ||
149 | docbkxml logcheck samba wsml | ||
150 | dockerfile loginaccess sas wvdial | ||
151 | dosbatch logindefs sass xbl | ||
152 | dosini logtalk sather xdefaults | ||
153 | dot lotos sbt xf86conf | ||
154 | doxygen lout scala xhtml | ||
155 | dracula lpc scala.xpt xinetd | ||
156 | dsl lprolog scheme xkb | ||
157 | dtd lscript scilab xmath | ||
158 | dtml lsl screen xml | ||
159 | dtrace lss scss xmodmap | ||
160 | dts lua sd xpm | ||
161 | dylan lynx sdc xpm2 | ||
162 | dylanintr m4 sdl xquery | ||
163 | dylanlid mail sed xs | ||
164 | ecd mailaliases sendpr xsd | ||
165 | edif mailcap sensors xsl | ||
166 | eelixir make services xslt | ||
167 | eiffel mallard setserial xxd | ||
168 | elf man sgml yacc | ||
169 | elinks manconf sgmldecl yaml | ||
170 | elixir manual sgmllnx z8a | ||
171 | elm maple sh zimbu | ||
172 | elmfilt markdown sicad zsh | ||
173 | ember-script masm sieve | ||
174 | emblem mason simula | ||
175 | |||
diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt index 9c168f9..4e49e6d 100644 --- a/doc/shortcuts.txt +++ b/doc/shortcuts.txt | |||
@@ -1,50 +1,60 @@ | |||
1 | leader key = usually set to backslash expects a quick command | ||
2 | |||
3 | |||
1 | [normal mode] | 4 | [normal mode] |
2 | f{char} - move cursor to the character {char} | 5 | f{char} = move cursor to the character {char} |
3 | 6 | ||
4 | 7 | ||
5 | [visual mode] - with selected lines | 8 | [visual mode] # with selected lines |
6 | gq - formats text so that it fits in whatever :set textwidth was set | 9 | gq = formats text so that it fits in whatever :set textwidth was set |
7 | iB - select block between curly braces (:help object-select) | 10 | iB = select block between curly braces (:help object-select) |
8 | 11 | ||
9 | 12 | ||
10 | [commands] | 13 | [commands] |
11 | :spell [word] - adds a word to the current dictionary (no mistake any more) | 14 | :spell [word] = adds a word to the current dictionary (no mistake any more) |
12 | :set list - display non printable characters | 15 | :set list = display non printable characters |
13 | :retab - replaces tabs with spaces | 16 | :retab = replaces tabs with spaces |
14 | :set expandtab - in insert mode: replace tab with spaces | 17 | :set expandtab = in insert mode: replace tab with spaces |
18 | :Explore = cli version open file dialog | ||
15 | 19 | ||
16 | 20 | ||
17 | [navigation] | 21 | [navigation] |
18 | <CTRL-]> - look up the tag under the cursor (help links as well) | 22 | <CTRL-]> = look up the tag under the cursor (help links as well) |
19 | <CTRL-T> - return back from tag under the cursor | 23 | <CTRL-T> = return back from tag under the cursor |
24 | gd = jump to the declaration of the variable under the cursor | ||
20 | 25 | ||
21 | 26 | ||
22 | [macros] - record and play back a series of vim commands | 27 | [macros] # record and play back a series of vim commands |
23 | qa - start (q) macro recording in register a (can be anything) | 28 | qa = start (q) macro recording in register a (can be anything) |
24 | q - stop macro recording | 29 | q = stop macro recording |
25 | @a - replay macro a | 30 | @a = replay macro a |
26 | :'<,'>normal @a - apply a to every line in the current selection | 31 | :'<,'>normal @a = apply a to every line in the current selection |
27 | 32 | ||
28 | 33 | ||
29 | [marker] | 34 | [marker] |
30 | ma - set marker a-z (a in this case) | 35 | ma = set marker a-z (a in this case) |
31 | 'a - go to marker a | 36 | 'a = go to marker a |
32 | 37 | ||
33 | 38 | ||
34 | [hotkeys] | 39 | [hotkeys] |
35 | <C-A>, <C-X> - increment, decrement number under the cursor | 40 | <C-A>, <C-X> = increment, decrement number under the cursor |
36 | 41 | ||
37 | 42 | ||
38 | [windows] | 43 | [windows] |
39 | <C-W>v - splits buffer vertically (screen uses |) | 44 | <C-W>v = splits buffer vertically (screen uses |) |
40 | <C-W>s - splits buffer horizontally (same as screen) | 45 | <C-W>s = splits buffer horizontally (same as screen) |
41 | <C-W>w - moves the cursor to the next window and back | 46 | <C-W>w = moves the cursor to the next window and back |
42 | <C-W>[dir] - moves the cursor in that direction (use hjkl or arrow keys) | 47 | <C-W>[dir] = moves the cursor in that direction (use hjkl or arrow keys) |
43 | 48 | ||
44 | 49 | ||
45 | [vimdiff] | 50 | [vimdiff] |
46 | do - get changes from other window into the current | 51 | do = get changes from other window into the current |
47 | dp - put changes from current window into the other | 52 | dp = put changes from current window into the other |
48 | ]c - jump to the next change | 53 | ]c = jump to the next change |
49 | [c - jump to the prevous change | 54 | [c = jump to the prevous change |
50 | zR - opens all folds (unfold all) | 55 | zR = opens all folds (unfold all) |
56 | |||
57 | [vim modeline] | ||
58 | the last line can be a mode line, which holds settings like tab width: | ||
59 | |||
60 | # vim: noai:ts=2:sw=2 filetype=dosini | ||