Commits

Shlomi Fish committed f64f045

Spell check Vim.

Comments (0)

Files changed (14)

bin/spell-checker-iface.sh

 #!/bin/bash
 find dest/t2-homepage/ -name '*.html' -or -name '*.xhtml' |
     ( LC_ALL=C sort  ) |
-    perl -lne 'print if 1..m#lecture/SCM/subversion/for-pythoneers/slides/start#'|
+    perl -lne 'print if 1..m#lecture/Vim/telux-tips#'|
     grep -vP 'guide2ee/undergrad' |
     grep -vP '(?:humour/TheEnemy/(?:The-Enemy-(?:English-)?rev|TheEnemy))' |
     grep -vP '(?:humour/by-others/(?:English-is-a-Crazy-Language|darien|hitchhiker|how-many-newsgroup-readers|oded-c|s-stands-for-simple|technion-bit-1|top-12-things-likely|was-the-death-star-attack|grad-student-jokes-from-jnoakes))' |

lib/hunspell/whitelist1.txt

 LUTs
 macgimp
 MacGIMP
-MacOS
 Mattis
 menubar
 midtones
 versioned
 Versioning
 WebDAV
+
+====dest/t2-homepage/lecture/Sys-Call-Track/Lex-Yacc/index.html
+
+tokeniser
+
+====dest/t2-homepage/lecture/Vim/beginners/index.html,dest/t2-homepage/lecture/Vim/beginners/slides/index.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide1.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide10.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide11.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide12.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide13.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide14.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide15.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide16.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide17.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide18.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide19.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide2.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide20.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide21.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide22.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide23.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide24.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide25.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide26.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide27.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide28.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide29.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide3.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide30.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide31.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide32.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide33.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide34.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide35.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide36.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide4.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide5.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide6.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide7.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide8.html,dest/t2-homepage/lecture/Vim/beginners/slides/slide9.html,dest/t2-homepage/lecture/Vim/beginners/slides/start.html,dest/t2-homepage/lecture/Vim/telux-tips-and-tricks/index.html
+
+_
+0a
+100gg
+200x
+2html
+4ly
+5h
+5s
+6kbyte
+'a
+Alt
+Amiga
+artu
+autocmd
+a-zA-Z
+A-Za-z
+Barhoom
+bd
+BIDI
+bn
+bp
+Bram
+BufNewFile
+BufRead
+ch13s02
+charityware
+cmap
+compl-generic
+CR
+ct
+ctags
+Ctrl
+CTRL-H
+CTRL-J
+CTRL-N
+CTRL-P
+dd
+Demo_File_1
+Demo_File_2
+Demo_File_3
+dot-vimrc
+dw
+ed
+'ed
+endfunction
+end_line
+'es
+Esc
+ESC
+Ex_
+exe
+expandtab
+F2
+F3
+faqs
+f-args
+filetype
+firefox
+fo
+Freenode
+full_pat
+ge
+getline
+gg
+GoDate
+Gtk
+gvim
+hhhy
+HTMLisms
+html_use_css
+ICCF
+id2963445
+Ido
+imap
+IMproved
+Jul
+Kanner's
+kJ
+Konqueror-like
+line1
+line2
+LiveJournal
+modelines
+Modelines
+Moolenaar
+mozilla
+mswin
+mypat
+-nargs
+nearly-vi
+nmap
+oDate
+omap
+oprint
+OSes
+Parameterised
+parens
+pdb
+perl-support
+php
+pl
+programmatically
+qm
+Range_Search
+regexp
+Regexp
+REGEXP
+repl
+Rs
+Sagiv
+setlocal
+S-F3
+shortcut
+Shortcuts
+sp
+Stackoverflow
+start_line
+sy
+syn
+'t
+'T
+tabstop
+Tcl
+TOhtml
+txt
+unicode
+unindent
+UTF-8
+vi
+Vi
+Vi-Improved
+vi-like
+vimrc
+VIMRUNTIME
+vimscript
+vj
+vmap
+VT-100
+WebDragon's
+whitespace
+wikia
+wikipedia
+wq
+xmms
+XMMS
+xmms_opts
+Xmms_Play_Mp3
+XXX
+yG
+yy
+YYY
+zc
+zE
+zf
+zi
+zo
+zO
+Vims

lib/presentations/qp/Gimp/1.2/src/finale/links.html.wml

 
 <p>
 <a href="http://www.macgimp.org/">http://www.macgimp.org/</a> -
-MacGIMP - Gimp for MacOS X.
+MacGIMP - Gimp for Mac OS X.
 </p>
 
 <h2>Gimp Development</h2>

lib/presentations/qp/Gimp/2.2/src/finale/links.html.wml

 
 <p>
 <a href="http://www.macgimp.org/">http://www.macgimp.org/</a> -
-MacGIMP - Gimp for MacOS X.
+MacGIMP - Gimp for Mac OS X.
 </p>
 
 <h2>Gimp Development</h2>

lib/presentations/qp/perl-for-newbies/2/src/references/hanoi.html.wml

 <p>
 In this example, which is intended to give a taste of the capabilities of
 references, we will solve the well-known <a href="http://www.cut-the-knot.org/recurrence/hanoi.shtml">Towers of Hanoi</a> problem. (Refer to the link to learn
-more about the problem.) The number of disks can be inputted from the command-line.
+more about the problem.) The number of disks can be input from the command-line.
 The towers themselves will be represented as an array of three elements, each
 of which is a reference to an array.
 </p>

lib/presentations/qp/perl-for-newbies/3/src/refs_to_funcs/calling1.pl

 use strict;
 use warnings;
 
-# This is a value that can be inputted or outputted by the
+# This is a value that can be input or output by the
 # mini-interpreter.
 my $a_value;
 

lib/presentations/spork/Vim/beginners/Spork.slides.source

 ----
 == Vim - Introduction
 
-* Short for Vi IMproved. 
+* Short for Vi IMproved.
 * An enhanced vi clone (which is not fully compatible with the original UNIX vi)
-* Developed by Bram Moolenaar and others. 
+* Developed by Bram Moolenaar and others.
 * It is open source (and GPL-compatible since version 6.1.)
 * Serves as charityware for [ICCF Holland http://iccf-holland.org/]
 
 
 == History of Vi
 
-    
+
 * The standard UNIX editor "ed" existed on UNIX systems practically since its inception:
 ** http://www.faqs.org/docs/artu/ch13s02.html#id2963445
 
 ----
 == History of Vim
 
-* Vim started when Bram Mooleenaar had to work on an Amiga system and was used to Vi. 
+* Vim started when Bram Moolenaar had to work on an Amiga system and was used to Vi.
 
 * He took a nearly-vi clone, started improving it and adding extra features.
 
 
 * 1996 May 29 - Vim 4.0 - Graphical User Interface
 
-* 1998 Feb 19 - Vim 5.0 - Syntax Coloring/Highlighting
+* 1998 Feb 19 - Vim 5.0 - Syntax Colouring/Highlighting
 
 * 2000 Jul 09 - Vim 6.0a - Folding (and more)
 
 
 * Vim is indeed a very portable editor - runs on most UNIX flavours as well as:
 +** Windows
-+** MacOS
++** Mac OS
 +** DOS
-+** VMS 
++** VMS
 +** and many others OSes.
 
 +* Several front-ends exist:
-+** console 
++** console
 +** Gtk+
 +** Motif
 +** KDE
 
 +* Very easy to use for simple scripting, programming and file editing.
 
-+* Once you have learned the basic usage, you will find a whole variety of suprising uses for this editor.
++* Once you have learned the basic usage, you will find a whole variety of surprising uses for this editor.
 
 +* It is very well documented
 
 ----
 == Normal Mode and Editing Mode
 
-* By default Vim starts in the so called normal mode - one cannot enter text 
+* By default Vim starts in the so called normal mode - one cannot enter text
 then.
 +* To begin entering text type one of the following commands:
-+** "i" or <Insert> - to insert text before the cursor. 
-+** "a" - to append text after the cursor. 
++** "i" or <Insert> - to insert text before the cursor.
++** "a" - to append text after the cursor.
 *** (useful at the end of the lines.)
 +** "I" - insert text before first character in the line.
 +** "A" - append after last char in the line.
 
 +* To switch back into normal mode, press the <Esc> key.
 
-+* Using |:source $VIMRUNTIME/mswin.vim| will make the insert mode more Windows-like and functional. 
++* Using |:source $VIMRUNTIME/mswin.vim| will make the insert mode more Windows-like and functional.
 +* Note:
 +** If you do not know what is $VIMRUNTIME - find it using:
-    :echo $VIMRUNTIME 
+    :echo $VIMRUNTIME
 +** Hard core vi users avoid it.
 +** Shlomi Fish Uses it.
 ----
 +=== Command-line mode:
 
 * ":"
-+** Once ":" is pressed in normal mode, one can enter the so-called "ex" commands at the command-line. 
++** Once ":" is pressed in normal mode, one can enter the so-called "ex" commands at the command-line.
 +** This allows saving the file "w", quitting "q" or "q!", substituting text "s///", etc.
 +** Some of these commands will be covered in more detail later on.
 ----
 == Moving around
 
-* Vim (and vi in general) has many commands for moving around. 
+* Vim (and vi in general) has many commands for moving around.
 +* A complete listing of them can be found in [:help motion.txt http://vimdoc.sourceforge.net/htmldoc/motion.html].
 +* Examples:
 +** |h|{{/}}|<Left>|{{/}}|<Backspace>|{{/}}|CTRL-H| - Left
 +** |(|{{/}}|)| - previous/next sentence
 +** |{|{{/}}|}| - previous/next paragraphs
 
-+* Some of these commands can be preceded by a number which repeat them several times. 
++* Some of these commands can be preceded by a number which repeat them several times.
 +** For instance |5h| moves 5 character to the left
 +** And |100gg| moves to line number 100.
 ----
 ----
 == ctags
 
-* "ctags" allows to cross-reference the code and browse to the definition of identifiers in a hypertext-like manner. 
+* "ctags" allows to cross-reference the code and browse to the definition of identifiers in a hypertext-like manner.
 
 +* To use it first execute:
 
 
 * In the command line, in the top-directory you wish to create.
 
-+* Then you can type |Ctrl+]| to jump to the definition of an identfier, and |Ctrl+T| to return to the previous position.
++* Then you can type |Ctrl+]| to jump to the definition of an identifier, and |Ctrl+T| to return to the previous position.
 
 ----
 == Demo 3: Second Code Demo
 
 Using Demo_File_2.txt
 
-* Insert Mode 
+* Insert Mode
 * Auto-completion |Ctrl+P/N|
 * delete word/line |dw|/|dd|
-* switching to visual mode 
+* switching to visual mode
 * Copy Paste using yank
 * Copy part of table using yank
 * Advance Copy using ["X]yank
 
 * [:help compl-generic http://vimdoc.sourceforge.net/htmldoc/insert.html#compl-generic]
 
-+* Ctrl+P finds a previous match for a word that was started to be inputted in the file. 
++* Ctrl+P finds a previous match for a word that was started to be input in the file.
 +** Press it more times for more alternatives.
 
 +* Ctrl+N is the same for words after the cursor.
 == Registers
 
 +* A yank (copy) or delete (cut) can copy the text into a specified register.
-+* A register is specified with a double-quotes (|"|) followed by the register name which precedes the y or d command. 
++* A register is specified with a double-quotes (|"|) followed by the register name which precedes the y or d command.
 +* There are several registers available:
 +00 The default, unnamed register |""|
 +00 Standard named register |"A|-|"Z| or |"a|-|"z| (case insensitive)
-+00 The clipboard register |"+|. 
++00 The clipboard register |"+|.
 +*** (available in GUI Vims, and defaults to the unnamed register on console Vims)
 +00 Registers |1|-|9| which provide history of the copied texts.
 +00 Other special registers. (check [:help registers http://vimdoc.sourceforge.net/htmldoc/change.html#registers])
 
-+* To paste a text from a register use the |"{reg}p| command. 
++* To paste a text from a register use the |"{reg}p| command.
 
 +=== Examples
 
 ----
 == Operators accepting movements
 
-+* Except for moving around, one can use the movement commands as input to various operators that precede them. 
++* Except for moving around, one can use the movement commands as input to various operators that precede them.
 
 +* Here are some:
 +** |d| - "cut" the text moved over into a register
 ----
 == Marks
 
-* You can set marks in the file and later move straight to them with one movement command. 
-+** |m{a-zA-Z}| sets a mark. 
+* You can set marks in the file and later move straight to them with one movement command.
++** |m{a-zA-Z}| sets a mark.
 +*** The a-z marks are local to the file, and the A-Z marks are global in all buffers.
 +*** Jumping to the mark is done with |`{A-Za-z}|.
 +* A jump to a mark can be given to a movement operator. For instance:
 
 * [:help 2html http://vimdoc.sourceforge.net/htmldoc/syntax.html#2html.vim]
 
-+* One can use gvim to convert syntax highlighted files, to HTML files that contain their text coloured in their highlighted colours. 
++* One can use gvim to convert syntax highlighted files, to HTML files that contain their text coloured in their highlighted colours.
 
 +* To do that one can invoke the command |:TOhtml|, and get a resultant file in a new buffer and window.
 
-+* Use |:let html_use_css = 1| to make sure the HTML is outputted using CSS styles instead of font tags and other old HTMLisms. 
++* Use |:let html_use_css = 1| to make sure the HTML is outputted using CSS styles instead of font tags and other old HTMLisms.
 ----
 == Scripting and Automation
 
 ----
 == Register Repeats
 
-* The registers can be used to record macros. 
-+* To record a macro type |q{reg}|, and type the keystrokes you wish to record and then type |q|. 
-+* To execute a macro type |@{reg}|. 
+* The registers can be used to record macros.
++* To record a macro type |q{reg}|, and type the keystrokes you wish to record and then type |q|.
++* To execute a macro type |@{reg}|.
 +** You can use the |{integer}@{reg}| to execute it a number of times.
 +* For example:
 
     sub hello
     {
         my ($x,$y) = @_;
-        print (($x+$y,"\n");    
+        print (($x+$y,"\n");
     }
 
 +** to transform to:
 ----
 == Key Mapping
 
-* You can assign a set of commands to a single key or key sequence. 
+* You can assign a set of commands to a single key or key sequence.
 +* This is done using the :map and friends commands:
 
     :map         Normal, Visual and Operator-pending
 
 * Installing perl-support.vim .
 * Showing of using GUI .
-* Showing of using keybord .
+* Showing of using keyboard .
 
 ----
 == Customising Vim - Modelines
 
 * One can customise the behaviour of vim for specific files using modelines.
-+* Modelines are included at the beginning or the end of the file and invoke "setlocal" on the vim variables. 
++* Modelines are included at the beginning or the end of the file and invoke "setlocal" on the vim variables.
 +* This is useful for setting options like the behaviour of tabs, the file mode , etc.
 +* For example, putting
 
 ----
 == .vimrc
 
-* The dot-vimrc file is the central configuration file for vim, which a user can use to configure vim and gvim to his liking. 
+* The dot-vimrc file is the central configuration file for vim, which a user can use to configure vim and gvim to his liking.
 +* It is written in vimscript, and one can put there normal commands that one normally puts in command line-mode.
 
 +=== Location based commands
 
-* One can define commands to be executed for certain files (with certain prefixes, under certain locations, etc.) using the autocmd feature. 
+* One can define commands to be executed for certain files (with certain prefixes, under certain locations, etc.) using the autocmd feature.
 +* For example:
 
     autocmd BufNewFile,BufRead ~/Download/unpack/graphics/*.pdb set filetype=perl

t2/humour/fortunes/shlomif.xml

                     amount of punch cards and then dropping them all.  </p>
 
                 <p> F: Punch cards! What is this talk about punch cards? We
-                    inputted machine code direclty using buttons and LEDs.
+                    input machine code directly using buttons and LEDs.
                 </p>
 
                 <p> G: And all <b>we</b> had were NAND gates!  </p>

t2/lecture/Gimp/index.html.wml

 processing and composition program available for UNIXes and several other
 platforms (including
 <a href="http://www.gimp.org/windows/">Win32</a> and
-<a href="http://www.macgimp.org/">MacOS X</a>)
+<a href="http://www.macgimp.org/">Mac OS X</a>)
 . The GIMP includes many features attractive to graphics professionals and
 novices alike, and is up-to-par with commercial offerings such as Adobe
 Photoshop.

t2/lecture/Perl/Newbies/Perl-for-Newbies-summary.txt

 Conditionals:
     if .. elsif .. elsif .. else
     Examples:
-        Testing if an inputted name starts with a.
+        Testing if an input name starts with a.
 Condition Expressions:
     The numeric comparison operators
     The string comparison operators

t2/lecture/Perl/Newbies/summary.txt

 Conditionals:
     if .. elsif .. elsif .. else
     Examples:
-        Testing if an inputted name starts with a.
+        Testing if an input name starts with a.
 Condition Expressions:
     The numeric comparison operators
     The string comparison operators

t2/lecture/Vim/telux-tips-and-tricks/index.html.wml

 the <a href="http://www.vim.org/">Vim</a> editor.
 </p>
 
-<h2 id="material">The Material from the Presenation</h2>
+<h2 id="material">The Material from the Presentation</h2>
 
 <ul>
 <li>

t2/open-source/portability-libs/index.html.wml

 <li>
 <p>
 <a href="http://www.xulplanet.com/">Mozilla’s XUL</a> - a C++ cross-platform
-GUI library for X-Windows, Win32 and MacOS based on XML. Triply Licensed
+GUI library for X-Windows, Win32 and Mac OS based on XML. Triply Licensed
 under the MPL, LGPL and GPL.
 </p>
 </li>
 <li>
 <p>
 <a href="http://www.fox-toolkit.org/">The FOX Toolkit</a> - a C++ toolkit
-that runs on UNIX, Windows and MacOS X. Renders its own controls, so does
-not have the system-wide native look and feel, but OTOH has a consistent
-one across all platforms.
+that runs on UNIX, Windows and Mac OS X. Renders its own controls, so does
+not have the system-wide native look and feel, but, on the other
+hand, has a consistent one across all platforms.
 </p>
 </li>
 
 <li>
 <p>
 <a href="http://www.libsdl.org/">SDL - The Simple DirectMedia Layer</a> -
-a comprehensive library that runs on Win32, BeOS and MacOS and several
+a comprehensive library that runs on Win32, BeOS and Mac OS and several
 flavours of UNIX. Has bindings to many other languages
 </p>
 </li>

t2/philosophy/computers/perl/joy-of-perl/joy-of-perl.html.wml

 </p>
 
 <p>
-So, keep the Shift key and the “4” key on your keybords in order, because
-you’ll need to use them a lot in your future.
+So, keep the Shift key and the “4” key on your keyboards in working order,
+because you’ll need to use them a lot in your future.
 </p>