Problem: Typos in source files.
Solution: Fix the typos. (Ken Takata)
" Exit quickly when:
" - this plugin was already loaded (or disabled)
" - when 'compatible' is set
-" - the "CursorMoved" autocmd event is not availble.
+" - the "CursorMoved" autocmd event is not available.
if exists("g:loaded_matchparen") || &cp || !exists("##CursorMoved")
finish
endif
@rem Arguments - +$(CurLine) $(ItemPath)
@rem Init Dir - Empty
@rem
-@rem Coutesy of Brian Sturk
+@rem Courtesy of Brian Sturk
@rem
@rem --remote-silent +%1 is a command +954, move ahead 954 lines
@rem --remote-silent %2 full path to file
@rem In Vim
-@rem :h --remote-silent for mor details
+@rem :h --remote-silent for more details
@rem
@rem --servername VS_NET
@rem This will create a new instance of vim called VS_NET. So if you
//
// PARAMETERS:
// pIDFolder - Specifies the parent folder
-// pDataObj - Spefifies the set of items selected in that folder.
+// pDataObj - Specifies the set of items selected in that folder.
// hRegKey - Specifies the type of the focused item in the selection.
//
// RETURN VALUE:
Also VMS_JACKETS.EXE from OpenVMS Porting Library.
Please note, that GTK uses /name=(as_is,short)/float=ieee/ieee=denorm
- complier directives that is not compatible with "standard" VMS usage,
+ compiler directives that is not compatible with "standard" VMS usage,
therefore other external features might fail as PERL, PYTHON and TCL
support.
#
# Makefile for VIM on Win32, using Cygnus gcc
-# Last updated by Dan Sharp. Last Change: 2013 Feb 17
+# Last updated by Dan Sharp. Last Change: 2013 Apr 22
#
# Also read INSTALLpc.txt!
#
# USEDLL no or yes: set to yes to use the Runtime library DLL (no)
# For USEDLL=yes the cygwin1.dll is required to run Vim.
# For "no" the mingw-gcc-g++ package or the mingw64-i686-gcc-g++
-# package is required to complie Vim. Or set CC to gcc-3 and add
+# package is required to compile Vim. Or set CC to gcc-3 and add
# -L/lib/w32api to EXTRA_LIBS.
# POSTSCRIPT no or yes: set to yes for PostScript printing (no)
# FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG)
!endif
!endif
-# Abort bulding VIM if version of VC is unrecognised.
+# Abort building VIM if version of VC is unrecognised.
!ifndef MSVCVER
!message *** ERROR
!message Cannot determine Visual C version being used. If you are using the
# generate GlobalSymbolTable, which speeds up the compile time.
#
-# A preprocessing stage is used to work arounda bug in the GST generator, in
+# A preprocessing stage is used to work around a bug in the GST generator, in
# that it does not handle nested makefiles properly in this stage.
# Ignore error message for not producing any code (105).
$(GST): scoptions vim.h keymap.h macros.h ascii.h term.h structs.h
.c.pro:
$(CC) $(CFLAGS) GPFILE=proto/$*.pro $(PROPT) $*.c
-# dependancies
+# dependencies
blowfish.o: blowfish.c
proto/blowfish.pro: blowfish.c
buffer.o: buffer.c
# SMALL - Few features enabled, as basic as possible
# NORMAL - A default selection of features enabled
# BIG - Many features enabled, as rich as possible. (default)
-# HUGE - All possible featues enabled.
+# HUGE - All possible features enabled.
# Please select one of these alternatives above.
MODEL = HUGE
# Comment out if you want the compiler version with :ver command.
# NOTE: This part can make some complications if you're using some
# predefined symbols/flags for your compiler. If does, just leave behind
-# the comment varialbe CCVER.
+# the comment variable CCVER.
CCVER = YES
# Uncomment if want a debug version. Resulting executable is DVIM.EXE
# *************************************************************
# * WARNING!
# * This was originally produced by the IDE, but has since been
-# * modifed to make it work properly. Adjust with care!
+# * modified to make it work properly. Adjust with care!
# * In particular, leave LinkerLocalOptsAtW16_gvim16dexe alone
# * unless you are a guru.
# *************************************************************
#Solaris 2.5 (sun4m) cc (SC4.0) +X11R6 +GUI (CDE) 4.6b (E) Andrew Large
#Solaris 2.5 cc +X11 +GUI Athena 4.2 (9) Sonia Heimann
#Solaris 2.5 gcc 2.5.6 +X11 Motif 5.0m (R) Ant. Colombo
-#Solaris 2.6 gcc 2.8.1 ncursus 5.3 (G) Larry W. Virden
+#Solaris 2.6 gcc 2.8.1 ncurses 5.3 (G) Larry W. Virden
#Solaris with -lthread 5.5 (W) K. Nagano
#Solaris gcc (b) Riccardo
#SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
# (D) Uncomment lines below for QNX
# (E) You might want to use termlib instead of termcap, see below.
# (F) See below for instructions.
-# (G) Using ncursus version 4.2 has reported to cause a crash. Use the
-# Sun cursus library instead.
+# (G) Using ncurses version 4.2 has reported to cause a crash. Use the
+# Sun curses library instead.
# (H) See line for EXTRA_LIBS below.
# (I) SINIX-N 5.42 and 5.43 need some EXTRA_LIBS. Also for Reliant-Unix.
# (J) If you get undefined symbols, see below for a solution.
# to the command line. If you see strange flags during compilation, check in
# auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting
# the next line.
-# When you get an error for a missing "perl.exp" file, try creating an emtpy
+# When you get an error for a missing "perl.exp" file, try creating an empty
# one: "touch perl.exp".
# This requires at least "small" features, "tiny" doesn't work.
#CONF_OPT_PERL = --enable-perlinterp
# Might not work with GUI or Perl.
# For unknown reasons adding "-lc" fixes a linking problem with some versions
# of GCC. That's probably a bug in the "-pg" implementation.
-# After running Vim see the profile result with: gmon vim gmon.out | vim -
+# After running Vim see the profile result with: gprof vim gmon.out | vim -
# Need to recompile everything after changing this: "make clean" "make".
#PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
#PROFILE_LIBS = -pg
### prototype headers are ignored due to -DPROTO, system
### headers #include <...> are ignored if we use the -MM option, as
### e.g. provided by gcc-cpp.
-### Include FEAT_GUI to get gependency on gui.h
+### Include FEAT_GUI to get dependency on gui.h
### Need to change "-I /<path>" to "-isystem /<path>" for GCC 3.x.
CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) \
`echo "$(DEPEND_CFLAGS)" $(DEPEND_CFLAGS_FILTER)`
# Link the target for normal use or debugging.
-# A shell script is used to try linking without unneccesary libraries.
+# A shell script is used to try linking without unnecessary libraries.
$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
$(CCC) version.c -o objects/version.o
@LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
#
# This will produce a lot of garbage on your screen, including a few error
# messages. Don't worry about that.
-# If there is a real error, there will be a difference between "test.out" and
-# a "test99.ok" file.
+# If there is a real error, there will be a difference between "testXX.out" and
+# a "testXX.ok" file.
# If everything is alright, the final message will be "ALL DONE". If not you
# get "TEST FAILURE".
#
mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
# po/Make_osx.pl says something about generating a Mac message file
-# for Ukrananian. Would somebody using Mac OS X in Ukranian
+# for Ukrainian. Would somebody using Mac OS X in Ukrainian
# *really* be upset that Carbon Vim was not localised in
-# Ukranian?
+# Ukrainian?
#
#bundle-language: bundle-dir po/Make_osx.pl
# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
}
char Buf[256];
- sprintf (Buf, "An OLE error occured:\r\nCode = %s\r\nResult = %lx.",
+ sprintf (Buf, "An OLE error occurred:\r\nCode = %s\r\nResult = %lx.",
(char*) ErrName, m_hResult);
MessageBox (NULL, Buf, "OLE Error", MB_OK);
}
2. Close Visual Studio.
3. Delete VisVim.dll or move it somewhere it can't be found.
4. Run Visual Studio.
- 5. Tools -> Cursomize ->Add-ins and Macro-Files.
+ 5. Tools -> Customize ->Add-ins and Macro-Files.
6. A message appears:
".../VisVim.dll" "This add-in no longer exists. It will
no longer be displayed."
P8 Execute :tag command in Vim for word under cursor in DevStudio
P7 Controlling the Visual Studio Debugger from inside Vim
- See message above. Also a 'Debug' highligh group and a
+ See message above. Also a 'Debug' highlight group and a
command to highlight a certain line would be necessary.
P6 Provide an option to open the current file in VisVim in
/* If this program fails, then RTLD_GLOBAL is needed.
* RTLD_GLOBAL will be used and then it is not possible to
* have both python versions enabled in the same vim instance.
- * Only the first pyhton version used will be switched on.
+ * Only the first python version used will be switched on.
*/
int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
/* If this program fails, then RTLD_GLOBAL is needed.
* RTLD_GLOBAL will be used and then it is not possible to
* have both python versions enabled in the same vim instance.
- * Only the first pyhton version used will be switched on.
+ * Only the first python version used will be switched on.
*/
int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
_ACEOF
if test "x$vim_cv_tty_mode" = "x" ; then
- as_fn_error "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" "$LINENO" 5
+ as_fn_error "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5
else
$as_echo "#define PTYMODE 0620" >>confdefs.h
* "buf" if one exists */
if (swb_flags & SWB_USEOPEN)
wp = buf_jump_open_win(buf);
- /* If 'switchbuf' contians "usetab": jump to first window in any tab
+ /* If 'switchbuf' contains "usetab": jump to first window in any tab
* page containing "buf" if one exists */
if (wp == NULL && (swb_flags & SWB_USETAB))
wp = buf_jump_open_tab(buf);
AC_SUBST(line_break)
if test "$cf_cv_ebcdic" = "yes"; then
-dnl If we have EBCDIC we most likley have z/OS Unix, let's test it!
+dnl If we have EBCDIC we most likely have z/OS Unix, let's test it!
AC_MSG_CHECKING(for z/OS Unix)
case `uname` in
OS/390) zOSUnix="yes";
/* If this program fails, then RTLD_GLOBAL is needed.
* RTLD_GLOBAL will be used and then it is not possible to
* have both python versions enabled in the same vim instance.
- * Only the first pyhton version used will be switched on.
+ * Only the first python version used will be switched on.
*/
int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
/* If this program fails, then RTLD_GLOBAL is needed.
* RTLD_GLOBAL will be used and then it is not possible to
* have both python versions enabled in the same vim instance.
- * Only the first pyhton version used will be switched on.
+ * Only the first python version used will be switched on.
*/
int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
if test "x$vim_cv_tty_group" != "xworld" ; then
AC_DEFINE_UNQUOTED(PTYGROUP,$vim_cv_tty_group)
if test "x$vim_cv_tty_mode" = "x" ; then
- AC_MSG_ERROR([It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)])
+ AC_MSG_ERROR([It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)])
else
AC_DEFINE(PTYMODE, 0620)
fi
}
/*
- * Set options to show difs for the current window.
+ * Set options to show diffs for the current window.
*/
void
ex_diffthis(eap)
/*
* Only add the choice for the open-with menu entry when gvim.exe was found
- * and and regedit.exe exist.
+ * and regedit.exe exist.
*/
static void
init_openwith_choice(void)
normalchar:
/*
- * Insert a nomal character.
+ * Insert a normal character.
*/
#ifdef FEAT_AUTOCMD
if (!p_paste)
/*
* Count each sequence of folded lines as one logical line.
*/
- /* go to the the start of the current fold */
+ /* go to the start of the current fold */
(void)hasFolding(lnum, &lnum, NULL);
while (n--)
(void)hasFolding(lnum, NULL, &lnum);
#endif
/* This fails if the cursor is already in the last line or would move
- * beyound the last line and '-' is in 'cpoptions' */
+ * beyond the last line and '-' is in 'cpoptions' */
if (lnum >= curbuf->b_ml.ml_line_count
|| (lnum + n > curbuf->b_ml.ml_line_count
&& vim_strchr(p_cpo, CPO_MINUS) != NULL))
/*
* return TRUE if 'cinkeys' contains the key "keytyped",
* when == '*': Only if key is preceded with '*' (indent before insert)
- * when == '!': Only if key is prededed with '!' (don't insert)
+ * when == '!': Only if key is preceded with '!' (don't insert)
* when == ' ': Only if key is not preceded with '*'(indent afterwards)
*
* "keytyped" can have a few special values:
#endif
/*
- * <Insert> key in Insert mode: toggle insert/remplace mode.
+ * <Insert> key in Insert mode: toggle insert/replace mode.
*/
static void
ins_insert(replaceState)
tabpage_T *save_curtab;
{
#ifdef FEAT_WINDOWS
- /* Restore current tabpage and window, if still valid (autocomands can
+ /* Restore current tabpage and window, if still valid (autocommands can
* make them invalid). */
if (valid_tabpage(save_curtab))
goto_tabpage_tp(save_curtab, TRUE);
EMSG(_(e_argreq));
else if (eap != NULL && eap->forceit)
- /* ":source!": read Normal mdoe commands
+ /* ":source!": read Normal mode commands
* Need to execute the commands directly. This is required at least
* for:
* - ":g" command busy
msg_didany = FALSE; /* no output yet */
msg_start();
msg_scroll = TRUE; /* put messages below each other */
- ++no_wait_return; /* dont wait for return until finished */
+ ++no_wait_return; /* don't wait for return until finished */
++RedrawingDisabled;
did_inc = TRUE;
}
&& !(did_emsg
#ifdef FEAT_EVAL
/* Keep going when inside try/catch, so that the error can be
- * dealth with, except when it is a syntax error, it may cause
+ * deal with, except when it is a syntax error, it may cause
* the :endtry to be missed. */
&& (cstack.cs_trylevel == 0 || did_emsg_syntax)
#endif
*p = '/';
}
- /* escapse special characters */
+ /* escape special characters */
p = vim_strsave_fnameescape(sname, FALSE);
vim_free(sname);
if (p == NULL)
* executed. Otherwise, errors and/or interrupts are converted into catchable
* exceptions (did_throw additionally set), which terminate the script only if
* not caught. For user exceptions, only did_throw is set. (Note: got_int can
- * be set asyncronously afterwards by a SIGINT, so did_throw && got_int is not
+ * be set asynchronously afterwards by a SIGINT, so did_throw && got_int is not
* a reliant test that the exception currently being thrown is an interrupt
* exception. Similarly, did_emsg can be set afterwards on an error in an
* (unskipped) conditional command inside an inactive conditional, so did_throw
* Values used for "searched_cond" are (CSF_WHILE | CSF_FOR) or CSF_TRY or 0,
* the latter meaning the innermost try conditional not in its finally clause.
* "inclusive" tells whether the conditional searched for should be made
- * inactive itself (a try conditional not in its finally claused possibly find
+ * inactive itself (a try conditional not in its finally clause possibly find
* before is always made inactive). If "inclusive" is TRUE and
* "searched_cond" is CSF_TRY|CSF_SILENT, the saved former value of
* "emsg_silent", if reset when the try conditional finally reached was
- * entered, is restored (unsed by ex_endtry()). This is normally done only
+ * entered, is restored (used by ex_endtry()). This is normally done only
* when such a try conditional is left.
*/
int
}
/*
- * Convert the Farsi VIM into Farsi 3342 standad.
+ * Convert the Farsi VIM into Farsi 3342 standard.
*/
void
conv_to_pstd()
/*
* MODIFIED_BY Name of who modified Vim. Required when distributing
- * a modifed version of Vim.
+ * a modified version of Vim.
* Also from the "--with-modified-by" configure argument.
*/
/* #define MODIFIED_BY "John Doe" */
overwriting = FALSE;
if (exiting)
- settmode(TMODE_COOK); /* when exiting allow typahead now */
+ settmode(TMODE_COOK); /* when exiting allow typeahead now */
++no_wait_return; /* don't wait for return yet */
int empty_memline = (buf->b_ml.ml_mfp == NULL);
/*
- * Apply PRE aucocommands.
+ * Apply PRE autocommands.
* Set curbuf to the buffer to be written.
* Careful: The autocommands may call buf_write() recursively!
*/
else
{
/* There is no window for "buf", use "aucmd_win". To minimize the side
- * effects, insert it in a the current tab page.
+ * effects, insert it in the current tab page.
* Anything related to a window (e.g., setting folds) may have
* unexpected results. */
aco->use_aucmd_win = TRUE;
}
/*
- * Set position of IME compotision window.
+ * Set position of IME composition window.
*
* You have to call this before starting composition. If once composition
* started, this can take no effect until that composition have finished. So
#endif
/*
- * Set the font. "font_list" is a a comma separated list of font names. The
+ * Set the font. "font_list" is a comma separated list of font names. The
* first font name that works is used. If none is found, use the default
* font.
* If "fontset" is TRUE, the "font_list" is used as one name for the fontset.
{
int start; /* index of bytes to be drawn */
int cells; /* cellwidth of bytes to be drawn */
- int thislen; /* length of bytes to be drawin */
+ int thislen; /* length of bytes to be drawn */
int cn; /* cellwidth of current char */
int i; /* index of current char */
int c; /* current char value */
gui.dragged_sb = SBAR_NONE;
#ifdef FEAT_GUI_GTK
/* Keep the "dragged_wp" value until after the scrolling, for when the
- * moust button is released. GTK2 doesn't send the button-up event. */
+ * mouse button is released. GTK2 doesn't send the button-up event. */
gui.dragged_wp = NULL;
#endif
}
&color[TOP_SHADOW].pixel,
&color[HIGHLIGHT].pixel);
- /* Setup the color subsititution table */
+ /* Setup the color substitution table */
attrs.valuemask = XpmColorSymbols;
attrs.colorsymbols = color;
attrs.numsymbols = 5;
BalloonEval *beval;
XEvent *event;
{
- Position distance; /* a measure of how much the ponter moved */
+ Position distance; /* a measure of how much the pointer moved */
Position delta; /* used to compute distance */
switch (event->type)
}
}
- /* Chop off any traiing NUL bytes. OpenOffice sends these. */
+ /* Chop off any trailing NUL bytes. OpenOffice sends these. */
while (len > 0 && text[len - 1] == NUL)
--len;
#define USE_AEVENT /* Enable AEVENT */
#undef USE_OFFSETED_WINDOW /* Debugging feature: start Vim window OFFSETed */
-/* Compile as CodeWarior External Editor */
+/* Compile as CodeWarrior External Editor */
#if defined(FEAT_CW_EDITOR) && !defined(USE_AEVENT)
# define USE_AEVENT /* Need Apple Event Support */
#endif
/*
* gui_mac_get_menu_item_index
*
- * Returns the index inside the menu wher
+ * Returns the index inside the menu where
*/
short /* Should we return MenuItemIndex? */
gui_mac_get_menu_item_index(vimmenu_T *pMenu)
if (theControl != NUL)
{
- /* We hit a scollbar */
+ /* We hit a scrollbar */
if (thePortion != kControlIndicatorPart)
{
{
/* Handle the menu CntxMenuID, CntxMenuItem */
/* The submenu can be handle directly by gui_mac_handle_menu */
- /* But what about the current menu, is the meny changed by ContextualMenuSelect */
+ /* But what about the current menu, is the many changed by ContextualMenuSelect */
gui_mac_handle_menu((CntxMenuID << 16) + CntxMenuItem);
}
else if (CntxMenuID == kCMShowHelpSelected)
char_u *initdir,
char_u *filter)
{
- /* TODO: Add Ammon's safety checl (Dany) */
+ /* TODO: Add Ammon's safety check (Dany) */
NavReplyRecord reply;
char_u *fname = NULL;
char_u **fnames = NULL;
/* Resize the button to fit its name */
width = StringWidth(name) + 2 * dfltButtonEdge;
- /* Limite the size of any button to an acceptable value. */
+ /* Limit the size of any button to an acceptable value. */
/* TODO: Should be based on the message width */
if (width > maxButtonWidth)
width = maxButtonWidth;
/* Free the modal filterProc */
DisposeRoutineDescriptor(dialogUPP);
- /* Get ride of th edialog (free memory) */
+ /* Get ride of the dialog (free memory) */
DisposeDialog(theDialog);
return itemHit;
/* New way */
/*
- * Get first devoice with one button.
- * This will probably be the standad mouse
- * startat head of cursor dev list
+ * Get first device with one button.
+ * This will probably be the standard mouse
+ * start at head of cursor dev list
*
*/
}
/*
- * Convert a FSSpec to a fuill path
+ * Convert a FSSpec to a full path
*/
char_u *FullPathFromFSSpec_save(FSSpec file)
#ifdef USE_UNIXFILENAME
/*
- * The function used here are available in Carbon, but
- * do nothing une MacOS 8 and 9
+ * The functions used here are available in Carbon, but do nothing on
+ * MacOS 8 and 9.
*/
if (error == fnfErr)
{
// when the tabline is hidden, vim doesn't call update_tabline(). When
// the tabline is shown again, show_tabline() is called before update_tabline(),
-// and because of this, the tab labels and vims internal tabs are out of sync
+// and because of this, the tab labels and vim's internal tabs are out of sync
// for a very short time. to prevent inconsistent state, we store the labels
// of the tabs, not pointers to the tabs (which are invalid for a short time).
static CFStringRef *tabLabels = NULL;
// assert(property == kTabsColumn); // why is this violated??
- // changeValue is true if we have a modifieable list and data was changed.
+ // changeValue is true if we have a modifiable list and data was changed.
// In our case, it's always false.
// (that is: if (changeValue) updateInternalData(); else return
// internalData();
else
{
/* Without shadows one can't sense whatever the button has been
- * pressed or not! However we wan't to save a bit of space...
+ * pressed or not! However we want to save a bit of space...
* Need the highlightThickness to see the focus.
*/
XtSetArg(args[n], XmNhighlightThickness, 1); n++;
# ifdef FEAT_FOOTER
/*
* The next toolbar enter/leave callbacks should really do balloon help. But
- * I have to use footer help for backwards compatability. Hopefully both will
+ * I have to use footer help for backwards compatibility. Hopefully both will
* get implemented and the user will have a choice.
*/
static void
static PhPoint_t gui_ph_raw_offset;
static PtWidget_t *gui_ph_timer_cursor; /* handle cursor blinking */
static PtWidget_t *gui_ph_timer_timeout; /* used in gui_mch_wait_for_chars */
-static short is_timeout; /* Has the timeout occured? */
+static short is_timeout; /* Has the timeout occurred? */
/*
* This is set inside the mouse callback for a right mouse
PtSetArg(&args[ n++ ], Pt_ARG_POS, &pos, 0);
#ifdef USE_PANEL_GROUP
- /* Put in a temprary place holder title */
+ /* Put in a temporary place holder title */
PtSetArg(&args[ n++ ], Pt_ARG_PG_PANEL_TITLES, &empty_title, 1);
gui.vimPanelGroup = PtCreateWidget(PtPanelGroup, gui.vimWindow, n, args);
/* There is one less separator than buttons, so bump up the button count */
button_count = 1;
- /* Count string length and number of seperators */
+ /* Count string length and number of separators */
for (str = buttons; *str; str++)
{
len++;
workarea_rect.right = GetSystemMetrics(SM_CXSCREEN);
workarea_rect.bottom = GetSystemMetrics(SM_CYFULLSCREEN);
- /* get current posision of our window */
+ /* get current position of our window */
wndpl.length = sizeof(WINDOWPLACEMENT);
GetWindowPlacement(s_hwnd, &wndpl);
if (wndpl.showCmd == SW_SHOWNORMAL)
return -1;
/*
- * make a copy of 'buttons' to fiddle with it. complier grizzles because
+ * make a copy of 'buttons' to fiddle with it. compiler grizzles because
* vim_strsave() doesn't take a const arg (why not?), so cast away the
* const.
*/
#ifdef FEAT_NETBEANS_INTG
{
- /* stolen from gui_x11.x */
+ /* stolen from gui_x11.c */
int arg;
for (arg = 1; arg < *argc; arg++)
* used by the taskbar or appbars. */
get_work_area(&workarea_rect);
- /* Get current posision of our window. Note that the .left and .top are
+ /* Get current position of our window. Note that the .left and .top are
* relative to the work area. */
wndpl.length = sizeof(WINDOWPLACEMENT);
GetWindowPlacement(s_hwnd, &wndpl);
return -1;
/*
- * make a copy of 'buttons' to fiddle with it. complier grizzles because
+ * make a copy of 'buttons' to fiddle with it. compiler grizzles because
* vim_strsave() doesn't take a const arg (why not?), so cast away the
* const.
*/
}
sign.hImage = NULL;
- ext = signfile + STRLEN(signfile) - 4; /* get extention */
+ ext = signfile + STRLEN(signfile) - 4; /* get extension */
if (ext > signfile)
{
int do_load = 1;
/* When side scroll bar is unshown, the size of window will change.
* then, the text area move left or right. thus client rect should be
- * forcely redraw. (Yasuhiro Matsumoto) */
+ * forcedly redrawn. (Yasuhiro Matsumoto) */
if (oldx != x || oldy != y)
{
InvalidateRect(s_hwnd, NULL, FALSE);
&eb->primitive.top_shadow_color,
&eb->primitive.highlight_color);
- /* Setup color subsititution table. */
+ /* Setup color substitution table. */
color[0].pixel = eb->core.background_pixel;
color[1].pixel = eb->core.background_pixel;
color[2].pixel = eb->core.background_pixel;
}
/*
- * Plase note that we manipulate the width only in case of push buttons not
- * used in the context of a menu pane.
+ * Please note that we manipulate the width only in case of push buttons
+ * not used in the context of a menu pane.
*/
if (Lab_IsMenupane(newtb))
{
XmString str;
set_pixmap(eb);
- /* FIXME: this is not the perfect way to deal with menues, which do not
+ /* FIXME: this is not the perfect way to deal with menus, which do not
* have any string set right now. */
str = XmStringCreateLocalized("");
XtVaSetValues((Widget) eb, XmNlabelString, str, NULL);
/*
- * EnahncedButton class structure.
+ * EnhancedButton class structure.
*/
typedef struct _XmEnhancedButtonClassPart
{
extern XmEnhancedButtonClassRec xmEnhancedButtonClassRec;
/*
- * EnahncedButton instance record.
+ * EnhancedButton instance record.
*/
typedef struct _XmEnhancedButtonPart
{
if (num_copies > 1)
{
prt_write_string(" numcopies(");
- /* Note: no space wanted so dont use prt_write_int() */
+ /* Note: no space wanted so don't use prt_write_int() */
sprintf((char *)prt_line_buffer, "%d", num_copies);
prt_write_file(prt_line_buffer);
prt_write_string(")");
if (nummatches == NULL)
return FALSE;
- /* send query to all open connections, then count the total number
- * of matches so we can alloc matchesp all in one swell foop
- */
+ /* Send query to all open connections, then count the total number
+ * of matches so we can alloc all in one swell foop. */
for (i = 0; i < csinfo_size; i++)
nummatches[i] = 0;
totmatches = 0;
status = FAIL;
else
{
- /* add the value in advance to allow handling of self-referencial
+ /* add the value in advance to allow handling of self-referential
* data structures */
typval_T *visited_tv = (typval_T *)alloc(sizeof(typval_T));
copy_tv(tv, visited_tv);
if (status == FAIL)
break;
}
- /* impoper list not terminated with null
+ /* improper list not terminated with null
* need to handle the last element */
if (status == OK && !SCHEME_NULLP(curr))
{
{
if (((Scheme_Hash_Table *) obj)->vals[i] != NULL)
{
- /* generate item for `diplay'ed Scheme key */
+ /* generate item for `display'ed Scheme key */
dictitem_T *item = dictitem_alloc((char_u *)string_to_line(
((Scheme_Hash_Table *) obj)->keys[i]));
/* convert Scheme val to Vim and add it to the dict */
CoTaskMemFree(wGUID);
}
-// Delete a key and all of its descendents
+// Delete a key and all of its descendants
static void RecursiveDeleteKey(HKEY hKeyParent, const char *child)
{
// Open the child
if (result != ERROR_SUCCESS)
return;
- // Enumerate all of the decendents of this child
+ // Enumerate all of the descendants of this child
FILETIME time;
char buffer[1024];
DWORD size = 1024;
while (RegEnumKeyEx(hKeyChild, 0, buffer, &size, NULL,
NULL, NULL, &time) == S_OK)
{
- // Delete the decendents of this child
+ // Delete the descendants of this child
RecursiveDeleteKey(hKeyChild, buffer);
size = 256;
}
/*
* perl_win_free
- * Remove all refences to the window to be destroyed
+ * Remove all references to the window to be destroyed
*/
void
perl_win_free(wp)
static int
SetBufferLine(buf_T *buf, PyInt n, PyObject *line, PyInt *len_change)
{
- /* First of all, we check the thpe of the supplied Python object.
+ /* First of all, we check the type of the supplied Python object.
* There are three cases:
* 1. NULL, or None - this is a deletion.
* 2. A string - this is a replacement.
static int
SetBufferLineList(buf_T *buf, PyInt lo, PyInt hi, PyObject *list, PyInt *len_change)
{
- /* First of all, we check the thpe of the supplied Python object.
+ /* First of all, we check the type of the supplied Python object.
* There are three cases:
* 1. NULL, or None - this is a deletion.
* 2. A list - this is a replacement.
}
}
-/* Insert a number of lines into the specified buffer after the specifed line.
+/* Insert a number of lines into the specified buffer after the specified line.
* The line number is in Vim format (1-based). The lines to be inserted are
* given as a Python list of string objects or as a single string. The lines
* to be added are checked for validity and correct format. Errors are
return NULL;
}
- /* Ckeck for keyboard interrupt */
+ /* Check for keyboard interrupt */
if (VimErrorCheck())
return NULL;
/* Remove the element from sys.path that was added because of our
* argv[0] value in PythonMod_Init(). Previously we used an empty
- * string, but dependinding on the OS we then get an empty entry or
+ * string, but depending on the OS we then get an empty entry or
* the current directory in sys.path. */
PyRun_SimpleString("import sys; sys.path = filter(lambda x: x != '/must>not&exist', sys.path)");
/* Remove the element from sys.path that was added because of our
* argv[0] value in Py3Init_vim(). Previously we used an empty
- * string, but dependinding on the OS we then get an empty entry or
+ * string, but depending on the OS we then get an empty entry or
* the current directory in sys.path.
* Only after vim has been imported, the element does exist in
* sys.path.
#endif
/*
- * Backward compatiblity for Ruby 1.8 and earlier.
+ * Backward compatibility for Ruby 1.8 and earlier.
* Ruby 1.9 does not provide STR2CSTR, instead StringValuePtr is provided.
* Ruby 1.9 does not provide RXXX(s)->len and RXXX(s)->ptr, instead
* RXXX_LEN(s) and RXXX_PTR(s) are provided.
rb_global_variable(&objtbl);
/* The Vim module used to be called "VIM", but "Vim" is better. Make an
- * alias "VIM" for backwards compatiblity. */
+ * alias "VIM" for backwards compatibility. */
mVIM = rb_define_module("Vim");
rb_define_const(rb_cObject, "VIM", mVIM);
rb_define_const(mVIM, "VERSION_MAJOR", INT2NUM(VIM_VERSION_MAJOR));
:move gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
# po/Make_osx.pl says something about generating a Mac message file
-# for Ukrananian. Would somebody using Mac OS X in Ukranian
+# for Ukrainian. Would somebody using Mac OS X in Ukrainian
# *really* be upset that Carbon Vim was not localised in
-# Ukranian?
+# Ukrainian?
#
#bundle-language: bundle-dir po/Make_osx.pl
# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
{
switch (enc_dbcs)
{
- /* please add classfy routine for your language in here */
+ /* please add classify routine for your language in here */
case DBCS_JPNU: /* ? */
case DBCS_JPN:
* 26 : Box Drawings
* 27 : Unit Symbols
* 28 : Circled/Parenthesized Letter
- * 29 : Hirigana/Katakana
+ * 29 : Hiragana/Katakana
* 30 : Cyrillic Letter
*/
return 28;
case 0xAA:
case 0xAB:
- /* Hirigana/Katakana */
+ /* Hiragana/Katakana */
return 29;
case 0xAC:
/* Cyrillic Letter */
}
/* The thing which setting "preedit_start_col" to MAXCOL means that
- * "preedit_start_col" will be set forcely when calling
+ * "preedit_start_col" will be set forcedly when calling
* preedit_changed_cb() next time.
* "preedit_start_col" should not reset with MAXCOL on this part. Vim
* is simulating the preediting by using add_to_input_str(). when
* sync from the system itself).
*/
# if defined(__EMX__)
- error "Dont use fsync with EMX! Read emxdoc.doc or emxfix01.doc for info."
+ error "Don't use fsync with EMX! Read emxdoc.doc or emxfix01.doc for info."
# endif
if (STRCMP(p_sws, "fsync") == 0)
{
if (nr > mfp->mf_infile_count) /* beyond end of file */
{
nr = mfp->mf_infile_count;
- hp2 = mf_find_hash(mfp, nr); /* NULL catched below */
+ hp2 = mf_find_hash(mfp, nr); /* NULL caught below */
}
else
hp2 = hp;
{
new_bnum = freep->bh_bnum;
/*
- * If the page count of the free block was larger, recude it.
+ * If the page count of the free block was larger, reduce it.
* If the page count matches, remove the block from the free list
*/
if (freep->bh_page_count > page_count)
mf_set_ffname(mfp);
#if defined(MSDOS) || defined(MSWIN)
/*
- * A ":!cd e:xxx" may change the directory without us knowning, use the
+ * A ":!cd e:xxx" may change the directory without us knowing, use the
* full pathname always. Careful: This frees fname!
*/
mf_fullname(mfp);
)
set_keep_msg((char_u *)_(no_lines_msg), 0);
- /* FEAT_BYTEOFF already handled in there, dont worry 'bout it below */
+ /* FEAT_BYTEOFF already handled in there, don't worry 'bout it below */
i = ml_replace((linenr_T)1, (char_u *)"", TRUE);
buf->b_ml.ml_flags |= ML_EMPTY;
if (vim_iswhite(string[0]))
{
if (i == 0 || !vim_iswhite(line[i - 1]))
- continue; /* missing shite space */
+ continue; /* missing white space */
while (vim_iswhite(string[0]))
++string;
}
int modifiers = *modp;
#ifdef MACOS
- /* Command-key really special, No fancynest */
+ /* Command-key really special, no fancynest */
if (!(modifiers & MOD_MASK_CMD))
#endif
if ((modifiers & MOD_MASK_SHIFT) && ASCII_ISALPHA(key))
key = K_ZERO;
}
#ifdef MACOS
- /* Command-key really special, No fancynest */
+ /* Command-key really special, no fancynest */
if (!(modifiers & MOD_MASK_CMD))
#endif
if ((modifiers & MOD_MASK_ALT) && key < 0x80
* debugging startup problems because gvim will be started automatically from
* netbeans and cannot be run directly from a debugger. The only way to debug
* a gvim started by netbeans is by attaching a debugger to it. Without this
- * tool all starup code will have completed before you can get the pid and
+ * tool all startup code will have completed before you can get the pid and
* attach.
*
* The second tool is a log tool.
#ifndef FEAT_VISUAL
/*
- * ALT is only used for starging/extending Visual mode.
+ * ALT is only used for starting/extending Visual mode.
*/
if ((mod_mask & MOD_MASK_ALT))
return FALSE;
}
break;
- /* "zE": erease all folds */
+ /* "zE": erase all folds */
case 'E': if (foldmethodIsManual(curwin))
{
clearFolding(curwin);
static char_u trans[] = "YyDdCcxdXdAAIIrr";
/* Uppercase means linewise, except in block mode, then "D" deletes till
- * the end of the line, and "C" replaces til EOL */
+ * the end of the line, and "C" replaces till EOL */
if (isupper(cap->cmdchar))
{
if (VIsual_mode != Ctrl_V)
* at first, but it's really more what we mean when we say
* 'cw'.
* Another strangeness: When standing on the end of a word
- * "ce" will change until the end of the next wordt, but "cw"
+ * "ce" will change until the end of the next word, but "cw"
* will change only one character! This is done by setting
* flag.
*/
{
int save_State = State;
- /* Pretent Insert mode here to allow the cursor on the
+ /* Pretend Insert mode here to allow the cursor on the
* character past the end of the line */
State = INSERT;
coladvance((colnr_T)MAXCOL);
{
int save_State = State;
- /* Pretent Insert mode here to allow the cursor on the
+ /* Pretend Insert mode here to allow the cursor on the
* character past the end of the line */
State = INSERT;
coladvance(getviscol());
#ifdef FEAT_RIGHTLEFT
int old_p_ri = p_ri;
- p_ri = 0; /* don't want revins in ident */
+ p_ri = 0; /* don't want revins in indent */
#endif
State = INSERT; /* don't want REPLACE for State */
}
/*
- * mch_inchar(): low level input funcion.
+ * mch_inchar(): low level input function.
* Get a characters from the keyboard.
* If time == 0 do not wait for characters.
* If time == n wait a short time for characters.
/* Get stat.h or something similar. Comment: How come some OS get in in vim.h */
# include <sys/stat.h>
/* && defined(HAVE_CURSE) */
-/* The curses.h from MacOS X provides by default some BACKWARD compatibilty
+/* The curses.h from MacOS X provides by default some BACKWARD compatibility
* definition which can cause us problem later on. So we undefine a few of them. */
# include <curses.h>
# undef reg
* If Vim should work over the serial line after a 'ctty com1' we must use
* kbhit() and getch(). (jw)
* Usually kbhit() is not used, because then CTRL-C and CTRL-P
- * will be catched by DOS (mool).
+ * will be caught by DOS (mool).
*
* return TRUE if a character is available, FALSE otherwise
*/
}
/*
- * mch_inchar(): low level input funcion.
+ * mch_inchar(): low level input function.
* Get a characters from the keyboard.
* If time == 0 do not wait for characters.
* If time == n wait a short time for characters.
/*
* if we got a ctrl-C when we were busy, there will be a "^C" somewhere
- * on the sceen, so we need to redisplay it.
+ * on the screen, so we need to redisplay it.
*/
if (delayed_redraw)
{
mch_setmouse(int on)
{
mouse_active = on;
- mouse_hidden = TRUE; /* dont show it until moved */
+ mouse_hidden = TRUE; /* don't show it until moved */
}
#endif
long start_time;
int tick_count;
- /* int 02xf, AX = 0x1701 attempts to open the Windows clipboard. Upon
+ /* int 0x2f, AX = 0x1701 attempts to open the Windows clipboard. Upon
* return from the interrupt, if AX is non-zero, the clipboard was
* successfully opened. If AX is zero, the clipboard could not be opened
* because it is currently in use by another process.
{
__dpmi_regs dpmi_regs;
- /* int 02xf, AX = 0x1702 attempts to empty the Windows clipboard. Upon
+ /* int 0x2f, AX = 0x1702 attempts to empty the Windows clipboard. Upon
* return from the interrupt, if AX == 0, the clipboard could not be
* emptied (for some reason).
*/
case CF_TEXT: /* Windows text */
case CF_OEMTEXT: /* DOS (OEM) text */
- /* int 02xf, AX = 0x1704 returns the number of bytes of data currently
+ /* int 0x2f, AX = 0x1704 returns the number of bytes of data currently
* on the Windows clipboard, for the specified format. Upon return
* from the interrupt, DX:AX = the number of bytes, rounded up to the
* nearest multiple of 32.
clip_data_size); /* how many bytes to copy */
/* Send data from the DOS transfer buffer to the Windows clipboard.
- * int 02xf, AX = 0x1703 sends SI:CX bytes of data from the buffer
+ * int 0x2f, AX = 0x1703 sends SI:CX bytes of data from the buffer
* at ES:BX, to the clipboard.
*/
dpmi_regs.x.ax = 0x1703; /* send clipboard data */
*
* So we create a hidden window, and arrange to destroy it on exit.
*/
-HWND message_window = 0; /* window that's handling messsages */
+HWND message_window = 0; /* window that's handling messages */
#define VIM_CLASSNAME "VIM_MESSAGES"
#define VIM_CLASSNAME_LEN (sizeof(VIM_CLASSNAME) - 1)
static int save_reply(HWND server, char_u *reply, int expr);
-/*s
+/*
* The window procedure for the hidden message window.
* It handles callback messages and notifications from servers.
* In order to process these messages, it is necessary to run a
ReleaseDC(hwnd, hdc);
- /* If we couldn't find a useable font, return failure */
+ /* If we couldn't find a usable font, return failure */
if (n == 1)
return FAIL;
#endif
/* toupper() is not really broken, but it's very slow. Probably because of
- * using unicde characters on Windows NT */
+ * using unicode characters on Windows NT */
#define BROKEN_TOUPPER
#define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
#ifndef PROTO
-/* Enable common dialogs input unicode from IME if posible. */
+/* Enable common dialogs input unicode from IME if possible. */
#ifdef FEAT_MBYTE
LRESULT (WINAPI *pDispatchMessage)(CONST MSG *) = DispatchMessage;
BOOL (WINAPI *pGetMessage)(LPMSG, HWND, UINT, UINT) = GetMessage;
DWORD dwLR = (pmer->dwButtonState & LEFT_RIGHT);
/* if either left or right button only is pressed, see if the
- * the next mouse event has both of them pressed */
+ * next mouse event has both of them pressed */
if (dwLR == LEFT || dwLR == RIGHT)
{
for (;;)
#ifndef PROTO
-/* Enable common dialogs input unicode from IME if posible. */
+/* Enable common dialogs input unicode from IME if possible. */
#ifdef FEAT_MBYTE
/* The variables are defined in os_win32.c. */
extern LRESULT (WINAPI *pDispatchMessage)(CONST MSG *);
mch_dirname(dirname_start, MAXPATHL);
#ifdef FEAT_AUTOCMD
- /* Remeber the value of qf_start, so that we can check for autocommands
+ /* Remember the value of qf_start, so that we can check for autocommands
* changing the current quickfix list. */
cur_qf_start = qi->qf_lists[qi->qf_curlist].qf_start;
#endif
/* If a double-width char doesn't fit at the left side display
* a '<' in the first column. Don't do this for unprintable
- * charactes. */
+ * characters. */
if (n_skip > 0 && mb_l > 1 && n_extra == 0)
{
n_extra = 1;
{
char_u *pat; /* the pattern (in allocated memory) or NULL */
int magic; /* magicness of the pattern */
- int no_scs; /* no smarcase for this pattern */
+ int no_scs; /* no smartcase for this pattern */
struct soffset off;
};
/*
* Find block under the cursor, cursor at end.
- * "what" and "other" are two matching parenthesis/paren/etc.
+ * "what" and "other" are two matching parenthesis/brace/etc.
*/
int
current_block(oap, count, include, what, other)
ga_init2(&ga, sizeof(langp_T), 2);
clear_midword(wp);
- /* Make a copy of 'spellang', the SpellFileMissing autocommands may change
+ /* Make a copy of 'spelllang', the SpellFileMissing autocommands may change
* it under our fingers. */
spl_copy = vim_strsave(wp->w_s->b_p_spl);
if (spl_copy == NULL)
/* Compress both trees. Either they both have many nodes, which makes
* compression useful, or one of them is small, which means
- * compression goes fast. But when filling the souldfold word tree
+ * compression goes fast. But when filling the soundfold word tree
* there is no keep-case tree. */
wordtree_compress(spin, spin->si_foldroot);
if (affixID >= 0)
unsigned words_done = 0;
int wordcount[MAXWLEN];
- /* We use si_foldroot for the souldfolded trie. */
+ /* We use si_foldroot for the soundfolded trie. */
spin->si_foldroot = wordtree_alloc(spin);
if (spin->si_foldroot == NULL)
return FAIL;
/*
* Combine the list of suggestions in su->su_ga and su->su_sga.
- * They are intwined.
+ * They are entwined.
*/
static void
score_combine(su)
/* Add a small penalty for changing the first letter from
* lower to upper case. Helps for "tath" -> "Kath", which is
- * less common thatn "tath" -> "path". Don't do it when the
+ * less common than "tath" -> "path". Don't do it when the
* letter is the same, that has already been counted. */
gc = PTR2CHAR(p);
if (SPELL_ISUPPER(gc))
#ifdef FEAT_SYN_HL
hashtab_T b_keywtab; /* syntax keywords hash table */
hashtab_T b_keywtab_ic; /* idem, ignore case */
- int b_syn_error; /* TRUE when error occured in HL */
+ int b_syn_error; /* TRUE when error occurred in HL */
int b_syn_ic; /* ignore case for :syn cmds */
int b_syn_spell; /* SYNSPL_ values */
garray_T b_syn_patterns; /* table for syntax patterns */
static int depth = 0;
int r;
- /* If spp has a "containedin" list and "cur_si" is in it, return TRUE. */
+ /* If ssp has a "containedin" list and "cur_si" is in it, return TRUE. */
if (cur_si != NULL && ssp->cont_in_list != NULL
&& !(cur_si->si_flags & HL_MATCH))
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 925,
/**/
924,
/**/
/*
* Prepare for leaving the current tab page.
- * When autocomands change "curtab" we don't leave the tab page and return
+ * When autocommands change "curtab" we don't leave the tab page and return
* FAIL.
* Careful: When OK is returned need to get a new tab page very very soon!
*/
$ !
$ if f$search ("vim:vim.exe") .eqs. ""
$ then
-$ write sys$error "Error - Can't run tutoral. VIM not found."
+$ write sys$error "Error - Can't run tutorial. VIM not found."
$ exit
$ endif
$ !