This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| source $VIMRUNTIME/vimrc_example.vim | |
| source $VIMRUNTIME/mswin.vim | |
| behave mswin | |
| set diffexpr=MyDiff() | |
| function MyDiff() | |
| let opt = '-a --binary ' | |
| if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
| if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Used to check through an array of checkboxes or radio buttons with the same name attribute. | |
| // max is an integer and is optional. it defaults to 1 if left empty. | |
| function checkBoxesAreChecked(checkboxarray, max) { | |
| var arraymax = max || 1; | |
| var checkedcount = 0; | |
| for (var i=0; i < checkboxarray.length; i++) { | |
| if (checkboxarray[i].checked) { | |
| checkedcount++; | |
| } | |
| } |
NewerOlder