summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/ccomplete.vim25
-rw-r--r--runtime/autoload/spellfile.vim11
-rw-r--r--runtime/autoload/sqlcomplete.vim72
-rw-r--r--runtime/autoload/tar.vim182
-rw-r--r--runtime/autoload/xml/html32.vim1
-rw-r--r--runtime/autoload/xml/html401s.vim1
-rw-r--r--runtime/autoload/xml/xhtml10s.vim1
-rw-r--r--runtime/autoload/xml/xhtml10t.vim1
-rw-r--r--runtime/compiler/rubyunit.vim2
-rw-r--r--runtime/doc/farsi.txt2
-rw-r--r--runtime/doc/filetype.txt27
-rw-r--r--runtime/doc/ft_ada.txt515
-rw-r--r--runtime/doc/howto.txt2
-rw-r--r--runtime/doc/intro.txt39
-rw-r--r--runtime/doc/os_amiga.txt2
-rw-r--r--runtime/doc/os_dos.txt2
-rw-r--r--runtime/doc/os_win32.txt4
-rw-r--r--runtime/doc/pi_spec.txt2
-rw-r--r--runtime/doc/quickfix.txt69
-rw-r--r--runtime/doc/remote.txt7
-rw-r--r--runtime/doc/scroll.txt2
-rw-r--r--runtime/doc/syntax.txt161
-rw-r--r--runtime/doc/tagsrch.txt2
-rw-r--r--runtime/doc/todo.txt523
-rw-r--r--runtime/doc/usr_04.txt2
-rw-r--r--runtime/doc/usr_05.txt2
-rw-r--r--runtime/doc/usr_06.txt2
-rw-r--r--runtime/doc/usr_07.txt2
-rw-r--r--runtime/doc/usr_12.txt2
-rw-r--r--runtime/doc/usr_20.txt2
-rw-r--r--runtime/doc/usr_30.txt16
-rw-r--r--runtime/doc/various.txt25
-rw-r--r--runtime/doc/version7.txt2159
-rw-r--r--runtime/doc/vim-fr.18
-rw-r--r--runtime/doc/vim-fr.UTF-8.18
-rw-r--r--runtime/doc/workshop.txt2
-rw-r--r--runtime/ftplugin/cdrdaoconf.vim18
-rw-r--r--runtime/ftplugin/debcontrol.vim70
-rw-r--r--runtime/ftplugin/dosini.vim13
-rw-r--r--runtime/ftplugin/gitconfig.vim15
-rw-r--r--runtime/ftplugin/gitrebase.vim41
-rw-r--r--runtime/indent/tcsh.vim4
-rw-r--r--runtime/indent/tf.vim72
-rw-r--r--runtime/keymap/croatian.vim16
-rw-r--r--runtime/keymap/croatian_cp1250.vim65
-rw-r--r--runtime/lang/menu_ca_es.latin1.vim34
-rw-r--r--runtime/lang/menu_fi.latin1.vim3
-rw-r--r--runtime/lang/menu_fi_fi.latin1.vim473
-rw-r--r--runtime/plugin/getscriptPlugin.vim8
-rw-r--r--runtime/plugin/tarPlugin.vim21
-rw-r--r--runtime/spell/fr/fr_FR.diff284
-rw-r--r--runtime/spell/pt/pt_BR.diff32
-rw-r--r--runtime/syntax/cdrdaoconf.vim139
-rw-r--r--runtime/syntax/cmake.vim2
-rw-r--r--runtime/syntax/coco.vim33
-rw-r--r--runtime/syntax/css.vim4
-rw-r--r--runtime/syntax/debcontrol.vim44
-rw-r--r--runtime/syntax/denyhosts.vim289
-rw-r--r--runtime/syntax/git.vim67
-rw-r--r--runtime/syntax/gitcommit.vim65
-rw-r--r--runtime/syntax/hostconf.vim147
-rw-r--r--runtime/syntax/lisp.vim959
-rw-r--r--runtime/syntax/lsl.vim272
-rw-r--r--runtime/syntax/modconf.vim4
-rw-r--r--runtime/syntax/mrxvtrc.vim29
-rw-r--r--runtime/syntax/mysql.vim446
-rw-r--r--runtime/syntax/phtml.vim244
-rw-r--r--runtime/syntax/quake.vim4
-rw-r--r--runtime/syntax/rexx.vim238
-rw-r--r--runtime/syntax/snobol4.vim94
-rw-r--r--runtime/syntax/sql.vim2
-rw-r--r--runtime/syntax/yacc.vim54
-rw-r--r--runtime/syntax/zsh.vim4
-rw-r--r--runtime/tutor/Contents23
-rw-r--r--runtime/tutor/README.gr.cp737.txt24
-rw-r--r--runtime/tutor/README.gr.txt24
-rw-r--r--runtime/tutor/README_amisrc.txt11
-rwxr-xr-xruntime/tutor/README_amisrc.txt.infobin0 -> 582 bytes
-rw-r--r--runtime/tutor/README_os2.txt58
-rw-r--r--runtime/tutor/README_src.txt10
-rw-r--r--runtime/tutor/README_vms.txt48
-rw-r--r--runtime/tutor/README_w32s.txt15
-rwxr-xr-xruntime/tutor/Vim.infobin0 -> 624 bytes
-rwxr-xr-xruntime/tutor/Xxd.infobin0 -> 835 bytes
-rwxr-xr-xruntime/tutor/configure6
-rwxr-xr-xruntime/tutor/csdpmi4b.zipbin0 -> 41506 bytes
-rw-r--r--runtime/tutor/runtime/bugreport.vim88
-rw-r--r--runtime/tutor/runtime/hi22-action-make.pngbin0 -> 425 bytes
-rw-r--r--runtime/tutor/runtime/indoff.vim11
-rw-r--r--runtime/tutor/runtime/mswin.vim106
-rw-r--r--runtime/tutor/runtime/termcap135
-rw-r--r--runtime/tutor/runtime/vim16x16.xpm27
-rw-r--r--runtime/tutor/runtime/vimlogo.cdrbin0 -> 15494 bytes
-rw-r--r--runtime/tutor/runtime/vimlogo.gifbin0 -> 1091 bytes
-rw-r--r--runtime/tutor/runtime/vimlogo.pdfbin0 -> 2254 bytes
-rw-r--r--runtime/tutor/tutor.ca807
-rw-r--r--runtime/tutor/tutor.ca.utf-8807
-rw-r--r--runtime/tutor/tutor.cs812
-rw-r--r--runtime/tutor/tutor.cs.cp1250812
-rw-r--r--runtime/tutor/tutor.cs.utf-8812
-rw-r--r--runtime/tutor/tutor.de980
-rw-r--r--runtime/tutor/tutor.el (renamed from runtime/tutor/tutor.gr)0
-rw-r--r--runtime/tutor/tutor.es769
-rw-r--r--runtime/tutor/tutor.es.utf-8769
-rw-r--r--runtime/tutor/tutor.fr809
-rw-r--r--runtime/tutor/tutor.gr.cp737815
-rw-r--r--runtime/tutor/tutor.gr.utf-8815
-rw-r--r--runtime/tutor/tutor.hr.utf-8972
-rw-r--r--runtime/tutor/tutor.hu823
-rw-r--r--runtime/tutor/tutor.hu.utf-8823
-rw-r--r--runtime/tutor/tutor.infobin972 -> 0 bytes
-rw-r--r--runtime/tutor/tutor.it967
-rw-r--r--runtime/tutor/tutor.ja.euc975
-rw-r--r--runtime/tutor/tutor.ja.sjis975
-rw-r--r--runtime/tutor/tutor.ja.utf-8975
-rw-r--r--runtime/tutor/tutor.ko.euc812
-rw-r--r--runtime/tutor/tutor.ko.utf-8812
-rw-r--r--runtime/tutor/tutor.no973
-rw-r--r--runtime/tutor/tutor.pl994
-rw-r--r--runtime/tutor/tutor.pl.cp1250994
-rw-r--r--runtime/tutor/tutor.pl.utf-8994
-rw-r--r--runtime/tutor/tutor.ru834
-rw-r--r--runtime/tutor/tutor.ru.cp1251834
-rw-r--r--runtime/tutor/tutor.ru.utf-8834
-rw-r--r--runtime/tutor/tutor.sk1008
-rw-r--r--runtime/tutor/tutor.sk.cp12501008
-rw-r--r--runtime/tutor/tutor.sk.utf-81008
-rw-r--r--runtime/tutor/tutor.sv830
-rw-r--r--runtime/tutor/tutor.tr.iso9813
-rw-r--r--runtime/tutor/tutor.tr.utf-8813
-rw-r--r--runtime/tutor/tutor.utf-8970
-rw-r--r--runtime/tutor/tutor.zh.big5852
-rw-r--r--runtime/tutor/tutor.zh.euc851
-rw-r--r--runtime/tutor/tutor.zh.utf-8852
-rwxr-xr-xruntime/tutor/vimtutor.com104
135 files changed, 11581 insertions, 29906 deletions
diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim
index 0f013d79b..6850e19a0 100644
--- a/runtime/autoload/ccomplete.vim
+++ b/runtime/autoload/ccomplete.vim
@@ -1,7 +1,7 @@
" Vim completion script
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2006 May 08
+" Last Change: 2007 Aug 30
" This function is used for the 'omnifunc' option.
@@ -119,6 +119,27 @@ function! ccomplete#Complete(findstart, base)
" TODO: join previous line if it makes sense
let line = getline('.')
let col = col('.')
+ if stridx(strpart(line, 0, col), ';') != -1
+ " Handle multiple declarations on the same line.
+ let col2 = col - 1
+ while line[col2] != ';'
+ let col2 -= 1
+ endwhile
+ let line = strpart(line, col2 + 1)
+ let col -= col2
+ endif
+ if stridx(strpart(line, 0, col), ',') != -1
+ " Handle multiple declarations on the same line in a function
+ " declaration.
+ let col2 = col - 1
+ while line[col2] != ','
+ let col2 -= 1
+ endwhile
+ if strpart(line, col2 + 1, col - col2 - 1) =~ ' *[^ ][^ ]* *[^ ]'
+ let line = strpart(line, col2 + 1)
+ let col -= col2
+ endif
+ endif
if len(items) == 1
" Completing one word and it's a local variable: May add '[', '.' or
" '->'.
@@ -140,7 +161,7 @@ function! ccomplete#Complete(findstart, base)
let res = [{'match': match, 'tagline' : '', 'kind' : kind, 'info' : line}]
else
" Completing "var.", "var.something", etc.
- let res = s:Nextitem(strpart(line, 0, col), items[1:], 0, 1)
+ let res = s:Nextitem(strpart(line, 0, col), items[-1], 0, 1)
endif
endif
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index b9e17f1f1..1ca76a4ae 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -1,6 +1,6 @@
" Vim script to download a missing spell file
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2007 May 08
+" Last Change: 2008 May 29
if !exists('g:spellfile_URL')
let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
@@ -106,7 +106,12 @@ function! spellfile#LoadFile(lang)
endfor
let dirchoice = confirm(msg, dirchoices) - 2
if dirchoice >= 0
- exe "write " . escape(dirlist[dirchoice], ' ') . '/' . fname
+ if exists('*fnameescape')
+ let dirname = fnameescape(dirlist[dirchoice])
+ else
+ let dirname = escape(dirlist[dirchoice], ' ')
+ endif
+ exe "write " . dirname . '/' . fname
" Also download the .sug file, if the user wants to.
let msg = "Do you want me to try getting the .sug file?\n"
@@ -119,7 +124,7 @@ function! spellfile#LoadFile(lang)
call spellfile#Nread(fname)
if getline(2) =~ 'VIMsug'
1d
- exe "write " . escape(dirlist[dirchoice], ' ') . '/' . fname
+ exe "write " . dirname . '/' . fname
set nomod
else
echo 'Sorry, downloading failed'
diff --git a/runtime/autoload/sqlcomplete.vim b/runtime/autoload/sqlcomplete.vim
index c803932c2..eecb3260f 100644
--- a/runtime/autoload/sqlcomplete.vim
+++ b/runtime/autoload/sqlcomplete.vim
@@ -1,8 +1,8 @@
" Vim OMNI completion script for SQL
" Language: SQL
" Maintainer: David Fishburn <fishburn@ianywhere.com>
-" Version: 5.0
-" Last Change: Mon Jun 05 2006 3:30:04 PM
+" Version: 6.0
+" Last Change: Thu 03 Apr 2008 10:37:54 PM Eastern Daylight Time
" Usage: For detailed help
" ":help sql.txt"
" or ":help ft-sql-omni"
@@ -106,7 +106,7 @@ function! sqlcomplete#Complete(findstart, base)
let begindot = 1
endif
while start > 0
- if line[start - 1] =~ '\w'
+ if line[start - 1] =~ '\(\w\|\s\+\)'
let start -= 1
elseif line[start - 1] =~ '\.' &&
\ compl_type =~ 'column\|table\|view\|procedure'
@@ -178,11 +178,10 @@ function! sqlcomplete#Complete(findstart, base)
" Allow the user to override the dbext plugin to specify whether
" the owner/creator should be included in the list
- let saved_dbext_show_owner = 1
- if exists('g:dbext_default_dict_show_owner')
- let saved_dbext_show_owner = g:dbext_default_dict_show_owner
+ if g:loaded_dbext >= 300
+ let saveSetting = DB_listOption('dict_show_owner')
+ exec 'DBSetOption dict_show_owner='.(g:omni_sql_include_owner==1?'1':'0')
endif
- let g:dbext_default_dict_show_owner = g:omni_sql_include_owner
let compl_type_uc = substitute(compl_type, '\w\+', '\u&', '')
if s:sql_file_{compl_type} == ""
@@ -192,18 +191,12 @@ function! sqlcomplete#Complete(findstart, base)
if s:sql_file_{compl_type} != ""
if filereadable(s:sql_file_{compl_type})
let compl_list = readfile(s:sql_file_{compl_type})
- " let dic_list = readfile(s:sql_file_{compl_type})
- " if !empty(dic_list)
- " for elem in dic_list
- " let kind = (compl_type=='table'?'m':(compl_type=='procedure'?'f':'v'))
- " let item = {'word':elem, 'menu':elem, 'kind':kind, 'info':compl_type}
- " let compl_list += [item]
- " endfor
- " endif
endif
endif
- let g:dbext_default_dict_show_owner = saved_dbext_show_owner
+ if g:loaded_dbext > 300
+ exec 'DBSetOption dict_show_owner='.saveSetting
+ endif
elseif compl_type =~? 'column'
" This type of completion relies upon the dbext.vim plugin
@@ -450,8 +443,8 @@ function! s:SQLCCheck4dbext()
" Leave time for the user to read the error message
:sleep 2
return -1
- elseif g:loaded_dbext < 300
- let msg = "The dbext plugin must be at least version 3.00 " .
+ elseif g:loaded_dbext < 600
+ let msg = "The dbext plugin must be at least version 5.30 " .
\ " for dynamic SQL completion"
call s:SQLCErrorMsg(msg)
" Leave time for the user to read the error message
@@ -514,34 +507,42 @@ endfunction
function! s:SQLCGetObjectOwner(object)
" The owner regex matches a word at the start of the string which is
" followed by a dot, but doesn't include the dot in the result.
- " ^ - from beginning of line
- " "\? - ignore any quotes
- " \zs - start the match now
- " \w\+ - get owner name
- " \ze - end the match
- " "\? - ignore any quotes
- " \. - must by followed by a .
- let owner = matchstr( a:object, '^"\?\zs\w\+\ze"\?\.' )
+ " ^ - from beginning of line
+ " \("\|\[\)\? - ignore any quotes
+ " \zs - start the match now
+ " .\{-} - get owner name
+ " \ze - end the match
+ " \("\|\[\)\? - ignore any quotes
+ " \. - must by followed by a .
+ " let owner = matchstr( a:object, '^\s*\zs.*\ze\.' )
+ let owner = matchstr( a:object, '^\("\|\[\)\?\zs\.\{-}\ze\("\|\]\)\?\.' )
return owner
endfunction
function! s:SQLCGetColumns(table_name, list_type)
" Check if the table name was provided as part of the column name
- let table_name = matchstr(a:table_name, '^[a-zA-Z0-9_]\+\ze\.\?')
+ let table_name = matchstr(a:table_name, '^["\[\]a-zA-Z0-9_ ]\+\ze\.\?')
let table_cols = []
let table_alias = ''
let move_to_top = 1
+ let table_name = substitute(table_name, '\s*\(.\{-}\)\s*$', '\1', 'g')
+
+ " If the table name was given as:
+ " where c.
+ let table_name = substitute(table_name, '^\c\(WHERE\|AND\|OR\)\s\+', '', '')
if g:loaded_dbext >= 300
let saveSettingAlias = DB_listOption('use_tbl_alias')
exec 'DBSetOption use_tbl_alias=n'
endif
+ let table_name_stripped = substitute(table_name, '["\[\]]*', '', 'g')
+
" Check if we have already cached the column list for this table
" by its name
- let list_idx = index(s:tbl_name, table_name, 0, &ignorecase)
+ let list_idx = index(s:tbl_name, table_name_stripped, 0, &ignorecase)
if list_idx > -1
- let table_cols = split(s:tbl_cols[list_idx])
+ let table_cols = split(s:tbl_cols[list_idx], '\n')
else
" Check if we have already cached the column list for this table
" by its alias, assuming the table_name provided was actually
@@ -549,11 +550,11 @@ function! s:SQLCGetColumns(table_name, list_type)
" select *
" from area a
" where a.
- let list_idx = index(s:tbl_alias, table_name, 0, &ignorecase)
+ let list_idx = index(s:tbl_alias, table_name_stripped, 0, &ignorecase)
if list_idx > -1
- let table_alias = table_name
+ let table_alias = table_name_stripped
let table_name = s:tbl_name[list_idx]
- let table_cols = split(s:tbl_cols[list_idx])
+ let table_cols = split(s:tbl_cols[list_idx], '\n')
endif
endif
@@ -609,8 +610,8 @@ function! s:SQLCGetColumns(table_name, list_type)
" '.*' - Exclude the rest of the line in the match
let table_name_new = matchstr(@y,
\ 'from.\{-}'.
- \ '\zs\(\(\<\w\+\>\)\.\)\?'.
- \ '\<\w\+\>\ze'.
+ \ '\zs\(\("\|\[\)\?.\{-}\("\|\]\)\.\)\?'.
+ \ '\("\|\[\)\?.\{-}\("\|\]\)\ze'.
\ '\s\+\%(as\s\+\)\?\<'.
\ matchstr(table_name, '.\{-}\ze\.\?$').
\ '\>'.
@@ -618,6 +619,7 @@ function! s:SQLCGetColumns(table_name, list_type)
\ '\(\<where\>\|$\)'.
\ '.*'
\ )
+
if table_name_new != ''
let table_alias = table_name
let table_name = table_name_new
@@ -668,7 +670,7 @@ function! s:SQLCGetColumns(table_name, list_type)
let s:tbl_name = add( s:tbl_name, table_name )
let s:tbl_alias = add( s:tbl_alias, table_alias )
let s:tbl_cols = add( s:tbl_cols, table_cols_str )
- let table_cols = split(table_cols_str)
+ let table_cols = split(table_cols_str, '\n')
endif
endif
diff --git a/runtime/autoload/tar.vim b/runtime/autoload/tar.vim
index 6c172386c..35ef7fd25 100644
--- a/runtime/autoload/tar.vim
+++ b/runtime/autoload/tar.vim
@@ -1,21 +1,21 @@
" tar.vim: Handles browsing tarfiles
" AUTOLOAD PORTION
-" Date: Sep 29, 2006
-" Version: 11
+" Date: Jun 12, 2008
+" Version: 16
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
" License: Vim License (see vim's :help license)
"
" Contains many ideas from Michael Toren's <tar.vim>
"
-" Copyright: Copyright (C) 2005 Charles E. Campbell, Jr. {{{1
+" Copyright: Copyright (C) 2005-2008 Charles E. Campbell, Jr. {{{1
" Permission is hereby granted to use and distribute this code,
" with or without modifications, provided that this copyright
" notice is copied with it. Like anything else that's free,
-" tarPlugin.vim is provided *as is* and comes with no warranty
-" of any kind, either expressed or implied. By using this
-" plugin, you agree that in no event will the copyright
-" holder be liable for any damages resulting from the use
-" of this software.
+" tar.vim and tarPlugin.vim are provided *as is* and comes
+" with no warranty of any kind, either expressed or implied.
+" By using this plugin, you agree that in no event will the
+" copyright holder be liable for any damages resulting from
+" the use of this software.
" ---------------------------------------------------------------------
" Load Once: {{{1
@@ -24,8 +24,11 @@ set cpo&vim
if &cp || exists("g:loaded_tar") || v:version < 700
finish
endif
-let g:loaded_tar= "v11"
+let g:loaded_tar= "v16"
"call Decho("loading autoload/tar.vim")
+if v:version < 701 || (v:version == 701 && !has("patch299"))
+ echoerr "(autoload/tar.vim) need vim v7.1 with patchlevel 299"
+endif
" ---------------------------------------------------------------------
" Default Settings: {{{1
@@ -41,12 +44,33 @@ endif
if !exists("g:tar_writeoptions")
let g:tar_writeoptions= "uf"
endif
+
+if !exists("g:netrw_cygwin")
+ if has("win32") || has("win95") || has("win64") || has("win16")
+ if &shell =~ '\%(\<bash\>\|\<zsh\>\)\%(\.exe\)\=$'
+ let g:netrw_cygwin= 1
+ else
+ let g:netrw_cygwin= 0
+ endif
+ else
+ let g:netrw_cygwin= 0
+ endif
+endif
+
+" set up shell quoting character
if !exists("g:tar_shq")
- if has("unix")
- let g:tar_shq= "'"
+ if exists("&shq") && &shq != ""
+ let g:tar_shq= &shq
+ elseif has("win32") || has("win95") || has("win64") || has("win16")
+ if exists("g:netrw_cygwin") && g:netrw_cygwin
+ let g:tar_shq= "'"
+ else
+ let g:tar_shq= '"'
+ endif
else
- let g:tar_shq= '"'
+ let g:tar_shq= "'"
endif
+" call Decho("g:tar_shq<".g:tar_shq.">")
endif
" ----------------
@@ -95,27 +119,32 @@ fun! tar#Browse(tarfile)
" give header
" call Decho("printing header")
- exe "$put ='".'\"'." tar.vim version ".g:loaded_tar."'"
- exe "$put ='".'\"'." Browsing tarfile ".a:tarfile."'"
- exe "$put ='".'\"'." Select a file with cursor and press ENTER"."'"
+ let lastline= line("$")
+ call setline(lastline+1,'" tar.vim version '.g:loaded_tar)
+ call setline(lastline+2,'" Browsing tarfile '.a:tarfile)
+ call setline(lastline+3,'" Select a file with cursor and press ENTER')
+ $put =''
0d
$
let tarfile= a:tarfile
if has("win32") && executable("cygpath")
" assuming cygwin
- let tarfile=substitute(system("cygpath -u ".tarfile),'\n$','','e')
+ let tarfile=substitute(system("cygpath -u ".s:Escape(tarfile)),'\n$','','e')
endif
let curlast= line("$")
if tarfile =~# '\.\(gz\|tgz\)$'
-" call Decho("exe silent r! gzip -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_browseoptions." - ")
- exe "silent r! gzip -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_browseoptions." - "
+" call Decho("1: exe silent r! gzip -d -c ".s:Escape(tarfile)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
+ exe "silent r! gzip -d -c -- ".s:Escape(tarfile)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
+ elseif tarfile =~# '\.lrp'
+" call Decho("2: exe silent r! cat -- ".s:Escape(tarfile)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - ")
+ exe "silent r! cat -- ".s:Escape(tarfile)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - "
elseif tarfile =~# '\.bz2$'
-" call Decho("exe silent r! bzip2 -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_browseoptions." - ")
- exe "silent r! bzip2 -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_browseoptions." - "
+" call Decho("3: exe silent r! bzip2 -d -c ".s:Escape(tarfile)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
+ exe "silent r! bzip2 -d -c -- ".s:Escape(tarfile)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
else
-" call Decho("exe silent r! ".g:tar_cmd." -".g:tar_browseoptions." ".g:tar_shq.tarfile.g:tar_shq)
- exe "silent r! ".g:tar_cmd." -".g:tar_browseoptions." ".g:tar_shq.tarfile.g:tar_shq
+" call Decho("4: exe silent r! ".g:tar_cmd." -".g:tar_browseoptions." ".s:Escape(tarfile))
+ exe "silent r! ".g:tar_cmd." -".g:tar_browseoptions." ".s:Escape(tarfile)
endif
if v:shell_error != 0
redraw!
@@ -166,13 +195,15 @@ fun! s:TarBrowseSelect()
let curfile= expand("%")
if has("win32") && executable("cygpath")
" assuming cygwin
- let tarfile=substitute(system("cygpath -u ".tarfile),'\n$','','e')
+ let tarfile=substitute(system("cygpath -u ".s:Escape(tarfile)),'\n$','','e')
endif
new
- wincmd _
+ if !exists("g:tar_nomax") || g:tar_nomax == 0
+ wincmd _
+ endif
let s:tblfile_{winnr()}= curfile
- call tar#Read("tarfile:".tarfile.':'.fname,1)
+ call tar#Read("tarfile:".tarfile.'::'.fname,1)
filetype detect
let &report= repkeep
@@ -185,27 +216,50 @@ fun! tar#Read(fname,mode)
" call Dfunc("tar#Read(fname<".a:fname.">,mode=".a:mode.")")
let repkeep= &report
set report=10
- let tarfile = substitute(a:fname,'tarfile:\(.\{-}\):.*$','\1','')
- let fname = substitute(a:fname,'tarfile:.\{-}:\(.*\)$','\1','')
+ let tarfile = substitute(a:fname,'tarfile:\(.\{-}\)::.*$','\1','')
+ let fname = substitute(a:fname,'tarfile:.\{-}::\(.*\)$','\1','')
if has("win32") && executable("cygpath")
" assuming cygwin
- let tarfile=substitute(system("cygpath -u ".tarfile),'\n$','','e')
+ let tarfile=substitute(system("cygpath -u ".s:Escape(tarfile)),'\n$','','e')
endif
" call Decho("tarfile<".tarfile.">")
" call Decho("fname<".fname.">")
+ if fname =~ '\.gz$' && executable("zcat")
+ let decmp= "|zcat"
+ let doro = 1
+ elseif fname =~ '\.bz2$' && executable("bzcat")
+ let decmp= "|bzcat"
+ let doro = 1
+ else
+ let decmp=""
+ let doro = 0
+ if fname =~ '\.gz$\|\.bz2$\|\.Z$\|\.zip$'
+ setlocal bin
+ endif
+ endif
+
if tarfile =~# '\.\(gz\|tgz\)$'
-" call Decho("exe silent r! gzip -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -OPxf - '".fname."'")
- exe "silent r! gzip -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_readoptions." - '".fname."'"
+" call Decho("5: exe silent r! gzip -d -c -- ".s:Escape(tarfile)."| ".g:tar_cmd.' -'.g:tar_readoptions.' - '.s:Escape(fname))
+ exe "silent r! gzip -d -c -- ".s:Escape(tarfile)."| ".g:tar_cmd." -".g:tar_readoptions." - ".s:Escape(fname).decmp
+ elseif tarfile =~# '\.lrp$'
+" call Decho("6: exe silent r! cat ".s:Escape(tarfile)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".s:Escape(fname).decmp)
+ exe "silent r! cat -- ".s:Escape(tarfile)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".s:Escape(fname).decmp
elseif tarfile =~# '\.bz2$'
-" call Decho("exe silent r! bzip2 -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_readoptions." - '".fname."'")
- exe "silent r! bzip2 -d -c ".g:tar_shq.tarfile.g:tar_shq."| ".g:tar_cmd." -".g:tar_readoptions." - '".fname."'"
+" call Decho("7: exe silent r! bzip2 -d -c ".s:Escape(tarfile)."| ".g:tar_cmd." -".g:tar_readoptions." - ".s:Escape(fname).decmp)
+ exe "silent r! bzip2 -d -c -- ".s:Escape(tarfile)."| ".g:tar_cmd." -".g:tar_readoptions." - ".s:Escape(fname).decmp
else
-" call Decho("exe silent r! ".g:tar_cmd." -".g:tar_readoptions." ".g:tar_shq.tarfile.g:tar_shq." ".g:tar_shq.fname.g:tar_shq)
- exe "silent r! ".g:tar_cmd." -".g:tar_readoptions." ".g:tar_shq.tarfile.g:tar_shq." ".g:tar_shq.fname.g:tar_shq
+" call Decho("8: exe silent r! ".g:tar_cmd." -".g:tar_readoptions." -- ".s:Escape(tarfile)." ".s:Escape(fname))
+ exe "silent r! ".g:tar_cmd." -".g:tar_readoptions." ".s:Escape(tarfile)." -- ".s:Escape(fname).decmp
endif
+
+ if doro
+ " because the reverse process of compressing changed files back into the tarball is not currently supported
+ setlocal ro
+ endif
+
let w:tarfile= a:fname
- exe "file tarfile:".fname
+ exe "file tarfile::".fname
" cleanup
0d
@@ -251,7 +305,7 @@ fun! tar#Write(fname)
" attempt to change to the indicated directory
try
- exe "cd ".escape(tmpdir,' \')
+ exe "cd ".fnameescape(tmpdir)
catch /^Vim\%((\a\+)\)\=:E344/
redraw!
echohl Error | echo "***error*** (tar#Write) cannot cd to temporary directory" | Echohl None
@@ -270,24 +324,26 @@ fun! tar#Write(fname)
cd _ZIPVIM_
" call Decho("current directory now: ".getcwd())
- let tarfile = substitute(w:tarfile,'tarfile:\(.\{-}\):.*$','\1','')
- let fname = substitute(w:tarfile,'tarfile:.\{-}:\(.*\)$','\1','')
+ let tarfile = substitute(w:tarfile,'tarfile:\(.\{-}\)::.*$','\1','')
+ let fname = substitute(w:tarfile,'tarfile:.\{-}::\(.*\)$','\1','')
" handle compressed archives
if tarfile =~# '\.gz'
- call system("gzip -d ".tarfile)
+ call system("gzip -d -- ".tarfile)
let tarfile = substitute(tarfile,'\.gz','','e')
- let compress= "gzip '".tarfile."'"
+ let compress= "gzip ".s:Escape(tarfile)
elseif tarfile =~# '\.tgz'
- call system("gzip -d ".tarfile)
+ call system("gzip -d -- ".s:Escape(tarfile))
let tarfile = substitute(tarfile,'\.tgz','.tar','e')
- let compress= "gzip '".tarfile."'"
+ let compress= "gzip -- ".s:Escape(tarfile)
let tgz = 1
elseif tarfile =~# '\.bz2'
- call system("bzip2 -d ".tarfile)
+ call system("bzip2 -d -- ".s:Escape(tarfile))
let tarfile = substitute(tarfile,'\.bz2','','e')
- let compress= "bzip2 '".tarfile."'"
+ let compress= "bzip2 -- ".s:Escape(tarfile)
endif
+" call Decho("tarfile<".tarfile.">")
+" call Decho("compress<".compress.">")
if v:shell_error != 0
redraw!
@@ -309,26 +365,26 @@ fun! tar#Write(fname)
endif
" call Decho("tarfile<".tarfile."> fname<".fname.">")
- exe "w! ".fname
+ exe "w! ".fnameescape(fname)
if executable("cygpath")
- let tarfile = substitute(system("cygpath ".tarfile),'\n','','e')
+ let tarfile = substitute(system("cygpath ".s:Escape(tarfile)),'\n','','e')
endif
" delete old file from tarfile
-" call Decho("tar --delete -f '".tarfile."' '".fname."'")
- call system("tar --delete -f '".tarfile."' '".fname."'")
+" call Decho("system(tar --delete -f ".s:Escape(tarfile)." -- ".s:Escape(fname).")")
+ call system("tar --delete -f ".s:Escape(tarfile)." -- ".s:Escape(fname))
if v:shell_error != 0
redraw!
- echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".tarfile." with ".fname | echohl None
+ echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".fnameescape(tarfile)." with ".fnameescape(fname) | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
else
" update tarfile with new file
-" call Decho("tar -".g:tar_writeoptions." '".tarfile."' '".fname."'")
- call system("tar -".g:tar_writeoptions." '".tarfile."' '".fname."'")
+" call Decho("tar -".g:tar_writeoptions." ".s:Escape(tarfile)." -- ".s:Escape(fname))
+ call system("tar -".g:tar_writeoptions." ".s:Escape(tarfile)." -- ".s:Escape(fname))
if v:shell_error != 0
redraw!
- echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".tarfile." with ".fname | echohl None
+ echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".fnameescape(tarfile)." with ".fnameescape(fname) | echohl None
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
elseif exists("compress")
" call Decho("call system(".compress.")")
@@ -372,19 +428,31 @@ endfun
fun! s:Rmdir(fname)
" call Dfunc("Rmdir(fname<".a:fname.">)")
if has("unix")
- call system("/bin/rm -rf ".a:fname)
+ call system("/bin/rm -rf -- ".s:Escape(a:fname))
elseif has("win32") || has("win95") || has("win64") || has("win16")
if &shell =~? "sh$"
- call system("/bin/rm -rf ".a:fname)
+ call system("/bin/rm -rf -- ".s:Escape(a:fname))
else
- call system("del /S ".a:fname)
+ call system("del /S ".s:Escape(a:fname))
endif
endif
" call Dret("Rmdir")
endfun
-" ------------------------------------------------------------------------
+" ---------------------------------------------------------------------
+" s:Escape: {{{2
+fun s:Escape(name)
+ " shellescape() was added by patch 7.0.111
+ if exists("*shellescape")
+ let qnameq= shellescape(a:name)
+ else
+ let qnameq= g:tar_shq . a:name . g:tar_shq
+ endif
+ return qnameq
+endfun
+
+" ---------------------------------------------------------------------
" Modelines And Restoration: {{{1
let &cpo= s:keepcpo
unlet s:keepcpo
-" vim:ts=8 fdm=marker
+" vim:ts=8 fdm=marker
diff --git a/runtime/autoload/xml/html32.vim b/runtime/autoload/xml/html32.vim
index 9b971d6fa..242f52b1a 100644
--- a/runtime/autoload/xml/html32.vim
+++ b/runtime/autoload/xml/html32.vim
@@ -381,4 +381,3 @@ let g:xmldata_html32 = {
\ 'param': ['/>', ''],
\ }
\ }
-" vim:ft=vim:ff=unix
diff --git a/runtime/autoload/xml/html401s.vim b/runtime/autoload/xml/html401s.vim
index 8f7264864..37f581ba2 100644
--- a/runtime/autoload/xml/html401s.vim
+++ b/runtime/autoload/xml/html401s.vim
@@ -408,4 +408,3 @@ let g:xmldata_html401s = {
\ 'param': ['/>', ''],
\ }
\ }
-" vim:ft=vim:ff=unix
diff --git a/runtime/autoload/xml/xhtml10s.vim b/runtime/autoload/xml/xhtml10s.vim
index ec8300ed3..3fb7cf8c4 100644
--- a/runtime/autoload/xml/xhtml10s.vim
+++ b/runtime/autoload/xml/xhtml10s.vim
@@ -408,4 +408,3 @@ let g:xmldata_xhtml10s = {
\ 'param': ['/>', ''],
\ }
\ }
-" vim:ft=vim:ff=unix
diff --git a/runtime/autoload/xml/xhtml10t.vim b/runtime/autoload/xml/xhtml10t.vim
index 9a9041897..0e857ac9b 100644
--- a/runtime/autoload/xml/xhtml10t.vim
+++ b/runtime/autoload/xml/xhtml10t.vim
@@ -458,4 +458,3 @@ let g:xmldata_xhtml10t = {
\ 'param': ['/>', ''],
\ }
\ }
-" vim:ft=vim:ff=unix
diff --git a/runtime/compiler/rubyunit.vim b/runtime/compiler/rubyunit.vim
index 218ba60d0..74a6f0196 100644
--- a/runtime/compiler/rubyunit.vim
+++ b/runtime/compiler/rubyunit.vim
@@ -32,4 +32,4 @@ CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
let &cpo = s:cpo_save
unlet s:cpo_save
-" vim: nowrap sw=2 sts=2 ts=8 ff=unix:
+" vim: nowrap sw=2 sts=2 ts=8:
diff --git a/runtime/doc/farsi.txt b/runtime/doc/farsi.txt
index c07566052..f489a7a06 100644
--- a/runtime/doc/farsi.txt
+++ b/runtime/doc/farsi.txt
@@ -1,4 +1,4 @@
-*farsi.txt* For Vim version 7.1. Last change: 2005 Mar 29
+*farsi.txt* For Vim version 7.2a. Last change: 2005 Mar 29
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
index 21019b27e..db3fe4e5e 100644
--- a/runtime/doc/filetype.txt
+++ b/runtime/doc/filetype.txt
@@ -1,4 +1,4 @@
-*filetype.txt* For Vim version 7.1. Last change: 2007 May 10
+*filetype.txt* For Vim version 7.2a. Last change: 2008 Jun 21
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -122,7 +122,7 @@ The file types are also used for syntax highlighting. If the ":syntax on"
command is used, the file type detection is installed too. There is no need
to do ":filetype on" after ":syntax on".
-To disable one of the file types, add a line in the your filetype file, see
+To disable one of the file types, add a line in your filetype file, see
|remove-filetype|.
*filetype-detect*
@@ -502,6 +502,13 @@ For further discussion of fortran_have_tabs and the method used for the
detection of source format see |ft-fortran-syntax|.
+GIT COMMIT *ft-gitcommit-plugin*
+
+One command, :DiffGitCached, is provided to show a diff of the current commit
+in the preview window. It is equivalent to calling "git diff --cached" plus
+any arguments given to the command.
+
+
MAIL *ft-mail-plugin*
Options:
@@ -546,6 +553,20 @@ CTRL-] Jump to the manual page for the word under the cursor.
CTRL-T Jump back to the previous manual page.
+PDF *ft-pdf-plugin*
+
+Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating
+the PDF. The following are treated as tags:
+
+- The byte offset after "startxref" to the xref table
+- The byte offset after the /Prev key in the trailer to an earlier xref table
+- A line of the form "0123456789 00000 n" in the xref table
+- An object reference like "1 0 R" anywhere in the PDF
+
+These maps can be disabled with >
+ :let g:no_pdf_maps = 1
+<
+
RPM SPEC *ft-spec-plugin*
Since the text for this plugin is rather long it has been put in a separate
@@ -555,7 +576,7 @@ file: |pi_spec.txt|.
SQL *ft-sql*
Since the text for this plugin is rather long it has been put in a separate
-file: |sql.txt|.
+file: |ft_sql.txt|.
TEX *ft-tex-plugin*
diff --git a/runtime/doc/ft_ada.txt b/runtime/doc/ft_ada.txt
new file mode 100644
index 000000000..bec0f78fb
--- /dev/null
+++ b/runtime/doc/ft_ada.txt
@@ -0,0 +1,515 @@
+*ft_ada.txt* For Vim version 7.2a. Last change: 2008 Jun 21
+
+
+ ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
+
+ADA *ada.vim*
+
+1. Syntax Highlighting |ft-ada-syntax|
+2. Plug-in |ft-ada-plugin|
+3. Omni Completion |ft-ada-omni|
+ 3.1 Omni Completion with "gnat xref" |gnat-xref|
+ 3.2 Omni Completion with "ctags" |ada-ctags|
+4. Compiler Support |ada-compiler|
+ 4.1 GNAT |compiler-gnat|
+ 4.1 Dec Ada |compiler-decada|
+5. References |ada-reference|
+ 5.1 Options |ft-ada-options|
+ 5.2 Functions |ft-ada-functions|
+ 5.3 Commands |ft-ada-commands|
+ 5.4 Variables |ft-ada-variables|
+ 5.5 Constants |ft-ada-constants|
+8. Extra Plug-ins |ada-extra-plugins|
+
+==============================================================================
+1. Syntax Highlighting ~
+ *ft-ada-syntax*
+
+This mode is designed for the 2005 edition of Ada ("Ada 2005"), which includes
+support for objected-programming, protected types, and so on. It handles code
+written for the original Ada language ("Ada83", "Ada87", "Ada95") as well,
+though code which uses Ada 2005-only keywords will be wrongly colored (such
+code should be fixed anyway). For more information about Ada, see
+http://www.adapower.com.
+
+The Ada mode handles a number of situations cleanly.
+
+For example, it knows that the "-" in "-5" is a number, but the same character
+in "A-5" is an operator. Normally, a "with" or "use" clause referencing
+another compilation unit is coloured the same way as C's "#include" is coloured.
+If you have "Conditional" or "Repeat" groups coloured differently, then "end
+if" and "end loop" will be coloured as part of those respective groups.
+
+You can set these to different colours using vim's "highlight" command (e.g.,
+to change how loops are displayed, enter the command ":hi Repeat" followed by
+the colour specification; on simple terminals the colour specification
+ctermfg=White often shows well).
+
+There are several options you can select in this Ada mode. See|ft-ada-options|
+for a complete list.
+
+To enable them, assign a value to the option. For example, to turn one on:
+ >
+ > let g:ada_standard_types = 1
+>
+To disable them use ":unlet". Example:
+>
+ > unlet g:ada_standard_types
+
+You can just use ":" and type these into the command line to set these
+temporarily before loading an Ada file. You can make these option settings
+permanent by adding the "let" command(s), without a colon, to your "~/.vimrc"
+file.
+
+Even on a slow (90Mhz) PC this mode works quickly, but if you find the
+performance unacceptable, turn on |g:ada_withuse_ordinary|.
+
+Syntax folding instructions (|fold-syntax|) are added when |g:ada_folding| is
+set.
+
+==============================================================================
+2. File type Plug-in ~
+ *ft-ada-indent* *ft-ada-plugin*
+
+The Ada plug-in provides support for:
+
+ - auto indenting (|indent.txt|)
+ - insert completion (|i_CTRL-N|)
+ - user completion (|i_CTRL-X_CTRL-U|)
+ - tag searches (|tagsrch.txt|)
+ - Quick Fix (|quickfix.txt|)
+ - backspace handling (|'backspace'|)
+ - comment handling (|'comments'|, |'commentstring'|)
+
+The plug-in only activates the features of the Ada mode whenever an Ada
+files is opened and add adds Ada related entries to the main and pop-up menu.
+
+==============================================================================
+3. Omni Completion ~
+ *ft-ada-omni*
+
+The Ada omni-completions (|i_CTRL-X_CTRL-O|) uses tags database created either
+by "gnat xref -v" or the "exuberant Ctags (http://ctags.sourceforge.net). The
+complete function will automatically detect which tool was used to create the
+tags file.
+
+------------------------------------------------------------------------------
+3.1 Omni Completion with "gnat xref" ~
+ *gnat-xref*
+
+GNAT XREF uses the compiler internal information (ali-files) to produce the
+tags file. This has the advantage to be 100% correct and the option of deep
+nested analysis. However the code must compile, the generator is quite
+slow and the created tags file contains only the basic Ctags information for
+each entry - not enough for some of the more advanced Vim code browser
+plug-ins.
+
+NOTE: "gnat xref -v" is very tricky to use as it has almost no diagnostic
+ output - If nothing is printed then usually the parameters are wrong.
+ Here some important tips:
+
+1) You need to compile your code first and use the "-aO" option to point to
+ your .ali files.
+2) "gnat xref -v ../Include/adacl.ads" won't work - use the "gnat xref -v
+ -aI../Include adacl.ads" instead.
+3) "gnat xref -v -aI../Include *.ad?" won't work - use "cd ../Include" and
+ then "gnat xref -v *.ad?"
+4) Project manager support is completely broken - don't even try "gnat xref
+ -Padacl.gpr".
+5) VIM is faster when the tags file is sorted - use "sort --unique
+ --ignore-case --output=tags tags" .
+6) Remember to insert "!_TAG_FILE_SORTED 2 %sort ui" as first line to mark
+ the file assorted.
+
+------------------------------------------------------------------------------
+3.2 Omni Completion with "ctags"~
+ *ada-ctags*
+
+Exuberant Ctags uses its own multi-language code parser. The parser is quite
+fast, produces a lot of extra information (hence the name "Exuberant Ctags")
+and can run on files which currently do not compile.
+
+There are also lots of other Vim-tools which use exuberant Ctags.
+
+You will need to install a version of the Exuberant Ctags which has Ada
+support patched in. Such a version is available from the GNU Ada Project
+(http://gnuada.sourceforge.net).
+
+The Ada parser for Exuberant Ctags is fairly new - don't expect complete
+support yet.
+
+==============================================================================
+4. Compiler Support ~
+ *ada-compiler*
+
+The Ada mode supports more then one Ada compiler and will automatically load the
+compiler set in|g:ada_default_compiler|whenever an Ada source is opened. The
+provided compiler plug-ins are split into the actual compiler plug-in and a
+collection of support functions and variables. This allows the easy
+development of specialized compiler plug-ins fine tuned to your development
+environment.
+
+------------------------------------------------------------------------------
+4.1 GNAT ~
+ *compiler-gnat*
+
+GNAT is the only free (beer and speech) Ada compiler available. There are
+several version available which differentiate in the licence terms used.
+
+The GNAT compiler plug-in will perform a compile on pressing <F7> and then
+immediately shows the result. You can set the project file to be used by
+setting:
+ >
+ > call g:gnat.Set_Project_File ('my_project.gpr')
+
+Setting a project file will also create a Vim session (|views-sessions|) so -
+like with the GPS - opened files, window positions etc. will remembered
+separately for all projects.
+
+ *gnat_members*
+GNAT OBJECT ~
+
+ *g:gnat.Make()*
+g:gnat.Make()
+ Calls|g:gnat.Make_Command|and displays the result inside a
+ |quickfix| window.
+
+ *g:gnat.Pretty()*
+g:gnat.Pretty()
+ Calls|g:gnat.Pretty_Command|
+
+ *g:gnat.Find()*
+g:gnat.Find()
+ Calls|g:gnat.Find_Command|
+
+ *g:gnat.Tags()*
+g:gnat.Tags()
+ Calls|g:gnat.Tags_Command|
+
+ *g:gnat.Set_Project_File()*
+g:gnat.Set_Project_File([{file}])
+ Set gnat project file and load associated session. An open
+ project will be closed and the session written. If called
+ without file name the file selector opens for selection of a
+ project file. If called with an empty string then the project
+ and associated session are closed.
+
+ *g:gnat.Project_File*
+g:gnat.Project_File string
+ Current project file.
+
+ *g:gnat.Make_Command*
+g:gnat.Make_Command string
+ External command used for|g:gnat.Make()| (|'makeprg'|).
+
+ *g:gnat.Pretty_Program*
+g:gnat.Pretty_Program string
+ External command used for|g:gnat.Pretty()|
+
+ *g:gnat.Find_Program*
+g:gnat.Find_Program string
+ External command used for|g:gnat.Find()|
+
+ *g:gnat.Tags_Command*
+g:gnat.Tags_Command string
+ External command used for|g:gnat.Tags()|
+
+ *g:gnat.Error_Format*
+g:gnat.Error_Format string
+ Error format (|'errorformat'|)
+
+------------------------------------------------------------------------------
+4.2 Dec Ada ~
+ *compiler-hpada* *compiler-decada*
+ *compiler-vaxada* *compiler-compaqada*
+
+Dec Ada (also known by - in chronological order - VAX Ada, Dec Ada, Compaq Ada
+and HP Ada) is a fairly dated Ada 83 compiler. Support is basic: <F7> will
+compile the current unit.
+
+The Dec Ada compiler expects the package name and not the file name to be
+passed a parameter. The compiler plug-in supports the usual file name
+convention to convert the file into a unit name. For separates both '-' and
+'__' are allowed.
+
+ *decada_members*
+DEC ADA OBJECT ~
+
+ *g:decada.Make()*
+g:decada.Make() function
+ Calls|g:decada.Make_Command|and displays the result inside a
+ |quickfix| window.
+
+ *g:decada.Unit_Name()*
+g:decada.Unit_Name() function
+ Get the Unit name for the current file.
+
+ *g:decada.Make_Command*
+g:decada.Make_Command string
+ External command used for|g:decadat.Make()| (|'makeprg'|).
+
+ *g:decada.Error_Format*
+g:decada.Error_Format| string
+ Error format (|'errorformat'|).
+
+==============================================================================
+5. References ~
+ *ada-reference*
+
+------------------------------------------------------------------------------
+5.1 Options ~
+ *ft-ada-options*
+
+ *g:ada_standard_types*
+g:ada_standard_types bool (true when exists)
+ Highlight types in package Standard (e.g., "Float")
+
+ *g:ada_space_errors*
+ *g:ada_no_trail_space_error*
+ *g:ada_no_tab_space_error*
+ *g:ada_all_tab_usage*
+g:ada_space_errors bool (true when exists)
+ Highlight extraneous errors in spaces ...
+ g:ada_no_trail_space_error
+ - but ignore trailing spaces at the end of a line
+ g:ada_no_tab_space_error
+ - but ignore tabs after spaces
+ g:ada_all_tab_usage
+ - highlight all tab use
+
+ *g:ada_line_errors*
+g:ada_line_errors bool (true when exists)
+ Highlight lines which are to long. Note: This highlighting
+ option is quite CPU intensive.
+
+ *g:ada_rainbow_color*
+g:ada_rainbow_color bool (true when exists)
+ Use rainbow colours for '(' and ')'. You need the
+ rainbow_parenthesis for this to work
+
+ *g:ada_folding*
+g:ada_folding set ('sigpft')
+ Use folding for Ada sources.
+ 's': activate syntax folding on load
+ 'p': fold packages
+ 'f': fold functions and procedures
+ 't': fold types
+ 'c': fold conditionals
+ 'g': activate gnat pretty print folding on load
+ 'i': lone 'is' folded with line above
+ 'b': lone 'begin' folded with line above
+ 'p': lone 'private' folded with line above
+ 'x': lone 'exception' folded with line above
+ 'i': activate indent folding on load
+
+ Note: Syntax folding is in an early (unusable) stage and
+ indent or gnat pretty folding is suggested.
+
+ For gnat pretty folding to work the following settings are
+ suggested: -cl3 -M79 -c2 -c3 -c4 -A1 -A2 -A3 -A4 -A5
+
+ For indent folding to work the following settings are
+ suggested: shiftwidth=3 softtabstop=3
+
+ *g:ada_abbrev*
+g:ada_abbrev bool (true when exists)
+ Add some abbreviations. This feature more or less superseded
+ by the various completion methods.
+
+ *g:ada_withuse_ordinary*
+g:ada_withuse_ordinary bool (true when exists)
+ Show "with" and "use" as ordinary keywords (when used to
+ reference other compilation units they're normally highlighted
+ specially).
+
+ *g:ada_begin_preproc*
+g:ada_begin_preproc bool (true when exists)
+ Show all begin-like keywords using the colouring of C
+ preprocessor commands.
+
+ *g:ada_omni_with_keywords*
+g:ada_omni_with_keywords
+ Add Keywords, Pragmas, Attributes to omni-completions
+ (|compl-omni|). Note: You can always complete then with user
+ completion (|i_CTRL-X_CTRL-U|).
+
+ *g:ada_extended_tagging*
+g:ada_extended_tagging enum ('jump', 'list')
+ use extended tagging, two options are available
+ 'jump': use tjump to jump.
+ 'list': add tags quick fix list.
+ Normal tagging does not support function or operator
+ overloading as these features are not available in C and
+ tagging was originally developed for C.
+
+ *g:ada_extended_completion*
+g:ada_extended_completion
+ Uses extended completion for <C-N> and <C-R> completions
+ (|i_CTRL-N|). In this mode the '.' is used as part of the
+ identifier so that 'Object.Method' or 'Package.Procedure' are
+ completed together.
+
+ *g:ada_gnat_extensions*
+g:ada_gnat_extensions bool (true when exists)
+ Support GNAT extensions.
+
+ *g:ada_with_gnat_project_files*
+g:ada_with_gnat_project_files bool (true when exists)
+ Add gnat project file keywords and Attributes.
+
+ *g:ada_default_compiler*
+g:ada_default_compiler string
+ set default compiler. Currently supported is 'gnat' and
+ 'decada'.
+
+An "exists" type is a boolean is considered true when the variable is defined
+and false when the variable is undefined. The value which the variable is
+set makes no difference.
+
+------------------------------------------------------------------------------
+5.3 Commands ~
+ *ft-ada-commands*
+
+:AdaRainbow *:AdaRainbow*
+ Toggles rainbow colour (|g:ada_rainbow_color|) mode for
+ '(' and ')'
+
+:AdaLines *:AdaLines*
+ Toggles line error (|g:ada_line_errors|) display
+
+:AdaSpaces *:AdaSpaces*
+ Toggles space error (|g:ada_space_errors|) display.
+
+:AdaTagDir *:AdaTagDir*
+ Creates tags file for the directory of the current file.
+
+:AdaTagFile *:AdaTagFile*
+ Creates tags file for the current file.
+
+:AdaTypes *:AdaTypes*
+ Toggles standard types (|g:ada_standard_types|) colour.
+
+:GnatFind *:GnatFind*
+ Calls |g:gnat.Find()|
+
+:GnatPretty *:GnatPretty*
+ Calls |g:gnat.Pretty()|
+
+:GnatTags *:GnatTags*
+ Calls |g:gnat.Tags()|
+
+------------------------------------------------------------------------------
+5.3 Variables ~
+ *ft-ada-variables*
+
+ *g:gnat*
+g:gnat object
+ Control object which manages GNAT compiles. The object
+ is created when the first Ada source code is loaded provided
+ that |g:ada_default_compiler|is set to 'gnat'. See|gnat_members|
+ for details.
+
+ *g:decada*
+g:decada object
+ Control object which manages Dec Ada compiles. The object
+ is created when the first Ada source code is loaded provided
+ that |g:ada_default_compiler|is set to 'decada'. See
+ |decada_members|for details.
+
+------------------------------------------------------------------------------
+5.4 Constants ~
+ *ft-ada-constants*
+
+All constants are locked. See |:lockvar| for details.
+
+ *g:ada#WordRegex*
+g:ada#WordRegex string
+ Regular expression to search for Ada words
+
+ *g:ada#DotWordRegex*
+g:ada#DotWordRegex string
+ Regular expression to search for Ada words separated by dots.
+
+ *g:ada#Comment*
+g:ada#Comment string
+ Regular expression to search for Ada comments
+
+ *g:ada#Keywords*
+g:ada#Keywords list of dictionaries
+ List of keywords, attributes etc. pp. in the format used by
+ omni completion. See |complete-items| for details.
+
+ *g:ada#Ctags_Kinds*
+g:ada#Ctags_Kinds dictionary of lists
+ Dictionary of the various kinds of items which the Ada support
+ for Ctags generates.
+
+------------------------------------------------------------------------------
+5.2 Functions ~
+ *ft-ada-functions*
+
+ada#Word([{line}, {col}]) *ada#Word()*
+ Return full name of Ada entity under the cursor (or at given
+ line/column), stripping white space/newlines as necessary.
+
+ada#List_Tag([{line}, {col}]) *ada#Listtags()*
+ List all occurrences of the Ada entity under the cursor (or at
+ given line/column) inside the quick-fix window
+
+ada#Jump_Tag ({ident}, {mode}) *ada#Jump_Tag()*
+ List all occurrences of the Ada entity under the cursor (or at
+ given line/column) in the tag jump list. Mode can either be
+ 'tjump' or 'stjump'.
+
+ada#Create_Tags ({option}) *ada#Create_Tags()*
+ Creates tag file using Ctags. The option can either be 'file'
+ for the current file, 'dir' for the directory of the current
+ file or a file name.
+
+gnat#Insert_Tags_Header() *gnat#Insert_Tags_Header()*
+ Adds the tag file header (!_TAG_) information to the current
+ file which are missing from the GNAT XREF output.
+
+ada#Switch_Syntax_Option ({option}) *ada#Switch_Syntax_Option()*
+ Toggles highlighting options on or off. Used for the Ada menu.
+
+ *gnat#New()*
+gnat#New ()
+ Create a new gnat object. See |g:gnat| for details.
+
+
+==============================================================================
+8. Extra Plugins ~
+ *ada-extra-plugins*
+
+You can optionally install the following extra plug-in. They work well with Ada
+and enhance the ability of the Ada mode.:
+
+backup.vim
+ http://www.vim.org/scripts/script.php?script_id=1537
+ Keeps as many backups as you like so you don't have to.
+
+rainbow_parenthsis.vim
+ http://www.vim.org/scripts/script.php?script_id=1561
+ Very helpful since Ada uses only '(' and ')'.
+
+nerd_comments.vim
+ http://www.vim.org/scripts/script.php?script_id=1218
+ Excellent commenting and uncommenting support for almost any
+ programming language.
+
+matchit.vim
+ http://www.vim.org/scripts/script.php?script_id=39
+ '%' jumping for any language. The normal '%' jump only works for '{}'
+ style languages. The Ada mode will set the needed search patters.
+
+taglist.vim
+ http://www.vim.org/scripts/script.php?script_id=273
+ Source code explorer sidebar. There is a patch for Ada available.
+
+The GNU Ada Project distribution (http://gnuada.sourceforge.net) of Vim
+contains all of the above.
+
+==============================================================================
+vim: textwidth=78 nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab
+vim: filetype=help
diff --git a/runtime/doc/howto.txt b/runtime/doc/howto.txt
index cb76fb42c..3ad8f4fdd 100644
--- a/runtime/doc/howto.txt
+++ b/runtime/doc/howto.txt
@@ -1,4 +1,4 @@
-*howto.txt* For Vim version 7.1. Last change: 2006 Apr 02
+*howto.txt* For Vim version 7.2a. Last change: 2006 Apr 02
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt
index b00e4514b..b830c57a0 100644
--- a/runtime/doc/intro.txt
+++ b/runtime/doc/intro.txt
@@ -1,4 +1,4 @@
-*intro.txt* For Vim version 7.1. Last change: 2007 May 07
+*intro.txt* For Vim version 7.2a. Last change: 2008 Jun 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -120,27 +120,13 @@ NOTE:
*subscribe-maillist*
If you want to join, send a message to
- <vim-help@vim.org>
+ <vim-subscribe@vim.org>
Make sure that your "From:" address is correct. Then the list server will
give you help on how to subscribe.
-You can retrieve old messages from the maillist software, and an index of
-messages. Ask vim-help for instructions.
-
-Archives are kept at: *maillist-archive*
-http://groups.yahoo.com/group/vim
-http://groups.yahoo.com/group/vimdev
-http://groups.yahoo.com/group/vimannounce
-http://groups.yahoo.com/group/vim-multibyte
-http://groups.yahoo.com/group/vim-mac
-
-
-Additional maillists:
-
-<vim-fr@club.voila.fr> *french-maillist*
- Vim list in the French language. Subscribe by sending a message to
- <vim-fr-subscribe@club.voila.fr>
- Or go to http://groups.yahoo.com/group/vim-fr.
+ *maillist-archive*
+For more information and archives look on the Vim maillist page:
+http://www.vim.org/maillist.php
Bug reports: *bugs* *bug-reports* *bugreport.vim*
@@ -220,6 +206,7 @@ Vim would never have become what it is now, without the help of these people!
Eric Fischer Mac port, 'cindent', and other improvements
Benji Fisher Answering lots of user questions
Bill Foster Athena GUI port
+ Google Lets me work on Vim one day a week
Loic Grenie xvim (ideas for multi windows version)
Sven Guckes Vim promotor and previous WWW page maintainer
Darren Hiebert Exuberant ctags
@@ -231,7 +218,7 @@ Vim would never have become what it is now, without the help of these people!
Steve Kirkendall Elvis
Roger Knobbe original port to Windows NT
Sergey Laskavy Vim's help from Moscow
- Felix von Leitner Maintainer of Vim Mailing Lists
+ Felix von Leitner Previous maintainer of Vim Mailing Lists
David Leonard Port of Python extensions to Unix
Avner Lottem Edit in right-to-left windows
Flemming Madsen X11 client-server, various features and patches
@@ -241,6 +228,8 @@ Vim would never have become what it is now, without the help of these people!
Sung-Hyun Nam Work on multi-byte versions
Vince Negri Win32 GUI and generic console enhancements
Steve Oualline Author of the first Vim book |frombook|
+ Dominique Pelle figuring out valgrind reports and fixes
+ A.Politz Many bug reports and some fixes
George V. Reilly Win32 port, Win32 GUI start-off
Stephen Riehm bug collector
Stefan Roemer various patches and help to users
@@ -560,7 +549,7 @@ Ex mode Like Command-line mode, but after entering a command
you remain in Ex mode. Very limited editing of the
command line. |Ex-mode|
-There are five ADDITIONAL modes. These are variants of the BASIC modes:
+There are six ADDITIONAL modes. These are variants of the BASIC modes:
*Operator-pending* *Operator-pending-mode*
Operator-pending mode This is like Normal mode, but after an operator
@@ -574,6 +563,12 @@ Replace mode Replace mode is a special case of Insert mode. You
If the 'showmode' option is on "-- REPLACE --" is
shown at the bottom of the window.
+Virtual Replace mode Virtual Replace mode is similar to Replace mode, but
+ instead of file characters you are replacing screen
+ real estate. See |Virtual-Replace-mode|.
+ If the 'showmode' option is on "-- VREPLACE --" is
+ shown at the bottom of the window.
+
Insert Normal mode Entered when CTRL-O given in Insert mode. This is
like Normal mode, but after executing one command Vim
returns to Insert mode.
@@ -608,7 +603,7 @@ CTRL-O in Insert mode you get a beep but you are still in Insert mode, type
TO mode ~
Normal Visual Select Insert Replace Cmd-line Ex ~
FROM mode ~
-Normal v V ^V *4 *1 R : / ? ! Q
+Normal v V ^V *4 *1 R gR : / ? ! Q
Visual *2 ^G c C -- : --
Select *5 ^O ^G *6 -- -- --
Insert <Esc> -- -- <Insert> -- --
diff --git a/runtime/doc/os_amiga.txt b/runtime/doc/os_amiga.txt
index 5cbb22f8a..3f2647f31 100644
--- a/runtime/doc/os_amiga.txt
+++ b/runtime/doc/os_amiga.txt
@@ -1,4 +1,4 @@
-*os_amiga.txt* For Vim version 7.1. Last change: 2005 Mar 29
+*os_amiga.txt* For Vim version 7.2a. Last change: 2005 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/os_dos.txt b/runtime/doc/os_dos.txt
index 7aae986f9..2156f65e8 100644
--- a/runtime/doc/os_dos.txt
+++ b/runtime/doc/os_dos.txt
@@ -1,4 +1,4 @@
-*os_dos.txt* For Vim version 7.1. Last change: 2006 Mar 30
+*os_dos.txt* For Vim version 7.2a. Last change: 2006 Mar 30
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/os_win32.txt b/runtime/doc/os_win32.txt
index 0403577bf..afc05ddea 100644
--- a/runtime/doc/os_win32.txt
+++ b/runtime/doc/os_win32.txt
@@ -1,4 +1,4 @@
-*os_win32.txt* For Vim version 7.1. Last change: 2007 Apr 22
+*os_win32.txt* For Vim version 7.2a. Last change: 2008 May 02
VIM REFERENCE MANUAL by George Reilly
@@ -306,7 +306,7 @@ A. When using :! to run an external command, you can run it with "start": >
:!start winfile.exe<CR>
< Using "start" stops Vim switching to another screen, opening a new console,
or waiting for the program to complete; it indicates that you are running a
- program that does not effect the files you are editing. Programs begun
+ program that does not affect the files you are editing. Programs begun
with :!start do not get passed Vim's open file handles, which means they do
not have to be closed before Vim.
To avoid this special treatment, use ":! start".
diff --git a/runtime/doc/pi_spec.txt b/runtime/doc/pi_spec.txt
index afb69b5e4..900e768fc 100644
--- a/runtime/doc/pi_spec.txt
+++ b/runtime/doc/pi_spec.txt
@@ -1,4 +1,4 @@
-*pi_spec.txt* For Vim version 7.1. Last change: 2006 Apr 24
+*pi_spec.txt* For Vim version 7.2a. Last change: 2006 Apr 24
by Gustavo Niemeyer ~
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt
index a40cb9e49..26e2e7e88 100644
--- a/runtime/doc/quickfix.txt
+++ b/runtime/doc/quickfix.txt
@@ -1,4 +1,4 @@
-*quickfix.txt* For Vim version 7.1. Last change: 2007 May 10
+*quickfix.txt* For Vim version 7.2a. Last change: 2008 Mar 14
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -141,8 +141,11 @@ command with 'l'.
current window is used instead of the quickfix list.
*:cq* *:cquit*
-:cq[uit] Quit Vim with an error code, so that the compiler
+:cq[uit][!] Quit Vim with an error code, so that the compiler
will not compile the same file again.
+ WARNING: All changes in files are lost! Also when the
+ [!] is not used. It works like ":qall!" |:qall|,
+ except that Vim returns a non-zero exit code.
*:cf* *:cfile*
:cf[ile][!] [errorfile] Read the error file and jump to the first error.
@@ -159,12 +162,12 @@ command with 'l'.
the location list.
-:cg[etfile][!] [errorfile] *:cg* *:cgetfile*
+:cg[etfile] [errorfile] *:cg* *:cgetfile*
Read the error file. Just like ":cfile" but don't
jump to the first error.
-:lg[etfile][!] [errorfile] *:lg* *:lgetfile*
+:lg[etfile] [errorfile] *:lg* *:lgetfile*
Same as ":cgetfile", except the location list for the
current window is used instead of the quickfix list.
@@ -229,15 +232,15 @@ command with 'l'.
current window is used instead of the quickfix list.
*:cgete* *:cgetexpr*
-:cgete[xpr][!] {expr} Create a quickfix list using the result of {expr}.
+:cgete[xpr] {expr} Create a quickfix list using the result of {expr}.
Just like ":cexpr", but don't jump to the first error.
*:lgete* *:lgetexpr*
-:lgete[xpr][!] {expr} Same as ":cgetexpr", except the location list for the
+:lgete[xpr] {expr} Same as ":cgetexpr", except the location list for the
current window is used instead of the quickfix list.
*:cad* *:caddexpr*
-:cad[dexpr][!] {expr} Evaluate {expr} and add the resulting lines to the
+:cad[dexpr] {expr} Evaluate {expr} and add the resulting lines to the
current quickfix list. If a quickfix list is not
present, then a new list is created. The current
cursor position will not be changed. See |:cexpr| for
@@ -246,7 +249,7 @@ command with 'l'.
:g/mypattern/caddexpr expand("%") . ":" . line(".") . ":" . getline(".")
<
*:lad* *:laddexpr*
-:lad[dexpr][!] {expr} Same as ":caddexpr", except the location list for the
+:lad[dexpr] {expr} Same as ":caddexpr", except the location list for the
current window is used instead of the quickfix list.
*:cl* *:clist*
@@ -280,6 +283,21 @@ If vim is built with |+autocmd| support, two autocommands are available for
running commands before and after a quickfix command (':make', ':grep' and so
on) is executed. See |QuickFixCmdPre| and |QuickFixCmdPost| for details.
+ *QuickFixCmdPost-example*
+When 'encoding' differs from the locale, the error messages may have a
+different encoding from what Vim is using. To convert the messages you can
+use this code: >
+ function QfMakeConv()
+ let qflist = getqflist()
+ for i in qflist
+ let i.text = iconv(i.text, "cp936", "utf-8")
+ endfor
+ call setqflist(qflist)
+ endfunction
+
+ au QuickfixCmdPost make call QfMakeConv()
+
+
=============================================================================
2. The error window *quickfix-window*
@@ -434,6 +452,7 @@ lists, use ":cnewer 99" first.
5. The errorfile is read using 'errorformat'.
6. If vim was built with |+autocmd|, all relevant
|QuickFixCmdPost| autocommands are executed.
+ See example below.
7. If [!] is not given the first error is jumped to.
8. The errorfile is deleted.
9. You can now move through the errors with commands
@@ -481,6 +500,25 @@ the screen and saved in a file the same time. Depending on the shell used
If 'shellpipe' is empty, the {errorfile} part will be omitted. This is useful
for compilers that write to an errorfile themselves (e.g., Manx's Amiga C).
+
+Using QuickFixCmdPost to fix the encoding ~
+
+It may be that 'encoding' is set to an encoding that differs from the messages
+your build program produces. This example shows how to fix this after Vim has
+read the error messages: >
+
+ function QfMakeConv()
+ let qflist = getqflist()
+ for i in qflist
+ let i.text = iconv(i.text, "cp936", "utf-8")
+ endfor
+ call setqflist(qflist)
+ endfunction
+
+ au QuickfixCmdPost make call QfMakeConv()
+
+(Example by Faque Cheng)
+
==============================================================================
5. Using :vimgrep and :grep *grep* *lid*
@@ -751,6 +789,18 @@ work, because Vim is then running in the same process as the compiler and
stdin (standard input) will not be interactive.
+PERL *quickfix-perl* *compiler-perl*
+
+The Perl compiler plugin doesn't actually compile, but invokes Perl's internal
+syntax checking feature and parses the output for possible errors so you can
+correct them in quick-fix mode.
+
+Warnings are forced regardless of "no warnings" or "$^W = 0" within the file
+being checked. To disable this set g:perl_compiler_force_warnings to a zero
+value. For example: >
+ let g:perl_compiler_force_warnings = 0
+
+
PYUNIT COMPILER *compiler-pyunit*
This is not actually a compiler, but a unit testing framework for the
@@ -1379,7 +1429,8 @@ by Vim.
*errorformat-Perl*
In $VIMRUNTIME/tools you can find the efm_perl.pl script, which filters Perl
error messages into a format that quickfix mode will understand. See the
-start of the file about how to use it.
+start of the file about how to use it. (This script is deprecated, see
+|compiler-perl|.)
diff --git a/runtime/doc/remote.txt b/runtime/doc/remote.txt
index 5b328c1f2..85b050762 100644
--- a/runtime/doc/remote.txt
+++ b/runtime/doc/remote.txt
@@ -1,4 +1,4 @@
-*remote.txt* For Vim version 7.1. Last change: 2006 Apr 30
+*remote.txt* For Vim version 7.2a. Last change: 2008 May 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -64,7 +64,10 @@ The following command line arguments are available:
server {name} instead of the default (see
below).
*--remote-send*
- --remote-send {keys} Send {keys} to server and exit.
+ --remote-send {keys} Send {keys} to server and exit. The {keys}
+ are not mapped. Special key names are
+ recognized, e.g., "<CR>" results in a CR
+ character.
*--remote-expr*
--remote-expr {expr} Evaluate {expr} in server and print the result
on stdout.
diff --git a/runtime/doc/scroll.txt b/runtime/doc/scroll.txt
index c11e99366..91fc4c8fe 100644
--- a/runtime/doc/scroll.txt
+++ b/runtime/doc/scroll.txt
@@ -1,4 +1,4 @@
-*scroll.txt* For Vim version 7.1. Last change: 2006 Aug 27
+*scroll.txt* For Vim version 7.2a. Last change: 2006 Aug 27
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index acde5428b..0a0c0a887 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt* For Vim version 7.1. Last change: 2007 May 11
+*syntax.txt* For Vim version 7.2a. Last change: 2008 Jun 21
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -103,7 +103,7 @@ To put this into a mapping, you can use: >
\ endif <CR>
[using the |<>| notation, type this literally]
-Details
+Details:
The ":syntax" commands are implemented by sourcing a file. To see exactly how
this works, look in the file:
command file ~
@@ -531,12 +531,12 @@ one of the first five lines in the file.
The syntax type can always be overruled for a specific buffer by setting the
b:asmsyntax variable: >
- :let b:asmsyntax=nasm
+ :let b:asmsyntax = "nasm"
If b:asmsyntax is not set, either automatically or by hand, then the value of
the global variable asmsyntax is used. This can be seen as a default assembly
language: >
- :let asmsyntax=nasm
+ :let asmsyntax = "nasm"
As a last resort, if nothing is defined, the "asm" syntax is used.
@@ -613,7 +613,7 @@ C *c.vim* *ft-c-syntax*
A few things in C highlighting are optional. To enable them assign any value
to the respective variable. Example: >
- :let c_comment_strings=1
+ :let c_comment_strings = 1
To disable them use ":unlet". Example: >
:unlet c_comment_strings
@@ -626,6 +626,8 @@ c_no_tab_space_error ... but no spaces before a <Tab>
c_no_bracket_error don't highlight {}; inside [] as errors
c_no_curly_error don't highlight {}; inside [] and () as errors;
except { and } in first column
+c_curly_error highlight a missing }; this forces syncing from the
+ start of the file, can be slow
c_no_ansi don't do standard ANSI types and constants
c_ansi_typedefs ... but do standard ANSI types
c_ansi_constants ... but do standard ANSI constants
@@ -674,7 +676,6 @@ highlighting for cErrInParen and cErrInBracket.
If you want to use folding in your C files, you can add these lines in a file
an the "after" directory in 'runtimepath'. For Unix this would be
~/.vim/after/syntax/c.vim. >
- syn region myFold start="{" end="}" transparent fold
syn sync fromstart
set foldmethod=syntax
@@ -1475,11 +1476,10 @@ which are used for the statement itself, special characters used in debug
strings, strings, boolean constants and types (this, super) respectively. I
have opted to chose another background for those statements.
-In order to help you to write code that can be easily ported between
-Java and C++, all C++ keywords are marked as error in a Java program.
-However, if you use them regularly, you may want to define the following
-variable in your .vimrc file: >
- :let java_allow_cpp_keywords=1
+In order to help you write code that can be easily ported between Java and
+C++, all C++ keywords can be marked as an error in a Java program. To
+have this add this line in your .vimrc file: >
+ :let java_allow_cpp_keywords = 0
Javadoc is a program that takes special comments out of Java program files and
creates HTML pages. The standard configuration will highlight this HTML code
@@ -2402,7 +2402,7 @@ vimrc file: >
SH *sh.vim* *ft-sh-syntax* *ft-bash-syntax* *ft-ksh-syntax*
-This covers the "normal" Unix (Borne) sh, bash and the Korn shell.
+This covers the "normal" Unix (Bourne) sh, bash and the Korn shell.
Vim attempts to determine which shell type is in use by specifying that
various filenames are of specific types: >
@@ -2425,23 +2425,30 @@ variables in your <.vimrc>:
let g:is_posix = 1
< bash: >
let g:is_bash = 1
-< sh: (default) Borne shell >
+< sh: (default) Bourne shell >
let g:is_sh = 1
If there's no "#! ..." line, and the user hasn't availed himself/herself of a
default sh.vim syntax setting as just shown, then syntax/sh.vim will assume
-the Borne shell syntax. No need to quote RFCs or market penetration
-statistics in error reports, please -- just select the default version of
-the sh your system uses in your <.vimrc>.
+the Bourne shell syntax. No need to quote RFCs or market penetration
+statistics in error reports, please -- just select the default version of the
+sh your system uses in your <.vimrc>.
-If, in your <.vimrc>, you set >
- let g:sh_fold_enabled= 1
+The syntax/sh.vim file provides several levels of syntax-based folding: >
+
+ let g:sh_fold_enabled= 0 (default, no syntax folding)
+ let g:sh_fold_enabled= 1 (enable function folding)
+ let g:sh_fold_enabled= 2 (enable heredoc folding)
+ let g:sh_fold_enabled= 4 (enable if/do/for folding)
>
then various syntax items (HereDocuments and function bodies) become
-syntax-foldable (see |:syn-fold|).
+syntax-foldable (see |:syn-fold|). You also may add these together
+to get multiple types of folding: >
-If you notice highlighting errors while scrolling backwards, which are fixed
-when redrawing with CTRL-L, try setting the "sh_minlines" internal variable
+ let g:sh_fold_enabled= 3 (enables function and heredoc folding)
+
+If you notice highlighting errors while scrolling backwards which are fixed
+when one redraws with CTRL-L, try setting the "sh_minlines" internal variable
to a larger number. Example: >
let sh_minlines = 500
@@ -2504,7 +2511,7 @@ scripts. You can change Vim's default from Oracle to any of the current SQL
supported types. You can also easily alter the SQL dialect being used on a
buffer by buffer basis.
-For more detailed instructions see |sql.txt|.
+For more detailed instructions see |ft_sql.txt|.
TCSH *tcsh.vim* *ft-tcsh-syntax*
@@ -2531,7 +2538,7 @@ number is that redrawing can become slow.
TEX *tex.vim* *ft-tex-syntax*
-*tex-folding*
+ *tex-folding*
Want Syntax Folding? ~
As of version 28 of <syntax/tex.vim>, syntax-based folding of parts, chapters,
@@ -2541,7 +2548,15 @@ in your <.vimrc>, and :set fdm=syntax. I suggest doing the latter via a
modeline at the end of your LaTeX file: >
% vim: fdm=syntax
<
-*tex-runon*
+ *tex-nospell*
+Don't Want Spell Checking In Comments? ~
+
+Some folks like to include things like source code in comments and so would
+prefer that spell checking be disabled in comments in LaTeX files. To do
+this, put the following in your <.vimrc>: >
+ let g:tex_comment_nospell= 1
+<
+ *tex-runon*
Run-on Comments/Math? ~
The <syntax/tex.vim> highlighting supports TeX, LaTeX, and some AmsTeX. The
@@ -2554,7 +2569,7 @@ special "TeX comment" has been provided >
which will forcibly terminate the highlighting of either a texZone or a
texMathZone.
-*tex-slow*
+ *tex-slow*
Slow Syntax Highlighting? ~
If you have a slow computer, you may wish to reduce the values for >
@@ -2564,8 +2579,8 @@ If you have a slow computer, you may wish to reduce the values for >
increase them. This primarily affects synchronizing (i.e. just what group,
if any, is the text at the top of the screen supposed to be in?).
-*tex-morecommands* *tex-package*
-Wish To Highlight More Commmands? ~
+ *tex-morecommands* *tex-package*
+Want To Highlight More Commands? ~
LaTeX is a programmable language, and so there are thousands of packages full
of specialized LaTeX commands, syntax, and fonts. If you're using such a
@@ -2574,7 +2589,7 @@ it. However, clearly this is impractical. So please consider using the
techniques in |mysyntaxfile-add| to extend or modify the highlighting provided
by syntax/tex.vim.
-*tex-error*
+ *tex-error*
Excessive Error Highlighting? ~
The <tex.vim> supports lexical error checking of various sorts. Thus,
@@ -2584,7 +2599,7 @@ you may put in your <.vimrc> the following statement: >
let tex_no_error=1
and all error checking by <syntax/tex.vim> will be suppressed.
-*tex-math*
+ *tex-math*
Need a new Math Group? ~
If you want to include a new math group in your LaTeX, the following
@@ -2599,7 +2614,7 @@ and then to the call to it in .vim/after/syntax/tex.vim.
The "starform" variable, if true, implies that your new math group
has a starred form (ie. eqnarray*).
-*tex-style*
+ *tex-style*
Starting a New Style? ~
One may use "\makeatletter" in *.tex files, thereby making the use of "@" in
@@ -2624,36 +2639,56 @@ set "tf_minlines" to the value you desire. Example: >
:let tf_minlines = your choice
-VIM *vim.vim* *ft-vim-syntax*
-
-There is a tradeoff between more accurate syntax highlighting versus
-screen updating speed. To improve accuracy, you may wish to increase
-the g:vim_minlines variable. The g:vim_maxlines variable may be used
-to improve screen updating rates (see |:syn-sync| for more on this).
-
- g:vim_minlines : used to set synchronization minlines
- g:vim_maxlines : used to set synchronization maxlines
-
-The g:vimembedscript option allows for somewhat faster loading of syntax
-highlighting for vim scripts at the expense of supporting syntax highlighting
-for external scripting languages (currently perl, python, ruby, and tcl).
-
- g:vimembedscript == 1 (default) <vim.vim> will allow highlighting
- g:vimembedscript doesn't exist of supported embedded scripting
- languages: perl, python, ruby and
- tcl.
-
- g:vimembedscript == 0 Syntax highlighting for embedded
- scripting languages will not be
- loaded.
+VIM *vim.vim* *ft-vim-syntax*
+ *g:vimsyn_minlines* *g:vimsyn_maxlines*
+There is a tradeoff between more accurate syntax highlighting versus screen
+updating speed. To improve accuracy, you may wish to increase the
+g:vimsyn_minlines variable. The g:vimsyn_maxlines variable may be used to
+improve screen updating rates (see |:syn-sync| for more on this). >
+ g:vimsyn_minlines : used to set synchronization minlines
+ g:vimsyn_maxlines : used to set synchronization maxlines
+<
+ (g:vim_minlines and g:vim_maxlines are deprecated variants of
+ these two options)
+
+ *g:vimsyn_embed*
+The g:vimsyn_embed option allows users to select what, if any, types of
+embedded script highlighting they wish to have. >
+
+ g:vimsyn_embed == 0 : don't embed any scripts
+ g:vimsyn_embed =~ 'm' : embed mzscheme (but only if vim supports it)
+ g:vimsyn_embed =~ 'p' : embed perl (but only if vim supports it)
+ g:vimsyn_embed =~ 'P' : embed python (but only if vim supports it)
+ g:vimsyn_embed =~ 'r' : embed ruby (but only if vim supports it)
+ g:vimsyn_embed =~ 't' : embed tcl (but only if vim supports it)
+<
+By default, g:vimsyn_embed is "mpPr"; ie. syntax/vim.vim will support
+highlighting mzscheme, perl, python, and ruby by default. Vim's has("tcl")
+test appears to hang vim when tcl is not truly available. Thus, by default,
+tcl is not supported for embedding (but those of you who like tcl embedded in
+their vim syntax highlighting can simply include it in the g:vimembedscript
+option).
+ *g:vimsyn_folding*
+
+Some folding is now supported with syntax/vim.vim: >
+
+ g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
+ g:vimsyn_folding =~ 'a' : augroups
+ g:vimsyn_folding =~ 'f' : fold functions
+ g:vimsyn_folding =~ 'm' : fold mzscheme script
+ g:vimsyn_folding =~ 'p' : fold perl script
+ g:vimsyn_folding =~ 'P' : fold python script
+ g:vimsyn_folding =~ 'r' : fold ruby script
+ g:vimsyn_folding =~ 't' : fold tcl script
+
+ *g:vimsyn_noerror*
Not all error highlighting that syntax/vim.vim does may be correct; VimL is a
difficult language to highlight correctly. A way to suppress error
-highlighting is to put: >
-
- let g:vimsyntax_noerror = 1
+highlighting is to put the following line in your |vimrc|: >
-in your |vimrc|.
+ let g:vimsyn_noerror = 1
+<
XF86CONFIG *xf86conf.vim* *ft-xf86conf-syntax*
@@ -3158,7 +3193,7 @@ line break.
fold *:syn-fold*
-The "fold" argument makes the fold level increased by one for this item.
+The "fold" argument makes the fold level increase by one for this item.
Example: >
:syn region myFold start="{" end="}" transparent fold
:syn sync fromstart
@@ -3320,7 +3355,7 @@ use another character that is not used in the pattern. Examples: >
:syntax region String start=+"+ end=+"+ skip=+\\"+
See |pattern| for the explanation of what a pattern is. Syntax patterns are
-always interpreted like the 'magic' options is set, no matter what the actual
+always interpreted like the 'magic' option is set, no matter what the actual
value of 'magic' is. And the patterns are interpreted like the 'l' flag is
not included in 'cpoptions'. This was done to make syntax files portable and
independent of 'compatible' and 'magic' settings.
@@ -3379,6 +3414,8 @@ Notes:
- The highlighted area will never be outside of the matched text.
- A negative offset for an end pattern may not always work, because the end
pattern may be detected when the highlighting should already have stopped.
+- Until Vim 7.2 the offsets were counted in bytes instead of characters. This
+ didn't work well for multi-byte characters.
- The start of a match cannot be in a line other than where the pattern
matched. This doesn't work: "a\nb"ms=e. You can make the highlighting
start in another line, this does work: "a\nb"hs=e.
@@ -3500,9 +3537,9 @@ single name.
remove={group-name}..
The specified groups are removed from the cluster.
-A cluster so defined may be referred to in a contains=.., nextgroup=.., add=..
-or remove=.. list with a "@" prefix. You can also use this notation to
-implicitly declare a cluster before specifying its contents.
+A cluster so defined may be referred to in a contains=.., containedin=..,
+nextgroup=.., add=.. or remove=.. list with a "@" prefix. You can also use
+this notation to implicitly declare a cluster before specifying its contents.
Example: >
:syntax match Thing "# [^#]\+ #" contains=@ThingMembers
@@ -4194,7 +4231,7 @@ WildMenu current match in 'wildmenu' completion
The 'statusline' syntax allows the use of 9 different highlights in the
statusline and ruler (via 'rulerformat'). The names are User1 to User9.
-For the GUI you can use these groups to set the colors for the menu,
+For the GUI you can use the following groups to set the colors for the menu,
scrollbars and tooltips. They don't have defaults. This doesn't work for the
Win32 GUI. Only three highlight arguments have any effect here: font, guibg,
and guifg.
diff --git a/runtime/doc/tagsrch.txt b/runtime/doc/tagsrch.txt
index d85c42563..46dc18e91 100644
--- a/runtime/doc/tagsrch.txt
+++ b/runtime/doc/tagsrch.txt
@@ -1,4 +1,4 @@
-*tagsrch.txt* For Vim version 7.1. Last change: 2006 Apr 24
+*tagsrch.txt* For Vim version 7.2a. Last change: 2006 Apr 24
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index 996bc464b..b60696897 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 7.1. Last change: 2007 May 12
+*todo.txt* For Vim version 7.2a. Last change: 2008 Jun 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -30,50 +30,125 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs*
-------------------- Known bugs and current work -----------------------
-Patch to make virtcol([123, '$']) do the right thing. (Michael Schaap)
+Have a look at patch for utf-8 line breaking. (Yongwei Wu, 2008 Mar 1, Mar 23)
-Insert mode completion: CTRL-N and CTRL-P work differently and they both don't
-work as expected. (Bernhard Walle, 2007 Feb 27)
+Drawing popup menu isn't quite right when there are double-wide characters.
+Yukihiro Nakadaira is working on a solution (2008 Jun 22). Use mb_fix_col().
-When 'rightleft' is set the completion menu is positioned wrong. (Baha-Eddine
-MOKADEM)
+When reallocating cmdline xp_pattern becomes invalid. Move expand_T xpc into
+ccline? (Dominique Pelle)
-glob() doesn't work correctly with single quotes and 'shell' set to /bin/sh.
-(Adri Verhoef, Charles Campbell 2007 Mar 26)
+Wildmenu not deleted: "gvim -u NONE", ":set nocp wildmenu cmdheight=3
+laststatus=2", CTRL-D CTRL-H CTRL-H CTRL-H. (A.Politz, 2008 April 1)
+Works OK with Vim in an xterm.
-Splitting quickfix window messes up window layout. (Marius Gedminas, 2007 Apr
-25)
+Fix for matchparen HL doesn't work. beep.
-Replace ccomplete.vim by cppcomplete.vim from www.vim.org? script 1520
-(Martin Stubenschrott)
- ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
+Crash with dragn-n-drop of file combined with netrw (Marius Gedminas, 2008 Jun
+11) I can't reproduce it.
+
+Win32: associating a type with Vim doesn't take care of space after a
+backslash? (Robert Vibrant, 2008 Jun 5)
+
+":let &g:tw = 44" sets the local option value. (Cyril Slobin, 2008 Apr 25)
+
+After using <Tab> for command line completion after ":ta blah" and getting E33
+(no tags file), further editing the command to e.g., ":echo 'blah'", the
+command is not executed.
+
+When 'bomb' is changed the window title is updated to show/hide a "+", but the
+tab page label isn't. (Patrick Texier, 2008 Jun 24)
+
+Despite adding save_subexpr() this still doesn't work properly:
+Regexp: matchlist('12a4aaa', '^\(.\{-}\)\(\%5c\@<=a\+\)\(.\+\)\?')
+Returns ['12a4', 'aaa', '4aaa'], should be ['12a4', 'aaa', '']
+Backreference not cleared when retrying after \@<= fails?
+(Brett Stahlman, 2008 March 8)
+
+Win32: remote editing fails when the current directory name contains "[".
+(Ivan Tishchenko, Liu Yubao) Suggested patch by Chris Lubinski: Avoid
+escaping characters where the backslash is not removed later. Asked Chris for
+an alternate solution, also for src/ex_getln.c.
+
+When adding path to 'tags' with a wildcard, it appears only a first match is
+used. (Erik Falor, 2008 April 18) Or is it that a wildcard in the file name
+is not supported, only in the path?
+
+The str2special() function doesn't handle multi-byte characters properly.
+Patch from Vladimir Vichniakov, 2007 Apr 24.
+Should clean up the whole function. Also allow modifiers like <S-Char-32>?
+find_special_key() also has this problem.
+
+Problem with 'langmap' parsing. (James Vega, 2008 Jan 27)
+Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
+2008 May 14)
+
+Problem with CTRL-F. (Charles Campbell, 2008 March 21)
+Only happens with "gvim -geometry "160x26+4+27" -u NONE -U NONE prop.c".
+'lines' is 54. (2008 March 27)
-Making the German sharp s uppercase doesn't work properly: one character less
-is uppercased in "gUe".
-Also: latin2 has the same character but it isn't uppercased there.
+Unexpectedly inserting a double quote. (Anton Woellert, 2008 Mar 23)
+Works OK when 'cmdheight' is 2.
+
+The utf class table is missing some entries:
+ 0x2212, minus sign
+ 0x2217, star
+ 0x2500, bar
+ 0x26ab, circle
+
+Visual line mode doesn't highlight properly when 'showbreak' is used and the
+line doesn't fit. (Dasn, 2008 May 1)
+
+GUI: In Normal mode can't yank the modeless selection. Make "gy" do this?
+Works like CTRL-Y in Command line mode.
+
+Mac: patch for mouse wheel scroll under Leopard. (Eckehard Berns, 2007 Dec 7)
Mac: After a ":vsplit" the left scrollbar doesn't appear until 'columns' is
changed or the window is resized.
-Mac: Patch for Mac GUI tabline. (Nicolas Weber, 2006 Jul 18, Update 2007 Feb)
- New update v6 ~/tmp/guitab.v6.diff (Kyle Wheeler)
+Mac: Patch for configure: remove arch from ruby link args. (Knezevic, 2008
+Mar 5) Alternative: Kazuki Sakamoto, Mar 7.
+
+":emenu" works with the translated menu name. Should also work with the
+untranslated name. Would need to store both the English and the translated
+name. Patch by Bjorn Winckler, 2008 Mar 30.
+
+C't: On utf-8 system, editing file with umlaut through Gnome results in URL
+with %nn%nn, which is taken as two characters instead of one.
+Try to reproduce at work.
+
+Patch for redo register. (Ben Schmidt, 2007 Oct 19)
+Await response to question to make the register writable.
-When 'virtualedit' is set a "p" of a block just past the end of the line
-inserts before the cursor. (Engelke)
+Problem with 'ts' set to 9 and 'showbreak' to ">>>". (Matthew Winn, 2007 Oct
+1)
+
+"vim -O aa aa" gives only one window. (Zdenek Sekera, 2008 Apr 16)
+
+Including NFA regexp code:
+Use "\%#= to set the engine: 0 = automatic, 1 = backtracking, 2 = new.
+Useful in tests.
+Performance tests:
+- ~/vim/test/veryslow.js (file from Daniel Fetchinson)
+- ~/vim/test/slowsearch
+- ~/vim/test/rgb.vim
+- search for a.*e*exn in the vim executable. Go to last line to use
+ 'hlsearch'.
Using Aap to build Vim: add remarks about how to set personal preferences.
Example on http://www.calmar.ws/tmp/aap.html
-GTK: 'bsdir' doesn't work. Sometimes get a "gtk critical error".
-Moved some code to append file name to further down in gui_gtk.c
-gui_mch_browse(), but "last" value of 'bsdir' still doesn't work.
-
-C syntax: "#define x {" The macro should terminate at the end of the line,
-not continue in the next line. (Kelvin Lee, 2006 May 24)
+Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb 26)
+Bug in using a transparent syntax region. (Hanlen in vim-dev maillist, 2007
+Jul 31)
C syntax: {} inside () causes following {} to be highlighted as error.
(Michalis Giannakidis, 2006 Jun 1)
+When 'diffopt' has "context:0" a single deleted line causes two folds to merge
+and mess up syncing. (Austin Jennings, 2008 Jan 31)
+
Gnome improvements: Edward Catmur, 2007 Jan 7
Also use Save/Discard for other GUIs
@@ -82,53 +157,62 @@ New PHP syntax file, use it? (Peter Hodge)
'foldcolumn' in modeline applied to wrong window when using a session. (Teemu
Likonen, March 19)
-Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb 26)
+Replace ccomplete.vim by cppcomplete.vim from www.vim.org? script 1520
+by Vissale Neang. (Martin Stubenschrott)
+Asked Vissale to make the scripts more friendly for the Vim distribution.
+New version received 2008 Jan 6.
+
+Cheng Fang made javacomplete. (2007 Aug 11)
+Asked about latest version: 0.77.1 is on www.vim.org.
More AmigaOS4 patches. (Peter Bengtsson, Nov 9)
-Add v:searchforward variable. Patch by Yakov Lerner, 2006 Nov 18.
+globpath() doesn't work as expected. The example shows using 'path', but the
+"**8" form and upwards search are not supported.
+
+Error when cancelling completion menu and auto-formatting. (Tim Weber, 2008
+Apr 17)
-Redraw problem in loop. (Yakov Lerner, 2006 Sep 7)
+Problem with compound words? (Bert, 2008 May 6)
+No warning for when flags are defined after they are used in an affix.
+
+With Visual selection, "r" and then CTRL-C Visual mode is stopped but the
+highlighting is not removed.
+
+Screen redrawing when continuously updating the buffer and resizing the
+terminal. (Yakov Lerner, 2006 Sept 7)
Add option settings to help ftplugin. (David Eggum, 2006 Dec 18)
-Use new dutch wordlist for spelling? http://www.opentaal.org/
-See remarks from Adri, 2007 Feb 9.
+Autoconf problem: when checking for iconv library we may add -L/usr/local/lib,
+but when compiling further tests -liconv is added without the -L argument,
+that may fail (e.g., sizeof(int)). (Blaine, 2007 Aug 21)
When opening quickfix window, disable spell checking?
+Popup menu redraw: Instead of first redrawing the text and then drawing the
+popup menu over it, first draw the new popup menu, remember its position and
+size and then redraw the text, skipping the characters under the popup menu.
+This should avoid flicker. Other solution by A.Politz, 2007 Aug 22.
+
+Spell checking: Add a way to specify punctuation characters. Add the
+superscript numbers by default: 0x2070, 0xb9, 0xb2, 0xb3, 0x2074 - 0x2079.
+
Windows 98: pasting from the clipboard with text from another application has
a trailing NUL. (Joachim Hofmann) Perhaps the length specified for CF_TEXT
isn't right?
-Win32: When 'encoding' is "latin1" 'ignorecase' doesn't work for characters
-with umlaut. (Joachim Hofmann) toupper_tab[] and tolower_tab[] are not filled
-properly?
-
Completion: Scanning for tags doesn't check for typed key now and then?
Hangs for about 5 seconds. Appears to be caused by finding include files with
"foo/**" in 'path'. (Kalisiak, 2006 July 15)
-Completion: When 'completeopt' has "longest" and there is one match the
-message is "back at original" and typing a char doesn't leave completion mode.
-(Igor Prischepoff, 2006 Oct 5)
-
-Completion: When using CTRL-X O and there is only "struct." before the cursor,
-typing one char to reduce the matches, then BS completion stops. Should keep
-completion if still no less than what we started with.
-
-Completion: don't stop completion when typing a space when completing full
-lines? Also when completing file names? Only stop completion when there are
-no matches?
-After using BS completion only stops when typing a space. Many people want to
-stop at non-word characters, e.g., '('. Add an option for this? Or check
-vim_iswordc() before calling ins_compl_addleader()?
-
-searchpos() doesn't use match under cursor at start of line. (Viktor
-Kojouharov, 2006 Nov 16)
-
-When FEAT_BYTEOFF is defined but FEAT_NETBEANS_INTG is not compiling fails.
-Add FEAT_BYTEOFF to the check at line 1180 in feature.h
+When the file name has parenthesis, e.g., "foo (bar).txt", ":!ls '%'" has the
+parenthesis escaped but not the space. That's inconsistent. Either escape
+neither or both. No escaping might be best, because it doesn't depend on
+particularities of the shell. (Zvi Har'El, 2007 Nov 10) (Teemu Likonen, 2008
+Jun 3)
+However, for backwards compatibility escaping might be necessary. Check if
+the user put quotes around the expanded item?
Color for cUserLabel should differ from case label, so that a mistake in a
switch list is noticed:
@@ -138,18 +222,27 @@ switch list is noticed:
foobar:
}
-":s" command removes combining characters. (Ron Aaron, 2006 May 17, 2006 Dec 7)
-
Look at http://www.gtk-server.org/ . It has a Vim script implementation.
+Netbeans problem. Use "nc -l 127.0.0.1 55555" for the server, then run gvim
+with "gvim -nb:localhost:55555:foo". From nc do: '1:editFile!0 "foo"'. Then
+go to Insert mode and add a few lines. Then backspacing every other time
+moves the cursor instead of deleting. (Chris Kaiser, 2007 Sep 25)
+
+Redraw problem when appending digraph causes line to wrap. (James Vega, 2007
+Sep 18)
+
Changes for Win32 makefile. (Mike Williams, 2007 Jan 22, Alexei Alexandrov,
2007 Feb 8)
Patch for Win32 clipboard under Cygwin. (Frodak Baksik, Feb 15)
Sutcliffe says it works well.
+ Update 2007 May 22 for Vim 7.1
Win32: Patch for convert_filterW(). (Taro Muraoka, 2007 Mar 2)
+Win32: Patch for cscope external command. (Mike Williams, 2007 Aug 7)
+
Win32: XPM support only works with path without spaces. Patch by Mathias
Michaelis, 2006 Jun 9. Another patch for more path names, 2006 May 31.
New version: http://members.tcnet.ch/michaelis/vim/patches.zip (also for other
@@ -166,12 +259,14 @@ Win16: include patches to make Win16 version work. (Vince Negri, 2006 May 22)
Win32: after "[I" showing matches, scroll wheel messes up screen. (Tsakiridis,
2007 Feb 18)
+Patch by Alex Dobrynin, 2007 Jun 3. Also fixes other scroll wheel problems.
Win32: using CTRL-S in Insert mode doesn't remove the "+" from the tab pages
label. (Tsakiridis, 2007 Feb 18)
-Win32: remote editing doesn't work when the current directory name contains
-"[]". (Ivan Tishchenko, 2007 March 1)
+Win32: using "gvim --remote-tab-silent fname" sometimes gives an empty screen
+with the more prompt. Caused by setting the guitablabel? (Thomas Michael
+Engelke, 2007 Dec 20 - 2008 Jan 17)
Win64: diff.exe crashes on Win64. (Julianne Bailey, 2006 Dec 12)
Build another diff.exe somehow?
@@ -179,48 +274,46 @@ Build another diff.exe somehow?
Win64: Seek error in swap file for a very big file (3 Gbyte). Check storing
pointer in long and seek offset in 64 bit var.
-When doing "gvim --remote-tab foo" while gvim is minimized the tab pages line
-only shows the current label, not the others.
+Win32: patch for fullscreen mode. (Liushaolin, 2008 April 17)
-Problem finding swap file for recovery. (Gautam Iyer, 2006 May 16)
+Pressing the 'pastetoggle' key doesn't update the statusline. (Jan Christoph
+Ebersbach, 2008 Feb 1)
+
+Menu item that does "xxd -r" doesn't work when 'fileencoding' is utf-16.
+Check for this and use iconv? (Edward L. Fox, 2007 Sep 12)
+Does the conversion in the other direction work when 'filenecodings' is set
+properly?
-When setting 'keymap' twice the b:keymap_name variable isn't set. (Milan
-Berta, 2007 Mar 9) Has something to do with 'iminsert'.
+Cursor displayed in the wrong position when using 'numberwidth'. (James Vega,
+2007 Jun 21)
-Problem with CursorHoldI? (Max Dyckhoff, 2006 Nov 10)
+When $VAR contains a backslash expand('$VAR') removes it. (Teemu Likonen, 2008
+Jun 18)
+
+If the variable "g:x#y#z" exists completion after ":echo g:x#" doesn't work.
+
+F1 - F4 in an xterm produce a different escape sequence when used with a
+modifier key. Need to catch three different sequences. Use K_ZF1, like
+K_ZHOME? (Dickey, 2007 Dec 2)
+
+Problem finding swap file for recovery. (Gautam Iyer, 2006 May 16)
UTF-8: mapping a multi-byte key where the second byte is 0x80 doesn't appear
to work. (Tony Mechelynck, 2007 March 2)
-The str2special() function doesn't handle multi-byte characters properly.
-Patch from Vladimir Vichniakov, 2007 Apr 24.
-find_special_key() also has this problem.
-
In debug mode, using CTRL-R = to evaluate a function causes stepping through
the function. (Hari Krishna Dara, 2006 Jun 28)
-":let &shiftwidth = 'asdf'" doesn't produce an error message.
-
C++ indenting wrong with "=". (James Kanze, 2007 Jan 26)
-"zug" reports wrong file. problem with Namebuff? (Lawrence Kesteloot, 2006 Sep
-10)
-
":lockvar" should use copyID to avoid endless loop.
-Patch to use xterm mouse codes for screen. (Micah Cowan, 2007 May 8)
+When using --remote-silent and the file name matches 'wildignore' get an E479
+error. without --remoete-silent it works fine. (Ben Fritz, 2008 Jun 20)
Gvim: dialog for closing Vim should check if Vim is busy writing a file. Then
use a different dialog: "busy saving, really quit? yes / no".
-Win32: editing remote file d:\a[1]\aa.txt doesn't work. (Liu Yubao, 2006 May
-29)
-
-"zw" doesn't appear to work. (Luis A Florit, 2006 Jun 23, 24)
-
-"dw" in a line with one character deletes the line. Vi and nvi don't do this.
-Is it intentional or not? (Kjell Arne Rekaa)
-
Check other interfaces for changing curbuf in a wrong way. Patch like for
if_ruby.c.
@@ -232,26 +325,24 @@ character, don't offer "ignore" and "add to word list".
The need_fileinfo flag is messy. Instead make the message right away and put
it in keep_msg?
-More-prompt is skipped when doing this; (Randall W. Morris, Jun 17)
- :au
- <Space>
- b
- <Space>
-
Editing a file remotely that matches 'wildignore' results in a "no match"
error. Should only happen when there are wildards, not when giving the file
name literally, and esp. if there is only one name.
-When 'expandtab' is set then a Tab copied for 'copyindent' is expanded to
-spaces, even when 'preserveindent' is set. (Alexei Alexandrov, Mar 7)
-
Test 61 fails sometimes. This is a timing problem: "sleep 2" sometimes takes
longer than 2 seconds.
+Changing 'guifont' in the console causes an uneccessary redraw.
+
+"vim -C" often has 'nocompatible', because it's set in some startup script.
+Set 'compatible' after startup is done? Patch by James Vega, 2008 Feb 7.
+
VMS: while editing a file found in complex, Vim will save file into the first
directory of the path and not to the original location of the file.
(Zoltan Arpadffy)
+VMS: VFC files are in some cases truncated during reading (Zoltan Arpadffy)
+
input() completion should not insert a backslash to escape a space in a file
name?
@@ -260,10 +351,6 @@ element. setpos() could accept an optional fifth element.
Ruby completion is insecure. Can this be fixed?
-":confirm w" does give a prompt when 'readonly' is set, but not when the file
-permissions are read-only. Both can be overruled by ":w!" thus it would be
-logical to get a prompt for both. (Michael Schaap)
-
When 'backupskip' is set from $TEMP special characters need to be escaped.
(patch by Grembowietz, 2007 Feb 26, not quite right)
Another problem is that file_pat_to_reg_pat() doesn't recognize "\\", so "\\("
@@ -278,9 +365,10 @@ Substituting an area with a line break with almost the same area does change
the Visual area. Can this be fixed? (James Vega, 2006 Sept 15)
Windows installer could add a "open in new tab of existing Vim" menu entry.
-
-:s/e/E/l not only lists but also shows line number. Is that right?
-(Yakov Lerner, 2006 Jul 27)
+Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
+Just have two choices, always using one Vim and selecting between using an
+argument list or opening each file in a separate tab.
+(Erik Falor, 2008 May 21)
GUI: When combining fg en bg make sure they are not equal.
@@ -289,22 +377,27 @@ Jun 5)
Mac: Using gvim: netrw window disappears. (Nick Lo, 2006 Jun 21)
-When 'bomb' is set or reset the file should be considered modified. (Tony
-Mechelynck) Handle like 'endofline'.
-
Add an option to specify the character to use when a double-width character is
moved to the next line. Default '>', set to a space to blank it out. Check
that char is single width when it's set (compare with 'listchars').
-Update main.aap for installing on the Mac.
-
The generated vim.bat can avoid the loop for NT. (Carl Zmola, 2006 Sep 3)
Session file creation: 'autochdir' causes trouble. Keep it off until after
loading all files.
-C completion: doesn't work after aa[0]->, where aa is an array of structures.
-(W. de Hoog, 2006 Aug 12)
+When showing a diff between a non-existant file and an existing one, with the
+cursor in the empty buffer, the other buffer only shows the last line. Change
+the "insert" into a change from one line to many? (Yakov Lerner, 2008 May 27)
+
+Add autocommand for when a tabpage is being closed. Also for when a tab page
+has been created.
+
+Using ":make" blocks Vim. Allow running one make in the background (if the
+shell supports it), catch errors in a file and update the error list on the
+fly. A bit like "!make > file&" and repeating ":cf file". ":bgmake",
+background make. ":bgcancel" interrupts it.
+A.Politz may work on this.
The spellfile plugin checks for a writable "spell" directory. A user may have
a writable runtime directory without a "spell" directory, it could be created
@@ -327,6 +420,13 @@ previous version.
For Aap: include a config.arg.example file with hints how to use config.arg.
+Command line completion when 'cmdheight' is maximum and 'wildmenu' is set,
+only one buffer line displayed, causes display errors.
+
+Completing with 'wildmenu' and using <Up> and <Down> to move through directory
+tree stops unexpectedly when using ":cd " and entering a directory that
+doesn't contain other directories.
+
Linux distributions:
- Suggest compiling xterm with --enable-tcap-query, so that nr of colors is
known to Vim. 88 colors instead of 16 works better. See ":help
@@ -348,9 +448,6 @@ Accessing file#var in a function should not need the g: prepended.
When ":cn" moves to an error in the same line the message isn't shortened.
Only skip shortening for ":cc"?
-Win32: The matchparen plugin doesn't update the match when scrolling with the
-mouse wheel. (Ilya Bobir, 2006 Jun 27)
-
Write "making vim work better" for the docs (mostly pointers): *nice*
- sourcing $VIMRUNTIME/vimrc_example.vim
- setting 'mouse' to "a"
@@ -362,6 +459,15 @@ Campbell 2006 Jul 06.
Syntax HL error caused by "containedin". (Peter Hodge, 2006 Oct 6)
+":help s/~" jumps to *s/\~*, while ":help s/\~" doesn't find anything. (Tim
+Chase)
+
+A custom completion function in a ":command" cannot be a Funcref. (Andy
+Wokula, 2007 Aug 25)
+
+Problem with using :redir in user command completion function? (Hari Krishna
+Dara, 2006 June 21)
+
GTK: When maximizing Vim the result is slightly smaller, the filler border is
not there, and the "maximize" button is still there. Clicking it again does
give a maximized window. (Darren Hiebert)
@@ -374,21 +480,20 @@ GDK_WINDOW_STATE_MAXIMIZED) and set it again?
Another resizing problem when setting 'columns' and 'lines' to a very large
number. (Tony Mechelynck, 2007 Feb 6)
-Problem with using :redir in user command completion function? (Hari Krishna
-Dara, 2006 June 21)
+GTK: when using the -geom argument with an offset from the right edge and the
+size is smaller than the default, the Vim window is not positioned properly.
+
+GTK: when editing a directory with the netrw plugin in a terminal and doing
+":gui" Vim hangs in obtaining the selection. Workaround patch 7.1.209 is a
+hack (timeout after 3 seconds). Why don't we get the selection here?
After starting Vim, using '0 to jump somewhere in a file, ":sp" doesn't center
the cursor line. It works OK after some other commands.
-Screen redrawing when continuously updating the buffer and resizing the
-terminal. (Yakov Lerner, 2006 Sept 7)
-
Win32: Is it possible to have both postscript and Win32 printing?
Does multi-byte printing with ":hardcopy" work? Add remark in documentation
about this.
-'thesaurus' doesn't work when 'infercase' is set. (Mohsin, 2006 May 30)
-
There should be something about spell checking in the user manual.
Check: Running Vim in a console and still having connect to the X server for
@@ -401,28 +506,22 @@ Jul 26, Gary Johnson)
In the Netbeans interface add a "vimeval" function, so that the other side can
check the result of has("patch13").
-":py" asks for an argument, ":py asd" then gives the error that ":py" isn't
-implemented. Should already happen for ":py".
-
Add command modifier that skips wildcard expansion, so that you don't need to
put backslashes before special chars, only for white space.
-Win32 GUI: confirm() with zero default should not have a choice selected.
-
Win32: When the GUI tab pages line is displayed Vim jumps from the secondary
to the primary monitor. (Afton Lewis, 2007 Mar 9) Old resizing problem?
-GTK GUI: When the completion popup menu is used scrolling another window by
-the scrollbar is OK, but using the scroll wheel it behaves line <Enter>.
-
-"cit" used on <foo></foo> deletes <foo>. Should not delete anything and start
-insertion, like "ci'" does on "". (Michal Bozon)
-
-Allow more than 3 ":match" items.
+GTK: when the Tab pages bar appears or disappears while the window is
+maximized the window is no longer maximized. Patch that has some idea but
+doesn't work from Geoffrey Antos, 2008 May 5.
The magic clipboard format "VimClipboard2" appears in several places. Should
be only one.
+"vim -C" often has 'nocompatible', because it's set somewhere in a startup
+script. Do "set compatible" after startup?
+
It's difficult to debug numbered functions (function in a Dictionary). Print
the function name before resolving it to a number?
let d = {}
@@ -433,62 +532,76 @@ the function name before resolving it to a number?
Add a mark for the other end of the Visual area (VIsual pos). '< and '> are
only set after Visual moded is ended.
+Also add a variable for the Visual mode. So that this mode and '< '> can be
+used to set what "gv" selects. (Ben Schmidt)
+
+Win32: When running ":make" and 'encoding' differs from the system locale, the
+output should be converted. Esp. when 'encoding' is "utf-8". (Yongwei Wu)
+Should we use 'termencoding' for this?
+
+Win32, NTFS: When editing an specific infostream directly and 'backupcopy' is
+"auto" should detect this situation and work like 'backupcopy' is "yes". File
+name is something like "c:\path\foo.txt:bar", includes a colon. (Alex
+Jakushev, 2008 Feb 1)
Small problem displaying diff filler line when opening windows with a script.
(David Luyer, 2007 Mar 1 ~/Mail/oldmail/mool/in.15872 )
-When pattern for ":sort" is empty, use last search pattern. Allows trying out
-the pattern first. (Brian McKee)
-
Is it allowed that 'backupext' is empty? Problems when backup is in same dir
as original file? If it's OK don't compare with 'patchmode'. (Thierry Closen)
Patch for supporting count before CR in quickfix window. (AOYAMA Shotaro, 2007
Jan 1)
-Patch for adding ":lscscope". (Navdeep Parhar, 2007 Apr 26; update Apr 28)
+Patch for adding ":lscscope". (Navdeep Parhar, 2007 Apr 26; update 2008 Apr
+23)
-Patch for improving regexp speed by not freeing memory. (Alexei Alexandrov,
-2007 Feb 6)
+":mkview" isn't called with the right buffer argument. Happens when using
+tabs and the autocommand "autocmd BufWinLeave * mkview". (James Vega, 2007
+Jun 18)
xterm should be able to pass focus changes to Vim, so that Vim can check for
buffers that changed. Perhaps in misc.c, function selectwindow().
Xterm 224 supports it!
-Omni completion takes the wrong structure for variable arguments. (Bill
-McCarthy, 2007 Feb 18)
-
When completing from another file that uses a different encoding completion
text has the wrong encoding. E.g., when 'encoding' is utf-8 and file is
latin1. Example from Gombault Damien, 2007 Mar 24.
-Completing ":echohl" argument should include "None". (Ori Avtalion)
+Is it possible to use "foo#var" instead of "g:foo#var" inside a function?
+
+Syntax HL: When using "nextgroup" and the group has an empty match, there is
+no search at that position for another match. (Lukas Mai, 2008 April 11)
+Spell menu: When using the Popup menu to select a replacement word,
+":spellrepeat" doesn't work. SpellReplace() uses setline(). Can it use "z="
+somehow? Or use a new function.
-Vim 7.2:
-- Search offset doesn't work for multibyte character. Patch from Yukihiro
- Nakadaira, 2006 Jul 18.
- Changes the offset from counting bytes to counting characters.
-- Rename the tutor files from tutor.gr.* to tutor.el.*. Greece vs Greek.
- Make all tutor files available in utf-8.
-- Remove ! for ":cgetfile" and ":lgetfile". (patch from Yegappan Lakshmanan,
- 2007 Mar 9)
+In gvim the backspace key produces a backspace character, but on Linux the
+VERASE key is Delete. Set VERASE to Backspace? (patch by Stephane Chazelas,
+2007 Oct 16)
+
+TermResponse autocommand isn't always triggered when using vimdiff. (Aron
+Griffis, 2007 Sep 19)
+
+Patch for supporting #rrggbb in color terminals. (Matt Wozniski)
+
+Create a gvimtutor.1 file and change Makefiles to install it.
+
+
+Vim 7.3:
+- Add patch for 'relativenumber' option? Markus Heidelberg, 2008 Feb 21
- Add blowfish encryption. Openssl has an implementation. Also by Paul
Kocher (LGPL), close to original. Mohsin also has some ideas.
Take four bytes and turn them into unsigned to avoid byte-order problems.
Need to buffer up to 7 bytes to align on 8 byte boundaries.
-- Rename doc/sql.vim doc/ft_sql.vim.
-- Change "command-line" to "[Command Line]" for the command line buffer
- name in ex_window().
-- Move including fcntl.h to vim.h, before O_NOFOLLOW, and remove it from all
- .c files.
- ":{range}source": source the lines from the file.
You can already yank lines and use :@" to execute them.
Most of do_source() would not be used, need a new function.
It's easy when not doing breakpoints or profiling.
-Patches:
+More patches:
- Add 'cscopeignorecase' option. (Liang Wenzhi, 2006 Sept 3)
- Argument for feedkeys() to prepend to typeahead (Yakov Lerner, 2006 Oct
21)
@@ -503,7 +616,8 @@ Patches:
- ml_append_string(): efficiently append to an existing line. (Brad
Beveridge, 2006 Aug 26) Use in some situations, e.g., when pasting a
character at a time?
-- gettabvar() and settabvar() functions. (Yegappan Lakshmanan, 2006 Sep 8)
+- gettabvar() and settabvar() functions. (Yegappan Lakshmanan, 2007 Sep 13,
+ 2008 Jun 12)
- recognize hex numbers better. (Mark Manning, 2006 Sep 13)
@@ -520,7 +634,7 @@ Awaiting updated patches:
- when 'macatsui' is off should we always convert to "macroman" and ignore
'termencoding'?
9 HTML indenting can be slow. Caused by using searchpair(). Can search()
- be used instead?
+ be used instead? A.Politz is looking into a solution.
8 Win32: Add minidump generation. (George Reilly, 2006 Apr 24)
8 Add ":n" to fnamemodify(): normalize path, remove "../" when possible.
Aric Blumer has a patch for this. He will update the patch for 6.3.
@@ -528,8 +642,7 @@ Awaiting updated patches:
Update 2004 Sep 6.
How does this work? Missing comments.
- Patch for 'breakindent' option: repeat indent for wrapped line. (Vaclav
- Smilauer, 2004 Sep 13, fix Oct 31)
- Asked for improvements 2004 Dec 20.
+ Smilauer, 2004 Sep 13, fix Oct 31, update 2007 May 30)
8 Add a few more command names to the menus. Patch from Jiri Brezina
(28 feb 2002). Will mess the translations...
7 ATTENTION dialog choices are more logical when "Delete it' appears
@@ -566,7 +679,9 @@ Awaiting updated patches:
Tcl implementation ~/vim/HierAssist/ )
taglist() add argument to specify maximum number of matches.
useful for interactive things or completion.
-7 Make globpath() also work with upwards search. (Brian Medley)
+ col('^') column of first non-white character.
+ Can use "len(substitute(getline('.'), '\S.*', '', ''))
+ + 1", but that's ugly.
7 Add patch from Benoit Cerrina to integrate Vim and Perl functions
better. Now also works for Ruby (2001 Nov 10)
- Patch from Herculano de Lima Einloft Neto for better formatting of the
@@ -727,8 +842,6 @@ Win32 GUI known bugs:
console, go back to Vim and click "reload" in the dialog for the changed
file: Window moves with the cursor!
Put focus event in input buffer and let generic Vim code handle it?
-8 When activating the Vim window with mouse click, don't move cursor to
- mouse position. Catch WM_MOUSEACTIVATE. (Luevelsmeyer)
8 Win32: When mouse is hidden and in the toolbar, moving it won't make it
appear. (Sami Salonen)
8 Win32 GUI: With maximized window, ":set go-=r" doesn't use the space that
@@ -1069,10 +1182,10 @@ Macintosh:
"Small" problems:
+- Can't disable terminal flow control, to enable the use of CTRL-S and
+ CTRL-Q. Add an option for it?
- When using e_secure in do_one_cmd() mention the command being executed,
otherwise it's not clear where it comes from.
-8 When disabling FEAT_CMDL_COMPL compilation fails. Would need to avoid
- using parse_compl_arg() in eval.c and uc_scan_attr().
9 For Turkish vim_tolower() and vim_toupper() also need to use utf_
functions for characters below 0x80. (Sertacyildiz)
9 When the last edited file is a help file, using '0 in a new Vim doesn't
@@ -1133,7 +1246,6 @@ Macintosh:
delay should not be interpreted as a keycode. (Hans Ginzel)
7 ":botright 1 new" twice causes all window heights to be changed. Make the
bottom window only bigger as much as needed.
-7 "[p" doesn't work in Visual mode. (David Brown)
7 The Cygwin and MingW makefiles define "PC", but it's not used anywhere.
Remove? (Dan Sharp)
9 User commands use the context of the script they were defined in. This
@@ -1144,9 +1256,6 @@ Macintosh:
8 The Japanese message translations for MS-Windows are called ja.sjis.po,
but they use encoding cp932. Rename the file and check that it still
works.
-9 When a syntax region does not use "keepend" and a contained item does use
- "extend", this makes the outer region stop at the end of the contained
- region. (Lutz Eymers) Another example Nov 14 2002.
8 A very long message in confirm() can't be quit. Make this possible with
CTRL-C.
7 clip_x11_own_selection() uses CurrentTime, that is not allowed. VNC X
@@ -1163,8 +1272,6 @@ Macintosh:
9 When "$" is in 'cpoptions' and folding is active, a "C" command changes
the folds and resets w_lines_valid. The display updating doesn't work
then. (Pritesh Mistry)
-8 ":s!from!to!" works, but ":smagic!from!to!" doesn't. It sees the "!" as a
- flag to to the command. Same for ":snomagic". (Johan Spetz)
8 Using ":s" in a function changes the previous replacement string. Save
"old_sub" in save_search_patterns()?
8 Should allow multi-byte characters for the delimiter: ":s+a+b+" where "+"
@@ -1176,8 +1283,6 @@ Macintosh:
9 When getting focus while writing a large file, could warn for this file
being changed outside of Vim. Avoid checking this while the file is being
written.
-9 The "Error detected while processing modelines" message should have an
- error number.
7 The message in bt_dontwrite_msg() could be clearer.
8 The script ID that is stored with an option and displayed with ":verbose
set" isn't reset when the option is set internally. For example when
@@ -1517,6 +1622,7 @@ Documentation:
look at the help for 'winaltkeys'.
7 Add a help.vim plugin that maps <Tab> to jump to the next tag in || and
<C-Tab> (and <S-Tab>) to the previous tag.
+ Patch by Balazs Kezes, 2007 Dec 30. Remark from A. Politz.
- Check text editor compendium for vi and Vim remarks.
@@ -1610,6 +1716,8 @@ Spell checking:
- Considering Hunspell 1.1.4:
What does MAXNGRAMSUGS do?
Is COMPLEXPREFIXES necessary when we have flags for affixes?
+- Support spelling words in CamelCase as if they were two separate words.
+ Requires some option to enable it. (Timothy Knox)
- There is no Finnish spell checking file. For openoffic Voikko is now
used, which is based on Malaga: http://home.arcor.de/bjoern-beutel/malaga/
(Teemu Likonen)
@@ -1675,6 +1783,8 @@ Spell checking:
http://spellchecker.mozdev.org/source.html
http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/
author: Kevin Hendricks <kevin.hendricks@sympatico.ca>
+8 It is currently not possible to mark "can not" as rare, because "can" and
+ "not" are good words. Find a way to let "rare" overrule "good"?
8 Make "en-rare" spell file? Ask Charles Campbell.
8 The English dictionaries for different regions are not consistent in their
use of words with a dash.
@@ -1686,6 +1796,8 @@ Spell checking:
Diff mode:
+9 Instead invoking an external diff program, use builtin code. One can be
+ found here: http://www.ioplex.com/~miallen/libmba/dl/src/diff.c
8 Use diff mode to show the changes made in a buffer (compared to the file).
Use an unnamed buffer, like doing:
new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
@@ -1767,6 +1879,9 @@ Multi-byte characters:
More generic solution: support a filter (e.g., by calling a function).
8 When a file was converted from 'fileencoding' to 'encoding', a tag search
should also do this on the search pattern. (Andrzej M. Ostruszka)
+8 When filtering changes the encoding 'fileencoding' may not work. E.g.,
+ when using xxd and 'fileencoding' is "utf-16". Add an option to set a
+ different fileencoding for filter output?
7 When converting a file fails, mention which byte could not be converted,
so that the user can fix the problem.
8 Add configure option to be able to disable using the iconv library. (Udo
@@ -1775,7 +1890,14 @@ Multi-byte characters:
8 Should add test for using various commands with multi-byte characters.
8 'infercase' doesn't work with multi-byte characters.
8 toupper() function doesn't handle byte count changes.
-7 When searching, should order of composing characters be ignored?
+7 Searching and composing characters:
+ When searching, should order of composing characters be ignored?
+ Add special item to match with a composing character, zero-width, so that
+ one can replace a base character and keep the composing characters.
+ Add a special item to match with a composing character, so that composing
+ characters can be manipulated.
+ Add a modifier to ignore composing characters, only compare base
+ characters. Useful for Hebrew (Ron Aaron)
8 Should implement 'delcombine' for command line editing.
8 Detect overlong UTF-8 sequences and handle them like illegal bytes.
8 ":s/x/\u\1/" doesn't work, making uppercase isn't done for multi-byte
@@ -2003,6 +2125,8 @@ Syntax highlighting:
Built-in script language:
+8 Make the filename and line number available to script functions, so that
+ they can give useful debugging info. The whole call stack would be ideal.
7 Execute a function with standard option values. No need to save and
restore option values. Especially useful for new options. Problem: how
to avoid a performance penalty (esp. for string options)?
@@ -2067,6 +2191,8 @@ Built-in script language:
shorten(fname) shorten a file name, like home_replace()
perl(cmd) call Perl and return string
inputrl() like input() but right-to-left
+ typed() return the characters typed and consumed (to
+ find out what happened)
virtualmode() add argument to obtain whether "$" was used in
Visual block mode.
getacp() Win32: get codepage (Glenn Maynard)
@@ -2250,8 +2376,6 @@ Messages:
When switching to another file and screen scrolls because of the long
message and return must be typed, don't scroll the screen back before
redrawing.
-7 Add an option, which is a regexp, that disables warning messages which
- match that regexp (Tsirkin).
8 When address range is wrong you only get "Invalid range". Be a bit more
specific: Negative, beyond last line, reverse range? Include the text.
8 Make it possible to ignore errors for a moment ('errorignore'?). Another
@@ -2661,6 +2785,8 @@ Insert mode completion/expansion:
Requires remembering a number of insertions.
8 Add 'f' flag to 'complete': Expand file names.
Also apply 'complete' to whole line completion.
+- Add a flag to 'complete' to only scan local header files, not system
+ header files. (Andri Moell)
- Make it possible to search include files in several places. Use the
'path' option? Can this be done with the dictionary completion (use
wildcards in the file name)?
@@ -2720,11 +2846,14 @@ Command line editing:
Command line completion:
+8 Completing ":r ~br" should find matching user names.
8 Change expand_interactively into a flag that is passed as an argument.
8 With command line completion after '%' and '#', expand current/alternate
file name, so it can be edited. Also with modifiers, such as "%:h".
8 When completing command names, either sort them on the long name, or list
them with the optional part inside [].
+8 Add an option to ignore case when doing interactive completion. So that
+ ":e file<Tab>" also lists "Filelist" (sorted after matching case matches).
7 Completion of ":map x ": fill in the current mapping, so that it can be
edited. (Sven Guckes)
- For 'wildmenu': Simplify "../bar" when possible.
@@ -2769,6 +2898,9 @@ Insert mode:
Perhaps it can be allowed a single time, to be able to do
"<C-O>10axyz<Esc>". Nesting this further is confusing.
":map <F2> 5aabc<Esc>" works only once from Insert mode.
+8 When using CTRL-G CTRL-O do like CTRL-\ CTRL-O, but when returning with
+ the cursor in the same position and the text didn't change continue the
+ same change, so that "." repeats the whole insert.
7 Use CTRL-G <count> to repeat what follows. Useful for inserting a
character multiple times or repeating CTRL-Y.
7 Use 'matchpairs' for 'showmatch': When inserting a character check if it
@@ -2790,7 +2922,14 @@ Insert mode:
'cindent', 'smartindent':
+9 ") :" confuses continuation line: (Colin Bennett, 2007 Dec 14)
+ cout << "a"
+ << ") :"
+ << "y";
8 Lisp indenting: "\\" confuses the indenter. (Dorai Sitaram, 2006 May 17)
+8 Why are continuation lines outside of a {} block not indented? E.g.:
+ long_type foo =
+ value;
8 Java: Inside an anonymous class, after an "else" or "try" the indent is
too small. (Vincent Bergbauer)
Problem of using {} inside (), 'cindent' doesn't work then.
@@ -2893,6 +3032,7 @@ Virtual edit:
Text objects:
+8 Add text object for fold, so that it can be yanked when it's open.
8 Add test script for text object commands "aw", "iW", etc.
8 Add text object for part of a CamelHumpedWord and under_scored_word.
(Scott Graham) "ac" and "au"?
@@ -2903,7 +3043,8 @@ Text objects:
8 Add text object for any kind of parens, also multi-byte ones.
7 Add text object for current search pattern: "a/" and "i/". Makes it
possible to turn text highlighted for 'hlsearch' into a Visual area.
-8 Add a way to make an ":omap" for a user-defined text object.
+8 Add a way to make an ":omap" for a user-defined text object. Requires
+ changing the starting position in oap->start.
8 Add "gp" and "gP" commands: insert text and make sure there is a single
space before it, unless at the start of the line, and after it, unless at
the end of the line or before a ".".
@@ -2990,6 +3131,7 @@ More advanced repeating commands:
- Add "." command for visual mode: redo last visual command (e.g. ":fmt").
7 Repeating "d:{cmd}" with "." doesn't work. (Benji Fisher) Somehow remember
the command line so that it can be repeated?
+- Add "gn": repeat last movement command. Including count.
- Add "." command after operator: repeat last command of same operator. E.g.
"c." will repeat last change, also when "x" used since then (Webb).
"y." will repeat last yank.
@@ -3136,24 +3278,29 @@ Searching:
"\d".
7 Add a way to specify characters in <C-M> or <Key> form. Could be
\%<C-M>.
-8 Flags that apply to the whole pattern.
- This works for all places where a regexp is used.
- Add "\q" to not store this pattern as the last search pattern?
8 Add an argument after ":s/pat/str/" for a range of matches. For example,
":s/pat/str/#3-4" to replace only the third and fourth "pat" in a line.
+8 When 'iskeyword' is changed the matches from 'hlsearch' may change. (Benji
+ Fisher) redraw if some options are set while 'hlsearch' is set?
8 Add an option not to use 'hlsearch' highlighting for ":s" and ":g"
commands. (Kahn) It would work like ":noh" is used after that command.
Also: An extra flag to do this once, and a flag to keep the existing
search pattern.
+- Make 'hlsearch' a local/global option, so that it can be disabled in some
+ of the windows.
- Add \%h{group-name}; to search for a specific highlight group.
Add \%s{syntax-group}; to search for a specific syntax group.
- Support Perl regexp. Use PCRE (Perl Compatible RE) package. (Shade)
Or translate the pattern to a Vim one.
Don't switch on with an option for typed commands/mappings/functions, it's
too confusing. Use "\@@" in the pattern, to avoid incompatibilities.
-7 Add POSIX regexp, like Nvi, with 'extended' option? It's like very-magic.
+8 Add a way to access the last substitute text, what is used for ":s//~/".
+ Can't use the ~ register, it's already used for drag & drop.
- Remember flags for backreferenced items, so that "*" can be used after it.
Check with "\(\S\)\1\{3}". (Hemmerling)
+8 Flags that apply to the whole pattern.
+ This works for all places where a regexp is used.
+ Add "\q" to not store this pattern as the last search pattern?
- Add flags to search command (also for ":s"?):
i ignore case
I use case
@@ -3206,11 +3353,18 @@ Searching:
Undo:
+9 After undo/redo, in the message show whether the buffer is modified or
+ not.
8 Undo tree: visually show the tree somehow (Damian Conway)
Show only the leaves, indicating how many changed from the branch and the
timestamp?
Put branch with most recent change on the left, older changes get more
indent?
+8 See ":e" as a change operation, find the changes and add them to the
+ undo info. Also be able to undo the "Reload file" choice for when a file
+ was changed outside of Vim.
+ Would require doing a diff between the buffer text and the file and
+ storing the differences.
8 Search for pattern in undo tree, showing when it happened and the text
state, so that you can jump to it.
- Persistent undo: store undo in a file.
@@ -3218,8 +3372,6 @@ Undo:
before some time/date can be flushed. 'undopersist' gives maximum time to
keep undo: "3h", "1d", "2w", "1y", etc. For the file use dot and
extension: ".filename.un~" (like swapfile but "un~" instead of "swp").
-8 See ":e" as a change operation, find the changes and add them to the
- undo info. Needed for when an external tool changes the file.
- Make it possible to undo all the commands from a mapping, including a
trailing unfinished command, e.g. for ":map K iX^[r".
- When accidentally hitting "R" instead of Ctrl-R, further Ctrl-R is not
@@ -3318,6 +3470,7 @@ Viminfo:
name. (Schild)
8 Keep the last used directory of the file browser (File/Open menu).
8 Remember the last used register for "@@".
+8 Remember the redo buffer, so that "." works after restarting.
8 Remember a list of last accessed files. To be used in the
"File.Open Recent" menu. Default is to remember 10 files or so.
Also remember which files have been read and written. How to display
@@ -3336,6 +3489,11 @@ Modelines:
8 Before trying to execute a modeline, check that it looks like one (valid
option names). If it's very wrong, silently ignore it.
Ignore a line that starts with "Subject: ".
+- Add an option to whitelist options that are allowed in a modeline. This
+ would allow careful users to use modelines, e.g., only allowing
+ 'shiftwidth'.
+- Add an option to let modelines only set local options, not global ones
+ such as 'encoding'.
- When an option value is coming from a modeline, do not carry it over to
another edited file? Would need to remember the value from before the
modeline setting.
@@ -3417,6 +3575,7 @@ Multiple Windows:
Marks:
+8 Add ten marks for last changed files: ':0, ':1, etc. One mark per file.
8 When cursor is first moved because of scrolling, set a mark at this
position. (Rimon Barr) Use '-.
8 Add a command to jump to a mark and make the motion inclusive. g'm and g`m?
@@ -3520,7 +3679,6 @@ Mouse support:
8 Add 'mouse' flag, which sets a behavior like Visual mode, but automatic
yanking at the button-up event. Or like Select mode, but typing gets you
out of Select mode, instead of replacing the text. (Bhaskar)
-7 Checkout sysmouse() for FreeBSD console mouse support.
- Implement mouse support for the Amiga console.
- Using right mouse button to extend a blockwise selection should attach to
the nearest corner of the rectangle (four possible corners).
@@ -3575,6 +3733,8 @@ Debug mode:
Various improvements:
+8 ":sign unplace * file={filename}" should work. Also: ":sign unplace *
+ buffer={bufnr}". So one can remove all signs for one file/buffer.
7 Add plugins for formatting? Should be able to make a choice depending on
the language of a file (English/Korean/Japanese/etc.).
Setting the 'langformat' option to "chinese" would load the
@@ -3582,6 +3742,7 @@ Various improvements:
The plugin would set 'formatexpr' and define the function being called.
Edward L. Fox explains how it should be done for most Asian languages.
(2005 Nov 24)
+ Alternative: patch for utf-8 line breaking. (Yongwei Wu, 2008 Feb 23)
7 [t to move to previous xml/html tag (like "vatov"), ]t to move to next
("vatv").
7 [< to move to previous xml/html tag, e.g., previous <li>. ]< to move to
@@ -3601,6 +3762,8 @@ Various improvements:
7 Support using ":vert" with User commands. Add expandable items <vert>.
Do the same for ":browse" and ":confirm"?
For ":silent" and ":debug" apply to the whole user command.
+ More general: need a way to access command modifiers in a user command.
+ Assign them to a v: variable?
7 Allow a window not to have a statusline. Makes it possible to use a
window as a buffer-tab selection.
7 Add an invisible buffer which can be edited. For use in scripts that want
diff --git a/runtime/doc/usr_04.txt b/runtime/doc/usr_04.txt
index 8f785be63..b8f9c4ddb 100644
--- a/runtime/doc/usr_04.txt
+++ b/runtime/doc/usr_04.txt
@@ -1,4 +1,4 @@
-*usr_04.txt* For Vim version 7.1. Last change: 2006 Jun 21
+*usr_04.txt* For Vim version 7.2a. Last change: 2006 Jun 21
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt
index 5486810a6..bfa3926de 100644
--- a/runtime/doc/usr_05.txt
+++ b/runtime/doc/usr_05.txt
@@ -1,4 +1,4 @@
-*usr_05.txt* For Vim version 7.1. Last change: 2007 May 11
+*usr_05.txt* For Vim version 7.2a. Last change: 2007 May 11
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/usr_06.txt b/runtime/doc/usr_06.txt
index 4e57b4e66..626af3d00 100644
--- a/runtime/doc/usr_06.txt
+++ b/runtime/doc/usr_06.txt
@@ -1,4 +1,4 @@
-*usr_06.txt* For Vim version 7.1. Last change: 2006 Apr 24
+*usr_06.txt* For Vim version 7.2a. Last change: 2006 Apr 24
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/usr_07.txt b/runtime/doc/usr_07.txt
index a0c8a310f..86a46ecad 100644
--- a/runtime/doc/usr_07.txt
+++ b/runtime/doc/usr_07.txt
@@ -1,4 +1,4 @@
-*usr_07.txt* For Vim version 7.1. Last change: 2006 Apr 24
+*usr_07.txt* For Vim version 7.2a. Last change: 2006 Apr 24
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/usr_12.txt b/runtime/doc/usr_12.txt
index ed272f68c..7e2f413d4 100644
--- a/runtime/doc/usr_12.txt
+++ b/runtime/doc/usr_12.txt
@@ -1,4 +1,4 @@
-*usr_12.txt* For Vim version 7.1. Last change: 2007 May 11
+*usr_12.txt* For Vim version 7.2a. Last change: 2007 May 11
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/usr_20.txt b/runtime/doc/usr_20.txt
index 49ca93b1c..84c58f7d0 100644
--- a/runtime/doc/usr_20.txt
+++ b/runtime/doc/usr_20.txt
@@ -1,4 +1,4 @@
-*usr_20.txt* For Vim version 7.1. Last change: 2006 Apr 24
+*usr_20.txt* For Vim version 7.2a. Last change: 2006 Apr 24
VIM USER MANUAL - by Bram Moolenaar
diff --git a/runtime/doc/usr_30.txt b/runtime/doc/usr_30.txt
index 5f4b55771..499851135 100644
--- a/runtime/doc/usr_30.txt
+++ b/runtime/doc/usr_30.txt
@@ -1,4 +1,4 @@
-*usr_30.txt* For Vim version 7.1. Last change: 2007 Apr 22
+*usr_30.txt* For Vim version 7.2a. Last change: 2007 Nov 10
VIM USER MANUAL - by Bram Moolenaar
@@ -200,14 +200,14 @@ Then have Vim read this file with: >
Jumping to errors will work like with the ":make" command.
==============================================================================
-*30.2* Indenting C files
+*30.2* Indenting C style text
A program is much easier to understand when the lines have been properly
-indented. Vim offers various ways to make this less work.
- For C programs set the 'cindent' option. Vim knows a lot about C programs
-and will try very hard to automatically set the indent for you. Set the
-'shiftwidth' option to the amount of spaces you want for a deeper level. Four
-spaces will work fine. One ":set" command will do it: >
+indented. Vim offers various ways to make this less work. For C or C style
+programs like Java or C++, set the 'cindent' option. Vim knows a lot about C
+programs and will try very hard to automatically set the indent for you. Set
+the 'shiftwidth' option to the amount of spaces you want for a deeper level.
+Four spaces will work fine. One ":set" command will do it: >
:set cindent shiftwidth=4
@@ -451,7 +451,7 @@ in your text. The second time, Vim takes out the 4 spaces and puts in a <Tab>
(thus taking you to column 8). Thus Vim uses as many <Tab>s as possible, and
then fills up with spaces.
When backspacing it works the other way around. A <BS> will always delete
-the amount specified with 'softtabstop'. Then <Tabs> are used as many as
+the amount specified with 'softtabstop'. Then <Tab>s are used as many as
possible and spaces to fill the gap.
The following shows what happens pressing <Tab> a few times, and then using
<BS>. A "." stands for a space and "------->" for a <Tab>.
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 8c564c616..16b2d0d1a 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt* For Vim version 7.1. Last change: 2008 Jan 11
+*various.txt* For Vim version 7.2a. Last change: 2008 Jun 08
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -123,7 +123,7 @@ g8 Print the hex values of the bytes used in the
*:#!*
:#!{anything} Ignored, so that you can start a Vim script with: >
- #!/usr/bin/env vim -S
+ #!vim -S
echo "this is a Vim script"
quit
<
@@ -226,7 +226,8 @@ g8 Print the hex values of the bytes used in the
":!echo ! \! \\!" executes "echo ls ! \!".
After the command has been executed, the timestamp of
the current file is checked |timestamp|.
- There cannot be a '|' in {cmd}, see |:bar|.
+ A '|' in {cmd} is passed to the shell, you cannot use
+ it to append a Vim command. See |:bar|.
A newline character ends {cmd}, what follows is
interpreted as a following ":" command. However, if
there is a backslash before the newline it is removed
@@ -315,6 +316,7 @@ N *+find_in_path* include file searches: |[I|, |:isearch|,
N *+folding* |folding|
*+footer* |gui-footer|
*+fork* Unix only: |fork| shell commands
+ *+float* Floating point support
N *+gettext* message translations |multi-lang|
*+GUI_Athena* Unix only: Athena |GUI|
*+GUI_neXtaw* Unix only: neXtaw |GUI|
@@ -343,6 +345,7 @@ B *+mouse_dec* Unix only: Dec terminal mouse handling |dec-mouse|
N *+mouse_gpm* Unix only: Linux console mouse handling |gpm-mouse|
B *+mouse_netterm* Unix only: netterm mouse handling |netterm-mouse|
N *+mouse_pterm* QNX only: pterm mouse handling |qnx-terminal|
+N *+mouse_sysmouse* Unix only: *BSD console mouse handling |sysmouse|
N *+mouse_xterm* Unix only: xterm mouse handling |xterm-mouse|
B *+multi_byte* Korean and other languages |multibyte|
*+multi_byte_ime* Win32 input method for multibyte chars |multibyte-ime|
@@ -362,7 +365,8 @@ H *+profile* |:profile| command
m *+python* Python interface |python|
m *+python/dyn* Python interface |python-dynamic| |/dyn|
N *+quickfix* |:make| and |quickfix| commands
-N *+reltime* |reltime()| function
+N *+reltime* |reltime()| function, 'hlsearch'/'incsearch' timeout,
+ 'redrawtime' option
B *+rightleft* Right to left typing |'rightleft'|
m *+ruby* Ruby interface |ruby|
m *+ruby/dyn* Ruby interface |ruby-dynamic| |/dyn|
@@ -435,10 +439,11 @@ N *+X11* Unix only: can restore window title |X11|
:redi[r] >> {file} Redirect messages to file {file}. Append if {file}
already exists. {not in Vi}
+:redi[r] @{a-zA-Z}
:redi[r] @{a-zA-Z}> Redirect messages to register {a-z}. Append to the
contents of the register if its name is given
- uppercase {A-Z}. For backward compatibility, the ">"
- after the register name can be omitted. {not in Vi}
+ uppercase {A-Z}. The ">" after the register name is
+ optional. {not in Vi}
:redi[r] @{a-z}>> Append messages to register {a-z}. {not in Vi}
:redi[r] @*>
@@ -674,10 +679,14 @@ g CTRL-A Only when Vim was compiled with MEM_PROFILING defined
:helpgrep uganda\c
< Example for searching in French help: >
:helpgrep backspace@fr
-< Cannot be followed by another command, everything is
+< The pattern does not support line breaks, it must
+ match within one line. You can use |:grep| instead,
+ but then you need to get the list of help files in a
+ complicated way.
+ Cannot be followed by another command, everything is
used as part of the pattern. But you can use
|:execute| when needed.
- Compressed help files will not be searched (Debian
+ Compressed help files will not be searched (Fedora
compresses the help files).
{not in Vi}
diff --git a/runtime/doc/version7.txt b/runtime/doc/version7.txt
index 589e59aff..786a0b325 100644
--- a/runtime/doc/version7.txt
+++ b/runtime/doc/version7.txt
@@ -1,4 +1,4 @@
-*version7.txt* For Vim version 7.1. Last change: 2007 May 12
+*version7.txt* For Vim version 7.2a. Last change: 2008 Jun 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -51,6 +51,11 @@ Changed |changed-7.1|
Added |added-7.1|
Fixed |fixed-7.1|
+VERSION 7.2 |version-7.2|
+Changed |changed-7.2|
+Added |added-7.2|
+Fixed |fixed-7.2|
+
==============================================================================
INCOMPATIBLE CHANGES *incompatible-7*
@@ -1161,7 +1166,7 @@ Kana (Edward L. Fox)
New message translations: ~
-The Ukranian messages are now also available in cp1251.
+The Ukrainian messages are now also available in cp1251.
Vietnamese message translations and menu. (Phan Vinh Thinh)
@@ -4615,6 +4620,2156 @@ Solution: Use the same mechanism as in mch_total_mem(): first reduce the
multiplier as much as possible.
Files: src/memfile.c
+==============================================================================
+VERSION 7.2 *version-7.2*
+
+This section is about improvements made between version 7.1 and 7.2.
+
+This is mostly a bug-fix release. The main new feature is floating point
+support. |Float|
+
+
+Changed *changed-7.2*
+-------
+
+Changed the command line buffer name from "command-line" to "[Command Line]".
+
+Removed optional ! for ":caddexpr", ":cgetexpr", ":cgetfile", ":laddexpr",
+":lgetexpr" and ":lgetfile". They are not needed. (Yegappan Lakshmanan)
+
+An offset for syntax matches worked on bytes instead of characters. That is
+inconsistent and can easily be done wrong. Use character offsets now.
+(Yukihiro Nakadaira)
+
+The FileChangedShellPost event was also given when a file didn't change.
+(John Little)
+
+When the current line is long (doesn't fit) the popup menu can't be seen.
+Display it below the screen line instead of below the text line.
+(Francois Ingelrest)
+
+Switched to autoconf version 2.62.
+
+Moved including fcntl.h to vim.h and removed it from all .c files.
+
+Introduce macro STRMOVE(d, s), like STRCPY() for overlapping strings.
+Use it instead of mch_memmove(p, p + x, STRLEN(p + x) + 1).
+
+
+Added *added-7.2*
+-----
+
+New syntax files:
+ Cdrdao config (Nikolai Weibull)
+ Coco/R (Ashish Shukla)
+ CUDA (Timothy B. Terriberry)
+ denyhosts config (Nikolai Weibull)
+ Dtrace script (Nicolas Weber)
+ Git output, commit, config, rebase, send-email (Tim Pope)
+ HASTE (M. Tranchero)
+ Host conf (Nikolai Weibull)
+ Linden script (Timo Frenay)
+ Symbian meta-makefile, MMP (Ron Aaron)
+ MS messages (Kevin Locke)
+ PDF (Tim Pope)
+ ProMeLa (Maurizio Tranchero)
+ Reva Foth (Ron Aaron)
+ VOS CM macro (Andrew McGill)
+ XBL (Doug Kearns)
+
+New tutor files:
+ Made UTF-8 versions of all the tutor files.
+ Greek renamed from ".gr" to ".el" (Greek vs Greece).
+ Esperanto (Dominique Pelle)
+ Croatian (Paul B. Mahol)
+
+New filetype plugins:
+ Cdrdao config (Nikolai Weibull)
+ Debian control files (Debian Vim maintainers)
+ Denyhosts (Nikolai Weibull)
+ Dos .ini file (Nikolai Weibull)
+ Dtrace script (Nicolas Weber)
+ Git, Git config, Git commit, Git rebase, Git send-email (Tim Pope)
+ Host conf (Nikolai Weibull)
+ MS messages (Kevin Locke)
+ PDF (Tim Pope)
+ Reva Forth (Ron Aaron)
+
+New indent files:
+ Dtrace script (Nicolas Weber)
+ Erlang (Csaba Hoch)
+ Git config (Tim Pope)
+ Tiny Fugue (Christian J. Robinson)
+
+New keymap files:
+ Croatian (Paul B. Mahol)
+ Russian Dvorak (Serhiy Boiko)
+ Ukrainian Dvorak (Serhiy Boiko)
+
+Other new runtime files:
+ Esperanto menus and message translations. (Dominique Pelle)
+ Finnish translation of menus and messages. (Flammie Pirinen)
+
+Added floating point support. |Float|
+
+Added argument to mode() to return a bit more detail about the current mode.
+(Ben Schmidt)
+
+Added support for BSD console mouse: |sysmouse|. (Paul Mahol)
+
+Added the "newtab" value for the 'switchbuf' option. (partly by Yegappan
+Lakshmanan)
+
+Improved error messages for the netbeans interface. (Philippe Fremy)
+
+Added support for using xterm mouse codes for screen. (Micah Cowan)
+
+Added support for cross compiling:
+Adjusted configure.in and added INSTALLcross.txt. (Marc Haisenko) Fixed
+mistakes in configure.in after that.
+Don't use /usr/local/include and /usr/local/lib in configure. (Philip
+Prindeville)
+For cross compiling the Cygwin version on Unix, change VIM.TLB to vim.tlb in
+src/vim.rc. (Tsuneo Nakagawa)
+
+Added v:searchforward variable: What direction we're searching in. (Yakov
+Lerner)
+
+
+Fixed *fixed-7.2*
+-----
+
+Patch 7.1.001
+Problem: Still can't build with Gnome libraries.
+Solution: Fix typo in bind_textdomain_codeset. (Mike Kelly)
+Files: src/gui_gtk.c, src/gui_gtk_x11.c
+
+Patch 7.1.002
+Problem: Oracle Pro*C/C++ files are not detected.
+Solution: Add the missing star. (Micah J. Cowan)
+Files: runtime/filetype.vim
+
+Patch 7.1.003 (extra)
+Problem: The "Tear off this menu" message appears in the message history
+ when using a menu. (Yongwei Wu)
+Solution: Disable message history when displaying the menu tip.
+Files: src/gui_w32.c
+
+Patch 7.1.004
+Problem: Crash when doing ":next directory". (Raphael Finkel)
+Solution: Do not use "buf", it may be invalid after autocommands.
+Files: src/ex_cmds.c
+
+Patch 7.1.005
+Problem: "cit" used on <foo></foo> deletes <foo>. Should not delete
+ anything and start insertion, like "ci'" does on "". (Michal
+ Bozon)
+Solution: Handle an empty object specifically. Made it work consistent for
+ various text objects.
+Files: src/search.c
+
+Patch 7.1.006
+Problem: Resetting 'modified' in a StdinReadPost autocommand doesn't work.
+Solution: Set 'modified' before the autocommands instead of after it.
+Files: src/buffer.c
+
+Patch 7.1.007 (extra)
+Problem: Mac: Context menu doesn't work on Intel Macs.
+ Scrollbars are not dimmed when Vim is not the active application.
+Solution: Remove the test whether context menus are supported. They are
+ always there in OS/X. Handle the dimming. (Nicolas Weber)
+Files: src/gui_mac.c, src/gui.h
+
+Patch 7.1.008
+Problem: getfsize() returns a negative number for very big files.
+Solution: Check for overflow and return -2.
+Files: runtime/doc/eval.txt, src/eval.c
+
+Patch 7.1.009
+Problem: In diff mode, displaying the difference between a tab and spaces
+ is not highlighted correctly.
+Solution: Only change highlighting at the end of displaying a tab.
+Files: src/screen.c
+
+Patch 7.1.010
+Problem: The Gnome session file doesn't restore tab pages.
+Solution: Add SSOP_TABPAGES to the session flags. (Matias D'Ambrosio)
+Files: src/gui_gtk_x11.c
+
+Patch 7.1.011
+Problem: Possible buffer overflow when $VIMRUNTIME is very long. (Victor
+ Stinner)
+Solution: Use vim_snprintf().
+Files: src/main.c
+
+Patch 7.1.012
+Problem: ":let &shiftwidth = 'asdf'" doesn't produce an error message.
+Solution: Check for a string argument. (Chris Lubinski)
+Files: src/option.c
+
+Patch 7.1.013
+Problem: ":syn include" only loads the first file, while it is documented
+ as doing the equivalent of ":runtime!".
+Solution: Change the argument to source_runtime(). (James Vega)
+Files: src/syntax.c
+
+Patch 7.1.014
+Problem: Crash when doing C indenting. (Chris Monson)
+Solution: Obtain the current line again after invoking cin_islabel().
+Files: src/edit.c
+
+Patch 7.1.015
+Problem: MzScheme interface: current-library-collection-paths produces no
+ list. Interface doesn't build on a Mac.
+Solution: Use a list instead of a pair. (Bernhard Fisseni) Use "-framework"
+ argument for MZSCHEME_LIBS in configure.
+Files: src/configure.in, src/if_mzsch.c, src/auto/configure
+
+Patch 7.1.016 (after patch 7.1.012)
+Problem: Error message about setting 'diff' to a string.
+Solution: Don't pass an empty string to set_option_value() when setting
+ 'diff'.
+Files: src/quickfix.c, src/popupmnu.c
+
+Patch 7.1.017
+Problem: ":confirm w" does give a prompt when 'readonly' is set, but not
+ when the file permissions are read-only. (Michael Schaap)
+Solution: Provide a dialog in both situations. (Chris Lubinski)
+Files: src/ex_cmds.c, src/fileio.c, src/proto/fileio.pro
+
+Patch 7.1.018
+Problem: When 'virtualedit' is set a "p" of a block just past the end of
+ the line inserts before the cursor. (Engelke)
+Solution: Check for the cursor being just after the line (Chris Lubinski)
+Files: src/ops.c
+
+Patch 7.1.019
+Problem: ":py" asks for an argument, ":py asd" then gives the error that
+ ":py" isn't implemented. Should already happen for ":py".
+Solution: Compare with ex_script_ni. (Chris Lubinski)
+Files: src/ex_docmd.c
+
+Patch 7.1.020
+Problem: Reading from uninitialized memory when using a dialog. (Dominique
+ Pelle)
+Solution: In msg_show_console_dialog() append a NUL after every appended
+ character.
+Files: src/message.c
+
+Patch 7.1.021 (after 7.1.015)
+Problem: Mzscheme interface doesn't compile on Win32.
+Solution: Fix the problem that 7.1.015 fixed in a better way. (Sergey Khorev)
+Files: src/if_mzsch.c
+
+Patch 7.1.022
+Problem: When setting 'keymap' twice the b:keymap_name variable isn't set.
+ (Milan Berta)
+Solution: Don't unlet b:keymap_name for ":loadkeymap". (Martin Toft)
+Files: src/digraph.c
+
+Patch 7.1.023
+Problem: "dw" in a line with one character deletes the line. Vi and nvi
+ don't do this. (Kjell Arne Rekaa)
+Solution: Check for one-character words especially.
+Files: src/search.c
+
+Patch 7.1.024
+Problem: Using a pointer that has become invalid. (Chris Monson)
+Solution: Obtain the line pointer again after we looked at another line.
+Files: src/search.c
+
+Patch 7.1.025
+Problem: search() and searchpos() don't use match under cursor at start of
+ line when using 'bc' flags. (Viktor Kojouharov)
+Solution: Don't go to the previous line when the 'c' flag is present.
+ Also fix that "j" doesn't move the cursor to the right column.
+Files: src/eval.c, src/search.c
+
+Patch 7.1.026
+Problem: "[p" doesn't work in Visual mode. (David Brown)
+Solution: Use checkclearop() instead of checkclearopq().
+Files: src/normal.c
+
+Patch 7.1.027
+Problem: On Sun systems opening /dev/fd/N doesn't work, and they are used
+ by process substitutions.
+Solution: Allow opening specific character special files for Sun systems.
+ (Gary Johnson)
+Files: src/fileio.c, src/os_unix.h
+
+Patch 7.1.028
+Problem: Can't use last search pattern for ":sort". (Brian McKee)
+Solution: When the pattern is emtpy use the last search pattern. (Martin
+ Toft)
+Files: runtime/doc/change.txt, src/ex_cmds.c
+
+Patch 7.1.029 (after 7.1.019)
+Problem: Can't compile when all interfaces are used. (Taylor Venable)
+Solution: Only check for ex_script_ni when it's defined.
+Files: src/ex_docmd.c
+
+Patch 7.1.030
+Problem: The "vimtutor" shell script checks for "vim6" but not for "vim7".
+ (Christian Robinson)
+Solution: Check for more versions, but prefer using "vim".
+Files: src/vimtutor
+
+Patch 7.1.031
+Problem: virtcol([123, '$']) doesn't work. (Michael Schaap)
+Solution: When '$' is used for the column number get the last column.
+Files: runtime/doc/eval.txt, src/eval.c
+
+Patch 7.1.032
+Problem: Potential crash when editing a command line. (Chris Monson)
+Solution: Check the position to avoid access before the start of an array.
+Files: src/ex_getln.c
+
+Patch 7.1.033
+Problem: A buffer is marked modified when it was first deleted and then
+ added again using a ":next" command. (John Mullin)
+Solution: When checking if a buffer is modified use the BF_NEVERLOADED flag.
+Files: src/option.c
+
+Patch 7.1.034
+Problem: Win64: A few compiler warnings. Problems with optimizer.
+Solution: Use int instead of size_t. Disable the optimizer in one function.
+ (George V. Reilly)
+Files: src/eval.c, src/spell.c
+
+Patch 7.1.035
+Problem: After ":s/./&/#" all listed lines have a line number. (Yakov
+ Lerner)
+Solution: Reset the line number flag when not using the "&" flag.
+Files: src/ex_cmds.c
+
+Patch 7.1.036
+Problem: Completing ":echohl" argument should include "None". (Ori
+ Avtalion) ":match" should have "none" too.
+Solution: Add flags to use expand_highlight(). Also fix that when disabling
+ FEAT_CMDL_COMPL compilation fails. (Chris Lubinski)
+Files: src/eval.c, src/ex_docmd.c, src/ex_getln.c, src/proto/syntax.pro
+ src/syntax.c
+
+Patch 7.1.037
+Problem: strcpy() used for overlapping strings. (Chris Monson)
+Solution: Use mch_memmove() instead.
+Files: src/option.c
+
+Patch 7.1.038
+Problem: When 'expandtab' is set then a Tab copied for 'copyindent' is
+ expanded to spaces, even when 'preserveindent' is set. (Alexei
+ Alexandrov)
+Solution: Remove the check for 'expandtab'. Also fix that ">>" doesn't obey
+ 'preserveindent'. (Chris Lubinski)
+Files: src/misc1.c
+
+Patch 7.1.039
+Problem: A tag in a help file that starts with "help-tags" and contains a
+ percent sign may make Vim crash. (Ulf Harnhammar)
+Solution: Use puts() instead of fprintf().
+Files: src/ex_cmds.c
+
+Patch 7.1.040
+Problem: ":match" only supports three matches.
+Solution: Add functions clearmatches(), getmatches(), matchadd(),
+ matchdelete() and setmatches(). Changed the data structures for
+ this. A small bug in syntax.c is fixed, so newly created
+ highlight groups can have their name resolved correctly from their
+ ID. (Martin Toft)
+Files: runtime/doc/eval.txt, runtime/doc/pattern.txt,
+ runtime/doc/usr_41.txt, src/eval.c, src/ex_docmd.c,
+ src/proto/window.pro, src/screen.c, src/structs.h, src/syntax.c,
+ src/testdir/Makefile, src/testdir/test63.in,
+ src/testdir/test63.ok, src/window.c
+
+Patch 7.1.041 (extra, after 7.1.040)
+Problem: Some changes for patch 7.1.040 are in extra files.
+Solution: Update the extra files.
+Files: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
+ src/testdir/Make_os2.mak, src/testdir/Make_vms.mms
+
+Patch 7.1.042 (after 7.1.040)
+Problem: Internal error when using matchadd(). (David Larson)
+Solution: Check the third argument to be present before using the fourth
+ argument. (Martin Toft)
+Files: src/eval.c
+
+Patch 7.1.043
+Problem: In Ex mode using CTRL-D twice may cause a crash. Cursor isn't
+ positioned properly after CTRL-D.
+Solution: Set prev_char properly. Position the cursor correctly. (Antony
+ Scriven)
+Files: src/ex_getln.c
+
+Patch 7.1.044
+Problem: In Insert mode 0 CTRL-T deletes all indent, it should add indent.
+ (Gautam Iyer)
+Solution: Check for CTRL-D typed.
+Files: src/edit.c
+
+Patch 7.1.045
+Problem: Unnecessary screen redrawing. (Jjgod Jiang)
+Solution: Reset "must_redraw" after clearing the screen.
+Files: src/screen.c
+
+Patch 7.1.046
+Problem: ":s" command removes combining characters. (Ron Aaron)
+Solution: Copy composing characters individually. (Chris Lubinski)
+Files: src/regexp.c
+
+Patch 7.1.047
+Problem: vim_regcomp() called with invalid argument. (Xiaozhou Liu)
+Solution: Change TRUE to RE_MAGIC + RE_STRING.
+Files: src/ex_eval.c
+
+Patch 7.1.048
+Problem: The matchparen plugin doesn't update the match when scrolling with
+ the mouse wheel. (Ilya Bobir)
+Solution: Set the match highlighting for text that can be scrolled into the
+ viewable area without moving the cursor. (Chris Lubinski)
+Files: runtime/plugin/matchparen.vim
+
+Patch 7.1.049
+Problem: Cannot compile GTK2 version with Hangul input feature.
+Solution: Don't define FEAT_XFONTSET when using GTK2.
+Files: src/feature.h
+
+Patch 7.1.050
+Problem: Possible crash when using C++ indenting. (Chris Monson)
+Solution: Keep the line pointer to the line to compare with. Avoid going
+ past the end of line.
+Files: src/misc1.c
+
+Patch 7.1.051
+Problem: Accessing uninitialized memory when finding spell suggestions.
+Solution: Don't try swapping characters at the end of a word.
+Files: src/spell.c
+
+Patch 7.1.052
+Problem: When creating a new match not all fields are initialized, which
+ may lead to unpredictable results.
+Solution: Initialise rmm_ic and rmm_maxcol.
+Files: src/window.c
+
+Patch 7.1.053
+Problem: Accessing uninitialized memory when giving a message.
+Solution: Check going the length before checking for a NUL byte.
+Files: src/message.c
+
+Patch 7.1.054
+Problem: Accessing uninitialized memory when displaying the fold column.
+Solution: Add a NUL to the extra array. (Dominique Pelle). Also do this in
+ a couple of other situations.
+Files: src/screen.c
+
+Patch 7.1.055
+Problem: Using strcpy() with arguments that overlap.
+Solution: Use mch_memmove() instead.
+Files: src/buffer.c, src/charset.c, src/eval.c, src/ex_getln.c,
+ src/misc1.c, src/regexp.c, src/termlib.c
+
+Patch 7.1.056
+Problem: More prompt does not behave correctly after scrolling back.
+ (Randall W. Morris)
+Solution: Avoid lines_left becomes negative. (Chris Lubinski) Don't check
+ mp_last when deciding to show the more prompt. (Martin Toft)
+Files: src/message.c
+
+Patch 7.1.057
+Problem: Problem with CursorHoldI when using "r" in Visual mode (Max
+ Dyckhoff)
+Solution: Ignore CursorHold(I) when getting a second character for a Normal
+ mode command. Also abort the "r" command in Visual when a special
+ key is typed.
+Files: src/normal.c
+
+Patch 7.1.058
+Problem: When 'rightleft' is set the completion menu is positioned wrong.
+ (Baha-Eddine MOKADEM)
+Solution: Fix the completion menu. (Martin Toft)
+Files: src/popupmnu.c, src/proto/search.pro, src/search.c
+
+Patch 7.1.059
+Problem: When in Ex mode and doing "g/^/vi" and then pressing CTRL-C Vim
+ hangs and beeps. (Antony Scriven)
+Solution: Clear "got_int" in the main loop to avoid the hang. When typing
+ CTRL-C twice in a row abort the ":g" command. This is Vi
+ compatible.
+Files: src/main.c
+
+Patch 7.1.060
+Problem: Splitting quickfix window messes up window layout. (Marius
+ Gedminas)
+Solution: Compute the window size in a smarter way. (Martin Toft)
+Files: src/window.c
+
+Patch 7.1.061
+Problem: Win32: When 'encoding' is "latin1" 'ignorecase' doesn't work for
+ characters with umlaut. (Joachim Hofmann)
+Solution: Do not use islower()/isupper()/tolower()/toupper() but our own
+ functions. (Chris Lubinski)
+Files: src/mbyte.c, src/regexp.c, src/vim.h
+
+Patch 7.1.062 (after 7.1.038)
+Problem: Indents of C comments can be wrong. (John Mullin)
+Solution: Adjust ind_len. (Chris Lubinski)
+Files: src/misc1.c
+
+Patch 7.1.063 (after 7.1.040)
+Problem: Warning for unitialized variable.
+Solution: Initialise it to NULL.
+Files: src/ex_docmd.c
+
+Patch 7.1.064
+Problem: On Interix some files appear not to exist.
+Solution: Remove the top bit from st_mode. (Ligesh)
+Files: src/os_unix.c
+
+Patch 7.1.065 (extra)
+Problem: Win32: Compilation problem for newer version of w32api.
+Solution: Only define __IID_DEFINED__ when needed. (Chris Sutcliffe)
+Files: src/Make_ming.mak, src/iid_ole.c
+
+Patch 7.1.066
+Problem: When 'bomb' is set or reset the file should be considered
+ modified. (Tony Mechelynck)
+Solution: Handle like 'endofline'. (Martin Toft)
+Files: src/buffer.c, src/fileio.c, src/option.c, src/structs.h
+
+Patch 7.1.067
+Problem: 'thesaurus' doesn't work when 'infercase' is set. (Mohsin)
+Solution: Don't copy the characters being completed but check the case and
+ apply it to the suggested word. Also fix that the first word in
+ the thesaurus line is not used. (Martin Toft)
+Files: src/edit.c
+
+Patch 7.1.068
+Problem: When 'equalalways' is set and splitting a window, it's possible
+ that another small window gets bigger.
+Solution: Only equalize window sizes when after a split the windows are
+ smaller than another window. (Martin Toft)
+Files: runtime/doc/options.txt, runtime/doc/windows.txt, src/window.c
+
+Patch 7.1.069
+Problem: GTK GUI: When using confirm() without a default button there still
+ is a default choice.
+Solution: Ignore Enter and Space when there is no default button. (Chris
+ Lubinski)
+Files: src/gui_gtk.c
+
+Patch 7.1.070 (extra)
+Problem: Win32 GUI: When using confirm() without a default button there
+ still is a default choice.
+Solution: Set focus on something else than a button. (Chris Lubinski)
+Files: src/gui_w32.c
+
+Patch 7.1.071 (after 7.1.040)
+Problem: Regexp patterns are not tested.
+Solution: Add a basic test, to be expanded later.
+ Also add (commented-out) support for valgrind.
+Files: src/testdir/Makefile, src/testdir/test64.in, src/testdir/test64.ok
+
+Patch 7.1.072 (extra, after 7.1.041 and 7.1.071)
+Problem: Some changes for patch 7.1.071 are in extra files.
+Solution: Update the extra files. Also fix a few warnings from the DOS test
+ makefile.
+Files: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
+ src/testdir/Make_os2.mak, src/testdir/Make_vms.mms
+
+Patch 7.1.073 (after 7.1.062)
+Problem: Wrong cursor position and crash when 'preserveindent' is set.
+ (Charles Campbell)
+Solution: Handle the situation that we start without indent. (Chris
+ Lubinski)
+Files: src/misc1.c
+
+Patch 7.1.074
+Problem: Crash when calling string() on a recurively nested List.
+Solution: Check result value for being NULL. (Yukihiro Nakadaira)
+Files: src/eval.c
+
+Patch 7.1.075
+Problem: ":let v:statusmsg" reads memory already freed.
+Solution: Don't set v:statusmsg when listing it.
+Files: src/eval.c
+
+Patch 7.1.076
+Problem: Another strcpy() with overlapping arguments.
+Solution: Use mch_memmove(). (Dominique Pelle) And another one.
+Files: src/ex_docmd.c, src/normal.c
+
+Patch 7.1.077
+Problem: Using "can_spell" without initializing it. (Dominique Pelle)
+Solution: Set a default for get_syntax_attr().
+Files: src/syntax.c
+
+Patch 7.1.078
+Problem: Dropping a file name on gvim that contains a CSI byte doesn't work
+ when editing the command line.
+Solution: Escape the CSI byte when inserting in the input buffer. (Yukihiro
+ Nakadaira)
+Files: src/gui.c, src/ui.c
+
+Patch 7.1.079
+Problem: When the locale is "C" and 'encoding' is "latin1" then the "@"
+ character in 'isfname', 'isprint', etc. doesn't pick up accented
+ characters.
+Solution: Instead of isalpha() use MB_ISLOWER() and MB_ISUPPER().
+Files: src/charset.c, src/macros.h
+
+Patch 7.1.080 (extra)
+Problem: Compiler warnings for using "const char *" for "char *".
+Solution: Add type casts. (Chris Sutcliffe)
+Files: src/GvimExt/gvimext.cpp
+
+Patch 7.1.081
+Problem: Command line completion for a shell command: "cat </tmp/file<Tab>"
+ doesn't work.
+Solution: Start the file name at any character that can't be in a file name.
+ (Martin Toft)
+Files: src/ex_docmd.c
+
+Patch 7.1.082
+Problem: After a ":split" the matchparen highlighting isn't there.
+Solution: Install a WinEnter autocommand. Also fixes that after
+ ":NoMatchParen" only the current window is updated. (Martin Toft)
+Files: runtime/doc/pi_paren.txt, runtime/plugin/matchparen.vim
+
+Patch 7.1.083 (after 7.1.081)
+Problem: Command line completion doesn't work with wildcards.
+Solution: Add vim_isfilec_or_wc() and use it. (Martin Toft)
+Files: src/charset.c, src/proto/charset.pro, src/ex_docmd.c
+
+Patch 7.1.084
+Problem: Using the "-nb" argument twice causes netbeans not to get
+ fileOpened events.
+Solution: Change "&" to "&&". (Xavier de Gaye)
+Files: src/ex_cmds.c
+
+Patch 7.1.085
+Problem: ":e fold.c" then ":sp fold.c" results in folds of original window
+ to disappear. (Akita Noek)
+Solution: Invoke foldUpdateAll() for all windows of the changed buffer.
+ (Martin Toft)
+Files: src/ex_cmds.c
+
+Patch 7.1.086
+Problem: Crash when using specific Python syntax highlighting. (Quirk)
+Solution: Check for a negative index, coming from a keyword match at the
+ start of a line from a saved state.
+Files: src/syntax.c
+
+Patch 7.1.087
+Problem: Reading past ":cscope find" command. Writing past end of a buffer.
+Solution: Check length of the argument before using the pattern. Use
+ vim_strncpy(). (Dominique Pelle)
+Files: if_cscope.c
+
+Patch 7.1.088 (extra)
+Problem: The coordinates used by ":winpos" differ from what getwinposx()
+ and getwinposy() return.
+Solution: Use MoveWindowStructure() instead of MoveWindow(). (Michael Henry)
+Files: src/gui_mac.c
+
+Patch 7.1.089
+Problem: ":let loaded_getscriptPlugin" doesn't clear to eol, result is
+ "#1in".
+Solution: Clear to the end of the screen after displaying the first variable
+ value.
+Files: src/eval.c
+
+Patch 7.1.090
+Problem: Compiler warning on Mac OS X 10.5.
+Solution: Don't redeclare sigaltstack(). (Hisashi T Fujinaka)
+Files: src/os_unix.c
+
+Patch 7.1.091 (extra)
+Problem: Win32: Can't embed Vim inside another application.
+Solution: Add the --windowid argument. (Nageshwar)
+Files: runtime/doc/gui_w32.txt, runtime/doc/starting.txt,
+ runtime/doc/vi_diff.txt, src/globals.h, src/gui_w32.c, src/main.c
+
+Patch 7.1.092 (extra, after 7.1.088)
+Problem: Wrong arguments for MoveWindowStructure().
+Solution: Remove "TRUE". (Michael Henry)
+Files: src/gui_mac.c
+
+Patch 7.1.093
+Problem: Reading past end of a screen line when determining cell width.
+ (Dominique Pelle)
+Solution: Add an argument to mb_off2cells() for the maximum offset.
+Files: src/globals.h, src/gui.c, src/mbyte.c, src/proto/mbyte.pro,
+ src/screen.c
+
+Patch 7.1.094
+Problem: When checking if syntax highlighting is present, looking in the
+ current buffer instead of the specified one.
+Solution: Use "buf" instead of "curbuf".
+Files: src/syntax.c
+
+Patch 7.1.095
+Problem: The FocusLost and FocusGained autocommands are triggered
+ asynchronously in the GUI. This may cause arbitrary problems.
+Solution: Put the focus event in the input buffer and handle it when ready
+ for it.
+Files: src/eval.c, src/getchar.c, src/gui.c, src/gui_gtk_x11.c,
+ src/keymap.h
+
+Patch 7.1.096
+Problem: Reading past end of a string when resizing Vim. (Dominique Pelle)
+Solution: Check the string pointer before getting the char it points to.
+Files: src/message.c
+
+Patch 7.1.097
+Problem: ":setlocal stl=%!1+1" does not work.
+Solution: Adjust check for pointer. (Politz)
+Files: src/option.c
+
+Patch 7.1.098
+Problem: ":call s:var()" doesn't work if "s:var" is a Funcref. (Andy Wokula)
+Solution: Before converting "s:" into a script ID, check if it is a Funcref.
+Files: src/eval.c
+
+Patch 7.1.099
+Problem: When the 'keymap' and 'paste' options have a non-default value,
+ ":mkexrc" and ":mksession" do not correctly set the options.
+Solution: Set the options with side effects before other options.
+Files: src/option.c
+
+Patch 7.1.100
+Problem: Win32: Executing cscope doesn't always work properly.
+Solution: Use another way to invoke cscope. (Mike Williams)
+Files: src/if_cscope.c, src/if_cscope.h, src/main.c,
+ src/proto/if_cscope.pro
+
+Patch 7.1.101
+Problem: Ruby: The Buffer.line= method does not work.
+Solution: Add the "self" argument to set_current_line(). (Jonathan Hankins)
+Files: src/if_ruby.c
+
+Patch 7.1.102
+Problem: Perl interface doesn't compile with new version of Perl.
+Solution: Add two variables to the dynamic library loading. (Suresh
+ Govindachar)
+Files: src/if_perl.xs
+
+Patch 7.1.103
+Problem: Using "dw" with the cursor past the end of the last line (using
+ CTRL-\ CTRL-O from Insert mode) deletes a character. (Tim Chase)
+Solution: Don't move the cursor back when the movement failed.
+Files: src/normal.c
+
+Patch 7.1.104 (after 7.1.095)
+Problem: When 'lazyredraw' is set a focus event causes redraw to be
+ postponed until a key is pressed.
+Solution: Instead of not returning from vgetc() when a focus event is
+ encountered return K_IGNORE. Add plain_vgetc() for when the
+ caller doesn't want to get K_IGNORE.
+Files: src/digraph.c, src/edit.c, src/ex_cmds.c, src/ex_getln.c,
+ src/getchar.c, src/normal.c, src/proto/getchar.pro, src/window.c
+
+Patch 7.1.105
+Problem: Internal error when using "0 ? {'a': 1} : {}". (A.Politz)
+Solution: When parsing a dictionary value without using the value, don't try
+ obtaining the key name.
+Files: src/eval.c
+
+Patch 7.1.106
+Problem: ":messages" doesn't quit listing on ":".
+Solution: Break the loop when "got_int" is set.
+Files: src/message.c
+
+Patch 7.1.107
+Problem: When doing a block selection and using "s" to change the text,
+ while triggering auto-indenting, causes the wrong text to be
+ repeated in other lines. (Adri Verhoef)
+Solution: Compute the change of indent and compensate for that.
+Files: src/ops.c
+
+Patch 7.1.108 (after 7.1.100)
+Problem: Win32: Compilation problems in Cscope code. (Jeff Lanzarotta)
+Solution: Use (long) instead of (intptr_t) when it's not defined.
+Files: src/if_cscope.c
+
+Patch 7.1.109
+Problem: GTK: when there are many tab pages, clicking on the arrow left of
+ the labels moves to the next tab page on the right. (Simeon Bird)
+Solution: Check the X coordinate of the click and pass -1 as value for the
+ left arrow.
+Files: src/gui_gtk_x11.c, src/term.c
+
+Patch 7.1.110 (after 7.1.102)
+Problem: Win32: Still compilation problems with Perl.
+Solution: Change the #ifdefs. (Suresh Govindachar)
+Files: src/if_perl.xs
+
+Patch 7.1.111
+Problem: When using ":vimgrep" with the "j" flag folds from another buffer
+ may be displayed. (A.Politz)
+Solution: When not jumping to another buffer update the folds.
+Files: src/quickfix.c
+
+Patch 7.1.112
+Problem: Using input() with a wrong argument may crash Vim. (A.Politz)
+Solution: Init the input() return value to NULL.
+Files: src/eval.c
+
+Patch 7.1.113
+Problem: Using map() to go over an empty list causes memory to be freed
+ twice. (A.Politz)
+Solution: Don't clear the typeval in restore_vimvar().
+Files: src/eval.c
+
+Patch 7.1.114
+Problem: Memory leak in getmatches().
+Solution: Don't increment the refcount twice.
+Files: src/eval.c
+
+Patch 7.1.115 (after 7.1.105)
+Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
+Solution: Init variable to NULL.
+Files: src/eval.c
+
+Patch 7.1.116
+Problem: Cannot display Unicode characters above 0x10000.
+Solution: Remove the replacement with a question mark when UNICODE16 is not
+ defined. (partly by Nicolas Weber)
+Files: src/screen.c
+
+Patch 7.1.117
+Problem: Can't check wether Vim was compiled with Gnome. (Tony Mechelynck)
+Solution: Add gui_gnome to the has() list.
+Files: src/eval.c
+
+Patch 7.1.118 (after 7.1.107)
+Problem: Compiler warning for Visual C compiler.
+Solution: Add typecast. (Mike Williams)
+Files: src/ops.c
+
+Patch 7.1.119
+Problem: Crash when 'cmdheight' set to very large value. (A.Politz)
+Solution: Limit 'cmdheight' to 'lines' minus one. Store right value of
+ 'cmdheight' when running out of room.
+Files: src/option.c, src/window.c
+
+Patch 7.1.120
+Problem: Can't properly check memory leaks while running tests.
+Solution: Add an argument to garbagecollect(). Delete functions and
+ variables in the test scripts.
+Files: runtime/doc/eval.txt src/eval.c, src/globals.h, src/main.c,
+ src/testdir/Makefile, src/testdir/test14.in,
+ src/testdir/test26.in, src/testdir/test34.in,
+ src/testdir/test45.in, src/testdir/test47.in,
+ src/testdir/test49.in, src/testdir/test55.in,
+ src/testdir/test56.in, src/testdir/test58.in,
+ src/testdir/test59.in, src/testdir/test60.in,
+ src/testdir/test60.vim, src/testdir/test62.in,
+ src/testdir/test63.in, src/testdir/test64.in,
+
+Patch 7.1.121
+Problem: Using ":cd %:h" when editing a file in the current directory
+ results in an error message for using an empty string.
+Solution: When "%:h" results in an empty string use ".".
+Files: src/eval.c
+
+Patch 7.1.122
+Problem: Mac: building Vim.app fails. Using wrong architecture.
+Solution: Use line continuation for the gui_bundle dependency. Detect the
+ system architecture with "uname -a".
+Files: src/main.aap
+
+Patch 7.1.123
+Problem: Win32: ":edit foo ~ foo" expands "~".
+Solution: Change the call to expand_env().
+Files: src/ex_docmd.c, src/misc1.c, src/proto/misc1.pro, src/option.c
+
+Patch 7.1.124 (extra)
+Problem: Mac: When dropping a file on Vim.app that is already in the buffer
+ list (from .viminfo) results in editing an empty, unnamed buffer.
+ (Axel Kielhorn) Also: warning for unused variable.
+Solution: Move to the buffer of the first agument. Delete unused variable.
+Files: src/gui_mac.c
+
+Patch 7.1.125
+Problem: The TermResponse autocommand event is not always triggered. (Aron
+ Griffix)
+Solution: When unblocking autocommands check if v:termresponse changed and
+ trigger the event then.
+Files: src/buffer.c, src/diff.c, src/ex_getln.c, src/fileio.c,
+ src/globals.h, src/misc2.c, src/proto/fileio.pro, src/window.c
+
+Patch 7.1.126 (extra)
+Problem: ":vimgrep */*" fails when a BufRead autocommand changes directory.
+ (Bernhard Kuhn)
+Solution: Change back to the original directory after loading a file.
+ Also: use shorten_fname1() to avoid duplicating code.
+Files: src/buffer.c, src/ex_docmd.c, src/fileio.c, src/gui_gtk.c,
+ src/gui_w48.c, src/proto/ex_docmd.pro, src/proto/fileio.pro,
+ src/quickfix.c
+
+Patch 7.1.127
+Problem: Memory leak when doing cmdline completion. (Dominique Pelle)
+Solution: Free "orig" argument of ExpandOne() when it's not used.
+Files: src/ex_getln.c
+
+Patch 7.1.128 (extra)
+Problem: Build problems with new version of Cygwin.
+Solution: Remove -D__IID_DEFINED__, like with MingW. (Guopeng Wen)
+Files: src/Make_cyg.mak
+
+Patch 7.1.129 (extra)
+Problem: Win32: Can't get the user name when it is longer than 15
+ characters.
+Solution: Use UNLEN instead of MAX_COMPUTERNAME_LENGTH. (Alexei Alexandrov)
+Files: src/os_win32.c
+
+Patch 7.1.130
+Problem: Crash with specific order of undo and redo. (A.Politz)
+Solution: Clear and adjust pointers properly. Add u_check() for debugging.
+Files: src/undo.c, src/structs.h
+
+Patch 7.1.131
+Problem: ":mksession" always adds ":setlocal autoread". (Christian J.
+ Robinson)
+Solution: Skip boolean global/local option using global value.
+Files: src/option.c
+
+Patch 7.1.132
+Problem: getpos("'>") may return a negative column number for a Linewise
+ selection. (A.Politz)
+Solution: Don't add one to MAXCOL.
+Files: src/eval.c
+
+Patch 7.1.133 (after 7.1.126)
+Problem: shorten_fname1() linked when it's not needed.
+Solution: Add #ifdef.
+Files: src/fileio.c
+
+Patch 7.1.134 (extra)
+Problem: Win32: Can't build with VC8
+Solution: Detect the MSVC version instead of using NMAKE_VER.
+ (Mike Williams)
+Files: src/Make_mvc.mak
+
+Patch 7.1.135
+Problem: Win32: When editing a file c:\tmp\foo and c:\tmp\\foo we have two
+ buffers for the same file. (Suresh Govindachar)
+Solution: Invoke FullName_save() when a path contains "//" or "\\".
+Files: src/buffer.c
+
+Patch 7.1.136
+Problem: Memory leak when using Ruby syntax highlighting. (Dominique Pelle)
+Solution: Free the contained-in list.
+Files: src/syntax.c
+
+Patch 7.1.137
+Problem: Build failure when using EXITFREE. (Dominique Pelle)
+Solution: Add an #ifdef around using clip_exclude_prog.
+Files: src/misc2.c
+
+Patch 7.1.138
+Problem: The Perl Msg() function doesn't stop when "q" is typed at the more
+ prompt. (Hari Krishna Dara)
+Solution: Check got_int.
+Files: src/if_perl.xs
+
+Patch 7.1.139
+Problem: When using marker folding and ending Insert mode with CTRL-C the
+ current fold is truncated. (Fred Kater)
+Solution: Ignore got_int while updating folds.
+Files: src/fold.c
+
+Patch 7.1.140
+Problem: v:count is set only after typing a non-digit, that makes it
+ difficult to make a nice mapping.
+Solution: Set v:count while still typing the count.
+Files: src/normal.c
+
+Patch 7.1.141
+Problem: GTK: -geom argument doesn't support a negative offset.
+Solution: Compute position from the right/lower corner.
+Files: src/gui_gtk_x11.c
+
+Patch 7.1.142
+Problem: ":redir @A>" doesn't work.
+Solution: Ignore the extra ">" also when appending. (James Vega)
+Files: src/ex_docmd.c
+
+Patch 7.1.143
+Problem: Uninitialized memory read when diffing three files. (Dominique
+ Pelle)
+Solution: Remove "+ !notset" so that we don't use fields that were not
+ computed.
+Files: src/diff.c
+
+Patch 7.1.144
+Problem: After ":diffup" cursor can be in the wrong position.
+Solution: Force recomputing the cursor position.
+Files: src/diff.c
+
+Patch 7.1.145
+Problem: Insert mode completion: When using the popup menu, after
+ completing a word and typing a non-word character Vim is still
+ completing the same word, following CTRL-N doesn't work.
+ Insert mode Completion: When using CTRL-X O and there is only
+ "struct." before the cursor, typing one char to reduce the
+ matches, then BS completion stops.
+Solution: When typing a character that is not part of the item being
+ completed, stop complete mode. For whole line completion also
+ accept a space. For file name completion stop at a path
+ separator.
+ For omni completion stay in completion mode even if completing
+ with empty string.
+Files: src/edit.c
+
+Patch 7.1.146 (extra)
+Problem: VMS: Files with a very rare record organization (VFC) cannot be
+ properly written by Vim.
+ On older VAX systems mms runs into a syntax error.
+Solution: Check for this special situation. Do not wrap a comment, make it
+ one long line. (Zoltan Arpadffy)
+Files: src/fileio.c, src/Make_vms.mms
+
+Patch 7.1.147 (after 7.1.127)
+Problem: Freeing memory already freed when completing user name. (Meino
+ Cramer)
+Solution: Use a flag to remember if "orig" needs to be freed.
+Files: src/ex_getln.c
+
+Patch 7.1.148
+Problem: Some types are not found by configure.
+Solution: Test for the sys/types.h header file. (Sean Boudreau)
+Files: src/configure.in, src/auto/configure
+
+Patch 7.1.149
+Problem: GTK GUI: When the completion popup menu is used scrolling another
+ window by the scrollbar is OK, but using the scroll wheel it
+ behaves line <Enter>.
+Solution: Ignore K_MOUSEDOWN and K_MOUSEUP. Fix redrawing the popup menu.
+Files: src/edit.c, src/gui.c
+
+Patch 7.1.150
+Problem: When 'clipboard' has "unnamed" using "p" in Visual mode doesn't
+ work correctly. (Jianrong Yu)
+Solution: When 'clipboard' has "unnamed" also obtain the selection when
+ getting the default register.
+Files: src/ops.c
+
+Patch 7.1.151
+Problem: Using whole line completion with 'ignorecase' and 'infercase' set
+ and the line is empty get an lalloc(0) error.
+Solution: Don't try changing case for an empty match. (Matthew Wozniski)
+Files: src/edit.c
+
+Patch 7.1.152
+Problem: Display problem when 'hls' and 'cursorcolumn' are set and
+ searching for "$". (John Mullin) Also when scrolling
+ horizontally when 'wrap' is off.
+Solution: Keep track of the column where highlighting was set. Check the
+ column offset when skipping characters.
+Files: src/screen.c
+
+Patch 7.1.153
+Problem: Compiler warnings on SGI. Undefined XpmAllocColor (Charles
+ Campbell)
+Solution: Add type casts. Init st_dev and st_ino separately. Don't use
+ type casts for vim_snprintf() when HAVE_STDARG_H is defined.
+ Define XpmAllocColor when needed.
+Files: src/eval.c, src/ex_cmds.c, src/fileio.c, src/misc2.c,
+ src/gui_xmebw.c
+
+Patch 7.1.154
+Problem: Compiler warning for signed/unsigned compare.
+Solution: Add type cast.
+Files: src/screen.c
+
+Patch 7.1.155
+Problem: Crash when 'undolevels' is 0 and repeating "udd". (James Vega)
+Solution: When there is only one branch use u_freeheader() to delete it.
+Files: src/undo.c
+
+Patch 7.1.156
+Problem: Overlapping arguments for strcpy() when expanding command line
+ variables.
+Solution: Use mch_memmove() instead of STRCPY(). Also fix a few typos.
+ (Dominique Pelle)
+Files: src/ex_docmd.c
+
+Patch 7.1.157
+Problem: In Ex mode, :" gives an error at end-of-file. (Michael Hordijk)
+Solution: Only give an error for an empty line, not for a comment.
+Files: src/ex_docmd.c
+
+Patch 7.1.158 (extra)
+Problem: Win32 console: When 'encoding' is "utf-8" and typing Alt-y the
+ result is wrong. Win32 GUI: Alt-y results in "u" when 'encoding'
+ is "cp1250" (Lukas Cerman)
+Solution: For utf-8 don't set the 7th bit in a byte, convert to the correct
+ byte sequence. For cp1250, when conversion to 'encoding' results
+ in the 7th bit not set, set the 7th bit after conversion.
+Files: src/os_win32.c, src/gui_w48.c
+
+Patch 7.1.159
+Problem: strcpy() has overlapping arguments.
+Solution: Use mch_memmove() instead. (Dominique Pelle)
+Files: src/ex_cmds.c
+
+Patch 7.1.160
+Problem: When a focus autocommand is defined, getting or losing focus
+ causes the hit-enter prompt to be redrawn. (Bjorn Winckler)
+Solution: Overwrite the last line.
+Files: src/message.c
+
+Patch 7.1.161
+Problem: Compilation errors with tiny features and EXITFREE.
+Solution: Add #ifdefs. (Dominique Pelle)
+Files: src/edit.c, src/misc2.c
+
+Patch 7.1.162
+Problem: Crash when using a modifier before "while" or "for". (A.Politz)
+Solution: Skip modifiers when checking for a loop command.
+Files: src/proto/ex_docmd.pro, src/ex_docmd.c, src/ex_eval.c
+
+Patch 7.1.163
+Problem: Warning for the unknown option 'bufsecret'.
+Solution: Remove the lines .vim that use this option. (Andy Wokula)
+Files: runtime/menu.vim
+
+Patch 7.1.164
+Problem: Reading past end of regexp pattern. (Dominique Pelle)
+Solution: Use utf_ptr2len().
+Files: src/regexp.c
+
+Patch 7.1.165
+Problem: Crash related to getting X window ID. (Dominique Pelle)
+Solution: Don't trust the window ID that we got in the past, check it every
+ time.
+Files: src/os_unix.c
+
+Patch 7.1.166
+Problem: Memory leak for using "gp" in Visual mode.
+Solution: Free memory in put_register(). (Dominique Pelle)
+Files: src/ops.c
+
+Patch 7.1.167
+Problem: Xxd crashes when using "xxd -b -c 110". (Debian bug 452789)
+Solution: Allocate more memory. Fix check for maximum number of columns.
+Files: src/xxd/xxd.c
+
+Patch 7.1.168 (extra)
+Problem: Win32 GUI: Since patch 7.1.095, when the Vim window does not have
+ focus, clicking in it doesn't position the cursor. (Juergen
+ Kraemer)
+Solution: Don't reset s_button_pending just after receiving focus.
+Files: src/gui_w48.c
+
+Patch 7.1.169
+Problem: Using uninitialized variable when system() fails. (Dominique
+ Pelle)
+Solution: Let system() return an empty string when it fails.
+Files: src/eval.c
+
+Patch 7.1.170
+Problem: Valgrind warning for overlapping arguments for strcpy().
+Solution: Use mch_memmove() instead. (Dominique Pelle)
+Files: src/getchar.c
+
+Patch 7.1.171
+Problem: Reading one byte before allocated memory.
+Solution: Check index not to become negative. (Dominique Pelle)
+Files: src/ex_getln.c
+
+Patch 7.1.172
+Problem: When 'buftype' is "acwrite" Vim still checks if the file or
+ directory exists before overwriting.
+Solution: Don't check for overwriting when the buffer name is not a file
+ name.
+Files: src/ex_cmds.c
+
+Patch 7.1.173
+Problem: Accessing freed memory. (Dominique Pelle)
+Solution: Don't call reg_getline() to check if a line is the first in the
+ file.
+Files: src/regexp.c
+
+Patch 7.1.174
+Problem: Writing NUL past end of a buffer.
+Solution: Copy one byte less when using strncat(). (Dominique Pelle)
+Files: src/ex_cmds.c, src/ex_docmd.c,
+
+Patch 7.1.175
+Problem: <BS> doesn't work with some combination of 'sts', 'linebreak' and
+ 'backspace'. (Francois Ingelrest)
+Solution: When adding white space results in not moving back delete one
+ character.
+Files: src/edit.c
+
+Patch 7.1.176
+Problem: Building with Aap fails when the "compiledby" argument contains
+ '<' or '>' characters. (Alex Yeh)
+Solution: Change how quoting is done in the Aap recipe.
+Files: src/main.aap
+
+Patch 7.1.177
+Problem: Freeing memory twice when in debug mode while reading a script.
+Solution: Ignore script input while in debug mode.
+Files: src/ex_cmds2.c, src/getchar.c, src/globals.h
+
+Patch 7.1.178
+Problem: "%" doesn't work on "/* comment *//* comment */".
+Solution: Don't handle the "//" in "*//*" as a C++ comment. (Markus
+ Heidelberg)
+Files: src/search.c
+
+Patch 7.1.179
+Problem: Need to check for TCL 8.5.
+Solution: Adjust configure script. (Alexey Froloff)
+Files: src/configure.in, src/auto/configure
+
+Patch 7.1.180
+Problem: Regexp patterns not tested sufficiently.
+Solution: Add more checks to the regexp test.
+Files: src/testdir/test64.in, src/testdir/test64.ok
+
+Patch 7.1.181
+Problem: Accessing uninitialized memory in Farsi mode. (Dominique Pelle)
+Solution: Only invoke lrF_sub() when there is something to do.
+Files: src/ex_cmds.c
+
+Patch 7.1.182
+Problem: When using tab pages and an argument list the session file may
+ contain wrong "next" commands. (Alexander Bluem)
+Solution: Use "argu" commands and only when needed.
+Files: src/ex_docmd.c
+
+Patch 7.1.183
+Problem: "Internal error" for ":echo matchstr('a', 'a\%[\&]')" (Mitanu
+ Paul)
+Solution: Inside "\%[]" detect \&, \| and \) as an error.
+Files: src/regexp.c
+
+Patch 7.1.184
+Problem: Crash when deleting backwards over a line break in Insert mode.
+Solution: Don't advance the cursor when it's already on the NUL after a
+ line. (Matthew Wozniski)
+Files: src/normal.c
+
+Patch 7.1.185
+Problem: Using "gR" with a multi-byte encoding and typing a CR pushes
+ characters onto the replace stack incorrectly, resulting in BS
+ putting back the wrong characters. (Paul B. Mahol)
+Solution: Push multi-byte characters onto the replace stack in reverse byte
+ order. Add replace_push_mb().
+Files: src/edit.c, src/misc1.c, src/proto/edit.pro
+
+Patch 7.1.186
+Problem: "expand('<afile>')" returns a bogus value after changing
+ directory. (Dave Fishburn)
+Solution: Copy "autocmd_fname" to allocated memory and expand to full
+ filename. Shorten the path when expanding <afile>.
+Files: src/ex_docmd.c, src/fileio.c
+
+Patch 7.1.187
+Problem: Win32 GUI: Custom completion using system() no longer works
+ after patch 7.1.104. (Erik Falor)
+Solution: Loop when safe_vgetc() returns K_IGNORE.
+Files: src/ex_getln.c
+
+Patch 7.1.188
+Problem: When 'showmode' is off the message for changing a readonly file is
+ given in the second column instead of the first. (Payl B. Mahol)
+Solution: Put the W10 message in the first column.
+Files: src/edit.c
+
+Patch 7.1.189 (after 7.1.104)
+Problem: Patch 7.1.104 was incomplete.
+Solution: Also call plain_vgetc() in ask_yesno().
+Files: src/misc1.c
+
+Patch 7.1.190
+Problem: Cursor after end-of-line: "iA sentence.<Esc>)"
+Solution: Move cursor back and make motion inclusive.
+Files: src/normal.c
+
+Patch 7.1.191
+Problem: Win32 GUI: after patch 7.1.168 there is still a problem when
+ clicking in a scrollbar. (Juergen Jottkaerr)
+Solution: Don't check the input buffer when dragging the scrollbar.
+Files: src/gui.c
+
+Patch 7.1.192
+Problem: With Visual block selection, "s" and typing something, CTRL-C
+ doesn't stop Vim from repeating the replacement in other lines,
+ like happens for "I".
+Solution: Check for "got_int" to be set.
+Files: src/ops.c
+
+Patch 7.1.193
+Problem: Some Vim 5.x digraphs are missing in Vim 7, even though the
+ character pairs are not used. (Philippe de Muyter)
+Solution: Add those Vim 5.x digraphs that don't conflict with others.
+Files: src/digraph.c
+
+Patch 7.1.194
+Problem: ":echo glob('~/{}')" results in /home/user//.
+Solution: Don't add a slash if there already is one.
+Files: src/os_unix.c
+
+Patch 7.1.195
+Problem: '0 mark doesn't work for "~/foo ~ foo".
+Solution: Don't expand the whole file name, only "~/".
+Files: src/mark.c
+
+Patch 7.1.196 (extra)
+Problem: Win32 GUI: "\n" in a tooltip doesn't cause a line break. (Erik
+ Falor)
+Solution: Use the TTM_SETMAXTIPWIDTH message.
+Files: src/gui_w32.c
+
+Patch 7.1.197
+Problem: Mac: "make install" doesn't work when prefix defined.
+Solution: Pass different arguments to "make installruntime". (Jjgod Jiang)
+Files: src/Makefile
+
+Patch 7.1.198
+Problem: Hang when using ":s/\n//gn". (Burak Gorkemli)
+Solution: Set "skip_match".
+Files: src/ex_cmds.c
+
+Patch 7.1.199
+Problem: Can't do command line completion for a specific file name
+ extension.
+Solution: When the pattern ends in "$" don't add a star for completion and
+ remove the "$" before matching with file names.
+Files: runtime/doc/cmdline.txt, src/ex_getln.c
+
+Patch 7.1.200 (after 7.1.177 and 7.1.182)
+Problem: Compiler warnings for uninitialized variables.
+Solution: Init variables.
+Files: src/ex_cmds2.c, src/ex_docmd.c
+
+Patch 7.1.201
+Problem: When reading stdin 'fenc' and 'ff are not set.
+Solution: Set the options after reading stdin. (Ben Schmidt)
+Files: src/fileio.c
+
+Patch 7.1.202
+Problem: Incomplete utf-8 byte sequence is not checked for validity.
+Solution: Check the bytes that are present for being valid. (Ben Schmidt)
+Files: src/mbyte.c
+
+Patch 7.1.203
+Problem: When 'virtualedit' is "onemore" then "99|" works but ":normal 99|"
+ doesn't. (Andy Wokula)
+Solution: Check for "onemore" flag in check_cursor_col().
+Files: src/misc2.c
+
+Patch 7.1.204 (extra)
+Problem: Win32: Using the example at 'balloonexpr' the balloon disappears
+ after four seconds and then comes back again. Also moves the
+ mouse pointer a little bit. (Yongwei Wu)
+Solution: Set the autopop time to 30 seconds (the max value). (Sergey
+ Khorev) Move the mouse two pixels forward and one back to end up
+ in the same position (really!).
+Files: src/gui_w32.c
+
+Patch 7.1.205
+Problem: Can't get the operator in an ":omap".
+Solution: Add the "v:operator" variable. (Ben Schmidt)
+Files: runtime/doc/eval.txt, src/eval.c, src/normal.c, src/vim.h
+
+Patch 7.1.206
+Problem: Compiler warnings when using MODIFIED_BY.
+Solution: Add type casts. (Ben Schmidt)
+Files: src/version.c
+
+Patch 7.1.207
+Problem: Netbeans: "remove" cannot delete one line.
+Solution: Remove partial lines and whole lines properly. Avoid a memory
+ leak. (Xavier de Gaye)
+Files: src/netbeans.c
+
+Patch 7.1.208
+Problem: On Alpha get an unaligned access error.
+Solution: Store the dictitem pointer before using it. (Matthew Luckie)
+Files: src/eval.c
+
+Patch 7.1.209
+Problem: GTK: When using the netrw plugin and doing ":gui" Vim hangs.
+Solution: Stop getting a selection after three seconds. This is a hack.
+Files: src/gui_gtk_x11.c
+
+Patch 7.1.210
+Problem: Listing mapping for 0xdb fails when 'encoding' is utf-8. (Tony
+ Mechelynck)
+Solution: Recognize K_SPECIAL KS_EXTRA KE_CSI as a CSI byte.
+Files: src/mbyte.c
+
+Patch 7.1.211
+Problem: The matchparen plugin may take an unexpected amount of time, so
+ that it looks like Vim hangs.
+Solution: Add a timeout to searchpair(), searchpairpos(), search() and
+ searchpos(). Use half a second timeout in the plugin.
+Files: runtime/doc/eval.txt, runtime/plugin/matchparen.vim, src/edit.c,
+ src/eval.c, src/ex_cmds2.c, src/ex_docmd.c, src/normal.c,
+ src/proto/eval.pro, src/proto/ex_cmds2.pro, src/proto/search.pro,
+ src/search.c
+
+Patch 7.1.212
+Problem: Accessing a byte before a line.
+Solution: Check that the column is 1 or more. (Dominique Pelle)
+Files: src/edit.c
+
+Patch 7.1.213
+Problem: A ":tabedit" command that results in the "swap file exists" dialog
+ and selecting "abort" doesn't close the new tab. (Al Budden)
+Solution: Pass "old_curwin" to do_exedit().
+Files: src/ex_docmd.c
+
+Patch 7.1.214
+Problem: ":1s/g\n\zs1//" deletes characters from the first line. (A Politz)
+Solution: Start replacing in the line where the match starts.
+Files: src/ex_cmds.c
+
+Patch 7.1.215
+Problem: It is difficult to figure out what syntax items are nested at a
+ certain position.
+Solution: Add the synstack() function.
+Files: runtime/doc/eval.txt, src/eval.c, src/proto/syntax.pro,
+ src/syntax.c
+
+Patch 7.1.216
+Problem: Variants of --remote-tab are not mentioned for "vim --help".
+Solution: Display optional -wait and -silent.
+Files: src/main.c
+
+Patch 7.1.217
+Problem: The "help-tags" tag may be missing from runtime/doc/tags when it
+ was generated during "make install".
+Solution: Add the "++t" argument to ":helptags" to force adding the tag.
+Files: runtime/doc/Makefile, runtime/doc/various.txt, src/ex_cmds.c,
+ src/ex_cmds.h
+
+Patch 7.1.218
+Problem: A syntax region without a "keepend", containing a region with
+ "extend" could be truncated at the end of the containing region.
+Solution: Do not call syn_update_ends() when there are no keepend items.
+Files: src/syntax.c
+
+Patch 7.1.219 (after 7.1.215)
+Problem: synstack() returns situation after the current character, can't
+ see the state for a one-character region.
+Solution: Don't update ending states in the requested column.
+Files: runtime/doc/eval.txt, src/eval.c, src/hardcopy.c,
+ src/proto/syntax.pro, src/screen.c, src/spell.c, src/syntax.c
+
+Patch 7.1.220
+Problem: When a ")" or word movement command moves the cursor back from the
+ end of the line it may end up on the trail byte of a multi-byte
+ character. It's also moved back when it isn't needed.
+Solution: Add the adjust_cursor() function.
+Files: src/normal.c
+
+Patch 7.1.221
+Problem: When inserting a "(", triggering the matchparen plugin, the
+ following highlighting may be messed up.
+Solution: Before triggering the CursorMovedI autocommands update the display
+ to update the stored syntax stacks for the change.
+Files: src/edit.c
+
+Patch 7.1.222 (after 7.1.217)
+Problem: Wildcards in argument of ":helptags" are not expanded. (Marcel
+ Svitalsky)
+Solution: Expand wildcards in the directory name.
+Files: src/ex_cmds.c
+
+Patch 7.1.223
+Problem: glob() doesn't work properly when 'shell' is "sh" or "bash" and
+ the expanded name contains spaces, '~', single quotes and other
+ special characters. (Adri Verhoef, Charles Campbell)
+Solution: For Posix shells define a vimglob() function to list the matches
+ instead of using "echo" directly.
+Files: src/os_unix.c
+
+Patch 7.1.224
+Problem: When using "vim -F -o file1 file2" only one window is
+ right-to-left. Same for "-H". (Ben Schmidt)
+Solution: use set_option_value() to set 'rightleft'.
+Files: src/main.c
+
+Patch 7.1.225
+Problem: Using unitialized value when XGetWMNormalHints() fails.
+Solution: Check the return value. (Dominique Pelle)
+Files: src/os_unix.c
+
+Patch 7.1.226
+Problem: Command line completion doesn't work when a file name contains a
+ '&' character.
+Solution: Accept all characters in a file name, except ones that end a
+ command or white space.
+Files: src/ex_docmd.c
+
+Patch 7.1.227
+Problem: Hang in syntax HL when moving over a ")". (Dominique Pelle)
+Solution: Avoid storing a syntax state in the wrong position in the list of
+ remembered states.
+Files: src/syntax.c
+
+Patch 7.1.228
+Problem: When 'foldmethod' is "indent" and a fold is created with ">>" it
+ can't be closed with "zc". (Daniel Shahaf)
+Solution: Reset the "small" flag of a fold when adding a line to it.
+Files: src/fold.c
+
+Patch 7.1.229
+Problem: A fold is closed when it shouldn't when 'foldmethod' is "indent"
+ and backspacing a non-white character so that the indent increases.
+Solution: Keep the fold open after backspacing a character.
+Files: src/edit.c
+
+Patch 7.1.230
+Problem: Memory leak when executing SourceCmd autocommands.
+Solution: Free the memory. (Dominique Pelle)
+Files: src/ex_cmds2.c
+
+Patch 7.1.231
+Problem: When shifting lines the change is acted upon multiple times.
+Solution: Don't have shift_line() call changed_bytes.
+Files: src/edit.c, src/ops.c, src/proto/edit.pro, src/proto/ops.pro
+
+Patch 7.1.232 (after 7.1.207 and 7.1.211)
+Problem: Compiler warnings with MSVC.
+Solution: Add type casts. (Mike Williams)
+Files: src/ex_cmds2.c, src/netbeans.c
+
+Patch 7.1.233
+Problem: Crash when doing Insert mode completion for a user defined
+ command. (Yegappan Lakshmanan)
+Solution: Don't use the non-existing command line.
+Files: src/ex_getln.c
+
+Patch 7.1.234
+Problem: When diff'ing three files the third one isn't displayed correctly.
+ (Gary Johnson)
+Solution: Compute the size of diff blocks correctly when merging blocks.
+ Compute filler lines correctly when scrolling.
+Files: src/diff.c
+
+Patch 7.1.235
+Problem: Pattern matching is slow when using a lot of simple patterns.
+Solution: Avoid allocating memory by not freeing it when it's not so much.
+ (Alexei Alexandrov)
+Files: src/regexp.c
+
+Patch 7.1.236
+Problem: When using 'incsearch' and 'hlsearch' a complicated pattern may
+ make Vim hang until CTRL-C is pressed.
+Solution: Add the 'redrawtime' option.
+Files: runtime/doc/options.txt, src/ex_cmds.c, src/ex_docmd.c,
+ src/ex_getln.c, src/gui.c, src/misc1.c, src/normal.c,
+ src/option.c, src/quickfix.c, src/regexp.c, src/proto/regexp.pro,
+ src/proto/search.pro, src/search.c, src/screen.c,
+ src/option.h, src/spell.c, src/structs.h, src/syntax.c, src/tag.c,
+ src/vim.h
+
+Patch 7.1.237
+Problem: Compiler warning on an Alpha processor in Motif code.
+Solution: Change a typecast. (Adri Verhoef)
+Files: src/gui_motif.c
+
+Patch 7.1.238
+Problem: Using the 'c' flag with searchpair() may cause it to fail. Using
+ the 'r' flag doesn't work when 'wrapscan' is set. (A.Politz)
+Solution: Only use the 'c' flag for the first search, not for repeating.
+ When using 'r' imply 'W'. (Antony Scriven)
+Files: src/eval.c
+
+Patch 7.1.239 (after 7.1.233)
+Problem: Compiler warning for sprintf() argument.
+Solution: Add a typecast. (Nico Weber)
+Files: src/ex_getln.c
+
+Patch 7.1.240
+Problem: When "gUe" turns a German sharp s into SS the operation stops
+ before the end of the word. Latin2 has the same sharp s but it's
+ not changed to SS there.
+Solution: Make sure all the characters are operated upon. Detect the sharp
+ s in latin2. Also fixes that changing case of a multi-byte
+ character that changes the byte cound doesn't always work.
+Files: src/ops.c
+
+Patch 7.1.241
+Problem: Focus change events not always ignored. (Erik Falor)
+Solution: Ignore K_IGNORE in Insert mode in a few more places.
+Files: src/edit.c
+
+Patch 7.1.242 (after 7.1.005)
+Problem: "cib" doesn't work properly on "(x)". (Tim Pope)
+Solution: Use ltoreq() instead of lt(). Also fix "ciT" on "<a>x</a>".
+Files: src/search.c
+
+Patch 7.1.243 (after 7.1.240)
+Problem: "U" doesn't work on all text in Visual mode. (Adri Verhoef)
+Solution: Loop over all the lines to be changed. Add tests for this.
+Files: src/ops.c, src/testdir/test39.in, src/testdir/test39.ok
+
+Patch 7.1.244
+Problem: GUI may have part of the command line cut off.
+Solution: Don't round the number of lines up, always round down.
+ (Tony Houghton, Scott Dillard)
+Files: src/gui.c
+
+Patch 7.1.245
+Problem: Pressing CTRL-\ three times causes Vim to quit. (Ranganath Rao).
+ Also for f CTRL-\ CTRL-\.
+Solution: When going to cooked mode in mch_delay() set a flag to ignore
+ SIGQUIT.
+Files: src/os_unix.c
+
+Patch 7.1.246
+Problem: Configure hangs when the man pager is something strange. (lorien)
+Solution: Set MANPAGER and PAGER to "cat". (Micah Cowan)
+Files: src/auto/configure, src/configure.in
+
+Patch 7.1.247
+Problem: When using Netbeans backspacing in Insert mode skips a character
+ now and then. (Ankit Jain)
+Solution: Avoid calling netbeans_removed(), it frees the line pointer.
+ (partly by Dominique Pelle).
+Files: src/misc1.c
+
+Patch 7.1.248
+Problem: Can't set the '" mark. Can't know if setpos() was successful.
+Solution: Allow setting the '" mark with setpos(). Have setpos() return a
+ value indicating success/failure.
+Files: runtime/doc/eval.txt, src/eval.c, src/mark.c
+
+Patch 7.1.249
+Problem: After "U" the cursor can be past end of line. (Adri Verhoef)
+Solution: Adjust the cursor position in u_undoline().
+Files: src/undo.c
+
+Patch 7.1.250
+Problem: ":setglobal fenc=anything" gives an error message in a buffer
+ where 'modifiable' is off. (Ben Schmidt)
+Solution: Don't give an error if 'modifiable' doesn't matter.
+Files: src/option.c
+
+Patch 7.1.251
+Problem: Using freed memory when spell checking enabled.
+Solution: Obtain the current line again after calling spell_move_to().
+ (Dominique Pelle)
+Files: src/screen.c
+
+Patch 7.1.252 (after 7.1.243)
+Problem: Test 39 fails when the environment has a utf-8 locale. (Dominique
+ Pelle)
+Solution: Force 'encoding' to be latin1.
+Files: src/testdir/test39.in
+
+Patch 7.1.253
+Problem: ":sort" doesn't work in a one line file. (Patrick Texier)
+Solution: Don't sort if there is only one line. (Dominique Pelle)
+Files: src/ex_cmds.c
+
+Patch 7.1.254
+Problem: Tests 49 and 55 fail when the locale is French.
+Solution: Using C messages for test 49. Filter the error message in test 55
+ such that it works when the number is halfway the message.
+Files: src/testdir/test49.in, src/testdir/test55.in
+
+Patch 7.1.255
+Problem: Vim doesn't support utf-32. (Yongwei Wu)
+Solution: Add aliases for utf-32, it's the same as ucs-4.
+Files: src/mbyte.c
+
+Patch 7.1.256
+Problem: findfile() also returns directories.
+Solution: Cleanup the code for finding files and directories in a list of
+ directories. Remove the ugly global ff_search_ctx.
+Files: src/eval.c, src/misc2.c, src/vim.h, src/tag.c
+
+Patch 7.1.257
+Problem: Configure can't always find the Tcl header files.
+Solution: Also look in /usr/local/include/tcl$tclver and
+ /usr/include/tcl$tclver (James Vega)
+Files: src/auto/configure, src/configure.in
+
+Patch 7.1.258
+Problem: Crash when doing "d/\n/e" and 'virtualedit' is "all". (Andy Wokula)
+Solution: Avoid that the column becomes negative. Also fixes other problems
+ with the end of a pattern match is in column zero. (A.Politz)
+Files: src/search.c
+
+Patch 7.1.259
+Problem: Cursor is in the wrong position when 'rightleft' is set,
+ 'encoding' is "utf-8" and on an illegal byte. (Dominique Pelle)
+Solution: Only put the cursor in the first column when actually on a
+ double-wide character. (Yukihiro Nakadaira)
+Files: src/screen.c
+
+Patch 7.1.260
+Problem: Cursor positioning problem after ^@ wrapping halfway when
+ 'encoding' is utf-8.
+Solution: Only count a position for printable characters. (partly by
+ Yukihiro Nakadaira)
+Files: src/charset.c
+
+Patch 7.1.261
+Problem: When a 2 byte BOM is detected Vim uses UCS-2, which doesn't work
+ for UTF-16 text. (Tony Mechelynck)
+Solution: Default to UTF-16.
+Files: src/fileio.c, src/testdir/test42.ok
+
+Patch 7.1.262
+Problem: Can't get the process ID of Vim.
+Solution: Implement getpid().
+Files: src/eval.c, runtime/doc/eval.txt
+
+Patch 7.1.263
+Problem: The filetype can consist of two dot separated names. This works
+ for syntax and ftplugin, but not for indent. (Brett Stahlman)
+Solution: Use split() and loop over each dot separated name.
+Files: runtime/indent.vim
+
+Patch 7.1.264
+Problem: Crash when indenting lines. (Dominique Pelle)
+Solution: Set the cursor column when changing the cursor line.
+Files: src/ops.c, src/misc1.c
+
+Patch 7.1.265
+Problem: When 'isfname' contains a space, cmdline completion can hang.
+ (James Vega)
+Solution: Reset the "len" variable.
+Files: src/ex_docmd.c
+
+Patch 7.1.266
+Problem: When the version string returned by the terminal contains
+ unexpected characters, it is used as typed input. (James Vega)
+Solution: Assume the escape sequence ends in a letter.
+Files: src/term.c
+
+Patch 7.1.267
+Problem: When changing folds cursor may be posioned in the wrong place.
+Solution: Call changed_window_setting_win() instead of
+ changed_window_setting().
+Files: src/fold.c
+
+Patch 7.1.268
+Problem: Always shows "+" at end of screen line with: ":set
+ listchars=eol:$,extends:+ nowrap list cursorline" (Gary Johnson)
+Solution: Check for lcs_eol_one instead of lcs_eol.
+Files: src/screen.c
+
+Patch 7.1.269
+Problem: The matchparen plugin has an arbitrary limit for the number of
+ lines to look for a match.
+Solution: Rely on the searchpair() timeout.
+Files: runtime/plugin/matchparen.vim
+
+Patch 7.1.270
+Problem: ":?foo?" matches in current line since patch 7.1.025. (A.Politz)
+Solution: Remove the SEARCH_START flag.
+Files: src/ex_docmd.c, src/search.c
+
+Patch 7.1.271
+Problem: In a Vim build without autocommands, checking a file that was
+ changed externally causes the current buffer to be changed
+ unexpectedly. (Karsten Hopp)
+Solution: Store "curbuf" instead of "buf".
+Files: src/fileio.c
+
+Patch 7.1.272
+Problem: The special buffer name [Location List] is not used for a buffer
+ displayed in another tab page.
+Solution: Use FOR_ALL_TAB_WINDOWS instead of FOR_ALL_WINDOWS. (Hiroaki
+ Nishihara)
+Files: src/buffer.c
+
+Patch 7.1.273
+Problem: When profiling on Linux Vim exits early. (Liu Yubao)
+Solution: When profiling don't exit on SIGPROF.
+Files: src/Makefile, src/os_unix.c
+
+Patch 7.1.274 (after 7.1.272)
+Problem: Compiler warning for optimized build.
+Solution: Init win to NULL.
+Files: src/buffer.c
+
+Patch 7.1.275 (extra)
+Problem: Mac: ATSUI and 'antialias' don't work properly together.
+Solution: Fix this and the input method. (Jjgod Jiang)
+Files: src/vim.h, src/gui_mac.c
+
+Patch 7.1.276
+Problem: "gw" uses 'formatexpr', even though the docs say it doesn't.
+Solution: Don't use 'formatexpr' for "gw".
+Files: src/vim.h, src/edit.c, src/ops.c, src/proto/ops.pro
+
+Patch 7.1.277
+Problem: Default for 'paragraphs' misses some items (Colin Watson)
+Solution: Add TP, HP, Pp, Lp and It to 'paragraphs'. (James Vega)
+Files: runtime/doc/options.txt, src/option.c
+
+Patch 7.1.278 (extra, after 7.1.275)
+Problem: Build failure when USE_CARBONKEYHANDLER is not defined.
+Solution: Remove #ifdef.
+Files: src/gui_mac.c
+
+Patch 7.1.279
+Problem: When using cscope temporary files are left behind.
+Solution: Send the quit command to cscope and give it two seconds to exit
+ nicely before killing it. (partly by Dominique Pelle)
+Files: src/if_cscope.c
+
+Patch 7.1.280 (after 7.1.275)
+Problem: Mac: build problems when not using multibyte feature. (Nicholas
+ Stallard)
+Solution: Don't define USE_IM_CONTROL when not using multibyte.
+Files: src/vim.h
+
+Patch 7.1.281 (after 7.1.279)
+Problem: sa.sa_mask is not initialized. Cscope may not exit.
+Solution: Use sigemptyset(). Use SIGKILL instead of SIGTERM. (Dominique
+ Pelle)
+Files: src/if_cscope.c
+
+Patch 7.1.282 (extra)
+Problem: Win64: Edit with Vim context menu isn't installed correctly.
+ Compiler warnings and a few other things.
+Solution: Add [ and ] to entry of class name. Use UINT_PTR instead of UINT.
+ And a fixes for the other things. (George V. Reilly)
+Files: src/GvimExt/Makefile, src/dosinst.c, src/if_ole.cpp, src/if_ole.h,
+ src/if_ole.idl, src/INSTALLpc.txt, src/Make_mvc.mak,
+ src/os_win32.c,
+
+Patch 7.1.283
+Problem: Non-extra part for 7.1.282.
+Solution: Various changes.
+Files: src/ex_docmd.c, src/globals.h, src/if_cscope.c, src/main.c,
+ src/mark.c, src/netbeans.c, src/popupmnu.c, src/vim.h,
+ src/window.c
+
+Patch 7.1.284
+Problem: Compiler warnings for functions without prototype.
+Solution: Add the function prototypes. (Patrick Texier)
+Files: src/eval.c, src/quickfix.c
+
+Patch 7.1.285 (extra)
+Problem: Mac: dialog hotkeys don't work.
+Solution: Add hotkey support. (Dan Sandler)
+Files: src/gui_mac.c
+
+Patch 7.1.286 (after 7.1.103)
+Problem: "w" at the end of the buffer moves the cursor past the end of the
+ line. (Markus Heidelberg)
+Solution: Move the cursor back from the NUL when it was moved forward.
+Files: src/normal.c
+
+Patch 7.1.287
+Problem: Crash when reversing a list after using it. (Andy Wokula)
+Solution: Update the pointer to the last used element. (Dominique Pelle)
+Files: src/eval.c
+
+Patch 7.1.288 (after 7.1.281)
+Problem: Cscope still leaves behind temp files when using gvim.
+Solution: When getting the ECHILD error loop for a while until cscope exits.
+ (Dominique Pelle)
+Files: if_cscope.c
+
+Patch 7.1.289
+Problem: When EXITFREE is defined and 'acd' is set freed memory is used.
+ (Dominique Pelle)
+Solution: Reset p_acd before freeing all buffers.
+Files: src/misc2.c
+
+Patch 7.1.290
+Problem: Reading bytes that were not written when spell checking and a line
+ has a very large indent.
+Solution: Don't copy the start of the next line when it only contains
+ spaces. (Dominique Pelle)
+Files: src/spell.c
+
+Patch 7.1.291 (after 7.1.288)
+Problem: Compiler warning.
+Solution: Change 50 to 50L.
+Files: src/if_cscope.c
+
+Patch 7.1.292
+Problem: When using a pattern with "\@<=" the submatches can be wrong.
+ (Brett Stahlman)
+Solution: Save the submatches when attempting a look-behind match.
+Files: src/regexp.c
+
+Patch 7.1.293
+Problem: Spell checking considers super- and subscript characters as word
+ characters.
+Solution: Recognize the Unicode super and subscript characters.
+Files: src/spell.c
+
+Patch 7.1.294
+Problem: Leaking memory when executing a shell command.
+Solution: Free memory when not able to save for undo. (Dominique Pelle)
+Files: src/ex_cmds.c
+
+Patch 7.1.295
+Problem: Vimtutor only works with vim, not gvim.
+Solution: Add the -g flag to vimtutor. (Dominique Pelle) Add gvimtutor.
+Files: src/Makefile, src/gvimtutor, src/vimtutor, runtime/doc/vimtutor.1
+
+Patch 7.1.296
+Problem: SELinux is not supported.
+Solution: Detect the selinux library and use mch_copy_sec(). (James Vega)
+Files: src/auto/configure, src/config.h.in, src/configure.in,
+ src/fileio.c, src/memfile.c, src/os_unix.c, src/proto/os_unix.pro
+
+Patch 7.1.297
+Problem: When using the search/replace dialog the parenmatch highlighting
+ can be wrong. (Tim Duncan)
+Solution: In the GUI redraw function invoke the CursorMoved autocmd.
+Files: src/gui.c
+
+Patch 7.1.298 (after 7.1.295)
+Problem: src/gvimtutor is not distributed.
+Solution: Add it to the list of distributed files.
+Files: Filelist
+
+Patch 7.1.299
+Problem: Filetype detection doesn't work properly for file names ending in
+ a part that is ignored and contain a space or other special
+ characters.
+Solution: Escape the special characters using the new fnameescape function.
+Files: runtime/doc/eval.txt, runtime/filetype.vim, src/eval.c,
+ src/ex_getln.c, src/proto/ex_getln.pro, src/vim.h
+
+Patch 7.1.300
+Problem: Value of asmsyntax argument isn't checked for valid characters.
+Solution: Only accepts letters and digits.
+Files: runtime/filetype.vim
+
+Patch 7.1.301
+Problem: When the "File/Save" menu is used in Insert mode, a tab page label
+ is not updated to remove the "+".
+Solution: Call draw_tabline() from showruler(). (Bjorn Winckler)
+Files: src/screen.c
+
+Patch 7.1.302 (after 7.1.299)
+Problem: Compilation error on MS-Windows.
+Solution: Don't use xp_shell when it's not defined.
+Files: src/ex_getln.c
+
+Patch 7.1.303 (after 7.1.302)
+Problem: Compilation error on MS-Windows, again.
+Solution: Declare p.
+Files: src/ex_getln.c
+
+Patch 7.1.304
+Problem: Shortpath_for_invalid_fname() does not work correctly and is
+ unnecessary complex.
+Solution: Clean up shortpath_for_invalid_fname(). (mostly by Yegappan
+ Lakshmanan)
+Files: src/eval.c
+
+Patch 7.1.305
+Problem: Editing a compressed file with special characters in the name
+ doesn't work properly.
+Solution: Escape special characters.
+Files: runtime/autoload/gzip.vim
+
+Patch 7.1.306
+Problem: Some Unicode characters are handled like word characters while
+ they are symbols.
+Solution: Adjust the table for Unicode classification.
+Files: src/mbyte.c
+
+Patch 7.1.307
+Problem: Many warnings when compiling with Python 2.5.
+Solution: Use ssize_t instead of int for some types. (James Vega)
+Files: src/if_python.c
+
+Patch 7.1.308
+Problem: When in readonly mode ":options" produces an error.
+Solution: Reset 'readonly'. (Gary Johnson)
+Files: runtime/optwin.vim
+
+Patch 7.1.309
+Problem: Installing and testing with a shadow directory doesn't work.
+ (James Vega)
+Solution: Add "po" to the list of directories to link. Also link the Vim
+ scripts in testdir. And a few more small fixes.
+Files: src/Makefile
+
+Patch 7.1.310
+Problem: Incomplete utf-8 byte sequence at end of the file is not detected.
+ Accessing memory that wasn't written.
+Solution: Check the last bytes in the buffer for being a valid utf-8
+ character. (mostly by Ben Schmidt)
+ Also fix that the reported line number of the error was wrong.
+Files: src/fileio.c
+
+Patch 7.1.311
+Problem: Compiler warning for missing sentinel in X code.
+Solution: Change 0 to NULL. (Markus Heidelberg)
+Files: src/mbyte.c
+
+Patch 7.1.312
+Problem: The .po files have mistakes in error numbers.
+Solution: Search for these mistakes in the check script. (Dominique Pelle)
+Files: src/po/check.vim
+
+Patch 7.1.313
+Problem: When the netbeans interface setModified call is used the status
+ lines and window title are not updated.
+Solution: Redraw the status lines and title. (Philippe Fremy)
+Files: src/netbeans.c
+
+Patch 7.1.314
+Problem: The value of 'pastetoggle' is written to the session file without
+ any escaping. (Randall Hansen)
+Solution: Use put_escstr(). (Ben Schmidt)
+Files: src/option.c
+
+Patch 7.1.315
+Problem: Crash with specific search pattern using look-behind match.
+ (Andreas Politz)
+Solution: Also save the value of "need_clear_subexpr".
+Files: src/regexp.c
+
+Patch 7.1.316
+Problem: When 'cscopetag' is set ":tag" gives an error message instead of
+ going to the next tag in the tag stack.
+Solution: Don't call do_cstag() when there is no argument. (Mark Goldman)
+Files: src/ex_docmd.c
+
+Patch 7.1.317
+Problem: Compiler warnings in Motif calls.
+Solution: Change zero to NULL. (Dominique Pelle)
+Files: src/gui_motif.c
+
+Patch 7.1.318
+Problem: Memory leak when closing xsmp connection. Crash on exit when
+ using Lesstif.
+Solution: Don't close the X display to work around a Lesstif bug. Free
+ clientid. Also fix a leak for Motif and Athena. (Dominique Pelle)
+Files: src/gui_x11.c, src/os_unix.c
+
+Patch 7.1.319
+Problem: When a register has an illegal utf-8 sequence, pasting it on the
+ command line causes an illegal memory access.
+Solution: Use mb_cptr2char_adv(). (Dominique Pelle)
+Files: src/ex_getln.c
+
+Patch 7.1.320 (extra)
+Problem: Win64: Warnings while compiling Python interface.
+Solution: Use PyInt in more places. Also update version message for the
+ console. (George Reilly)
+Files: src/if_python.c, src/version.c
+
+Patch 7.1.321 (extra)
+Problem: Win32 / Win64: Install file is outdated.
+Solution: Update the text for recent compiler. (George Reilly)
+Files: src/INSTALLpc.txt
+
+Patch 7.1.322
+Problem: Can't get start of Visual area in an <expr> mapping.
+Solution: Add the 'v' argument to getpos().
+Files: runtime/doc/eval.txt, src/eval.c
+
+Patch 7.1.323
+Problem: Test 19 fails with some termcaps. (Dominque Pelle)
+Solution: Set the t_kb and t_kD termcap values.
+Files: src/testdir/test19.in, src/testdir/test38.in
+
+Patch 7.1.324
+Problem: File name path length on Unix is limited to 1024.
+Solution: Use PATH_MAX when it's more than 1000.
+Files: src/os_unix.h
+
+Patch 7.1.325
+Problem: When editing a command line that's longer than available space in
+ the window, the characters at the end are in reverse order.
+Solution: Increment the insert position even when the command line doesn't
+ fit. (Ingo Karkat)
+Files: src/ex_getln.c
+
+Patch 7.1.326
+Problem: ":s!from!to!" works, but ":smagic!from!to!" doesn't. It sees the
+ "!" as a flag to to the command. Same for ":snomagic". (Johan
+ Spetz)
+Solution: When checking for a forced command also ignore ":smagic" and
+ ":snomagic". (Ian Kelling)
+Files: src/ex_docmd.c
+
+Patch 7.1.327
+Problem: The GUI tutor is installed when there is no GUI version.
+Solution: Only install gvimtutor when building a GUI version.
+Files: src/Makefile
+
+Patch 7.1.328
+Problem: Crash when using Cygwin and non-posix path name in tags file.
+Solution: Use separate buffer for posix path. (Ben Schmidt)
+Files: src/os_unix.c
+
+Patch 7.1.329
+Problem: When the popup menu is removed a column of cells, the right halve
+ of double-wide characters, may not be redrawn.
+Solution: Check if the right halve of a character needs to be redrawn.
+ (Yukihiro Nakadaira)
+Files: src/screen.c
+
+Patch 7.1.330
+Problem: Reading uninitialized memory when using Del in replace mode.
+Solution: Use utfc_ptr2len_len() instead of mb_ptr2len(). (Dominique Pelle)
+Files: src/misc1.c
+
+
+Warning for missing sentinel in gui_xmldlg.c. (Dominique Pelle)
+
+A search offset from the end of a match didn't work properly for multi-byte
+characters. (Yukihiro Nakadaira)
+
+When displaying the value of 'key' don't show "*****" when the value is empty.
+(Ben Schmidt)
+
+Internal error when compiled with EXITFREE and using the nerd_tree plugin.
+Set last_msg_hist to NULL when history becomes empty. Call
+free_all_functions() after garbage collection. (Dominique Pelle)
+
+GTK with XIM: <S-Space> does not work. (Yukihiro Nakadaira)
+
+Some shells do not support "echo -n", which breaks glob(). Use "echo" instead
+of "echo -n $1; echo". (Gary Johnson)
+
+"echo 22,44" printed "22" on top of the command, the error messages caused
+the rest not to be cleared. Added the need_clr_eos flag.
+
+Netbeans events are handled while updating the screen, causing a crash.
+Change the moment when events are handled. Rename nb_parse_messages() to
+netbeans_parse_messages(). (Xavier de Gaye)
+
+Test 11 was broken after patch 7.1.186 on Win32 console. (Daniel Shahaf)
+Use shellescape() on the file name.
+
+IM was turned off in im_preedit_end_cb() for no good reason. (Takuhiro
+Nishioka)
+
+A corrupted spell file could cause Vim to use lots of memory. Better
+detection for running into the end of the file. (idea from James Vega)
+
+Mac: Included a patch to make it build with GTK. Moved language init to
+mac_lang_init() function. (Ben Schmidt)
+
+Problem with 'wildmenu' after ":lcd", up/down arrows don't work. (Erik Falor)
+
+Fix configure.in to avoid "implicitly declared" warnings when running
+configure.
+
+Fixed a memory leak when redefining a keymap. (Dominique Pelle)
+
+Setting 'pastetoggle' to "jj" didn't work.
+
+'ic' and 'smartcase' don't work properly when using \%V in a search pattern.
+(Kana Natsuno)
vim:tw=78:ts=8:ft=help:norl:
diff --git a/runtime/doc/vim-fr.1 b/runtime/doc/vim-fr.1
index 3753a3b21..58434406a 100644
--- a/runtime/doc/vim-fr.1
+++ b/runtime/doc/vim-fr.1
@@ -143,7 +143,7 @@ Place le curseur sur la ligne "num" dans le premier fichier.
Si "num" est omis, le curseur sera plac sur la derni鑢e ligne.
.TP
+/{motif}
-Place le curseur sur la premi鑢e occurence de {motif} dans le premier fichier.
+Place le curseur sur la premi鑢e occurrence de {motif} dans le premier fichier.
Voir ":help search\-pattern" pour conna顃re les motifs de recherches
disponibles.
.TP
@@ -258,7 +258,7 @@ est 閙is et
quitte.
.TP
\-h
-Donne une aide succinte sur les arguments et les options de la ligne de
+Donne une aide succincte sur les arguments et les options de la ligne de
commande. Apr鑣 cela,
.B Vim
quitte.
@@ -269,7 +269,7 @@ Si
a 閠 compil avec le support de la fonctionnalit RIGHTLEFT pour l'閐ition de
fichiers de droite gauche et les claviers h閎reu, cette option lance
.B Vim
-en mode Hebreu, c.--d. avec les options 'hkmap' et 'rightleft' activ閑s.
+en mode H閎reu, c.--d. avec les options 'hkmap' et 'rightleft' activ閑s.
Sinon, un message d'erreur est 閙is et
.B Vim
quitte.
@@ -295,7 +295,7 @@ d'閏rire le fichier.
.TP
\-M
N'autorise aucune modification. les options 'modifiable' et 'write' sont
-desactiv閑s, de sorte que les changements ne sont pas autoris閟 et que les
+d閟activ閑s, de sorte que les changements ne sont pas autoris閟 et que les
fichiers ne peuvent pas 阾re 閏rits. Note : ces options peuvent 阾re activ閑s
pour autoriser les modifications.
.TP
diff --git a/runtime/doc/vim-fr.UTF-8.1 b/runtime/doc/vim-fr.UTF-8.1
index 72009f29d..aa2c3c958 100644
--- a/runtime/doc/vim-fr.UTF-8.1
+++ b/runtime/doc/vim-fr.UTF-8.1
@@ -143,7 +143,7 @@ Place le curseur sur la ligne "num" dans le premier fichier.
Si "num" est omis, le curseur sera plac茅 sur la derni猫re ligne.
.TP
+/{motif}
-Place le curseur sur la premi猫re occurence de {motif} dans le premier fichier.
+Place le curseur sur la premi猫re occurrence de {motif} dans le premier fichier.
Voir ":help search\-pattern" pour conna卯tre les motifs de recherches
disponibles.
.TP
@@ -258,7 +258,7 @@ est 茅mis et
quitte.
.TP
\-h
-Donne une aide succinte sur les arguments et les options de la ligne de
+Donne une aide succincte sur les arguments et les options de la ligne de
commande. Apr猫s cela,
.B Vim
quitte.
@@ -269,7 +269,7 @@ Si
a 茅t茅 compil茅 avec le support de la fonctionnalit茅 RIGHTLEFT pour l'茅dition de
fichiers de droite 脿 gauche et les claviers h茅breu, cette option lance
.B Vim
-en mode Hebreu, c.-脿-d. avec les options 'hkmap' et 'rightleft' activ茅es.
+en mode H茅breu, c.-脿-d. avec les options 'hkmap' et 'rightleft' activ茅es.
Sinon, un message d'erreur est 茅mis et
.B Vim
quitte.
@@ -295,7 +295,7 @@ d'茅crire le fichier.
.TP
\-M
N'autorise aucune modification. les options 'modifiable' et 'write' sont
-desactiv茅es, de sorte que les changements ne sont pas autoris茅s et que les
+d茅sactiv茅es, de sorte que les changements ne sont pas autoris茅s et que les
fichiers ne peuvent pas 锚tre 茅crits. Note : ces options peuvent 锚tre activ茅es
pour autoriser les modifications.
.TP
diff --git a/runtime/doc/workshop.txt b/runtime/doc/workshop.txt
index 0101188f9..c14bf718a 100644
--- a/runtime/doc/workshop.txt
+++ b/runtime/doc/workshop.txt
@@ -1,4 +1,4 @@
-*workshop.txt* For Vim version 7.1. Last change: 2006 Apr 24
+*workshop.txt* For Vim version 7.2a. Last change: 2006 Apr 24
VIM REFERENCE MANUAL by Gordon Prieur
diff --git a/runtime/ftplugin/cdrdaoconf.vim b/runtime/ftplugin/cdrdaoconf.vim
new file mode 100644
index 000000000..86796eb8e
--- /dev/null
+++ b/runtime/ftplugin/cdrdaoconf.vim
@@ -0,0 +1,18 @@
+" Vim filetype plugin file
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2007-09-18
+
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+let b:undo_ftplugin = "setl com< cms< fo<"
+
+setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
+
+let s:cpo_save = &cpo
+set cpo&vim
diff --git a/runtime/ftplugin/debcontrol.vim b/runtime/ftplugin/debcontrol.vim
new file mode 100644
index 000000000..2fb2ee7d3
--- /dev/null
+++ b/runtime/ftplugin/debcontrol.vim
@@ -0,0 +1,70 @@
+" Vim filetype plugin file (GUI menu and folding)
+" Language: Debian control files
+" Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
+" Former Maintainer: Pierre Habouzit <madcoder@debian.org>
+" Last Change: 2008-03-08
+" URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/ftplugin/debcontrol.vim;hb=debian
+
+" Do these settings once per buffer
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin=1
+
+" {{{1 Local settings (do on every load)
+if exists("g:debcontrol_fold_enable")
+ setlocal foldmethod=expr
+ setlocal foldexpr=DebControlFold(v:lnum)
+ setlocal foldtext=DebControlFoldText()
+endif
+setlocal textwidth=0
+
+" Clean unloading
+let b:undo_ftplugin = "setlocal tw< foldmethod< foldexpr< foldtext<"
+
+" }}}1
+
+" {{{1 folding
+
+function! s:getField(f, lnum)
+ let line = getline(a:lnum)
+ let fwdsteps = 0
+ while line !~ '^'.a:f.':'
+ let fwdsteps += 1
+ let line = getline(a:lnum + fwdsteps)
+ if line == ''
+ return 'unknown'
+ endif
+ endwhile
+ return substitute(line, '^'.a:f.': *', '', '')
+endfunction
+
+function! DebControlFoldText()
+ if v:folddashes == '-' " debcontrol entry fold
+ let type = substitute(getline(v:foldstart), ':.*', '', '')
+ if type == 'Source'
+ let ftext = substitute(foldtext(), ' *Source: *', ' ', '')
+ return ftext . ' -- ' . s:getField('Maintainer', v:foldstart) . ' '
+ endif
+ let arch = s:getField('Architecture', v:foldstart)
+ let ftext = substitute(foldtext(), ' *Package: *', ' [' . arch . '] ', '')
+ return ftext . ': ' . s:getField('Description', v:foldstart) . ' '
+ endif
+ return foldtext()
+endfunction
+
+function! DebControlFold(l)
+
+ " This is for not merging blank lines around folds to them
+ if getline(a:l) =~ '^Source:'
+ return '>1'
+ endif
+
+ if getline(a:l) =~ '^Package:'
+ return '>1'
+ endif
+
+ return '='
+endfunction
+
+" }}}1
diff --git a/runtime/ftplugin/dosini.vim b/runtime/ftplugin/dosini.vim
new file mode 100644
index 000000000..354b093ee
--- /dev/null
+++ b/runtime/ftplugin/dosini.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin file
+" Language: Configuration File (ini file) for MSDOS/MS Windows
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2007-08-23
+
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+let b:undo_ftplugin = "setl com< cms< fo<"
+
+setlocal comments=:; commentstring=;\ %s formatoptions-=t formatoptions+=croql
diff --git a/runtime/ftplugin/gitconfig.vim b/runtime/ftplugin/gitconfig.vim
new file mode 100644
index 000000000..ee33baff2
--- /dev/null
+++ b/runtime/ftplugin/gitconfig.vim
@@ -0,0 +1,15 @@
+" Vim filetype plugin
+" Language: git config file
+" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
+" Last Change: 2007 Dec 16
+
+" Only do this when not done yet for this buffer
+if (exists("b:did_ftplugin"))
+ finish
+endif
+let b:did_ftplugin = 1
+
+setlocal formatoptions-=t formatoptions+=croql
+setlocal comments=:#,:; commentstring=;\ %s
+
+let b:undo_ftplugin = "setl fo< com< cms<"
diff --git a/runtime/ftplugin/gitrebase.vim b/runtime/ftplugin/gitrebase.vim
new file mode 100644
index 000000000..6e0e6c19c
--- /dev/null
+++ b/runtime/ftplugin/gitrebase.vim
@@ -0,0 +1,41 @@
+" Vim filetype plugin
+" Language: git rebase --interactive
+" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
+" Last Change: 2008 Apr 16
+
+" Only do this when not done yet for this buffer
+if (exists("b:did_ftplugin"))
+ finish
+endif
+
+runtime! ftplugin/git.vim
+let b:did_ftplugin = 1
+
+setlocal comments=:# commentstring=#\ %s formatoptions-=t
+if !exists("b:undo_ftplugin")
+ let b:undo_ftplugin = ""
+endif
+let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo<"
+
+function! s:choose(word)
+ s/^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute(submatch(2),'^$',' ','')/e
+endfunction
+
+function! s:cycle()
+ call s:choose(get({'s':'edit','p':'squash'},getline('.')[0],'pick'))
+endfunction
+
+command! -buffer -bar Pick :call s:choose('pick')
+command! -buffer -bar Squash :call s:choose('squash')
+command! -buffer -bar Edit :call s:choose('edit')
+command! -buffer -bar Cycle :call s:cycle()
+" The above are more useful when they are mapped; for example:
+"nnoremap <buffer> <silent> S :Cycle<CR>
+
+if exists("g:no_plugin_maps") || exists("g:no_gitrebase_maps")
+ finish
+endif
+
+nnoremap <buffer> <expr> K col('.') < 7 && expand('<Lt>cword>') =~ '\X' && getline('.') =~ '^\w\+\s\+\x\+\>' ? 'wK' : 'K'
+
+let b:undo_ftplugin = b:undo_ftplugin . "|nunmap <buffer> K"
diff --git a/runtime/indent/tcsh.vim b/runtime/indent/tcsh.vim
index a33bdb715..cd18f0618 100644
--- a/runtime/indent/tcsh.vim
+++ b/runtime/indent/tcsh.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: C-shell (tcsh)
" Maintainer: Gautam Iyer <gautam@math.uchicago.edu>
-" Last Modified: Wed 04 Feb 2004 04:36:07 PM CST
+" Last Modified: Sat 16 Jun 2007 04:27:45 PM PDT
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
@@ -11,7 +11,7 @@ endif
let b:did_indent = 1
setlocal indentexpr=TcshGetIndent()
-setlocal indentkeys+=e,0=end,0=endsw,*<return> indentkeys-=0{,0},0),:,0#
+setlocal indentkeys+=e,0=end,0=endsw indentkeys-=0{,0},0),:,0#
" Only define the function once.
if exists("*TcshGetIndent")
diff --git a/runtime/indent/tf.vim b/runtime/indent/tf.vim
new file mode 100644
index 000000000..61cebc3a6
--- /dev/null
+++ b/runtime/indent/tf.vim
@@ -0,0 +1,72 @@
+" Vim indent file
+" Language: tf (TinyFugue)
+" Maintainer: Christian J. Robinson <infynity@onewest.net>
+" URL: http://www.infynity.spodzone.com/vim/indent/tf.vim
+" Last Change: 2002 May 29
+
+" Only load this indent file when no other was loaded.
+if exists("b:did_indent")
+ finish
+endif
+let b:did_indent = 1
+
+setlocal indentexpr=GetTFIndent()
+setlocal indentkeys-=0{,0} indentkeys-=0# indentkeys-=:
+setlocal indentkeys+==/endif,=/then,=/else,=/done,0;
+
+" Only define the function once:
+if exists("*GetTFIndent")
+ finish
+endif
+
+function GetTFIndent()
+ " Find a non-blank line above the current line:
+ let lnum = prevnonblank(v:lnum - 1)
+
+ " No indent for the start of the file:
+ if lnum == 0
+ return 0
+ endif
+
+ let ind = indent(lnum)
+ let line = getline(lnum)
+
+ " No indentation if the previous line didn't end with "\":
+ " (Could be annoying, but it lets you know if you made a mistake.)
+ if line !~ '\\$'
+ return 0
+ endif
+
+ if line =~ '\(/def.*\\\|/for.*\(%;\s*\)\@\<!\\\)$'
+ let ind = ind + &sw
+ elseif line =~ '\(/if\|/else\|/then\)'
+ if line !~ '/endif'
+ let ind = ind + &sw
+ endif
+ elseif line =~ '/while'
+ if line !~ '/done'
+ let ind = ind + &sw
+ endif
+ endif
+
+ let line = getline(v:lnum)
+
+ if line =~ '\(/else\|/endif\|/then\)'
+ if line !~ '/if'
+ let ind = ind - &sw
+ endif
+ elseif line =~ '/done'
+ if line !~ '/while'
+ let ind = ind - &sw
+ endif
+ endif
+
+ " Comments at the beginning of a line:
+ if line =~ '^\s*;'
+ let ind = 0
+ endif
+
+
+ return ind
+
+endfunction
diff --git a/runtime/keymap/croatian.vim b/runtime/keymap/croatian.vim
new file mode 100644
index 000000000..b52eba03f
--- /dev/null
+++ b/runtime/keymap/croatian.vim
@@ -0,0 +1,16 @@
+let s:encoding = &enc
+if s:encoding == 'latin1'
+ if has("unix")
+ let s:encoding = 'iso-8859-2'
+ else
+ let s:encoding = 'cp1250'
+ endif
+endif
+
+if s:encoding == 'utf-8'
+ source <sfile>:p:h/croatian_utf-8.vim
+elseif s:encoding == 'cp1250'
+ source <sfile>:p:h/croatian_cp1250.vim
+else
+ source <sfile>:p:h/croatian_iso-8859-2.vim
+endif
diff --git a/runtime/keymap/croatian_cp1250.vim b/runtime/keymap/croatian_cp1250.vim
new file mode 100644
index 000000000..a5a92e385
--- /dev/null
+++ b/runtime/keymap/croatian_cp1250.vim
@@ -0,0 +1,65 @@
+" Vim Keymap file for Croatian characters, classical variant, cp1250 encoding
+"
+" Maintainer: Paul B. Mahol <onemda@gmail.com>
+" Last Changed: 2007 Oct 15
+
+scriptencoding cp1250
+
+let b:keymap_name = "croatian-cp1250"
+" Uncomment line below if you prefer short name
+"let b:keymap_name = "hr-cp1250"
+
+loadkeymap
+z y
+Z Y
+y z
+Y Z
+[
+{
+]
+}
+;
+:
+'
+"
+\
+|
+/ -
+? _
+> :
+< ;
+ <
+ >
+ {
+ }
+ [
+ ]
+ \
+ |
+= +
++ *
+- '
+_ ?
+@ "
+^ &
+& /
+* (
+( )
+) =
+ ~
+ @
+ ^
+
+
+
+
+
+
+
+
+ `
+
+
+
+
+
diff --git a/runtime/lang/menu_ca_es.latin1.vim b/runtime/lang/menu_ca_es.latin1.vim
index a71c60ef7..c78e173b6 100644
--- a/runtime/lang/menu_ca_es.latin1.vim
+++ b/runtime/lang/menu_ca_es.latin1.vim
@@ -1,7 +1,7 @@
" Menu translations for Catalan
"
" Maintainer: Ernest Adrogu <eadrogue@gmx.net>
-" Last Change: 18 Jan 2004
+" Last Change: 6 Jun 2008
"
" Quit when menu translations have already been done.
@@ -16,7 +16,6 @@ if &enc != "cp1252" && &enc != "iso-8859-15"
scriptencoding latin1
endif
-
" men Ajuda
menutrans &Help &Ajuda
menutrans &Overview<Tab><F1> &Introducci<Tab><F1>
@@ -25,17 +24,18 @@ menutrans &How-to\ links Com\ &fer\.\.\.?
menutrans &Find\.\.\. &Cerca\.\.\.
menutrans &Credits &Autors
menutrans Co&pying Con&dicions
+menutrans &Sponsor/Register &Patrocini/Registre
menutrans O&rphans &Orfes
menutrans &Version &Versi
menutrans &About &Quant\ a\.\.\.
" text del di鄉eg Ajuda/Cerca...
let g:menutrans_help_dialog = "Introdu飖 el terme sobre el qual necessiteu ajuda.\n\nUseu el prefix i_ per ordres d'entrada (p.ex.: i_CTRL-X)\nUseu el prefix c_ per ordres de la l韓ia d'ordres (p.ex.: c_<Del>)\nUseu el prefix ' per noms d'opcions (p.ex.: 'shiftwidth')"
-
" men Fitxer
menutrans &File &Fitxer
menutrans &Open\.\.\.<Tab>:e &Obre\.\.\.<Tab>:e
menutrans Sp&lit-Open\.\.\.<Tab>:sp Obre\ en\ una\ &finestra\ nova\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew Obre\ pestanya\.\.\.<Tab>:tabnew
menutrans &New<Tab>:enew &Nou<Tab>:enew
menutrans &Close<Tab>:close &Tanca<Tab>:close
menutrans &Save<Tab>:w &Desa<Tab>:w
@@ -46,7 +46,6 @@ menutrans &Print &Imprimeix
menutrans Sa&ve-Exit<Tab>:wqa Desa\ i\ s&urt<Tab>:wqa
menutrans E&xit<Tab>:qa &Surt<Tab>:qa
-
" men Edita
menutrans &Edit &Edita
menutrans &Undo<Tab>u &Desf閟<Tab>u
@@ -58,14 +57,15 @@ menutrans &Paste<Tab>"+gP Engan&xa<Tab>"+gP
menutrans Put\ &Before<Tab>[p Posa\ &abans<Tab>[p
menutrans Put\ &After<Tab>]p P&osa\ despr閟<Tab>]p
menutrans &Delete<Tab>x Suprimeix<Tab>x
-menutrans &Select\ all<Tab>ggVG &Selecciona-ho\ tot<Tab>ggVG
+menutrans &Select\ All<Tab>ggVG &Selecciona-ho\ tot<Tab>ggVG
menutrans &Find\.\.\. &Cerca\.\.\.
menutrans &Find<Tab>/ &Cerca<Tab>/
menutrans Find\ and\ Rep&lace Cerca\ i\ s&ubstitueix
menutrans Find\ and\ Rep&lace\.\.\. Cerca\ i\ s&ubstitueix\.\.\.
menutrans Find\ and\ Rep&lace<Tab>:%s Cerca\ i\ s&ubstitueix<Tab>:%s
menutrans Find\ and\ Rep&lace<Tab>:s Cerca\ i\ s&ubstitueix<Tab>:s
-menutrans Settings\ &Window &Finestra\ d'opcions
+menutrans Settings\ &Window Fin&estra\ d'opcions
+menutrans Startup\ &Settings Opcions\ i&nicials
menutrans &Global\ Settings Opcions\ &globals
" submen Edita/Opcions Globals
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! Ressalt\ de\ &patrons<Tab>:set\ hls!
@@ -100,7 +100,7 @@ menutrans F&ile\ Settings Opcions\ del\ f&itxer
menutrans Soft\ &Tabstop Amplada\ de\ &tabulaci
menutrans Te&xt\ Width\.\.\. &Amplada\ del\ text\.\.\.
menutrans &File\ Format\.\.\. &Format\ del\ fitxer\.\.\.
-menutrans Select\ Fo&nt\.\.\. Tipus\ de\ &lletra\.\.\.
+menutrans Select\ Fo&nt\.\.\. &Fosa\.\.\.
menutrans C&olor\ Scheme Es&quema\ de\ colors
" submen Edita/Esquema de colors
menutrans blue blau
@@ -144,6 +144,25 @@ menutrans &Tools Ei&nes
menutrans &Jump\ to\ this\ tag<Tab>g^] &Salta\ a\ aquesta\ etiqueta<Tab>g^]
menutrans Jump\ &back<Tab>^T Salta\ en&rere<Tab>^T
menutrans Build\ &Tags\ File Crea\ un\ fitxer\ d'eti&quetes
+menutrans &Spelling &Ortografia
+" submen Eines/Ortografia
+ menutrans &Spell\ Check\ On Activa\ la\ &revisi骪 ortogr鄁ica
+ menutrans Spell\ Check\ &Off &Desactiva\ la\ revisi骪 ortogr鄁ica
+ menutrans To\ &Next\ error<Tab>]s Error\ &seg黣nt<tab>]s
+ menutrans To\ &Previous\ error<Tab>[s Error\ &anterior<tab>[s
+ menutrans Suggest\ &Corrections<Tab>z= Su&ggeriments<Tab>z=
+ menutrans &Repeat\ correction<Tab>:spellrepall Re&peteix\ la\ correcci<Tab>:spellrepall
+ menutrans Set\ language\ to\ "en" Selecciona\ l'idioma\ "en"
+ menutrans Set\ language\ to\ "en_au" Selecciona\ l'idioma\ "en_au"
+ menutrans Set\ language\ to\ "en_ca" Selecciona\ l'idioma\ "en_ca"
+ menutrans Set\ language\ to\ "en_gb" Selecciona\ l'idioma\ "en_gb"
+ menutrans Set\ language\ to\ "en_nz" Selecciona\ l'idioma\ "en_nz"
+ menutrans Set\ language\ to\ "en_us" Selecciona\ l'idioma\ "en_us"
+ menutrans Set\ language\ to\ "ca" Selecciona\ l'idioma\ "ca"
+ menutrans Set\ language\ to\ "es" Selecciona\ l'idioma\ "es"
+ menutrans Set\ language\ to\ "fr" Selecciona\ l'idioma\ "fr"
+ menutrans Set\ language\ to\ "it" Selecciona\ l'idioma\ "it"
+ menutrans &Find\ More\ Languages &Cerca\ altres\ idiomes
menutrans &Folding &Plecs
" submen Eines/Plecs
menutrans &Enable/Disable\ folds<Tab>zi &Habilita/Deshabilita\ els\ plecs<Tab>zi
@@ -183,6 +202,7 @@ menutrans Error\ &Window F&inestra\ d'errors
menutrans &Open<Tab>:copen &Obre<Tab>:copen
menutrans &Close<Tab>:cclose &Tanca<Tab>:cclose
menutrans &Set\ Compiler &Compilador
+menutrans &SeT\ Compiler &Compilador
menutrans &Convert\ to\ HEX<Tab>:%!xxd Converteix\ a\ &HEX<Tab>:%!xxd
menutrans Conve&rt\ back<Tab>:%!xxd\ -r Torna\ al\ format\ &original<Tab>:%!xxd\ -r
diff --git a/runtime/lang/menu_fi.latin1.vim b/runtime/lang/menu_fi.latin1.vim
new file mode 100644
index 000000000..4dd9140b1
--- /dev/null
+++ b/runtime/lang/menu_fi.latin1.vim
@@ -0,0 +1,3 @@
+" Menu Translations: Finnish for latin 1 encoding
+
+source <sfile>:p:h/menu_fi_fi.latin1.vim
diff --git a/runtime/lang/menu_fi_fi.latin1.vim b/runtime/lang/menu_fi_fi.latin1.vim
new file mode 100644
index 000000000..1f1f5072c
--- /dev/null
+++ b/runtime/lang/menu_fi_fi.latin1.vim
@@ -0,0 +1,473 @@
+" Menu Translations: Finnish
+" Maintainer: Flammie Pirinen <flammie@iki.fi>
+" Last Change: 2007 Sep 04
+
+" Quit when menu translations have already been done.
+if exists("did_menu_trans")
+ finish
+endif
+let did_menu_trans = 1
+
+" Translations should be in latin1, if it requires latin9 or even unicode,
+" change this:
+if &enc != "cp1252" && &enc != "iso-8859-15" && &enc != "iso-8859-1"
+ scriptencoding latin1
+endif
+
+" Accels: TMYSPIO
+menutrans &File &Tiedosto
+" Accels: AJTUSNIDPOE
+menutrans &Open\.\.\.<Tab>:e &Avaa\.\.\.<Tab>:e
+menutrans Sp&lit-Open\.\.\.<Tab>:sp Avaa\ &jaettuna\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew Avaa\ &tabissa\.\.\.<Tab>:tabnew
+menutrans &New<Tab>:enew &Uusi<Tab>:enew
+menutrans &Close<Tab>:close &Sulje<Tab>:close
+" -SEP1-
+menutrans &Save<Tab>:w Talle&nna<Tab>:w
+menutrans Save\ &As\.\.\.<Tab>:sav Tallenna\ n&imell鋅.\.\.<Tab>:sav
+" -SEP2-
+menutrans Split\ &Diff\ with\.\.\. Jaa\ &diffill鋅.\.\.
+menutrans Split\ Patched\ &By\.\.\. Jaa\ &patchilla\.\.\.
+" -SEP3-
+menutrans &Print Tul&osta
+" -SEP4-
+menutrans Sa&ve-Exit<Tab>:wqa Tall&enna\ ja\ lopeta<Tab>:wqa
+menutrans E&xit<Tab>:qa &Lopeta<Tab>:qa
+
+
+menutrans &Edit &Muokkaa
+" Accels: KPTLOIEJSAHRUYKVNF
+menutrans &Undo<Tab>u &Kumoa<Tab>u
+menutrans &Redo<Tab>^R &Palauta<Tab>^R
+menutrans Rep&eat<Tab>\. &Toista<Tab>\.
+" -SEP1-
+menutrans Cu&t<Tab>"+x &Leikkaa<Tab>"+x
+menutrans &Copy<Tab>"+y K&opioi<Tab>"+y
+menutrans &Paste<Tab>"+gP L&iit<Tab>"+gP
+menutrans Put\ &Before<Tab>[p Lis滗\ &ennen<Tab>[p
+menutrans Put\ &After<Tab>]p Lis滗\ &j鋖keen<Tab>]p
+menutrans &Delete<Tab>x Poi&sta<Tab>x
+menutrans &Select\ All<Tab>ggVG V&alitse\ kaikki<Tab>ggVG
+" -SEP2-
+menutrans &Find\.\.\. &Hae\.\.\.
+menutrans Find\ and\ Rep&lace\.\.\. Hae\ ja\ ko&rvaa\.\.\.
+menutrans &Find<Tab>/ &Hae<Tab>/
+menutrans Find\ and\ Rep&lace<Tab>:%s Hae\ ja\ ko&rvaa<Tab>:%s
+menutrans Find\ and\ Rep&lace<Tab>:s Hae\ ja\ ko&rvaa<Tab>:s
+" -SEP3-
+menutrans Settings\ &Window Aset&usikkuna
+menutrans Startup\ &Settings &K鋣nnistysasetukset
+menutrans &Global\ Settings &Yleiset\ asetukset
+" Submenu:
+" Accels: KOSHVYIATLEPR
+menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &Korostus<Tab>:set\ hls!
+menutrans Toggle\ &Ignore-case<Tab>:set\ ic! &Ohita\ kirjaintaso<Tab>:set\ ic!
+menutrans Toggle\ &Showmatch<Tab>:set\ sm! &Suljekorostus<Tab>:set\ sm!
+
+menutrans &Context\ lines &Huomioitavat\ kontekstirivit
+" Subsubmenu:
+" Accels: ELSOA
+menutrans &Virtual\ Edit &Virtuaalimuokkaus
+menutrans Never &Ei koskaan
+menutrans Block\ Selection &Lohkovalinta
+menutrans Insert\ mode &Sy鰐t鰐ila
+menutrans Block\ and\ Insert L&ohkosy鰐t鰐ila
+menutrans Always &Aina
+
+menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! S&y鰐t鰐ila<Tab>:set\ im!
+menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! V&i-tila<Tab>:set\ cp!
+menutrans Search\ &Path\.\.\. H&akupolku\.\.\.
+menutrans Ta&g\ Files\.\.\. &T鋑itiedostot\.\.\.
+" -SEP1-
+menutrans Toggle\ &Toolbar Ty鰇a&lupalkki
+menutrans Toggle\ &Bottom\ Scrollbar Vaakavi&erityspalkki
+menutrans Toggle\ &Left\ Scrollbar Vasen\ &pystyvierityspalkki
+menutrans Toggle\ &Right\ Scrollbar Oikea\ pystyvie&rityspalkki
+
+let g:menutrans_path_dialog = "Anna tiedostojen hakupolku.\nErota hakemistot pilkuin."
+let g:menutrans_tags_dialog = "Anna t鋑itiedostojen nimet.\nErota tidostot pilkuin."
+
+menutrans F&ile\ Settings Tiedostoasetu&kset
+" Submenu:
+" Accels: NLRSTACIBEM
+menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! Rivi&numerointi<Tab>:set\ nu!
+menutrans Toggle\ &List\ Mode<Tab>:set\ list! &Listaustila<Tab>:set\ list!
+menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! &Rivitys<Tab>:set\ wrap!
+menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! &Sanoittainen rivitys<Tab>:set\ lbr!
+menutrans Toggle\ &expand-tab<Tab>:set\ et! Muuta\ &tabit\ v鋖eiksi<Tab>:set\ et!
+menutrans Toggle\ &auto-indent<Tab>:set\ ai! &Automaattinen\ sisennys<Tab>:set\ ai!
+menutrans Toggle\ &C-indenting<Tab>:set\ cin! &C-kielen\ sisennys<Tab>:set\ cin!
+" -SEP2-
+menutrans &Shiftwidth S&isennysleveys
+menutrans Soft\ &Tabstop N鋏nn鋓sta&bulointi
+menutrans Te&xt\ Width\.\.\. Tekstinl&eveys\.\.\.
+menutrans &File\ Format\.\.\. Tiedosto&muoto\.\.\.
+
+let g:menutrans_textwidth_dialog = "Anna uusi tekstin leveys\n(0 poistaa k鋣t鰏t)"
+let g:menutrans_fileformat_dialog = "Anaa tiedoston kirjoitusmuoto."
+let g:menutrans_fileformat_choices = " &Unix \n &Dos \n &Mac \n &Peru "
+
+menutrans C&olor\ Scheme &V鋜iteema
+menutrans &Keymap &N鋚p鋓nkartta
+menutrans None Ei mik滗n
+menutrans Select\ Fo&nt\.\.\. Valitse\ &fontti\.\.\.
+
+
+menutrans &Tools T&y鰇alut
+" Accels: ___OTDM__
+menutrans &Jump\ to\ this\ tag<Tab>g^] Siirry\ t鋑iin<Tab>g^]
+menutrans Jump\ &back<Tab>^T Siirry\ takaisin<Tab>^T
+menutrans Build\ &Tags\ File Luo\ t鋑itiedosto
+
+" -SEP1-
+menutrans &Spelling &Oikeinkirjoitus
+" Submenu:
+" Accels: OSEKT
+menutrans &Spell\ Check\ On &Oikaisuluku\ p滗lle
+menutrans Spell\ Check\ &Off &Oikaisuluku\ pois\ p滗lt
+menutrans To\ &Next\ error<Tab>]s &Seuraavaan\ virheeseen<Tab>]s
+menutrans To\ &Previous\ error<Tab>[s &Edelliseen\ virheeseen<Tab>[s
+menutrans Suggest\ &Corrections<Tab>z= Ehdota\ &korjausta<Tab>z=
+menutrans &Repeat\ correction<Tab>:spellrepall &Toista\ korjaus<Tab>:spellrepall
+
+menutrans Set\ language\ to\ "en" Aseta\ kieleksi\ en
+menutrans Set\ language\ to\ "en_au" Aseta\ kieleksi\ en_au
+menutrans Set\ language\ to\ "en_ca" Aseta\ kieleksi\ en_ca
+menutrans Set\ language\ to\ "en_gb" Aseta\ kieleksi\ en_gb
+menutrans Set\ language\ to\ "en_nz" Aseta\ kieleksi\ en_nz
+menutrans Set\ language\ to\ "en_us" Aseta\ kieleksi\ en_us
+
+menutrans &Find\ More\ Languages Hae\ lis滗\ kieli
+
+
+
+menutrans &Folding &Taitokset
+" Accels: TNVSAPEOKL
+menutrans &Enable/Disable\ folds<Tab>zi &Taitokset<Tab>zi
+menutrans &View\ Cursor\ Line<Tab>zv &N鋣t鋅 kursorin\ rivi<Tab>zv
+menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx N鋣t鋅 &vain\ kursorin\ rivi<Tab>zMzx
+menutrans C&lose\ more\ folds<Tab>zm &Sulje\ lis滗\ taitoksia<Tab>zm
+menutrans &Close\ all\ folds<Tab>zM &Sulje\ kaikki\ taitokset<Tab>zM
+menutrans O&pen\ more\ folds<Tab>zr &Avaa\ lis滗\ taitoksia<Tab>zr
+menutrans &Open\ all\ folds<Tab>zR &Avaa\ kaikki\ taitokset<Tab>zR
+" -SEP1-
+menutrans Fold\ Met&hod Taitteluta&pa
+" Submenu:
+" Accels: MILSDM
+menutrans M&anual &Manuaalinen
+menutrans I&ndent S&isennys
+menutrans E&xpression I&lmaus
+menutrans S&yntax &Syntaksi
+menutrans &Diff &Diff
+menutrans Ma&rker &Merkit
+
+menutrans Create\ &Fold<Tab>zf T&ee\ taitos<Tab>zf
+menutrans &Delete\ Fold<Tab>zd P&oista\ taitos<Tab>zd
+menutrans Delete\ &All\ Folds<Tab>zD Poista\ &kaikki\ taitokset<Tab>zD
+" -SEP2-
+menutrans Fold\ col&umn\ width Taitossarakkeen\ &leveys
+
+menutrans &Diff &Diffit
+" Submenu:
+" Accels: PHL
+menutrans &Update &P鋓vit
+menutrans &Get\ Block &Hae\ lohko
+menutrans &Put\ Block &Lis滗\ lohko
+
+" -SEP2-
+menutrans &Make<Tab>:make &Make<Tab>:make
+menutrans &List\ Errors<Tab>:cl Virheluettelo<Tab>:cl
+menutrans L&ist\ Messages<Tab>:cl! Virheviestit<Tab>:cl!
+menutrans &Next\ Error<Tab>:cn Seuraava\ virhe<Tab>:cn
+menutrans &Previous\ Error<Tab>:cp Edellinen\ virhe<Tab>:cp
+menutrans &Older\ List<Tab>:cold Edellinen\ lista<Tab>:cold
+menutrans N&ewer\ List<Tab>:cnew Seuraava\ lista<Tab>:cnew
+
+menutrans Error\ &Window Virheikkuna
+" Submenu:
+" Accels: PAS
+menutrans &Update<Tab>:cwin &P鋓vit<Tab>:cwin
+menutrans &Open<Tab>:copen &Avaa<Tab>:copen
+menutrans &Close<Tab>:cclose &Sulje<Tab>:cclose
+
+menutrans Se&T\ Compiler Ase&ta\ k滗nt鋔
+" -SEP3-
+menutrans &Convert\ to\ HEX<Tab>:%!xxd Muunna\ heksoiksi<Tab>:%!xxd
+menutrans Conve&rt\ back<Tab>:%!xxd\ -r Muunna\ takaisin<Tab>:%!xxd\ -r
+
+
+menutrans &Syntax &Syntaksi
+" Accels: NSFPMAT
+menutrans &Show\ filetypes\ in\ menu &N鋣t鋅 tiedostotyypit\ valikossa
+" -SEP1-
+menutrans Set\ '&syntax'\ only Aseta\ vain\ &syntax
+menutrans Set\ '&filetype'\ too Aseta\ my鰏\ &filetype
+menutrans &Off &Pois\ p滗lt
+" -SEP3-
+menutrans Co&lor\ test Testaa\ v鋜it
+menutrans &Highlight\ test Testaa\ korostukset
+menutrans &Convert\ to\ HTML Muunna\ HTML:ksi
+" -SEP2-
+menutrans &Off &Pois\ p滗lt
+menutrans &Manual &Manuaalinen
+menutrans A&utomatic &Automaattinen
+menutrans on/off\ for\ &This\ file Kytke\ &t鋖le\ tiedostolle
+
+" The Start Of The Syntax Menu
+menutrans ABC\ music\ notation ABC\ (notation\ musicale)
+menutrans AceDB\ model Mod鑜e\ AceDB
+menutrans Apache\ config Config\.\ Apache
+menutrans Apache-style\ config Config\.\ style\ Apache
+menutrans ASP\ with\ VBScript ASP\ avec\ VBScript
+menutrans ASP\ with\ Perl ASP\ avec\ Perl
+menutrans Assembly Assembleur
+menutrans BC\ calculator Calculateur\ BC
+menutrans BDF\ font Fonte\ BDF
+menutrans BIND\ config Config\.\ BIND
+menutrans BIND\ zone Zone\ BIND
+menutrans Cascading\ Style\ Sheets Feuilles\ de\ style\ en\ cascade
+menutrans Cfg\ Config\ file Fichier\ de\ config\.\ \.cfg
+menutrans Cheetah\ template Patron\ Cheetah
+menutrans commit\ file Fichier\ commit
+menutrans Generic\ Config\ file Fichier\ de\ config\.\ g閚閞ique
+menutrans Digital\ Command\ Lang DCL
+menutrans DNS/BIND\ zone Zone\ BIND/DNS
+menutrans Dylan\ interface Interface
+menutrans Dylan\ lid LID
+menutrans Elm\ filter\ rules R鑗les\ de\ filtrage\ Elm
+menutrans ERicsson\ LANGuage Erlang\ (langage\ Ericsson)
+menutrans Essbase\ script Script\ Essbase
+menutrans Eterm\ config Config\.\ Eterm
+menutrans Exim\ conf Config\.\ Exim
+menutrans Fvwm\ configuration Config\.\ Fvwm
+menutrans Fvwm2\ configuration Config\.\ Fvwm2
+menutrans Fvwm2\ configuration\ with\ M4 Config\.\ Fvwm2\ avec\ M4
+menutrans GDB\ command\ file Fichier\ de\ commandes\ GDB
+menutrans HTML\ with\ M4 HTML\ avec\ M4
+menutrans Cheetah\ HTML\ template Patron\ Cheetah\ pour\ HTML
+menutrans IDL\Generic\ IDL IDL\IDL\ g閚閞ique
+menutrans IDL\Microsoft\ IDL IDL\IDL\ Microsoft
+menutrans Indent\ profile Profil\ Indent
+menutrans Inno\ setup Config\.\ Inno
+menutrans InstallShield\ script Script\ InstallShield
+menutrans KDE\ script Script\ KDE
+menutrans LFTP\ config Config\.\ LFTP
+menutrans LifeLines\ script Script\ LifeLines
+menutrans Lynx\ Style Style\ Lynx
+menutrans Lynx\ config Config\.\ Lynx
+menutrans Man\ page Page\ Man
+menutrans MEL\ (for\ Maya) MEL\ (pour\ Maya)
+menutrans 4DOS\ \.bat\ file Fichier\ \.bat\ 4DOS
+menutrans \.bat\/\.cmd\ file Fichier\ \.bat\ /\ \.cmd
+menutrans \.ini\ file Fichier\ \.ini
+menutrans Module\ Definition D閒inition\ de\ module
+menutrans Registry Extrait\ du\ registre
+menutrans Resource\ file Fichier\ de\ ressources
+menutrans Novell\ NCF\ batch Batch\ Novell\ NCF
+menutrans NSIS\ script Script\ NSIS
+menutrans Oracle\ config Config\.\ Oracle
+menutrans Palm\ resource\ compiler Compil\.\ de\ resources\ Palm
+menutrans PHP\ 3-4 PHP\ 3\ et\ 4
+menutrans Postfix\ main\ config Config\.\ Postfix
+menutrans Povray\ scene\ descr Sc鑞e\ Povray
+menutrans Povray\ configuration Config\.\ Povray
+menutrans Purify\ log Log\ Purify
+menutrans Readline\ config Config\.\ Readline
+menutrans RCS\ log\ output Log\ RCS
+menutrans RCS\ file Fichier\ RCS
+menutrans RockLinux\ package\ desc\. Desc\.\ pkg\.\ RockLinux
+menutrans Samba\ config Config\.\ Samba
+menutrans SGML\ catalog Catalogue\ SGML
+menutrans SGML\ DTD DTD\ SGML
+menutrans SGML\ Declaration D閏laration\ SGML
+menutrans Shell\ script Script\ shell
+menutrans sh\ and\ ksh sh\ et\ ksh
+menutrans Sinda\ compare Comparaison\ Sinda
+menutrans Sinda\ input Entr閑\ Sinda
+menutrans Sinda\ output Sortie\ Sinda
+menutrans SKILL\ for\ Diva SKILL\ pour\ Diva
+menutrans Smarty\ Templates Patrons\ Smarty
+menutrans SNNS\ network R閟eau\ SNNS
+menutrans SNNS\ pattern Motif\ SNNS
+menutrans SNNS\ result R閟ultat\ SNNS
+menutrans Snort\ Configuration Config\.\ Snort
+menutrans Squid\ config Config\.\ Squid
+menutrans Subversion\ commit Commit\ Subversion
+menutrans TAK\ compare Comparaison\ TAK
+menutrans TAK\ input Entr閑\ TAK
+menutrans TAK\ output Sortie\ TAK
+menutrans TeX\ configuration Config\.\ TeX
+menutrans TF\ mud\ client TF\ (client\ MUD)
+menutrans Tidy\ configuration Config\.\ Tidy
+menutrans Trasys\ input Entr閑\ Trasys
+menutrans Command\ Line Ligne\ de\ commande
+menutrans Geometry G閛m閠rie
+menutrans Optics Optiques
+menutrans Vim\ help\ file Fichier\ d'aide\ Vim
+menutrans Vim\ script Script\ Vim
+menutrans Viminfo\ file Fichier\ Viminfo
+menutrans Virata\ config Config\.\ Virata
+menutrans Wget\ config Config\.\ wget
+menutrans Whitespace\ (add) Espaces\ et\ tabulations
+menutrans WildPackets\ EtherPeek\ Decoder D閏odeur\ WildPackets\ EtherPeek
+menutrans X\ resources Resources\ X
+menutrans XXD\ hex\ dump Sortie\ hexa\.\ de\ xxd
+menutrans XFree86\ Config Config\.\ XFree86
+
+menutrans &Buffers &Puskurit
+" Accels: VPASE
+menutrans Dummy Dummy
+menutrans &Refresh\ menu P鋓vit鋅 &valikko
+menutrans &Delete &Poista
+menutrans &Alternate V&aihda
+menutrans &Next &Seuraava
+menutrans &Previous &Edellinen
+" -SEP-
+" (Alphabet menus)
+menutrans &others &muut
+let g:menutrans_no_file = "[Ei tiedostoja]"
+
+
+menutrans &Window &Ikkuna
+" Accels: UJPTSMIYAKOL
+menutrans &New<Tab>^Wn &Uusi\ ikkuna<Tab>^Wn
+menutrans S&plit<Tab>^Ws &Jaa<Tab>^Ws
+menutrans Sp&lit\ To\ #<Tab>^W^^ &Jaa\ #<Tab>^W^^
+menutrans Split\ &Vertically<Tab>^Wv Jaa\ &pystysuunnassa<Tab>^Wv
+menutrans Split\ File\ E&xplorer Jaa\ &tiedostonhallinnalle
+" -SEP1-
+menutrans &Close<Tab>^Wc &Sulje<Tab>^Wc
+menutrans Close\ &Other(s)<Tab>^Wo Sulje\ &muut<Tab>^Wo
+" -SEP2-
+menutrans Move\ &To S&iirr
+" Submenu:
+" Accels: YAOV
+menutrans &Top<Tab>^WK &Yl鰏<Tab>^WK
+menutrans &Bottom<Tab>^WJ &Alas<Tab>^WJ
+menutrans &Left\ side<Tab>^WH &Oikealle<Tab>^WH
+menutrans &Right\ side<Tab>^WL &Vasemmalle<Tab>^WL
+
+menutrans Rotate\ &Up<Tab>^WR Vaihda\ &ylemm鋝<Tab>^WR
+menutrans Rotate\ &Down<Tab>^Wr Vaihda\ &alemmas<Tab>^Wr
+" -SEP3-
+menutrans &Equal\ Size<Tab>^W= Saman\ &kokoisiksi<Tab>^W=
+menutrans &Max\ Height<Tab>^W_ Enimm鋓sk&orkeuteen<Tab>^W_
+menutrans M&in\ Height<Tab>^W1_ V鋒imm鋓sk&orkeuteen<Tab>^W1_
+menutrans Max\ &Width<Tab>^W\| Enimm鋓s&leveyteen<Tab>^W\|
+menutrans Min\ Widt&h<Tab>^W1\| V鋒imm鋓s&leveyteen<Tab>^W1\|
+
+" (Plugin menus here)
+menutrans Plugin Liit鋘n鋓set
+
+menutrans &Help &Ohje
+" Accels: YKUHTLROVI
+menutrans &Overview<Tab><F1> &Yleiskatsaus<Tab><F1>
+menutrans &User\ Manual &K鋣tt鰋hje
+menutrans &How-to\ links K&UINKA-linkkej
+menutrans &Find\.\.\. &Hae\.\.\.
+" -sep1-
+menutrans &Credits &Tekij鋞
+menutrans Co&pying &Lisenssi
+menutrans &Sponsor/Register Sponsoroi/&Rekister鰅
+menutrans O&rphans &Orvoista
+" -sep2-
+menutrans &Version &Versio
+menutrans &About T&ietoja
+
+let g:menutrans_help_dialog = "Anna komento tai sana, jota haetaan ohjeesta.\n\nAloita i_:ll sy鰐t鰐ilan komentoja varten (esim. i_CTRL-X)\nAloita c_:ll komentorivi varten (esim. c_<Del>)\nKirjoita asetukset puolilainausmerkkeijin (esim. 'shiftwidth')"
+
+
+" PopUp
+
+menutrans &Undo &Kumoa
+" -SEP1-
+menutrans Cu&t &Leikkaa
+menutrans &Copy &Kopioi
+menutrans &Paste L&iit
+" &Buffers.&Delete overwrites this one
+menutrans &Delete &Poista
+" -SEP2-
+menutrans Select\ Blockwise Valitse\ lohkoittain
+menutrans Select\ &Word Valitse\ &sana
+menutrans Select\ &Line Valitse\ &rivi
+menutrans Select\ &Block Valitse\ &lohko
+menutrans Select\ &All Valitse\ &kaikki
+
+
+" ToolBar
+
+menutrans Open Avaa
+menutrans Save Tallenna
+menutrans SaveAll TallennaKaikki
+menutrans Print Tulosta
+" -sep1-
+menutrans Undo Kumoa
+menutrans Redo Palauta
+" -sep2-
+menutrans Cut Leikkaa
+menutrans Copy Kopioi
+menutrans Paste Liit
+" -sep3-
+menutrans Find Etsi
+menutrans FindNext EtsiSeur
+menutrans FindPrev EtsiEd
+menutrans Replace Korvaa
+" -sep4-
+menutrans New Uusi
+menutrans WinSplit JaaIkk
+menutrans WinMax IkkMax
+menutrans WinMin IkkMin
+menutrans WinVSplit JaaIkkV
+menutrans WinMaxWidth IkkMaxLev
+menutrans WinMinWidth IkkMinLev
+menutrans WinClose SuljeIkk
+" -sep5-
+menutrans LoadSesn AvaaSess
+menutrans SaveSesn TallSess
+menutrans RunScript AjaSkripti
+" -sep6-
+menutrans Make Make
+menutrans RunCtags AjaCTags
+menutrans TagJump TagHypp
+" -sep7-
+menutrans Help Ohje
+menutrans FindHelp OhjeHaku
+
+fun! Do_toolbar_tmenu()
+ let did_toolbar_tmenu = 1
+ tmenu ToolBar.Open Avaa tiedosto
+ tmenu ToolBar.Save Tallenna nykyinen tiedosto
+ tmenu ToolBar.SaveAll Tallenna kaikki tiedostot
+ tmenu ToolBar.Print Tulosta
+ tmenu ToolBar.Undo Kumoa
+ tmenu ToolBar.Redo Palauta
+ tmenu ToolBar.Cut Leikkaa
+ tmenu ToolBar.Copy Kopioi
+ tmenu ToolBar.Paste Liit
+ if !has("gui_athena")
+ tmenu ToolBar.Find Hae
+ tmenu ToolBar.FindNext Hae seuraava
+ tmenu ToolBar.FindPrev Hae edellinen
+ tmenu ToolBar.Replace Korvaa
+ endif
+ if 0 " disabled; These are in the Windows menu
+ tmenu ToolBar.New Uusi ikkuna
+ tmenu ToolBar.WinSplit Jaa ikkuna
+ tmenu ToolBar.WinMax Maximiser fen阾re
+ tmenu ToolBar.WinMin Minimiser fen阾re
+ tmenu ToolBar.WinVSplit Fractionner verticalement
+ tmenu ToolBar.WinMaxWidth Maximiser largeur fen阾re
+ tmenu ToolBar.WinMinWidth Minimiser largeur fen阾re
+ tmenu ToolBar.WinClose Fermer fen阾re
+ endif
+ tmenu ToolBar.LoadSesn Avaa sessio
+ tmenu ToolBar.SaveSesn Tallenna nykyinen sessio
+ tmenu ToolBar.RunScript Lataa vim-skripti
+ tmenu ToolBar.Make Suorita make
+ tmenu ToolBar.RunCtags Suorita CTags
+ tmenu ToolBar.TagJump Hypp滗 t鋑iin
+ tmenu ToolBar.Help Vimin ohje
+ tmenu ToolBar.FindHelp Etsi ohjeesta
+endfun
+
+" vim: set fileencoding=latin1
diff --git a/runtime/plugin/getscriptPlugin.vim b/runtime/plugin/getscriptPlugin.vim
index b871bc1d2..7fe103d61 100644
--- a/runtime/plugin/getscriptPlugin.vim
+++ b/runtime/plugin/getscriptPlugin.vim
@@ -1,7 +1,7 @@
" ---------------------------------------------------------------------
" getscriptPlugin.vim
" Author: Charles E. Campbell, Jr.
-" Date: Jul 18, 2006
+" Date: Jan 07, 2008
" Installing: :help glvs-install
" Usage: :help glvs
"
@@ -19,8 +19,7 @@ if &cp || exists("g:loaded_getscriptPlugin")
endif
finish
endif
-let g:loaded_getscriptPlugin = 1
-let s:keepfo = &fo
+let g:loaded_getscriptPlugin = "v30"
let s:keepcpo = &cpo
set cpo&vim
@@ -30,9 +29,10 @@ com! -nargs=0 GetLatestVimScripts call getscript#GetLatestVimScripts()
com! -nargs=0 GetScripts call getscript#GetLatestVimScripts()
silent! com -nargs=0 GLVS call getscript#GetLatestVimScripts()
+" ---------------------------------------------------------------------
" Restore Options: {{{1
-let &fo = s:keepfo
let &cpo= s:keepcpo
+unlet s:keepcpo
" ---------------------------------------------------------------------
" vim: ts=8 sts=2 fdm=marker nowrap
diff --git a/runtime/plugin/tarPlugin.vim b/runtime/plugin/tarPlugin.vim
index e1b87fee8..42fd96a31 100644
--- a/runtime/plugin/tarPlugin.vim
+++ b/runtime/plugin/tarPlugin.vim
@@ -14,7 +14,7 @@
if &cp || exists("g:loaded_tarPlugin")
finish
endif
-let g:loaded_tarPlugin = 1
+let g:loaded_tarPlugin = "v16"
let s:keepcpo = &cpo
set cpo&vim
@@ -22,20 +22,21 @@ set cpo&vim
" Public Interface: {{{1
augroup tar
au!
- au BufReadCmd tarfile:* call tar#Read(expand("<amatch>"), 1)
- au FileReadCmd tarfile:* call tar#Read(expand("<amatch>"), 0)
- au BufWriteCmd tarfile:* call tar#Write(expand("<amatch>"))
- au FileWriteCmd tarfile:* call tar#Write(expand("<amatch>"))
+ au BufReadCmd tarfile::* call tar#Read(expand("<amatch>"), 1)
+ au FileReadCmd tarfile::* call tar#Read(expand("<amatch>"), 0)
+ au BufWriteCmd tarfile::* call tar#Write(expand("<amatch>"))
+ au FileWriteCmd tarfile::* call tar#Write(expand("<amatch>"))
if has("unix")
- au BufReadCmd tarfile:*/* call tar#Read(expand("<amatch>"), 1)
- au FileReadCmd tarfile:*/* call tar#Read(expand("<amatch>"), 0)
- au BufWriteCmd tarfile:*/* call tar#Write(expand("<amatch>"))
- au FileWriteCmd tarfile:*/* call tar#Write(expand("<amatch>"))
+ au BufReadCmd tarfile::*/* call tar#Read(expand("<amatch>"), 1)
+ au FileReadCmd tarfile::*/* call tar#Read(expand("<amatch>"), 0)
+ au BufWriteCmd tarfile::*/* call tar#Write(expand("<amatch>"))
+ au FileWriteCmd tarfile::*/* call tar#Write(expand("<amatch>"))
endif
- au BufReadCmd *.tar call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.gz call tar#Browse(expand("<amatch>"))
+ au BufReadCmd *.tar call tar#Browse(expand("<amatch>"))
+ au BufReadCmd *.lrp call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.bz2 call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tar.Z call tar#Browse(expand("<amatch>"))
au BufReadCmd *.tgz call tar#Browse(expand("<amatch>"))
diff --git a/runtime/spell/fr/fr_FR.diff b/runtime/spell/fr/fr_FR.diff
index bd6caf1d1..2a8b6b5b7 100644
--- a/runtime/spell/fr/fr_FR.diff
+++ b/runtime/spell/fr/fr_FR.diff
@@ -1,122 +1,176 @@
-*** fr_FR.orig.aff Sun Oct 2 12:36:49 2005
---- fr_FR.aff Sun Oct 2 12:36:49 2005
+*** fr_FR.orig.aff Wed Feb 13 14:53:22 2008
+--- fr_FR.aff Wed Feb 13 15:03:20 2008
***************
-*** 3,4 ****
---- 3,21 ----
+*** 3,19 ****
-+ FOL 噌忏溴骁栝觌祉铒瘃蝮趱鲽
-+ LOW 噌忏溴骁栝觌祉铒瘃蝮趱鲽
-+ UPP 懒旅呐魄壬仕掏蜗醒矣哉重仝圮蒉
-+
-+ MIDWORD '
-+
-+ MAP 9
-+ MAP a噌忏溴
-+ MAP e栝觌
-+ MAP i祉铒
-+ MAP o蝮趱
-+ MAP u
-+ MAP n
-+ MAP c
-+ MAP y
-+ MAP s
-+
- PFX A Y 10
-***************
-*** 692,694 ****
+! MAP 12
+! MAP a噔
+! MAP e殍觌
+! MAP i铒y
+! MAP o赧
+! MAP u
+ MAP c
+- MAP A缆
+- MAP E扇仕
+- MAP I蜗Y
+- MAP O灾
+- MAP U氽
+ MAP C
+! REP 44
+ REP f ph
+--- 3,31 ----
+
+! FOL 噌忏溴骁栝觌祉铒瘃蝮趱鲽
+! LOW 噌忏溴骁栝觌祉铒瘃蝮趱鲽
+! UPP 懒旅呐魄壬仕掏蜗醒矣哉重仝圮蒉
!
+! MIDWORD '-
!
---- 709,800 ----
+! MAP 17
+! MAP a噌忏溴
+! MAP A懒旅呐
+! MAP e栝觌
+! MAP E壬仕
+! MAP i祉铒
+! MAP I掏蜗
+! MAP o蝮趱
+! MAP O矣哉
+! MAP u
+! MAP U仝圮
+! MAP n
+! MAP N
+ MAP c
+ MAP C
++ MAP y
++ MAP Y
++ MAP s
-! # sound folding from Aspell
-! # Copyright (C) 2000 R閙i Vanicat, distributed under LGPL
-! # version francais 0.000000001
!
-! #EMME ~ AME
-! SAL AIX$ E
-! SAL AI E
-! SAL AN(AEUIO)- AM
-! SAL AN A
-! SAL AMM AM
-! SAL AM(AEUIO)- AM
-! SAL AM A
-! SAL AUD$ O
-! SAL AUX$ O
-! SAL AU O
-! SAL A A
-! SAL A
-! SAL A
-! SAL BB P
-! SAL B P
-! SAL S
-! SAL C(EI)- S
-! SAL CU(EI)- K
-! SAL CC(EI)- X
-! SAL CC K
-! SAL CH CH
-! SAL C K
-! SAL DD T
-! SAL D T
-! SAL EMMENTAL EMATAL
-! SAL EMMENTHAL EMATAL
-! SAL EM(AEIOU)- EM
-! SAL EM A
-! SAL ET$ E
-! SAL EUX$ E
-! SAL EU E
-! SAL EN(AEUIO)- EM
-! SAL EN A
-! SAL ER$ E
-! SAL EO O
-! SAL EAUX$ O
-! SAL EAU O
-! SAL E E
-! SAL E
-! SAL E
-! SAL E
-! SAL F F
-! SAL G(EIY)- J
-! SAL GU(EIY)- G
-! SAL G G
-! SAL H _
-! SAL I I
-! SAL I
-! SAL J J
-! SAL KS X
-! SAL K K
-! SAL LL L
-! SAL L L
-! SAL MM M
-! SAL M M
-! SAL NN M
-! SAL N M
-! SAL OEU E
-! SAL OUX$ U
-! SAL OU U
-! SAL O U
-! SAL O O
-! SAL O
-! SAL PP P
-! SAL PH F
-! SAL P P
-! SAL QU K
-! SAL Q K
-! SAL RIX$ RI
-! SAL RR R
-! SAL R R
-! SAL S$ _
-! SAL SS S
-! SAL S S
-! SAL TT T
-! SAL T T
-! SAL U U
-! SAL U
-! SAL U
-! SAL V V
-! SAL W W
-! SAL X X
-! SAL Y(AEOU)- IL
-! SAL Y I
-! SAL ZZ S
-! SAL Z S
+! REP 24
+ REP f ph
+***************
+*** 22,45 ****
+ REP qu c
+- REP bb b
+- REP b bb
+- REP cc c
+- REP c cc
+- REP ff f
+- REP f ff
+- REP ll l
+- REP l ll
+- REP mm m
+- REP m mm
+- REP nn n
+- REP n nn
+- REP pp p
+- REP p pp
+- REP rr r
+- REP r rr
+- REP ss s
+- REP s ss
+ REP ss c
+ REP c ss
+- REP tt t
+- REP t tt
+ REP oe
+--- 34,37 ----
+***************
+*** 687 ****
+--- 679,773 ----
+ SFX q ssait raient ssait
++
++
++ # sound folding from Aspell
++ # Copyright (C) 2000 R閙i Vanicat, distributed under LGPL
++ # version francais 0.000000001
++
++ #EMME ~ AME
++
++ SAL AIX$ E
++ SAL AI E
++ SAL AN(AEUIO)- AM
++ SAL AN A
++ SAL AMM AM
++ SAL AM(AEUIO)- AM
++ SAL AM A
++ SAL AUD$ O
++ SAL AUX$ O
++ SAL AU O
++ SAL A A
++ SAL A
++ SAL A
++ SAL BB P
++ SAL B P
++ SAL S
++ SAL C(EI)- S
++ SAL CU(EI)- K
++ SAL CC(EI)- X
++ SAL CC K
++ SAL CH CH
++ SAL C K
++ SAL DD T
++ SAL D T
++ SAL EMMENTAL EMATAL
++ SAL EMMENTHAL EMATAL
++ SAL EM(AEIOU)- EM
++ SAL EM A
++ SAL ET$ E
++ SAL EUX$ E
++ SAL EU E
++ SAL EN(AEUIO)- EM
++ SAL EN A
++ SAL ER$ E
++ SAL EO O
++ SAL EAUX$ O
++ SAL EAU O
++ SAL E E
++ SAL E
++ SAL E
++ SAL E
++ SAL F F
++ SAL G(EIY)- J
++ SAL GU(EIY)- G
++ SAL G G
++ SAL H _
++ SAL I I
++ SAL I
++ SAL J J
++ SAL KS X
++ SAL K K
++ SAL LL L
++ SAL L L
++ SAL MM M
++ SAL M M
++ SAL NN M
++ SAL N M
++ SAL OEU E
++ SAL OUX$ U
++ SAL OU U
++ SAL O U
++ SAL O O
++ SAL O
++ SAL PP P
++ SAL PH F
++ SAL P P
++ SAL QU K
++ SAL Q K
++ SAL RIX$ RI
++ SAL RR R
++ SAL R R
++ SAL S$ _
++ SAL SS S
++ SAL S S
++ SAL TT T
++ SAL T T
++ SAL U U
++ SAL U
++ SAL U
++ SAL V V
++ SAL W W
++ SAL X X
++ SAL Y(AEOU)- IL
++ SAL Y I
++ SAL ZZ S
++ SAL Z S
diff --git a/runtime/spell/pt/pt_BR.diff b/runtime/spell/pt/pt_BR.diff
index 4dc7f1b98..0bd44e2c2 100644
--- a/runtime/spell/pt/pt_BR.diff
+++ b/runtime/spell/pt/pt_BR.diff
@@ -1,12 +1,34 @@
-*** pt_BR.orig.aff Mon Apr 16 15:38:54 2007
---- pt_BR.aff Mon Apr 16 15:49:01 2007
+*** pt_BR.orig.aff 2008-02-21 19:41:04.000000000 -0300
+--- pt_BR.aff 2008-02-24 11:08:15.000000000 -0300
***************
-*** 3,4 ****
---- 3,9 ----
+*** 1,3 ****
+ SET ISO8859-1
+! TRY 徉汊殛眢豸鏴sianrtolcdugmphbyfvkwjqxz
+--- 1,3 ----
+ SET ISO8859-1
+!
+
+***************
+*** 13,14 ****
+--- 13,32 ----
+
++ NAME Brazilian Portuguese
++ VERSION 20080221V
++ HOME http://www.broffice.org/verortografico
++ AUTHOR Raimundo Santos Moura
++ EMAIL raimundomoura AT openoffice DOT org
++ AUTHOR Leonardo Ferreira Fontenelle
++ EMAIL leo DOT fontenelle AT gmail DOT org
++ COPYRIGHT LGPL
++
++
+ FOL 哙徕沅彐玷殛腱眍镳耱篝貊
+ LOW 哙徕沅彐玷殛腱眍镳耱篝貊
+ UPP 呃谅媚牌侨墒颂臀闲岩釉罩刭谯茌
+
++
+ MIDWORD '-.
-
++
++
+ MAP 6
diff --git a/runtime/syntax/cdrdaoconf.vim b/runtime/syntax/cdrdaoconf.vim
new file mode 100644
index 000000000..5058c23a2
--- /dev/null
+++ b/runtime/syntax/cdrdaoconf.vim
@@ -0,0 +1,139 @@
+" Vim syntax file
+" Language: cdrdao(1) configuration file
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2007-09-02
+
+if exists("b:current_syntax")
+ finish
+endif
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+syn keyword cdrdaoconfTodo
+ \ TODO FIXME XXX NOTE
+
+syn match cdrdaoconfBegin
+ \ display
+ \ nextgroup=@cdrdaoconfKeyword,cdrdaoconfComment
+ \ '^'
+
+syn cluster cdrdaoconfKeyword
+ \ contains=cdrdaoconfIntegerKeyword,
+ \ cdrdaoconfDriverKeyword,
+ \ cdrdaoconfDeviceKeyword,
+ \ cdrdaoconfPathKeyword
+
+syn keyword cdrdaoconfIntegerKeyword
+ \ contained
+ \ nextgroup=cdrdaoconfIntegerDelimiter
+ \ write_speed
+ \ write_buffers
+ \ user_capacity
+ \ full_burn
+ \ read_speed
+ \ cddb_timeout
+
+syn keyword cdrdaoconfIntegerKeyword
+ \ contained
+ \ nextgroup=cdrdaoconfParanoiaModeDelimiter
+ \ read_paranoia_mode
+
+syn keyword cdrdaoconfDriverKeyword
+ \ contained
+ \ nextgroup=cdrdaoconfDriverDelimiter
+ \ write_driver
+ \ read_driver
+
+syn keyword cdrdaoconfDeviceKeyword
+ \ contained
+ \ nextgroup=cdrdaoconfDeviceDelimiter
+ \ write_device
+ \ read_device
+
+syn keyword cdrdaoconfPathKeyword
+ \ contained
+ \ nextgroup=cdrdaoconfPathDelimiter
+ \ cddb_directory
+ \ tmp_file_dir
+
+syn match cdrdaoconfIntegerDelimiter
+ \ contained
+ \ nextgroup=cdrdaoconfInteger
+ \ skipwhite
+ \ ':'
+
+syn match cdrdaoconfParanoiaModeDelimiter
+ \ contained
+ \ nextgroup=cdrdaoconfParanoiaMode
+ \ skipwhite
+ \ ':'
+
+syn match cdrdaoconfDriverDelimiter
+ \ contained
+ \ nextgroup=cdrdaoconfDriver
+ \ skipwhite
+ \ ':'
+
+syn match cdrdaoconfDeviceDelimiter
+ \ contained
+ \ nextgroup=cdrdaoconfDevice
+ \ skipwhite
+ \ ':'
+
+syn match cdrdaoconfPathDelimiter
+ \ contained
+ \ nextgroup=cdrdaoconfPath
+ \ skipwhite
+ \ ':'
+
+syn match cdrdaoconfInteger
+ \ contained
+ \ '\<\d\+\>'
+
+syn match cdrdaoParanoiaMode
+ \ contained
+ \ '[0123]'
+
+syn match cdrdaoconfDriver
+ \ contained
+ \ '\<\(cdd2600\|generic-mmc\%(-raw\)\=\|plextor\%(-scan\)\|ricoh-mp6200\|sony-cdu9\%(20\|48\)\|taiyo-yuden\|teac-cdr55\|toshiba\|yamaha-cdr10x\)\>'
+
+syn region cdrdaoconfDevice
+ \ contained
+ \ matchgroup=cdrdaoconfDevice
+ \ start=+"+
+ \ end=+"+
+
+syn region cdrdaoconfPath
+ \ contained
+ \ matchgroup=cdrdaoconfPath
+ \ start=+"+
+ \ end=+"+
+
+syn match cdrdaoconfComment
+ \ contains=cdrdaoconfTodo,@Spell
+ \ '^.*#.*$'
+
+hi def link cdrdaoconfTodo Todo
+hi def link cdrdaoconfComment Comment
+hi def link cdrdaoconfKeyword Keyword
+hi def link cdrdaoconfIntegerKeyword cdrdaoconfKeyword
+hi def link cdrdaoconfDriverKeyword cdrdaoconfKeyword
+hi def link cdrdaoconfDeviceKeyword cdrdaoconfKeyword
+hi def link cdrdaoconfPathKeyword cdrdaoconfKeyword
+hi def link cdrdaoconfDelimiter Delimiter
+hi def link cdrdaoconfIntegerDelimiter cdrdaoconfDelimiter
+hi def link cdrdaoconfDriverDelimiter cdrdaoconfDelimiter
+hi def link cdrdaoconfDeviceDelimiter cdrdaoconfDelimiter
+hi def link cdrdaoconfPathDelimiter cdrdaoconfDelimiter
+hi def link cdrdaoconfInteger Number
+hi def link cdrdaoconfParanoiaMode Number
+hi def link cdrdaoconfDriver Identifier
+hi def link cdrdaoconfDevice cdrdaoconfPath
+hi def link cdrdaoconfPath String
+
+let b:current_syntax = "cdrdaoconf"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/syntax/cmake.vim b/runtime/syntax/cmake.vim
index 302417e5f..4dd5c3a11 100644
--- a/runtime/syntax/cmake.vim
+++ b/runtime/syntax/cmake.vim
@@ -49,7 +49,7 @@ syn region cmakeArguments start=/\s*(/ end=/)/
syn keyword cmakeDeprecated ABSTRACT_FILES BUILD_NAME SOURCE_FILES SOURCE_FILES_REMOVE VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WRAP_EXCLUDE_FILES
\ nextgroup=cmakeArgument
syn keyword cmakeStatement
- \ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDIF ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE ENDMACRO
+ \ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ELSEIF ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDIF ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE ENDMACRO
\ nextgroup=cmakeArgumnts
"syn match cmakeMacro /^\s*[A-Z_]\+/ nextgroup=cmakeArgumnts
diff --git a/runtime/syntax/coco.vim b/runtime/syntax/coco.vim
new file mode 100644
index 000000000..4094a5530
--- /dev/null
+++ b/runtime/syntax/coco.vim
@@ -0,0 +1,33 @@
+" Vim syntax file
+" Language: Coco/R
+" Maintainer: Ashish Shukla <wahjava@gmail.com>
+" Last Change: 2007 Aug 10
+" Remark: Coco/R syntax partially implemented.
+" License: Vim license
+
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+syn keyword cocoKeywords ANY CHARACTERS COMMENTS COMPILER CONTEXT END FROM IF IGNORE IGNORECASE NESTED PRAGMAS PRODUCTIONS SYNC TO TOKENS WEAK
+syn match cocoUnilineComment #//.*$#
+syn match cocoIdentifier /[[:alpha:]][[:alnum:]]*/
+syn region cocoMultilineComment start=#/[*]# end=#[*]/#
+syn region cocoString start=/"/ skip=/\\"\|\\\\/ end=/"/
+syn region cocoCharacter start=/'/ skip=/\\'\|\\\\/ end=/'/
+syn match cocoOperator /+\||\|\.\.\|-\|(\|)\|{\|}\|\[\|\]\|=\|<\|>/
+syn region cocoProductionCode start=/([.]/ end=/[.])/
+syn match cocoPragma /[$][[:alnum:]]*/
+
+hi def link cocoKeywords Keyword
+hi def link cocoUnilineComment Comment
+hi def link cocoMultilineComment Comment
+hi def link cocoIdentifier Identifier
+hi def link cocoString String
+hi def link cocoCharacter Character
+hi def link cocoOperator Operator
+hi def link cocoProductionCode Statement
+hi def link cocoPragma Special
+
diff --git a/runtime/syntax/css.vim b/runtime/syntax/css.vim
index 7f9ac258d..a73836a92 100644
--- a/runtime/syntax/css.vim
+++ b/runtime/syntax/css.vim
@@ -2,7 +2,7 @@
" Language: Cascading Style Sheets
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
" URL: http://www.fleiner.com/vim/syntax/css.vim
-" Last Change: 2006 Jun 19
+" Last Change: 2007 Nov 06
" CSS2 by Nikolai Weibull
" Full CSS2, HTML4 support by Yeti
@@ -194,7 +194,7 @@ syn match cssSpecialCharQQ +\\"+ contained
syn match cssSpecialCharQ +\\'+ contained
syn region cssStringQQ start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cssUnicodeEscape,cssSpecialCharQQ
syn region cssStringQ start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=cssUnicodeEscape,cssSpecialCharQ
-syn match cssClassName "\.[A-Za-z][A-Za-z0-9-]\+"
+syn match cssClassName "\.[A-Za-z][A-Za-z0-9_-]\+"
if main_syntax == "css"
syn sync minlines=10
diff --git a/runtime/syntax/debcontrol.vim b/runtime/syntax/debcontrol.vim
index f15e83cb6..3b01fb50a 100644
--- a/runtime/syntax/debcontrol.vim
+++ b/runtime/syntax/debcontrol.vim
@@ -3,8 +3,8 @@
" Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
" Wichert Akkerman <wakkerma@debian.org>
-" Last Change: $LastChangedDate: 2006-04-16 21:50:31 -0400 (Sun, 16 Apr 2006) $
-" URL: http://svn.debian.org/wsvn/pkg-vim/trunk/runtime/syntax/debcontrol.vim?op=file&rev=0&sc=0
+" Last Change: 2008-02-23
+" URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/ftplugin/debcontrol.vim;hb=debian
" Comments are very welcome - but please make sure that you are commenting on
" the latest version of this file.
@@ -17,6 +17,9 @@ elseif exists("b:current_syntax")
finish
endif
+" Should match case except for the keys of each field
+syn case match
+
" Everything that is not explicitly matched by the rules below
syn match debcontrolElse "^.*$"
@@ -25,28 +28,47 @@ syn match debControlComma ", *"
syn match debControlSpace " "
" Define some common expressions we can use later on
-syn match debcontrolArchitecture contained "\(all\|any\|alpha\|amd64\|arm\(eb\)\=\|hppa\|i386\|ia64\|m32r\|m68k\|mipsel\|mips\|powerpc\|ppc64\|s390\|sheb\|sh\|sparc64\|sparc\|hurd-i386\|kfreebsd-\(i386\|gnu\)\|knetbsd-i386\|netbsd-\(alpha\|i386\)\)"
-syn match debcontrolName contained "[a-z][a-z0-9+-]*"
+syn match debcontrolArchitecture contained "\(all\|any\|alpha\|amd64\|arm\(e[bl]\)\=\|hppa\|i386\|ia64\|m32r\|m68k\|mipsel\|mips\|powerpc\|ppc64\|s390x\=\|sh[34]\(eb\)\=\|sh\|sparc64\|sparc\|hurd-i386\|kfreebsd-\(i386\|gnu\)\|knetbsd-i386\|netbsd-\(alpha\|i386\)\)"
+syn match debcontrolName contained "[a-z0-9][a-z0-9+.-]\+"
syn match debcontrolPriority contained "\(extra\|important\|optional\|required\|standard\)"
-syn match debcontrolSection contained "\(\(contrib\|non-free\|non-US/main\|non-US/contrib\|non-US/non-free\)/\)\=\(admin\|base\|comm\|devel\|doc\|editors\|electronics\|embedded\|games\|gnome\|graphics\|hamradio\|interpreters\|kde\|libs\|libdevel\|mail\|math\|misc\|net\|news\|oldlibs\|otherosfs\|perl\|python\|science\|shells\|sound\|text\|tex\|utils\|web\|x11\|debian-installer\)"
+syn match debcontrolSection contained "\(\(contrib\|non-free\|non-US/main\|non-US/contrib\|non-US/non-free\|restricted\|universe\|multiverse\)/\)\=\(admin\|base\|comm\|devel\|doc\|editors\|electronics\|embedded\|games\|gnome\|graphics\|hamradio\|interpreters\|kde\|libs\|libdevel\|mail\|math\|misc\|net\|news\|oldlibs\|otherosfs\|perl\|python\|science\|shells\|sound\|text\|tex\|utils\|web\|x11\|debian-installer\)"
+syn match debcontrolPackageType contained "u\?deb"
syn match debcontrolVariable contained "\${.\{-}}"
+" A URL (using the domain name definitions from RFC 1034 and 1738), right now
+" only enforce protocol and some sanity on the server/path part;
+syn match debcontrolHTTPUrl contained "\vhttps?://[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?(:\d+)?(/[^[:space:]]*)?$"
+syn match debcontrolVcsSvn contained "\vsvn%(\+ssh)?://[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?(:\d+)?(/[^[:space:]]*)?$"
+syn match debcontrolVcsCvs contained "\v%(\-d *)?:pserver:[^@]+\@[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?:/[^[:space:]]*%( [^[:space:]]+)?$"
+syn match debcontrolVcsGit contained "\vgit://[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?(:\d+)?(/[^[:space:]]*)?$"
+
" An email address
syn match debcontrolEmail "[_=[:alnum:]\.+-]\+@[[:alnum:]\./\-]\+"
syn match debcontrolEmail "<.\{-}>"
+" #-Comments
+syn match debcontrolComment "^#.*$"
+
+syn case ignore
+
" List of all legal keys
-syn match debcontrolKey contained "^\(Source\|Package\|Section\|Priority\|Maintainer\|Uploaders\|Build-Depends\|Build-Conflicts\|Build-Depends-Indep\|Build-Conflicts-Indep\|Standards-Version\|Pre-Depends\|Depends\|Recommends\|Suggests\|Provides\|Replaces\|Conflicts\|Essential\|Architecture\|Description\|Bugs\|Origin\|Enhances\): *"
+syn match debcontrolKey contained "^\(Source\|Package\|Section\|Priority\|Maintainer\|Uploaders\|Build-Depends\|Build-Conflicts\|Build-Depends-Indep\|Build-Conflicts-Indep\|Standards-Version\|Pre-Depends\|Depends\|Recommends\|Suggests\|Provides\|Replaces\|Conflicts\|Essential\|Architecture\|Description\|Bugs\|Origin\|Enhances\|Homepage\|\(XS-\)\=Vcs-\(Browser\|Arch\|Bzr\|Cvs\|Darcs\|Git\|Hg\|Mtn\|Svn\)\|XC-Package-Type\): *"
" Fields for which we do strict syntax checking
syn region debcontrolStrictField start="^Architecture" end="$" contains=debcontrolKey,debcontrolArchitecture,debcontrolSpace oneline
syn region debcontrolStrictField start="^\(Package\|Source\)" end="$" contains=debcontrolKey,debcontrolName oneline
syn region debcontrolStrictField start="^Priority" end="$" contains=debcontrolKey,debcontrolPriority oneline
syn region debcontrolStrictField start="^Section" end="$" contains=debcontrolKey,debcontrolSection oneline
+syn region debcontrolStrictField start="^XC-Package-Type" end="$" contains=debcontrolKey,debcontrolPackageType oneline
+syn region debcontrolStrictField start="^Homepage" end="$" contains=debcontrolKey,debcontrolHTTPUrl oneline keepend
+syn region debcontrolStrictField start="^\%(XS-\)\?Vcs-\%(Browser\|Arch\|Bzr\|Darcs\|Hg\)" end="$" contains=debcontrolKey,debcontrolHTTPUrl oneline keepend
+syn region debcontrolStrictField start="^\%(XS-\)\?Vcs-Svn" end="$" contains=debcontrolKey,debcontrolVcsSvn,debcontrolHTTPUrl oneline keepend
+syn region debcontrolStrictField start="^\%(XS-\)\?Vcs-Cvs" end="$" contains=debcontrolKey,debcontrolVcsCvs oneline keepend
+syn region debcontrolStrictField start="^\%(XS-\)\?Vcs-Git" end="$" contains=debcontrolKey,debcontrolVcsGit oneline keepend
" Catch-all for the other legal fields
-syn region debcontrolField start="^\(Maintainer\|Build-Depends\|Build-Conflicts\|Build-Depends-Indep\|Build-Conflicts-Indep\|Standards-Version\|Pre-Depends\|Depends\|Recommends\|Suggests\|Provides\|Replaces\|Conflicts\|Essential\|Bugs\|Origin\|Enhances\):" end="$" contains=debcontrolKey,debcontrolVariable,debcontrolEmail oneline
-syn region debcontrolMultiField start="^\(Uploaders\|Description\):" skip="^ " end="^$"me=s-1 end="^[^ ]"me=s-1 contains=debcontrolKey,debcontrolEmail,debcontrolVariable
+syn region debcontrolField start="^\(Maintainer\|Standards-Version\|Essential\|Bugs\|Origin\|X\(S\|B\)-Python-Version\|XSBC-Original-Maintainer\|\(XS-\)\?Vcs-Mtn\):" end="$" contains=debcontrolKey,debcontrolVariable,debcontrolEmail oneline
+syn region debcontrolMultiField start="^\(Build-\(Conflicts\|Depends\)\(-Indep\)\=\|\(Pre-\)\=Depends\|Recommends\|Suggests\|Provides\|Replaces\|Conflicts\|Enhances\|Uploaders\|Description\):" skip="^ " end="^$"me=s-1 end="^[^ ]"me=s-1 contains=debcontrolKey,debcontrolEmail,debcontrolVariable
" Associate our matches and regions with pretty colours
if version >= 508 || !exists("did_debcontrol_syn_inits")
@@ -65,8 +87,14 @@ if version >= 508 || !exists("did_debcontrol_syn_inits")
HiLink debcontrolName Normal
HiLink debcontrolPriority Normal
HiLink debcontrolSection Normal
+ HiLink debcontrolPackageType Normal
HiLink debcontrolVariable Identifier
HiLink debcontrolEmail Identifier
+ HiLink debcontrolVcsSvn Identifier
+ HiLink debcontrolVcsCvs Identifier
+ HiLink debcontrolVcsGit Identifier
+ HiLink debcontrolHTTPUrl Identifier
+ HiLink debcontrolComment Comment
HiLink debcontrolElse Special
delcommand HiLink
diff --git a/runtime/syntax/denyhosts.vim b/runtime/syntax/denyhosts.vim
new file mode 100644
index 000000000..0ec09ba13
--- /dev/null
+++ b/runtime/syntax/denyhosts.vim
@@ -0,0 +1,289 @@
+" Vim syntax file
+" Language: denyhosts configuration file
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2007-06-25
+
+if exists("b:current_syntax")
+ finish
+endif
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+syn keyword denyhostsTodo
+ \ contained
+ \ TODO
+ \ FIXME
+ \ XXX
+ \ NOTE
+
+syn case ignore
+
+syn match denyhostsComment
+ \ contained
+ \ display
+ \ '#.*'
+ \ contains=denyhostsTodo,
+ \ @Spell
+
+syn match denyhostsBegin
+ \ display
+ \ '^'
+ \ nextgroup=@denyhostsSetting,
+ \ denyhostsComment
+ \ skipwhite
+
+syn cluster denyhostsSetting
+ \ contains=denyhostsStringSetting,
+ \ denyhostsBooleanSetting,
+ \ denyhostsPathSetting,
+ \ denyhostsNumericSetting,
+ \ denyhostsTimespecSetting,
+ \ denyhostsFormatSetting,
+ \ denyhostsRegexSetting
+
+syn keyword denyhostsStringSetting
+ \ contained
+ \ ADMIN_EMAIL
+ \ SMTP_HOST
+ \ SMTP_USERNAME
+ \ SMTP_PASSWORD
+ \ SMTP_FROM
+ \ SMTP_SUBJECT
+ \ BLOCK_SERVICE
+ \ nextgroup=denyhostsStringDelimiter
+ \ skipwhite
+
+syn keyword denyhostsBooleanSetting
+ \ contained
+ \ SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS
+ \ HOSTNAME_LOOKUP
+ \ SYSLOG_REPORT
+ \ RESET_ON_SUCCESS
+ \ SYNC_UPLOAD
+ \ SYNC_DOWNLOAD
+ \ ALLOWED_HOSTS_HOSTNAME_LOOKUP
+ \ nextgroup=denyhostsBooleanDelimiter
+ \ skipwhite
+
+syn keyword denyhostsPathSetting
+ \ contained
+ \ DAEMON_LOG
+ \ PLUGIN_DENY
+ \ PLUGIN_PURGE
+ \ SECURE_LOG
+ \ LOCK_FILE
+ \ HOSTS_DENY
+ \ WORK_DIR
+ \ nextgroup=denyhostsPathDelimiter
+ \ skipwhite
+
+syn keyword denyhostsNumericSetting
+ \ contained
+ \ SYNC_DOWNLOAD_THRESHOLD
+ \ SMTP_PORT
+ \ PURGE_THRESHOLD
+ \ DENY_THRESHOLD_INVALID
+ \ DENY_THRESHOLD_VALID
+ \ DENY_THRESHOLD_ROOT
+ \ DENY_THRESHOLD_RESTRICTED
+ \ nextgroup=denyhostsNumericDelimiter
+ \ skipwhite
+
+syn keyword denyhostsTimespecSetting
+ \ contained
+ \ DAEMON_SLEEP
+ \ DAEMON_PURGE
+ \ AGE_RESET_INVALID
+ \ AGE_RESET_VALID
+ \ AGE_RESET_ROOT
+ \ AGE_RESET_RESTRICTED
+ \ SYNC_INTERVAL
+ \ SYNC_DOWNLOAD_RESILIENCY
+ \ PURGE_DENY
+ \ nextgroup=denyhostsTimespecDelimiter
+ \ skipwhite
+
+syn keyword denyhostsFormatSetting
+ \ contained
+ \ DAEMON_LOG_TIME_FORMAT
+ \ DAEMON_LOG_MESSAGE_FORMAT
+ \ SMTP_DATE_FORMAT
+ \ nextgroup=denyhostsFormatDelimiter
+ \ skipwhite
+
+syn keyword denyhostsRegexSetting
+ \ contained
+ \ SSHD_FORMAT_REGEX
+ \ FAILED_ENTRY_REGEX
+ \ FAILED_ENTRY_REGEX2
+ \ FAILED_ENTRY_REGEX3
+ \ FAILED_ENTRY_REGEX4
+ \ FAILED_ENTRY_REGEX5
+ \ FAILED_ENTRY_REGEX6
+ \ FAILED_ENTRY_REGEX7
+ \ USERDEF_FAILED_ENTRY_REGEX
+ \ SUCCESSFUL_ENTRY_REGEX
+ \ nextgroup=denyhostsRegexDelimiter
+ \ skipwhite
+
+syn keyword denyhostURLSetting
+ \ contained
+ \ SYNC_SERVER
+ \ nextgroup=denyhostsURLDelimiter
+ \ skipwhite
+
+syn match denyhostsStringDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsString
+ \ skipwhite
+
+syn match denyhostsBooleanDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=@denyhostsBoolean
+ \ skipwhite
+
+syn match denyhostsPathDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsPath
+ \ skipwhite
+
+syn match denyhostsNumericDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsNumber
+ \ skipwhite
+
+syn match denyhostsTimespecDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsTimespec
+ \ skipwhite
+
+syn match denyhostsFormatDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsFormat
+ \ skipwhite
+
+syn match denyhostsRegexDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsRegex
+ \ skipwhite
+
+syn match denyhostsURLDelimiter
+ \ contained
+ \ display
+ \ '[:=]'
+ \ nextgroup=denyhostsURL
+ \ skipwhite
+
+syn match denyhostsString
+ \ contained
+ \ display
+ \ '.\+'
+
+syn cluster denyhostsBoolean
+ \ contains=denyhostsBooleanTrue,
+ \ denyhostsBooleanFalse
+
+syn match denyhostsBooleanFalse
+ \ contained
+ \ display
+ \ '.\+'
+
+syn match denyhostsBooleanTrue
+ \ contained
+ \ display
+ \ '\s*\%(1\|t\%(rue\)\=\|y\%(es\)\=\)\>\s*$'
+
+syn match denyhostsPath
+ \ contained
+ \ display
+ \ '.\+'
+
+syn match denyhostsNumber
+ \ contained
+ \ display
+ \ '\d\+\>'
+
+syn match denyhostsTimespec
+ \ contained
+ \ display
+ \ '\d\+[mhdwy]\>'
+
+syn match denyhostsFormat
+ \ contained
+ \ display
+ \ '.\+'
+ \ contains=denyhostsFormattingExpandos
+
+syn match denyhostsFormattingExpandos
+ \ contained
+ \ display
+ \ '%.'
+
+syn match denyhostsRegex
+ \ contained
+ \ display
+ \ '.\+'
+
+" TODO: Perhaps come up with a better regex here? There should really be a
+" library for these kinds of generic regexes, that is, URLs, mail addresses, 鈥
+syn match denyhostsURL
+ \ contained
+ \ display
+ \ '.\+'
+
+hi def link denyhostsTodo Todo
+hi def link denyhostsComment Comment
+hi def link denyhostsSetting Keyword
+hi def link denyhostsStringSetting denyhostsSetting
+hi def link denyhostsBooleanSetting denyhostsSetting
+hi def link denyhostsPathSetting denyhostsSetting
+hi def link denyhostsNumericSetting denyhostsSetting
+hi def link denyhostsTimespecSetting denyhostsSetting
+hi def link denyhostsFormatSetting denyhostsSetting
+hi def link denyhostsRegexSetting denyhostsSetting
+hi def link denyhostURLSetting denyhostsSetting
+hi def link denyhostsDelimiter Normal
+hi def link denyhostsStringDelimiter denyhostsDelimiter
+hi def link denyhostsBooleanDelimiter denyhostsDelimiter
+hi def link denyhostsPathDelimiter denyhostsDelimiter
+hi def link denyhostsNumericDelimiter denyhostsDelimiter
+hi def link denyhostsTimespecDelimiter denyhostsDelimiter
+hi def link denyhostsFormatDelimiter denyhostsDelimiter
+hi def link denyhostsRegexDelimiter denyhostsDelimiter
+hi def link denyhostsURLDelimiter denyhostsDelimiter
+hi def link denyhostsString String
+if exists('g:syntax_booleans_simple') || exists('b:syntax_booleans_simple')
+ hi def link denyhostsBoolean Boolean
+ hi def link denyhostsBooleanFalse denyhostsBoolean
+ hi def link denyhostsBooleanTrue denyhostsBoolean
+else
+ hi def denyhostsBooleanTrue term=bold ctermfg=Green guifg=Green
+ hi def denyhostsBooleanFalse ctermfg=Red guifg=Red
+endif
+hi def link denyhostsPath String
+hi def link denyhostsNumber Number
+hi def link denyhostsTimespec Number
+hi def link denyhostsFormat String
+hi def link denyhostsFormattingExpandos Special
+hi def link denyhostsRegex String
+hi def link denyhostsURL String
+
+let b:current_syntax = "denyhosts"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/syntax/git.vim b/runtime/syntax/git.vim
new file mode 100644
index 000000000..fd76b7316
--- /dev/null
+++ b/runtime/syntax/git.vim
@@ -0,0 +1,67 @@
+" Vim syntax file
+" Language: generic git output
+" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
+" Last Change: 2008 Mar 21
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn case match
+syn sync minlines=50
+
+syn include @gitDiff syntax/diff.vim
+
+syn region gitHead start=/\%^/ end=/^$/
+syn region gitHead start=/\%(^commit \x\{40\}$\)\@=/ end=/^$/
+
+" For git reflog and git show ...^{tree}, avoid sync issues
+syn match gitHead /^\d\{6\} \%(\w\{4} \)\=\x\{40\}\%( [0-3]\)\=\t.*/
+syn match gitHead /^\x\{40\} \x\{40}\t.*/
+
+syn region gitDiff start=/^\%(diff --git \)\@=/ end=/^\%(diff --git \|$\)\@=/ contains=@gitDiff fold
+syn region gitDiff start=/^\%(@@ -\)\@=/ end=/^\%(diff --git \|$\)\@=/ contains=@gitDiff
+
+syn match gitKeyword /^\%(object\|type\|tag\|commit\|tree\|parent\|encoding\)\>/ contained containedin=gitHead nextgroup=gitHash,gitType skipwhite
+syn match gitKeyword /^\%(tag\>\|ref:\)/ contained containedin=gitHead nextgroup=gitReference skipwhite
+syn match gitKeyword /^Merge:/ contained containedin=gitHead nextgroup=gitHashAbbrev skipwhite
+syn match gitMode /^\d\{6\}/ contained containedin=gitHead nextgroup=gitType,gitHash skipwhite
+syn match gitIdentityKeyword /^\%(author\|committer\|tagger\)\>/ contained containedin=gitHead nextgroup=gitIdentity skipwhite
+syn match gitIdentityHeader /^\%(Author\|Commit\|Tagger\):/ contained containedin=gitHead nextgroup=gitIdentity skipwhite
+syn match gitDateHeader /^\%(AuthorDate\|CommitDate\|Date\):/ contained containedin=gitHead nextgroup=gitDate skipwhite
+syn match gitIdentity /\S.\{-\} <[^>]*>/ contained nextgroup=gitDate skipwhite
+syn region gitEmail matchgroup=gitEmailDelimiter start=/</ end=/>/ keepend oneline contained containedin=gitIdentity
+
+syn match gitReflogHeader /^Reflog:/ contained containedin=gitHead nextgroup=gitReflogMiddle skipwhite
+syn match gitReflogHeader /^Reflog message:/ contained containedin=gitHead skipwhite
+syn match gitReflogMiddle /\S\+@{\d\+} (/he=e-2 nextgroup=gitIdentity
+
+syn match gitDate /\<\u\l\l \u\l\l \d\=\d \d\d:\d\d:\d\d \d\d\d\d [+-]\d\d\d\d/ contained
+syn match gitDate /-\=\d\+ [+-]\d\d\d\d\>/ contained
+syn match gitDate /\<\d\+ \l\+ ago\>/ contained
+syn match gitType /\<\%(tag\|commit\|tree\|blob\)\>/ contained nextgroup=gitHash skipwhite
+syn match gitStage /\<\d\t\@=/ contained
+syn match gitReference /\S\+\S\@!/ contained
+syn match gitHash /\<\x\{40\}\>/ contained nextgroup=gitIdentity,gitStage skipwhite
+syn match gitHash /^\<\x\{40\}\>/ containedin=gitHead contained nextgroup=gitHash skipwhite
+syn match gitHashAbbrev /\<\x\{4,39\}\.\.\./he=e-3 contained nextgroup=gitHashAbbrev skipwhite
+syn match gitHashAbbrev /\<\x\{40\}\>/ contained nextgroup=gitHashAbbrev skipwhite
+
+hi def link gitDateHeader gitIdentityHeader
+hi def link gitIdentityHeader gitIdentityKeyword
+hi def link gitIdentityKeyword Label
+hi def link gitReflogHeader gitKeyword
+hi def link gitKeyword Keyword
+hi def link gitIdentity String
+hi def link gitEmailDelimiter Delimiter
+hi def link gitEmail Special
+hi def link gitDate Number
+hi def link gitMode Number
+hi def link gitHashAbbrev gitHash
+hi def link gitHash Identifier
+hi def link gitReflogMiddle gitReference
+hi def link gitReference Function
+hi def link gitStage gitType
+hi def link gitType Type
+
+let b:current_syntax = "git"
diff --git a/runtime/syntax/gitcommit.vim b/runtime/syntax/gitcommit.vim
new file mode 100644
index 000000000..e75d04417
--- /dev/null
+++ b/runtime/syntax/gitcommit.vim
@@ -0,0 +1,65 @@
+" Vim syntax file
+" Language: git commit file
+" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
+" Filenames: *.git/COMMIT_EDITMSG
+" Last Change: 2008 Apr 09
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn case match
+syn sync minlines=50
+
+if has("spell")
+ syn spell toplevel
+endif
+
+syn include @gitcommitDiff syntax/diff.vim
+syn region gitcommitDiff start=/\%(^diff --git \)\@=/ end=/^$\|^#\@=/ contains=@gitcommitDiff
+
+syn match gitcommitFirstLine "\%^[^#].*" nextgroup=gitcommitBlank skipnl
+syn match gitcommitSummary "^.\{0,50\}" contained containedin=gitcommitFirstLine nextgroup=gitcommitOverflow contains=@Spell
+syn match gitcommitOverflow ".*" contained contains=@Spell
+syn match gitcommitBlank "^[^#].*" contained contains=@Spell
+syn match gitcommitComment "^#.*"
+syn region gitcommitHead start=/^# / end=/^#$/ contained transparent
+syn match gitcommitOnBranch "\%(^# \)\@<=On branch" contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite
+syn match gitcommitBranch "\S\+" contained
+syn match gitcommitHeader "\%(^# \)\@<=.*:$" contained containedin=gitcommitComment
+
+syn region gitcommitUntracked start=/^# Untracked files:/ end=/^#$\|^#\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitUntrackedFile fold
+syn match gitcommitUntrackedFile "\t\@<=.*" contained
+
+syn region gitcommitDiscarded start=/^# Changed but not updated:/ end=/^#$\|^#\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitDiscardedType fold
+syn region gitcommitSelected start=/^# Changes to be committed:/ end=/^#$\|^#\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitSelectedType fold
+
+syn match gitcommitDiscardedType "\t\@<=[a-z][a-z ]*[a-z]: "he=e-2 contained containedin=gitcommitComment nextgroup=gitcommitDiscardedFile skipwhite
+syn match gitcommitSelectedType "\t\@<=[a-z][a-z ]*[a-z]: "he=e-2 contained containedin=gitcommitComment nextgroup=gitcommitSelectedFile skipwhite
+syn match gitcommitDiscardedFile ".\{-\}\%($\| -> \)\@=" contained nextgroup=gitcommitDiscardedArrow
+syn match gitcommitSelectedFile ".\{-\}\%($\| -> \)\@=" contained nextgroup=gitcommitSelectedArrow
+syn match gitcommitDiscardedArrow " -> " contained nextgroup=gitcommitDiscardedFile
+syn match gitcommitSelectedArrow " -> " contained nextgroup=gitcommitSelectedFile
+
+hi def link gitcommitSummary Keyword
+hi def link gitcommitComment Comment
+hi def link gitcommitUntracked gitcommitComment
+hi def link gitcommitDiscarded gitcommitComment
+hi def link gitcommitSelected gitcommitComment
+hi def link gitcommitOnBranch Comment
+hi def link gitcommitBranch Special
+hi def link gitcommitDiscardedType gitcommitType
+hi def link gitcommitSelectedType gitcommitType
+hi def link gitcommitType Type
+hi def link gitcommitHeader PreProc
+hi def link gitcommitUntrackedFile gitcommitFile
+hi def link gitcommitDiscardedFile gitcommitFile
+hi def link gitcommitSelectedFile gitcommitFile
+hi def link gitcommitFile Constant
+hi def link gitcommitDiscardedArrow gitcommitArrow
+hi def link gitcommitSelectedArrow gitcommitArrow
+hi def link gitcommitArrow gitcommitComment
+"hi def link gitcommitOverflow Error
+hi def link gitcommitBlank Error
+
+let b:current_syntax = "gitcommit"
diff --git a/runtime/syntax/hostconf.vim b/runtime/syntax/hostconf.vim
new file mode 100644
index 000000000..4fc8af0ba
--- /dev/null
+++ b/runtime/syntax/hostconf.vim
@@ -0,0 +1,147 @@
+" Vim syntax file
+" Language: host.conf(5) configuration file
+" Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2007-06-25
+
+if exists("b:current_syntax")
+ finish
+endif
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+syn keyword hostconfTodo
+ \ contained
+ \ TODO
+ \ FIXME
+ \ XXX
+ \ NOTE
+
+syn match hostconfComment
+ \ display
+ \ contained
+ \ '\s*#.*'
+ \ contains=hostconfTodo,
+ \ @Spell
+
+syn match hostconfBegin
+ \ display
+ \ '^'
+ \ nextgroup=hostconfComment,hostconfKeyword
+ \ skipwhite
+
+syn keyword hostconfKeyword
+ \ contained
+ \ order
+ \ nextgroup=hostconfLookupOrder
+ \ skipwhite
+
+let s:orders = ['bind', 'hosts', 'nis']
+
+function s:permute_suffixes(list)
+ if empty(a:list)
+ return []
+ elseif len(a:list) == 1
+ return a:list[0]
+ else
+ let i = 0
+ let n = len(a:list)
+ let sub_permutations = []
+ while i < n
+ let list_copy = copy(a:list)
+ let removed = list_copy[i]
+ call remove(list_copy, i)
+ call add(sub_permutations, [removed, s:permute_suffixes(list_copy)])
+ let i += 1
+ endwhile
+ return sub_permutations
+ endif
+endfunction
+
+function s:generate_suffix_groups(list_of_order_of_orders, context, trailing_context)
+ for order_of_orders in a:list_of_order_of_orders
+ let order = order_of_orders[0]
+ let trailing_context = a:trailing_context . toupper(order[0]) . order[1:]
+ let nextgroup = 'hostconfLookupOrder' . trailing_context
+ let nextgroup_delimiter = nextgroup . 'Delimiter'
+ let group = 'hostconfLookupOrder' . a:context
+ execute 'syn keyword' group 'contained' order 'nextgroup=' . nextgroup_delimiter 'skipwhite'
+ execute 'syn match' nextgroup_delimiter 'contained display "," nextgroup=' . nextgroup 'skipwhite'
+ if a:context != ""
+ execute 'hi def link' group 'hostconfLookupOrder'
+ endif
+ execute 'hi def link' nextgroup_delimiter 'hostconfLookupOrderDelimiter'
+ let context = trailing_context
+ if type(order_of_orders[1]) == type([])
+ call s:generate_suffix_groups(order_of_orders[1], context, trailing_context)
+ else
+ execute 'syn keyword hostconfLookupOrder' . context 'contained' order_of_orders[-1]
+ execute 'hi def link hostconfLookupOrder' . context 'hostconfLookupOrder'
+ endif
+ endfor
+endfunction
+
+call s:generate_suffix_groups(s:permute_suffixes(s:orders), "", "")
+
+delfunction s:generate_suffix_groups
+delfunction s:permute_suffixes
+
+syn keyword hostconfKeyword
+ \ contained
+ \ trim
+ \ nextgroup=hostconfDomain
+ \ skipwhite
+
+syn match hostconfDomain
+ \ contained
+ \ '\.[^:;,[:space:]]\+'
+ \ nextgroup=hostconfDomainDelimiter
+ \ skipwhite
+
+syn match hostconfDomainDelimiter
+ \ contained
+ \ display
+ \ '[:;,]'
+ \ nextgroup=hostconfDomain
+ \ skipwhite
+
+syn keyword hostconfKeyword
+ \ contained
+ \ multi
+ \ nospoof
+ \ spoofalert
+ \ reorder
+ \ nextgroup=hostconfBoolean
+ \ skipwhite
+
+syn keyword hostconfBoolean
+ \ contained
+ \ on
+ \ off
+
+syn keyword hostconfKeyword
+ \ contained
+ \ spoof
+ \ nextgroup=hostconfSpoofValue
+ \ skipwhite
+
+syn keyword hostconfSpoofValue
+ \ contained
+ \ off
+ \ nowarn
+ \ warn
+
+hi def link hostconfTodo Todo
+hi def link hostconfComment Comment
+hi def link hostconfKeyword Keyword
+hi def link hostconfLookupOrder Identifier
+hi def link hostconfLookupOrderDelimiter Delimiter
+hi def link hostconfDomain String
+hi def link hostconfDomainDelimiter Delimiter
+hi def link hostconfBoolean Boolean
+hi def link hostconfSpoofValue hostconfBoolean
+
+let b:current_syntax = "hostconf"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/syntax/lisp.vim b/runtime/syntax/lisp.vim
index cd800e720..55390aaa4 100644
--- a/runtime/syntax/lisp.vim
+++ b/runtime/syntax/lisp.vim
@@ -1,12 +1,13 @@
" Vim syntax file
" Language: Lisp
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
-" Last Change: Apr 12, 2007
-" Version: 19
+" Last Change: Oct 19, 2007
+" Version: 20
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
"
" Thanks to F Xavier Noria for a list of 978 Common Lisp symbols
" taken from the HyperSpec
+" Clisp additions courtesy of http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/emacs/lisp.vim
" ---------------------------------------------------------------------
" Load Once: {{{1
@@ -19,462 +20,542 @@ elseif exists("b:current_syntax")
endif
if version >= 600
- setlocal iskeyword=42,43,45,47-58,60-62,64-90,97-122,_
+ setlocal iskeyword=38,42,43,45,47-58,60-62,64-90,97-122,_
else
- set iskeyword=42,43,45,47-58,60-62,64-90,97-122,_
+ set iskeyword=38,42,43,45,47-58,60-62,64-90,97-122,_
+endif
+
+if exists("g:lispsyntax_ignorecase") || exists("g:lispsyntax_clisp")
+ set ignorecase
endif
" ---------------------------------------------------------------------
" Clusters: {{{1
-syn cluster lispAtomCluster contains=lispAtomBarSymbol,lispAtomList,lispAtomNmbr0,lispComment,lispDecl,lispFunc,lispLeadWhite
-syn cluster lispBaseListCluster contains=lispAtom,lispAtomBarSymbol,lispAtomMark,lispBQList,lispBarSymbol,lispComment,lispConcat,lispDecl,lispFunc,lispKey,lispList,lispNumber,lispSpecial,lispSymbol,lispVar,lispLeadWhite
+syn cluster lispAtomCluster contains=lispAtomBarSymbol,lispAtomList,lispAtomNmbr0,lispComment,lispDecl,lispFunc,lispLeadWhite
+syn cluster lispBaseListCluster contains=lispAtom,lispAtomBarSymbol,lispAtomMark,lispBQList,lispBarSymbol,lispComment,lispConcat,lispDecl,lispFunc,lispKey,lispList,lispNumber,lispSpecial,lispSymbol,lispVar,lispLeadWhite
if exists("g:lisp_instring")
- syn cluster lispListCluster contains=@lispBaseListCluster,lispString,lispInString,lispInStringString
+ syn cluster lispListCluster contains=@lispBaseListCluster,lispString,lispInString,lispInStringString
else
- syn cluster lispListCluster contains=@lispBaseListCluster,lispString
+ syn cluster lispListCluster contains=@lispBaseListCluster,lispString
endif
syn case ignore
" ---------------------------------------------------------------------
" Lists: {{{1
-syn match lispSymbol contained ![^()'`,"; \t]\+!
-syn match lispBarSymbol contained !|..\{-}|!
+syn match lispSymbol contained ![^()'`,"; \t]\+!
+syn match lispBarSymbol contained !|..\{-}|!
if exists("g:lisp_rainbow") && g:lisp_rainbow != 0
- syn region lispParen0 matchgroup=hlLevel0 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen1
- syn region lispParen1 contained matchgroup=hlLevel1 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen2
- syn region lispParen2 contained matchgroup=hlLevel2 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen3
- syn region lispParen3 contained matchgroup=hlLevel3 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen4
- syn region lispParen4 contained matchgroup=hlLevel4 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen5
- syn region lispParen5 contained matchgroup=hlLevel5 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen6
- syn region lispParen6 contained matchgroup=hlLevel6 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen7
- syn region lispParen7 contained matchgroup=hlLevel7 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen8
- syn region lispParen8 contained matchgroup=hlLevel8 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen9
+ syn region lispParen0 matchgroup=hlLevel0 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen1
+ syn region lispParen1 contained matchgroup=hlLevel1 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen2
+ syn region lispParen2 contained matchgroup=hlLevel2 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen3
+ syn region lispParen3 contained matchgroup=hlLevel3 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen4
+ syn region lispParen4 contained matchgroup=hlLevel4 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen5
+ syn region lispParen5 contained matchgroup=hlLevel5 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen6
+ syn region lispParen6 contained matchgroup=hlLevel6 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen7
+ syn region lispParen7 contained matchgroup=hlLevel7 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen8
+ syn region lispParen8 contained matchgroup=hlLevel8 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen9
syn region lispParen9 contained matchgroup=hlLevel9 start="`\=(" end=")" skip="|.\{-}|" contains=@lispListCluster,lispParen0
else
- syn region lispList matchgroup=Delimiter start="(" skip="|.\{-}|" matchgroup=Delimiter end=")" contains=@lispListCluster
- syn region lispBQList matchgroup=PreProc start="`(" skip="|.\{-}|" matchgroup=PreProc end=")" contains=@lispListCluster
+ syn region lispList matchgroup=Delimiter start="(" skip="|.\{-}|" matchgroup=Delimiter end=")" contains=@lispListCluster
+ syn region lispBQList matchgroup=PreProc start="`(" skip="|.\{-}|" matchgroup=PreProc end=")" contains=@lispListCluster
endif
" ---------------------------------------------------------------------
" Atoms: {{{1
-syn match lispAtomMark "'"
-syn match lispAtom "'("me=e-1 contains=lispAtomMark nextgroup=lispAtomList
-syn match lispAtom "'[^ \t()]\+" contains=lispAtomMark
-syn match lispAtomBarSymbol !'|..\{-}|! contains=lispAtomMark
-syn region lispAtom start=+'"+ skip=+\\"+ end=+"+
-syn region lispAtomList contained matchgroup=Special start="(" skip="|.\{-}|" matchgroup=Special end=")" contains=@lispAtomCluster,lispString
-syn match lispAtomNmbr contained "\<\d\+"
-syn match lispLeadWhite contained "^\s\+"
+syn match lispAtomMark "'"
+syn match lispAtom "'("me=e-1 contains=lispAtomMark nextgroup=lispAtomList
+syn match lispAtom "'[^ \t()]\+" contains=lispAtomMark
+syn match lispAtomBarSymbol !'|..\{-}|! contains=lispAtomMark
+syn region lispAtom start=+'"+ skip=+\\"+ end=+"+
+syn region lispAtomList contained matchgroup=Special start="(" skip="|.\{-}|" matchgroup=Special end=")" contains=@lispAtomCluster,lispString,lispSpecial
+syn match lispAtomNmbr contained "\<\d\+"
+syn match lispLeadWhite contained "^\s\+"
" ---------------------------------------------------------------------
" Standard Lisp Functions and Macros: {{{1
-syn keyword lispFunc * find-method pprint-indent
-syn keyword lispFunc ** find-package pprint-linear
-syn keyword lispFunc *** find-restart pprint-logical-block
-syn keyword lispFunc + find-symbol pprint-newline
-syn keyword lispFunc ++ finish-output pprint-pop
-syn keyword lispFunc +++ first pprint-tab
-syn keyword lispFunc - fixnum pprint-tabular
-syn keyword lispFunc / flet prin1
-syn keyword lispFunc // float prin1-to-string
-syn keyword lispFunc /// float-digits princ
-syn keyword lispFunc /= float-precision princ-to-string
-syn keyword lispFunc 1+ float-radix print
-syn keyword lispFunc 1- float-sign print-not-readable
-syn keyword lispFunc < floating-point-inexact print-not-readable-object
-syn keyword lispFunc <= floating-point-invalid-operation print-object
-syn keyword lispFunc = floating-point-overflow print-unreadable-object
-syn keyword lispFunc > floating-point-underflow probe-file
-syn keyword lispFunc >= floatp proclaim
-syn keyword lispFunc abort floor prog
-syn keyword lispFunc abs fmakunbound prog*
-syn keyword lispFunc access force-output prog1
-syn keyword lispFunc acons format prog2
-syn keyword lispFunc acos formatter progn
-syn keyword lispFunc acosh fourth program-error
-syn keyword lispFunc add-method fresh-line progv
-syn keyword lispFunc adjoin fround provide
-syn keyword lispFunc adjust-array ftruncate psetf
-syn keyword lispFunc adjustable-array-p ftype psetq
-syn keyword lispFunc allocate-instance funcall push
-syn keyword lispFunc alpha-char-p function pushnew
-syn keyword lispFunc alphanumericp function-keywords putprop
-syn keyword lispFunc and function-lambda-expression quote
-syn keyword lispFunc append functionp random
-syn keyword lispFunc apply gbitp random-state
-syn keyword lispFunc applyhook gcd random-state-p
-syn keyword lispFunc apropos generic-function rassoc
-syn keyword lispFunc apropos-list gensym rassoc-if
-syn keyword lispFunc aref gentemp rassoc-if-not
-syn keyword lispFunc arithmetic-error get ratio
-syn keyword lispFunc arithmetic-error-operands get-decoded-time rational
-syn keyword lispFunc arithmetic-error-operation get-dispatch-macro-character rationalize
-syn keyword lispFunc array get-internal-real-time rationalp
-syn keyword lispFunc array-dimension get-internal-run-time read
-syn keyword lispFunc array-dimension-limit get-macro-character read-byte
-syn keyword lispFunc array-dimensions get-output-stream-string read-char
-syn keyword lispFunc array-displacement get-properties read-char-no-hang
-syn keyword lispFunc array-element-type get-setf-expansion read-delimited-list
-syn keyword lispFunc array-has-fill-pointer-p get-setf-method read-eval-print
-syn keyword lispFunc array-in-bounds-p get-universal-time read-from-string
-syn keyword lispFunc array-rank getf read-line
-syn keyword lispFunc array-rank-limit gethash read-preserving-whitespace
-syn keyword lispFunc array-row-major-index go read-sequence
-syn keyword lispFunc array-total-size graphic-char-p reader-error
-syn keyword lispFunc array-total-size-limit handler-bind readtable
-syn keyword lispFunc arrayp handler-case readtable-case
-syn keyword lispFunc ash hash-table readtablep
-syn keyword lispFunc asin hash-table-count real
-syn keyword lispFunc asinh hash-table-p realp
-syn keyword lispFunc assert hash-table-rehash-size realpart
-syn keyword lispFunc assoc hash-table-rehash-threshold reduce
-syn keyword lispFunc assoc-if hash-table-size reinitialize-instance
-syn keyword lispFunc assoc-if-not hash-table-test rem
-syn keyword lispFunc atan host-namestring remf
-syn keyword lispFunc atanh identity remhash
-syn keyword lispFunc atom if remove
-syn keyword lispFunc base-char if-exists remove-duplicates
-syn keyword lispFunc base-string ignorable remove-if
-syn keyword lispFunc bignum ignore remove-if-not
-syn keyword lispFunc bit ignore-errors remove-method
-syn keyword lispFunc bit-and imagpart remprop
-syn keyword lispFunc bit-andc1 import rename-file
-syn keyword lispFunc bit-andc2 in-package rename-package
-syn keyword lispFunc bit-eqv in-package replace
-syn keyword lispFunc bit-ior incf require
-syn keyword lispFunc bit-nand initialize-instance rest
-syn keyword lispFunc bit-nor inline restart
-syn keyword lispFunc bit-not input-stream-p restart-bind
-syn keyword lispFunc bit-orc1 inspect restart-case
-syn keyword lispFunc bit-orc2 int-char restart-name
-syn keyword lispFunc bit-vector integer return
-syn keyword lispFunc bit-vector-p integer-decode-float return-from
-syn keyword lispFunc bit-xor integer-length revappend
-syn keyword lispFunc block integerp reverse
-syn keyword lispFunc boole interactive-stream-p room
-syn keyword lispFunc boole-1 intern rotatef
-syn keyword lispFunc boole-2 internal-time-units-per-second round
-syn keyword lispFunc boole-and intersection row-major-aref
-syn keyword lispFunc boole-andc1 invalid-method-error rplaca
-syn keyword lispFunc boole-andc2 invoke-debugger rplacd
-syn keyword lispFunc boole-c1 invoke-restart safety
-syn keyword lispFunc boole-c2 invoke-restart-interactively satisfies
-syn keyword lispFunc boole-clr isqrt sbit
-syn keyword lispFunc boole-eqv keyword scale-float
-syn keyword lispFunc boole-ior keywordp schar
-syn keyword lispFunc boole-nand labels search
-syn keyword lispFunc boole-nor lambda second
-syn keyword lispFunc boole-orc1 lambda-list-keywords sequence
-syn keyword lispFunc boole-orc2 lambda-parameters-limit serious-condition
-syn keyword lispFunc boole-set last set
-syn keyword lispFunc boole-xor lcm set-char-bit
-syn keyword lispFunc boolean ldb set-difference
-syn keyword lispFunc both-case-p ldb-test set-dispatch-macro-character
-syn keyword lispFunc boundp ldiff set-exclusive-or
-syn keyword lispFunc break least-negative-double-float set-macro-character
-syn keyword lispFunc broadcast-stream least-negative-long-float set-pprint-dispatch
-syn keyword lispFunc broadcast-stream-streams least-negative-normalized-double-float set-syntax-from-char
-syn keyword lispFunc built-in-class least-negative-normalized-long-float setf
-syn keyword lispFunc butlast least-negative-normalized-short-float setq
-syn keyword lispFunc byte least-negative-normalized-single-float seventh
-syn keyword lispFunc byte-position least-negative-short-float shadow
-syn keyword lispFunc byte-size least-negative-single-float shadowing-import
-syn keyword lispFunc call-arguments-limit least-positive-double-float shared-initialize
-syn keyword lispFunc call-method least-positive-long-float shiftf
-syn keyword lispFunc call-next-method least-positive-normalized-double-float short-float
-syn keyword lispFunc capitalize least-positive-normalized-long-float short-float-epsilon
-syn keyword lispFunc car least-positive-normalized-short-float short-float-negative-epsilon
-syn keyword lispFunc case least-positive-normalized-single-float short-site-name
-syn keyword lispFunc catch least-positive-short-float signal
-syn keyword lispFunc ccase least-positive-single-float signed-byte
-syn keyword lispFunc cdr length signum
-syn keyword lispFunc ceiling let simle-condition
-syn keyword lispFunc cell-error let* simple-array
-syn keyword lispFunc cell-error-name lisp simple-base-string
-syn keyword lispFunc cerror lisp-implementation-type simple-bit-vector
-syn keyword lispFunc change-class lisp-implementation-version simple-bit-vector-p
-syn keyword lispFunc char list simple-condition-format-arguments
-syn keyword lispFunc char-bit list* simple-condition-format-control
-syn keyword lispFunc char-bits list-all-packages simple-error
-syn keyword lispFunc char-bits-limit list-length simple-string
-syn keyword lispFunc char-code listen simple-string-p
-syn keyword lispFunc char-code-limit listp simple-type-error
-syn keyword lispFunc char-control-bit load simple-vector
-syn keyword lispFunc char-downcase load-logical-pathname-translations simple-vector-p
-syn keyword lispFunc char-equal load-time-value simple-warning
-syn keyword lispFunc char-font locally sin
-syn keyword lispFunc char-font-limit log single-flaot-epsilon
-syn keyword lispFunc char-greaterp logand single-float
-syn keyword lispFunc char-hyper-bit logandc1 single-float-epsilon
-syn keyword lispFunc char-int logandc2 single-float-negative-epsilon
-syn keyword lispFunc char-lessp logbitp sinh
-syn keyword lispFunc char-meta-bit logcount sixth
-syn keyword lispFunc char-name logeqv sleep
-syn keyword lispFunc char-not-equal logical-pathname slot-boundp
-syn keyword lispFunc char-not-greaterp logical-pathname-translations slot-exists-p
-syn keyword lispFunc char-not-lessp logior slot-makunbound
-syn keyword lispFunc char-super-bit lognand slot-missing
-syn keyword lispFunc char-upcase lognor slot-unbound
-syn keyword lispFunc char/= lognot slot-value
-syn keyword lispFunc char< logorc1 software-type
-syn keyword lispFunc char<= logorc2 software-version
-syn keyword lispFunc char= logtest some
-syn keyword lispFunc char> logxor sort
-syn keyword lispFunc char>= long-float space
-syn keyword lispFunc character long-float-epsilon special
-syn keyword lispFunc characterp long-float-negative-epsilon special-form-p
-syn keyword lispFunc check-type long-site-name special-operator-p
-syn keyword lispFunc cis loop speed
-syn keyword lispFunc class loop-finish sqrt
-syn keyword lispFunc class-name lower-case-p stable-sort
-syn keyword lispFunc class-of machine-instance standard
-syn keyword lispFunc clear-input machine-type standard-char
-syn keyword lispFunc clear-output machine-version standard-char-p
-syn keyword lispFunc close macro-function standard-class
-syn keyword lispFunc clrhash macroexpand standard-generic-function
-syn keyword lispFunc code-char macroexpand-1 standard-method
-syn keyword lispFunc coerce macroexpand-l standard-object
-syn keyword lispFunc commonp macrolet step
-syn keyword lispFunc compilation-speed make-array storage-condition
-syn keyword lispFunc compile make-array store-value
-syn keyword lispFunc compile-file make-broadcast-stream stream
-syn keyword lispFunc compile-file-pathname make-char stream-element-type
-syn keyword lispFunc compiled-function make-concatenated-stream stream-error
-syn keyword lispFunc compiled-function-p make-condition stream-error-stream
-syn keyword lispFunc compiler-let make-dispatch-macro-character stream-external-format
-syn keyword lispFunc compiler-macro make-echo-stream streamp
-syn keyword lispFunc compiler-macro-function make-hash-table streamup
-syn keyword lispFunc complement make-instance string
-syn keyword lispFunc complex make-instances-obsolete string-capitalize
-syn keyword lispFunc complexp make-list string-char
-syn keyword lispFunc compute-applicable-methods make-load-form string-char-p
-syn keyword lispFunc compute-restarts make-load-form-saving-slots string-downcase
-syn keyword lispFunc concatenate make-method string-equal
-syn keyword lispFunc concatenated-stream make-package string-greaterp
-syn keyword lispFunc concatenated-stream-streams make-pathname string-left-trim
-syn keyword lispFunc cond make-random-state string-lessp
-syn keyword lispFunc condition make-sequence string-not-equal
-syn keyword lispFunc conjugate make-string string-not-greaterp
-syn keyword lispFunc cons make-string-input-stream string-not-lessp
-syn keyword lispFunc consp make-string-output-stream string-right-strim
-syn keyword lispFunc constantly make-symbol string-right-trim
-syn keyword lispFunc constantp make-synonym-stream string-stream
-syn keyword lispFunc continue make-two-way-stream string-trim
-syn keyword lispFunc control-error makunbound string-upcase
-syn keyword lispFunc copy-alist map string/=
-syn keyword lispFunc copy-list map-into string<
-syn keyword lispFunc copy-pprint-dispatch mapc string<=
-syn keyword lispFunc copy-readtable mapcan string=
-syn keyword lispFunc copy-seq mapcar string>
-syn keyword lispFunc copy-structure mapcon string>=
-syn keyword lispFunc copy-symbol maphash stringp
-syn keyword lispFunc copy-tree mapl structure
-syn keyword lispFunc cos maplist structure-class
-syn keyword lispFunc cosh mask-field structure-object
-syn keyword lispFunc count max style-warning
-syn keyword lispFunc count-if member sublim
-syn keyword lispFunc count-if-not member-if sublis
-syn keyword lispFunc ctypecase member-if-not subseq
-syn keyword lispFunc debug merge subsetp
-syn keyword lispFunc decf merge-pathname subst
-syn keyword lispFunc declaim merge-pathnames subst-if
-syn keyword lispFunc declaration method subst-if-not
-syn keyword lispFunc declare method-combination substitute
-syn keyword lispFunc decode-float method-combination-error substitute-if
-syn keyword lispFunc decode-universal-time method-qualifiers substitute-if-not
-syn keyword lispFunc defclass min subtypep
-syn keyword lispFunc defconstant minusp svref
-syn keyword lispFunc defgeneric mismatch sxhash
-syn keyword lispFunc define-compiler-macro mod symbol
-syn keyword lispFunc define-condition most-negative-double-float symbol-function
-syn keyword lispFunc define-method-combination most-negative-fixnum symbol-macrolet
-syn keyword lispFunc define-modify-macro most-negative-long-float symbol-name
-syn keyword lispFunc define-setf-expander most-negative-short-float symbol-package
-syn keyword lispFunc define-setf-method most-negative-single-float symbol-plist
-syn keyword lispFunc define-symbol-macro most-positive-double-float symbol-value
-syn keyword lispFunc defmacro most-positive-fixnum symbolp
-syn keyword lispFunc defmethod most-positive-long-float synonym-stream
-syn keyword lispFunc defpackage most-positive-short-float synonym-stream-symbol
-syn keyword lispFunc defparameter most-positive-single-float sys
-syn keyword lispFunc defsetf muffle-warning system
-syn keyword lispFunc defstruct multiple-value-bind t
-syn keyword lispFunc deftype multiple-value-call tagbody
-syn keyword lispFunc defun multiple-value-list tailp
-syn keyword lispFunc defvar multiple-value-prog1 tan
-syn keyword lispFunc delete multiple-value-seteq tanh
-syn keyword lispFunc delete-duplicates multiple-value-setq tenth
-syn keyword lispFunc delete-file multiple-values-limit terpri
-syn keyword lispFunc delete-if name-char the
-syn keyword lispFunc delete-if-not namestring third
-syn keyword lispFunc delete-package nbutlast throw
-syn keyword lispFunc denominator nconc time
-syn keyword lispFunc deposit-field next-method-p trace
-syn keyword lispFunc describe nil translate-logical-pathname
-syn keyword lispFunc describe-object nintersection translate-pathname
-syn keyword lispFunc destructuring-bind ninth tree-equal
-syn keyword lispFunc digit-char no-applicable-method truename
-syn keyword lispFunc digit-char-p no-next-method truncase
-syn keyword lispFunc directory not truncate
-syn keyword lispFunc directory-namestring notany two-way-stream
-syn keyword lispFunc disassemble notevery two-way-stream-input-stream
-syn keyword lispFunc division-by-zero notinline two-way-stream-output-stream
-syn keyword lispFunc do nreconc type
-syn keyword lispFunc do* nreverse type-error
-syn keyword lispFunc do-all-symbols nset-difference type-error-datum
-syn keyword lispFunc do-exeternal-symbols nset-exclusive-or type-error-expected-type
-syn keyword lispFunc do-external-symbols nstring type-of
-syn keyword lispFunc do-symbols nstring-capitalize typecase
-syn keyword lispFunc documentation nstring-downcase typep
-syn keyword lispFunc dolist nstring-upcase unbound-slot
-syn keyword lispFunc dotimes nsublis unbound-slot-instance
-syn keyword lispFunc double-float nsubst unbound-variable
-syn keyword lispFunc double-float-epsilon nsubst-if undefined-function
-syn keyword lispFunc double-float-negative-epsilon nsubst-if-not unexport
-syn keyword lispFunc dpb nsubstitute unintern
-syn keyword lispFunc dribble nsubstitute-if union
-syn keyword lispFunc dynamic-extent nsubstitute-if-not unless
-syn keyword lispFunc ecase nth unread
-syn keyword lispFunc echo-stream nth-value unread-char
-syn keyword lispFunc echo-stream-input-stream nthcdr unsigned-byte
-syn keyword lispFunc echo-stream-output-stream null untrace
-syn keyword lispFunc ed number unuse-package
-syn keyword lispFunc eighth numberp unwind-protect
-syn keyword lispFunc elt numerator update-instance-for-different-class
-syn keyword lispFunc encode-universal-time nunion update-instance-for-redefined-class
-syn keyword lispFunc end-of-file oddp upgraded-array-element-type
-syn keyword lispFunc endp open upgraded-complex-part-type
-syn keyword lispFunc enough-namestring open-stream-p upper-case-p
-syn keyword lispFunc ensure-directories-exist optimize use-package
-syn keyword lispFunc ensure-generic-function or use-value
-syn keyword lispFunc eq otherwise user
-syn keyword lispFunc eql output-stream-p user-homedir-pathname
-syn keyword lispFunc equal package values
-syn keyword lispFunc equalp package-error values-list
-syn keyword lispFunc error package-error-package vector
-syn keyword lispFunc etypecase package-name vector-pop
-syn keyword lispFunc eval package-nicknames vector-push
-syn keyword lispFunc eval-when package-shadowing-symbols vector-push-extend
-syn keyword lispFunc evalhook package-use-list vectorp
-syn keyword lispFunc evenp package-used-by-list warn
-syn keyword lispFunc every packagep warning
-syn keyword lispFunc exp pairlis when
-syn keyword lispFunc export parse-error wild-pathname-p
-syn keyword lispFunc expt parse-integer with-accessors
-syn keyword lispFunc extended-char parse-namestring with-compilation-unit
-syn keyword lispFunc fboundp pathname with-condition-restarts
-syn keyword lispFunc fceiling pathname-device with-hash-table-iterator
-syn keyword lispFunc fdefinition pathname-directory with-input-from-string
-syn keyword lispFunc ffloor pathname-host with-open-file
-syn keyword lispFunc fifth pathname-match-p with-open-stream
-syn keyword lispFunc file-author pathname-name with-output-to-string
-syn keyword lispFunc file-error pathname-type with-package-iterator
-syn keyword lispFunc file-error-pathname pathname-version with-simple-restart
-syn keyword lispFunc file-length pathnamep with-slots
-syn keyword lispFunc file-namestring peek-char with-standard-io-syntax
-syn keyword lispFunc file-position phase write
-syn keyword lispFunc file-stream pi write-byte
-syn keyword lispFunc file-string-length plusp write-char
-syn keyword lispFunc file-write-date pop write-line
-syn keyword lispFunc fill position write-sequence
-syn keyword lispFunc fill-pointer position-if write-string
-syn keyword lispFunc find position-if-not write-to-string
-syn keyword lispFunc find-all-symbols pprint y-or-n-p
-syn keyword lispFunc find-class pprint-dispatch yes-or-no-p
-syn keyword lispFunc find-if pprint-exit-if-list-exhausted zerop
-syn keyword lispFunc find-if-not pprint-fill
+syn keyword lispFunc * find-method pprint-indent
+syn keyword lispFunc ** find-package pprint-linear
+syn keyword lispFunc *** find-restart pprint-logical-block
+syn keyword lispFunc + find-symbol pprint-newline
+syn keyword lispFunc ++ finish-output pprint-pop
+syn keyword lispFunc +++ first pprint-tab
+syn keyword lispFunc - fixnum pprint-tabular
+syn keyword lispFunc / flet prin1
+syn keyword lispFunc // float prin1-to-string
+syn keyword lispFunc /// float-digits princ
+syn keyword lispFunc /= float-precision princ-to-string
+syn keyword lispFunc 1+ float-radix print
+syn keyword lispFunc 1- float-sign print-not-readable
+syn keyword lispFunc < floating-point-inexact print-not-readable-object
+syn keyword lispFunc <= floating-point-invalid-operation print-object
+syn keyword lispFunc = floating-point-overflow print-unreadable-object
+syn keyword lispFunc > floating-point-underflow probe-file
+syn keyword lispFunc >= floatp proclaim
+syn keyword lispFunc abort floor prog
+syn keyword lispFunc abs fmakunbound prog*
+syn keyword lispFunc access force-output prog1
+syn keyword lispFunc acons format prog2
+syn keyword lispFunc acos formatter progn
+syn keyword lispFunc acosh fourth program-error
+syn keyword lispFunc add-method fresh-line progv
+syn keyword lispFunc adjoin fround provide
+syn keyword lispFunc adjust-array ftruncate psetf
+syn keyword lispFunc adjustable-array-p ftype psetq
+syn keyword lispFunc allocate-instance funcall push
+syn keyword lispFunc alpha-char-p function pushnew
+syn keyword lispFunc alphanumericp function-keywords putprop
+syn keyword lispFunc and function-lambda-expression quote
+syn keyword lispFunc append functionp random
+syn keyword lispFunc apply gbitp random-state
+syn keyword lispFunc applyhook gcd random-state-p
+syn keyword lispFunc apropos generic-function rassoc
+syn keyword lispFunc apropos-list gensym rassoc-if
+syn keyword lispFunc aref gentemp rassoc-if-not
+syn keyword lispFunc arithmetic-error get ratio
+syn keyword lispFunc arithmetic-error-operands get-decoded-time rational
+syn keyword lispFunc arithmetic-error-operation get-dispatch-macro-character rationalize
+syn keyword lispFunc array get-internal-real-time rationalp
+syn keyword lispFunc array-dimension get-internal-run-time read
+syn keyword lispFunc array-dimension-limit get-macro-character read-byte
+syn keyword lispFunc array-dimensions get-output-stream-string read-char
+syn keyword lispFunc array-displacement get-properties read-char-no-hang
+syn keyword lispFunc array-element-type get-setf-expansion read-delimited-list
+syn keyword lispFunc array-has-fill-pointer-p get-setf-method read-eval-print
+syn keyword lispFunc array-in-bounds-p get-universal-time read-from-string
+syn keyword lispFunc array-rank getf read-line
+syn keyword lispFunc array-rank-limit gethash read-preserving-whitespace
+syn keyword lispFunc array-row-major-index go read-sequence
+syn keyword lispFunc array-total-size graphic-char-p reader-error
+syn keyword lispFunc array-total-size-limit handler-bind readtable
+syn keyword lispFunc arrayp handler-case readtable-case
+syn keyword lispFunc ash hash-table readtablep
+syn keyword lispFunc asin hash-table-count real
+syn keyword lispFunc asinh hash-table-p realp
+syn keyword lispFunc assert hash-table-rehash-size realpart
+syn keyword lispFunc assoc hash-table-rehash-threshold reduce
+syn keyword lispFunc assoc-if hash-table-size reinitialize-instance
+syn keyword lispFunc assoc-if-not hash-table-test rem
+syn keyword lispFunc atan host-namestring remf
+syn keyword lispFunc atanh identity remhash
+syn keyword lispFunc atom if remove
+syn keyword lispFunc base-char if-exists remove-duplicates
+syn keyword lispFunc base-string ignorable remove-if
+syn keyword lispFunc bignum ignore remove-if-not
+syn keyword lispFunc bit ignore-errors remove-method
+syn keyword lispFunc bit-and imagpart remprop
+syn keyword lispFunc bit-andc1 import rename-file
+syn keyword lispFunc bit-andc2 in-package rename-package
+syn keyword lispFunc bit-eqv in-package replace
+syn keyword lispFunc bit-ior incf require
+syn keyword lispFunc bit-nand initialize-instance rest
+syn keyword lispFunc bit-nor inline restart
+syn keyword lispFunc bit-not input-stream-p restart-bind
+syn keyword lispFunc bit-orc1 inspect restart-case
+syn keyword lispFunc bit-orc2 int-char restart-name
+syn keyword lispFunc bit-vector integer return
+syn keyword lispFunc bit-vector-p integer-decode-float return-from
+syn keyword lispFunc bit-xor integer-length revappend
+syn keyword lispFunc block integerp reverse
+syn keyword lispFunc boole interactive-stream-p room
+syn keyword lispFunc boole-1 intern rotatef
+syn keyword lispFunc boole-2 internal-time-units-per-second round
+syn keyword lispFunc boole-and intersection row-major-aref
+syn keyword lispFunc boole-andc1 invalid-method-error rplaca
+syn keyword lispFunc boole-andc2 invoke-debugger rplacd
+syn keyword lispFunc boole-c1 invoke-restart safety
+syn keyword lispFunc boole-c2 invoke-restart-interactively satisfies
+syn keyword lispFunc boole-clr isqrt sbit
+syn keyword lispFunc boole-eqv keyword scale-float
+syn keyword lispFunc boole-ior keywordp schar
+syn keyword lispFunc boole-nand labels search
+syn keyword lispFunc boole-nor lambda second
+syn keyword lispFunc boole-orc1 lambda-list-keywords sequence
+syn keyword lispFunc boole-orc2 lambda-parameters-limit serious-condition
+syn keyword lispFunc boole-set last set
+syn keyword lispFunc boole-xor lcm set-char-bit
+syn keyword lispFunc boolean ldb set-difference
+syn keyword lispFunc both-case-p ldb-test set-dispatch-macro-character
+syn keyword lispFunc boundp ldiff set-exclusive-or
+syn keyword lispFunc break least-negative-double-float set-macro-character
+syn keyword lispFunc broadcast-stream least-negative-long-float set-pprint-dispatch
+syn keyword lispFunc broadcast-stream-streams least-negative-normalized-double-float set-syntax-from-char
+syn keyword lispFunc built-in-class least-negative-normalized-long-float setf
+syn keyword lispFunc butlast least-negative-normalized-short-float setq
+syn keyword lispFunc byte least-negative-normalized-single-float seventh
+syn keyword lispFunc byte-position least-negative-short-float shadow
+syn keyword lispFunc byte-size least-negative-single-float shadowing-import
+syn keyword lispFunc call-arguments-limit least-positive-double-float shared-initialize
+syn keyword lispFunc call-method least-positive-long-float shiftf
+syn keyword lispFunc call-next-method least-positive-normalized-double-float short-float
+syn keyword lispFunc capitalize least-positive-normalized-long-float short-float-epsilon
+syn keyword lispFunc car least-positive-normalized-short-float short-float-negative-epsilon
+syn keyword lispFunc case least-positive-normalized-single-float short-site-name
+syn keyword lispFunc catch least-positive-short-float signal
+syn keyword lispFunc ccase least-positive-single-float signed-byte
+syn keyword lispFunc cdr length signum
+syn keyword lispFunc ceiling let simple-condition
+syn keyword lispFunc cell-error let* simple-array
+syn keyword lispFunc cell-error-name lisp simple-base-string
+syn keyword lispFunc cerror lisp-implementation-type simple-bit-vector
+syn keyword lispFunc change-class lisp-implementation-version simple-bit-vector-p
+syn keyword lispFunc char list simple-condition-format-arguments
+syn keyword lispFunc char-bit list* simple-condition-format-control
+syn keyword lispFunc char-bits list-all-packages simple-error
+syn keyword lispFunc char-bits-limit list-length simple-string
+syn keyword lispFunc char-code listen simple-string-p
+syn keyword lispFunc char-code-limit listp simple-type-error
+syn keyword lispFunc char-control-bit load simple-vector
+syn keyword lispFunc char-downcase load-logical-pathname-translations simple-vector-p
+syn keyword lispFunc char-equal load-time-value simple-warning
+syn keyword lispFunc char-font locally sin
+syn keyword lispFunc char-font-limit log single-flaot-epsilon
+syn keyword lispFunc char-greaterp logand single-float
+syn keyword lispFunc char-hyper-bit logandc1 single-float-epsilon
+syn keyword lispFunc char-int logandc2 single-float-negative-epsilon
+syn keyword lispFunc char-lessp logbitp sinh
+syn keyword lispFunc char-meta-bit logcount sixth
+syn keyword lispFunc char-name logeqv sleep
+syn keyword lispFunc char-not-equal logical-pathname slot-boundp
+syn keyword lispFunc char-not-greaterp logical-pathname-translations slot-exists-p
+syn keyword lispFunc char-not-lessp logior slot-makunbound
+syn keyword lispFunc char-super-bit lognand slot-missing
+syn keyword lispFunc char-upcase lognor slot-unbound
+syn keyword lispFunc char/= lognot slot-value
+syn keyword lispFunc char< logorc1 software-type
+syn keyword lispFunc char<= logorc2 software-version
+syn keyword lispFunc char= logtest some
+syn keyword lispFunc char> logxor sort
+syn keyword lispFunc char>= long-float space
+syn keyword lispFunc character long-float-epsilon special
+syn keyword lispFunc characterp long-float-negative-epsilon special-form-p
+syn keyword lispFunc check-type long-site-name special-operator-p
+syn keyword lispFunc cis loop speed
+syn keyword lispFunc class loop-finish sqrt
+syn keyword lispFunc class-name lower-case-p stable-sort
+syn keyword lispFunc class-of machine-instance standard
+syn keyword lispFunc clear-input machine-type standard-char
+syn keyword lispFunc clear-output machine-version standard-char-p
+syn keyword lispFunc close macro-function standard-class
+syn keyword lispFunc clrhash macroexpand standard-generic-function
+syn keyword lispFunc code-char macroexpand-1 standard-method
+syn keyword lispFunc coerce macroexpand-l standard-object
+syn keyword lispFunc commonp macrolet step
+syn keyword lispFunc compilation-speed make-array storage-condition
+syn keyword lispFunc compile make-array store-value
+syn keyword lispFunc compile-file make-broadcast-stream stream
+syn keyword lispFunc compile-file-pathname make-char stream-element-type
+syn keyword lispFunc compiled-function make-concatenated-stream stream-error
+syn keyword lispFunc compiled-function-p make-condition stream-error-stream
+syn keyword lispFunc compiler-let make-dispatch-macro-character stream-external-format
+syn keyword lispFunc compiler-macro make-echo-stream streamp
+syn keyword lispFunc compiler-macro-function make-hash-table streamup
+syn keyword lispFunc complement make-instance string
+syn keyword lispFunc complex make-instances-obsolete string-capitalize
+syn keyword lispFunc complexp make-list string-char
+syn keyword lispFunc compute-applicable-methods make-load-form string-char-p
+syn keyword lispFunc compute-restarts make-load-form-saving-slots string-downcase
+syn keyword lispFunc concatenate make-method string-equal
+syn keyword lispFunc concatenated-stream make-package string-greaterp
+syn keyword lispFunc concatenated-stream-streams make-pathname string-left-trim
+syn keyword lispFunc cond make-random-state string-lessp
+syn keyword lispFunc condition make-sequence string-not-equal
+syn keyword lispFunc conjugate make-string string-not-greaterp
+syn keyword lispFunc cons make-string-input-stream string-not-lessp
+syn keyword lispFunc consp make-string-output-stream string-right-strim
+syn keyword lispFunc constantly make-symbol string-right-trim
+syn keyword lispFunc constantp make-synonym-stream string-stream
+syn keyword lispFunc continue make-two-way-stream string-trim
+syn keyword lispFunc control-error makunbound string-upcase
+syn keyword lispFunc copy-alist map string/=
+syn keyword lispFunc copy-list map-into string<
+syn keyword lispFunc copy-pprint-dispatch mapc string<=
+syn keyword lispFunc copy-readtable mapcan string=
+syn keyword lispFunc copy-seq mapcar string>
+syn keyword lispFunc copy-structure mapcon string>=
+syn keyword lispFunc copy-symbol maphash stringp
+syn keyword lispFunc copy-tree mapl structure
+syn keyword lispFunc cos maplist structure-class
+syn keyword lispFunc cosh mask-field structure-object
+syn keyword lispFunc count max style-warning
+syn keyword lispFunc count-if member sublim
+syn keyword lispFunc count-if-not member-if sublis
+syn keyword lispFunc ctypecase member-if-not subseq
+syn keyword lispFunc debug merge subsetp
+syn keyword lispFunc decf merge-pathname subst
+syn keyword lispFunc declaim merge-pathnames subst-if
+syn keyword lispFunc declaration method subst-if-not
+syn keyword lispFunc declare method-combination substitute
+syn keyword lispFunc decode-float method-combination-error substitute-if
+syn keyword lispFunc decode-universal-time method-qualifiers substitute-if-not
+syn keyword lispFunc defclass min subtypep
+syn keyword lispFunc defconstant minusp svref
+syn keyword lispFunc defgeneric mismatch sxhash
+syn keyword lispFunc define-compiler-macro mod symbol
+syn keyword lispFunc define-condition most-negative-double-float symbol-function
+syn keyword lispFunc define-method-combination most-negative-fixnum symbol-macrolet
+syn keyword lispFunc define-modify-macro most-negative-long-float symbol-name
+syn keyword lispFunc define-setf-expander most-negative-short-float symbol-package
+syn keyword lispFunc define-setf-method most-negative-single-float symbol-plist
+syn keyword lispFunc define-symbol-macro most-positive-double-float symbol-value
+syn keyword lispFunc defmacro most-positive-fixnum symbolp
+syn keyword lispFunc defmethod most-positive-long-float synonym-stream
+syn keyword lispFunc defpackage most-positive-short-float synonym-stream-symbol
+syn keyword lispFunc defparameter most-positive-single-float sys
+syn keyword lispFunc defsetf muffle-warning system
+syn keyword lispFunc defstruct multiple-value-bind t
+syn keyword lispFunc deftype multiple-value-call tagbody
+syn keyword lispFunc defun multiple-value-list tailp
+syn keyword lispFunc defvar multiple-value-prog1 tan
+syn keyword lispFunc delete multiple-value-seteq tanh
+syn keyword lispFunc delete-duplicates multiple-value-setq tenth
+syn keyword lispFunc delete-file multiple-values-limit terpri
+syn keyword lispFunc delete-if name-char the
+syn keyword lispFunc delete-if-not namestring third
+syn keyword lispFunc delete-package nbutlast throw
+syn keyword lispFunc denominator nconc time
+syn keyword lispFunc deposit-field next-method-p trace
+syn keyword lispFunc describe nil translate-logical-pathname
+syn keyword lispFunc describe-object nintersection translate-pathname
+syn keyword lispFunc destructuring-bind ninth tree-equal
+syn keyword lispFunc digit-char no-applicable-method truename
+syn keyword lispFunc digit-char-p no-next-method truncase
+syn keyword lispFunc directory not truncate
+syn keyword lispFunc directory-namestring notany two-way-stream
+syn keyword lispFunc disassemble notevery two-way-stream-input-stream
+syn keyword lispFunc division-by-zero notinline two-way-stream-output-stream
+syn keyword lispFunc do nreconc type
+syn keyword lispFunc do* nreverse type-error
+syn keyword lispFunc do-all-symbols nset-difference type-error-datum
+syn keyword lispFunc do-exeternal-symbols nset-exclusive-or type-error-expected-type
+syn keyword lispFunc do-external-symbols nstring type-of
+syn keyword lispFunc do-symbols nstring-capitalize typecase
+syn keyword lispFunc documentation nstring-downcase typep
+syn keyword lispFunc dolist nstring-upcase unbound-slot
+syn keyword lispFunc dotimes nsublis unbound-slot-instance
+syn keyword lispFunc double-float nsubst unbound-variable
+syn keyword lispFunc double-float-epsilon nsubst-if undefined-function
+syn keyword lispFunc double-float-negative-epsilon nsubst-if-not unexport
+syn keyword lispFunc dpb nsubstitute unintern
+syn keyword lispFunc dribble nsubstitute-if union
+syn keyword lispFunc dynamic-extent nsubstitute-if-not unless
+syn keyword lispFunc ecase nth unread
+syn keyword lispFunc echo-stream nth-value unread-char
+syn keyword lispFunc echo-stream-input-stream nthcdr unsigned-byte
+syn keyword lispFunc echo-stream-output-stream null untrace
+syn keyword lispFunc ed number unuse-package
+syn keyword lispFunc eighth numberp unwind-protect
+syn keyword lispFunc elt numerator update-instance-for-different-class
+syn keyword lispFunc encode-universal-time nunion update-instance-for-redefined-class
+syn keyword lispFunc end-of-file oddp upgraded-array-element-type
+syn keyword lispFunc endp open upgraded-complex-part-type
+syn keyword lispFunc enough-namestring open-stream-p upper-case-p
+syn keyword lispFunc ensure-directories-exist optimize use-package
+syn keyword lispFunc ensure-generic-function or use-value
+syn keyword lispFunc eq otherwise user
+syn keyword lispFunc eql output-stream-p user-homedir-pathname
+syn keyword lispFunc equal package values
+syn keyword lispFunc equalp package-error values-list
+syn keyword lispFunc error package-error-package vector
+syn keyword lispFunc etypecase package-name vector-pop
+syn keyword lispFunc eval package-nicknames vector-push
+syn keyword lispFunc eval-when package-shadowing-symbols vector-push-extend
+syn keyword lispFunc evalhook package-use-list vectorp
+syn keyword lispFunc evenp package-used-by-list warn
+syn keyword lispFunc every packagep warning
+syn keyword lispFunc exp pairlis when
+syn keyword lispFunc export parse-error wild-pathname-p
+syn keyword lispFunc expt parse-integer with-accessors
+syn keyword lispFunc extended-char parse-namestring with-compilation-unit
+syn keyword lispFunc fboundp pathname with-condition-restarts
+syn keyword lispFunc fceiling pathname-device with-hash-table-iterator
+syn keyword lispFunc fdefinition pathname-directory with-input-from-string
+syn keyword lispFunc ffloor pathname-host with-open-file
+syn keyword lispFunc fifth pathname-match-p with-open-stream
+syn keyword lispFunc file-author pathname-name with-output-to-string
+syn keyword lispFunc file-error pathname-type with-package-iterator
+syn keyword lispFunc file-error-pathname pathname-version with-simple-restart
+syn keyword lispFunc file-length pathnamep with-slots
+syn keyword lispFunc file-namestring peek-char with-standard-io-syntax
+syn keyword lispFunc file-position phase write
+syn keyword lispFunc file-stream pi write-byte
+syn keyword lispFunc file-string-length plusp write-char
+syn keyword lispFunc file-write-date pop write-line
+syn keyword lispFunc fill position write-sequence
+syn keyword lispFunc fill-pointer position-if write-string
+syn keyword lispFunc find position-if-not write-to-string
+syn keyword lispFunc find-all-symbols pprint y-or-n-p
+syn keyword lispFunc find-class pprint-dispatch yes-or-no-p
+syn keyword lispFunc find-if pprint-exit-if-list-exhausted zerop
+syn keyword lispFunc find-if-not pprint-fill
-syn match lispFunc "\<c[ad]\+r\>"
+syn match lispFunc "\<c[ad]\+r\>"
+if exists("g:lispsyntax_clisp")
+ " CLISP FFI:
+ syn match lispFunc "\<\(ffi:\)\?with-c-\(place\|var\)\>"
+ syn match lispFunc "\<\(ffi:\)\?with-foreign-\(object\|string\)\>"
+ syn match lispFunc "\<\(ffi:\)\?default-foreign-\(language\|library\)\>"
+ syn match lispFunc "\<\([us]_\?\)\?\(element\|deref\|cast\|slot\|validp\)\>"
+ syn match lispFunc "\<\(ffi:\)\?set-foreign-pointer\>"
+ syn match lispFunc "\<\(ffi:\)\?allocate-\(deep\|shallow\)\>"
+ syn match lispFunc "\<\(ffi:\)\?c-lines\>"
+ syn match lispFunc "\<\(ffi:\)\?foreign-\(value\|free\|variable\|function\|object\)\>"
+ syn match lispFunc "\<\(ffi:\)\?foreign-address\(-null\|unsigned\)\?\>"
+ syn match lispFunc "\<\(ffi:\)\?undigned-foreign-address\>"
+ syn match lispFunc "\<\(ffi:\)\?c-var-\(address\|object\)\>"
+ syn match lispFunc "\<\(ffi:\)\?typeof\>"
+ syn match lispFunc "\<\(ffi:\)\?\(bit\)\?sizeof\>"
+" CLISP Macros, functions et al:
+ syn match lispFunc "\<\(ext:\)\?with-collect\>"
+ syn match lispFunc "\<\(ext:\)\?letf\*\?\>"
+ syn match lispFunc "\<\(ext:\)\?finalize\>\>"
+ syn match lispFunc "\<\(ext:\)\?memoized\>"
+ syn match lispFunc "\<\(ext:\)\?getenv\>"
+ syn match lispFunc "\<\(ext:\)\?convert-string-\(to\|from\)-bytes\>"
+ syn match lispFunc "\<\(ext:\)\?ethe\>"
+ syn match lispFunc "\<\(ext:\)\?with-gensyms\>"
+ syn match lispFunc "\<\(ext:\)\?open-http\>"
+ syn match lispFunc "\<\(ext:\)\?string-concat\>"
+ syn match lispFunc "\<\(ext:\)\?with-http-\(in\|out\)put\>"
+ syn match lispFunc "\<\(ext:\)\?with-html-output\>"
+ syn match lispFunc "\<\(ext:\)\?expand-form\>"
+ syn match lispFunc "\<\(ext:\)\?\(without-\)\?package-lock\>"
+ syn match lispFunc "\<\(ext:\)\?re-export\>"
+ syn match lispFunc "\<\(ext:\)\?saveinitmem\>"
+ syn match lispFunc "\<\(ext:\)\?\(read\|write\)-\(integer\|float\)\>"
+ syn match lispFunc "\<\(ext:\)\?\(read\|write\)-\(char\|byte\)-sequence\>"
+ syn match lispFunc "\<\(custom:\)\?\*system-package-list\*\>"
+ syn match lispFunc "\<\(custom:\)\?\*ansi\*\>"
+endif
" ---------------------------------------------------------------------
" Lisp Keywords (modifiers): {{{1
-syn keyword lispKey :abort :from-end :overwrite
-syn keyword lispKey :adjustable :gensym :predicate
-syn keyword lispKey :append :host :preserve-whitespace
-syn keyword lispKey :array :if-does-not-exist :pretty
-syn keyword lispKey :base :if-exists :print
-syn keyword lispKey :case :include :print-function
-syn keyword lispKey :circle :index :probe
-syn keyword lispKey :conc-name :inherited :radix
-syn keyword lispKey :constructor :initial-contents :read-only
-syn keyword lispKey :copier :initial-element :rehash-size
-syn keyword lispKey :count :initial-offset :rehash-threshold
-syn keyword lispKey :create :initial-value :rename
-syn keyword lispKey :default :input :rename-and-delete
-syn keyword lispKey :defaults :internal :size
-syn keyword lispKey :device :io :start
-syn keyword lispKey :direction :junk-allowed :start1
-syn keyword lispKey :directory :key :start2
-syn keyword lispKey :displaced-index-offset :length :stream
-syn keyword lispKey :displaced-to :level :supersede
-syn keyword lispKey :element-type :name :test
-syn keyword lispKey :end :named :test-not
-syn keyword lispKey :end1 :new-version :type
-syn keyword lispKey :end2 :nicknames :use
-syn keyword lispKey :error :output :verbose
-syn keyword lispKey :escape :output-file :version
-syn keyword lispKey :external
+syn keyword lispKey :abort :from-end :overwrite
+syn keyword lispKey :adjustable :gensym :predicate
+syn keyword lispKey :append :host :preserve-whitespace
+syn keyword lispKey :array :if-does-not-exist :pretty
+syn keyword lispKey :base :if-exists :print
+syn keyword lispKey :case :include :print-function
+syn keyword lispKey :circle :index :probe
+syn keyword lispKey :conc-name :inherited :radix
+syn keyword lispKey :constructor :initial-contents :read-only
+syn keyword lispKey :copier :initial-element :rehash-size
+syn keyword lispKey :count :initial-offset :rehash-threshold
+syn keyword lispKey :create :initial-value :rename
+syn keyword lispKey :default :input :rename-and-delete
+syn keyword lispKey :defaults :internal :size
+syn keyword lispKey :device :io :start
+syn keyword lispKey :direction :junk-allowed :start1
+syn keyword lispKey :directory :key :start2
+syn keyword lispKey :displaced-index-offset :length :stream
+syn keyword lispKey :displaced-to :level :supersede
+syn keyword lispKey :element-type :name :test
+syn keyword lispKey :end :named :test-not
+syn keyword lispKey :end1 :new-version :type
+syn keyword lispKey :end2 :nicknames :use
+syn keyword lispKey :error :output :verbose
+syn keyword lispKey :escape :output-file :version
+syn keyword lispKey :external
+" defpackage arguments
+syn keyword lispKey :documentation :shadowing-import-from :modern :export
+syn keyword lispKey :case-sensitive :case-inverted :shadow :import-from :intern
+" lambda list keywords
+syn keyword lispKey &allow-other-keys &aux &body
+syn keyword lispKey &environment &key &optional &rest &whole
+" make-array argument
+syn keyword lispKey :fill-pointer
+" readtable-case values
+syn keyword lispKey :upcase :downcase :preserve :invert
+" eval-when situations
+syn keyword lispKey :load-toplevel :compile-toplevel :execute
+" ANSI Extended LOOP:
+syn keyword lispKey :while :until :for :do :if :then :else :when :unless :in
+syn keyword lispKey :across :finally :collect :nconc :maximize :minimize :sum
+syn keyword lispKey :and :with :initially :append :into :count :end :repeat
+syn keyword lispKey :always :never :thereis :from :to :upto :downto :below
+syn keyword lispKey :above :by :on :being :each :the :hash-key :hash-keys
+syn keyword lispKey :hash-value :hash-values :using :of-type :upfrom :downfrom
+if exists("g:lispsyntax_clisp")
+ " CLISP FFI:
+ syn keyword lispKey :arguments :return-type :library :full :malloc-free
+ syn keyword lispKey :none :alloca :in :out :in-out :stdc-stdcall :stdc :c
+ syn keyword lispKey :language :built-in :typedef :external
+ syn keyword lispKey :fini :init-once :init-always
+endif
" ---------------------------------------------------------------------
" Standard Lisp Variables: {{{1
-syn keyword lispVar *applyhook* *load-pathname* *print-pprint-dispatch*
-syn keyword lispVar *break-on-signals* *load-print* *print-pprint-dispatch*
-syn keyword lispVar *break-on-signals* *load-truename* *print-pretty*
-syn keyword lispVar *break-on-warnings* *load-verbose* *print-radix*
-syn keyword lispVar *compile-file-pathname* *macroexpand-hook* *print-readably*
-syn keyword lispVar *compile-file-pathname* *modules* *print-right-margin*
-syn keyword lispVar *compile-file-truename* *package* *print-right-margin*
-syn keyword lispVar *compile-file-truename* *print-array* *query-io*
-syn keyword lispVar *compile-print* *print-base* *random-state*
-syn keyword lispVar *compile-verbose* *print-case* *read-base*
-syn keyword lispVar *compile-verbose* *print-circle* *read-default-float-format*
-syn keyword lispVar *debug-io* *print-escape* *read-eval*
-syn keyword lispVar *debugger-hook* *print-gensym* *read-suppress*
-syn keyword lispVar *default-pathname-defaults* *print-length* *readtable*
-syn keyword lispVar *error-output* *print-level* *standard-input*
-syn keyword lispVar *evalhook* *print-lines* *standard-output*
-syn keyword lispVar *features* *print-miser-width* *terminal-io*
-syn keyword lispVar *gensym-counter* *print-miser-width* *trace-output*
+syn keyword lispVar *applyhook* *load-pathname* *print-pprint-dispatch*
+syn keyword lispVar *break-on-signals* *load-print* *print-pprint-dispatch*
+syn keyword lispVar *break-on-signals* *load-truename* *print-pretty*
+syn keyword lispVar *break-on-warnings* *load-verbose* *print-radix*
+syn keyword lispVar *compile-file-pathname* *macroexpand-hook* *print-readably*
+syn keyword lispVar *compile-file-pathname* *modules* *print-right-margin*
+syn keyword lispVar *compile-file-truename* *package* *print-right-margin*
+syn keyword lispVar *compile-file-truename* *print-array* *query-io*
+syn keyword lispVar *compile-print* *print-base* *random-state*
+syn keyword lispVar *compile-verbose* *print-case* *read-base*
+syn keyword lispVar *compile-verbose* *print-circle* *read-default-float-format*
+syn keyword lispVar *debug-io* *print-escape* *read-eval*
+syn keyword lispVar *debugger-hook* *print-gensym* *read-suppress*
+syn keyword lispVar *default-pathname-defaults* *print-length* *readtable*
+syn keyword lispVar *error-output* *print-level* *standard-input*
+syn keyword lispVar *evalhook* *print-lines* *standard-output*
+syn keyword lispVar *features* *print-miser-width* *terminal-io*
+syn keyword lispVar *gensym-counter* *print-miser-width* *trace-output*
" ---------------------------------------------------------------------
" Strings: {{{1
-syn region lispString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
+syn region lispString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
if exists("g:lisp_instring")
- syn region lispInString keepend matchgroup=Delimiter start=+"(+rs=s+1 skip=+|.\{-}|+ matchgroup=Delimiter end=+)"+ contains=@lispBaseListCluster,lispInStringString
- syn region lispInStringString start=+\\"+ skip=+\\\\+ end=+\\"+ contained
+ syn region lispInString keepend matchgroup=Delimiter start=+"(+rs=s+1 skip=+|.\{-}|+ matchgroup=Delimiter end=+)"+ contains=@lispBaseListCluster,lispInStringString
+ syn region lispInStringString start=+\\"+ skip=+\\\\+ end=+\\"+ contained
endif
" ---------------------------------------------------------------------
" Shared with Xlisp, Declarations, Macros, Functions: {{{1
-syn keyword lispDecl defmacro do-all-symbols labels
-syn keyword lispDecl defsetf do-external-symbols let
-syn keyword lispDecl deftype do-symbols locally
-syn keyword lispDecl defun dotimes macrolet
-syn keyword lispDecl do* flet multiple-value-bind
+syn keyword lispDecl defmacro do-all-symbols labels
+syn keyword lispDecl defsetf do-external-symbols let
+syn keyword lispDecl deftype do-symbols locally
+syn keyword lispDecl defun dotimes macrolet
+syn keyword lispDecl do* flet multiple-value-bind
+if exists("g:lispsyntax_clisp")
+ " CLISP FFI:
+ syn match lispDecl "\<\(ffi:\)\?def-c-\(var\|const\|enum\|type\|struct\)\>"
+ syn match lispDecl "\<\(ffi:\)\?def-call-\(out\|in\)\>"
+ syn match lispDecl "\<\(ffi:\)\?c-\(function\|struct\|pointer\|string\)\>"
+ syn match lispDecl "\<\(ffi:\)\?c-ptr\(-null\)\?\>"
+ syn match lispDecl "\<\(ffi:\)\?c-array\(-ptr\|-max\)\?\>"
+ syn match lispDecl "\<\(ffi:\)\?[us]\?\(char\|short\|int\|long\)\>"
+ syn match lispDecl "\<\(win32:\|w32\)\?d\?word\>"
+ syn match lispDecl "\<\([us]_\?\)\?int\(8\|16\|32\|64\)\(_t\)\?\>"
+ syn keyword lispDecl size_t off_t time_t handle
+endif
" ---------------------------------------------------------------------
" Numbers: supporting integers and floating point numbers {{{1
-syn match lispNumber "-\=\(\.\d\+\|\d\+\(\.\d*\)\=\)\(e[-+]\=\d\+\)\="
+syn match lispNumber "-\=\(\.\d\+\|\d\+\(\.\d*\)\=\)\(e[-+]\=\d\+\)\="
-syn match lispSpecial "\*\w[a-z_0-9-]*\*"
-syn match lispSpecial !#|[^()'`,"; \t]\+|#!
-syn match lispSpecial !#x\x\+!
-syn match lispSpecial !#o\o\+!
-syn match lispSpecial !#b[01]\+!
-syn match lispSpecial !#\\[ -}\~]!
-syn match lispSpecial !#[':][^()'`,"; \t]\+!
-syn match lispSpecial !#([^()'`,"; \t]\+)!
-syn match lispSpecial !#\\\%(Space\|Newline\|Tab\|Page\|Rubout\|Linefeed\|Return\|Backspace\)!
+syn match lispSpecial "\*\w[a-z_0-9-]*\*"
+syn match lispSpecial !#|[^()'`,"; \t]\+|#!
+syn match lispSpecial !#x\x\+!
+syn match lispSpecial !#o\o\+!
+syn match lispSpecial !#b[01]\+!
+syn match lispSpecial !#\\[ -}\~]!
+syn match lispSpecial !#[':][^()'`,"; \t]\+!
+syn match lispSpecial !#([^()'`,"; \t]\+)!
+syn match lispSpecial !#\\\%(Space\|Newline\|Tab\|Page\|Rubout\|Linefeed\|Return\|Backspace\)!
+syn match lispSpecial "\<+[a-zA-Z_][a-zA-Z_0-9-]*+\>"
-syn match lispConcat "\s\.\s"
-syn match lispParenError ")"
+syn match lispConcat "\s\.\s"
+syn match lispParenError ")"
" ---------------------------------------------------------------------
" Comments: {{{1
-syn cluster lispCommentGroup contains=lispTodo,@Spell
-syn match lispComment ";.*$" contains=@lispCommentGroup
-syn region lispCommentRegion start="#|" end="|#" contains=lispCommentRegion,@lispCommentGroup
-syn keyword lispTodo contained combak combak: todo todo:
+syn cluster lispCommentGroup contains=lispTodo,@Spell
+syn match lispComment ";.*$" contains=@lispCommentGroup
+syn region lispCommentRegion start="#|" end="|#" contains=lispCommentRegion,@lispCommentGroup
+syn keyword lispTodo contained combak combak: todo todo:
" ---------------------------------------------------------------------
" Synchronization: {{{1
@@ -487,38 +568,38 @@ syn sync lines=100
if version >= 508
command -nargs=+ HiLink hi def link <args>
- HiLink lispCommentRegion lispComment
- HiLink lispAtomNmbr lispNumber
- HiLink lispAtomMark lispMark
- HiLink lispInStringString lispString
+ HiLink lispCommentRegion lispComment
+ HiLink lispAtomNmbr lispNumber
+ HiLink lispAtomMark lispMark
+ HiLink lispInStringString lispString
- HiLink lispAtom Identifier
- HiLink lispAtomBarSymbol Special
- HiLink lispBarSymbol Special
- HiLink lispComment Comment
- HiLink lispConcat Statement
- HiLink lispDecl Statement
- HiLink lispFunc Statement
- HiLink lispKey Type
- HiLink lispMark Delimiter
- HiLink lispNumber Number
- HiLink lispParenError Error
- HiLink lispSpecial Type
- HiLink lispString String
- HiLink lispTodo Todo
- HiLink lispVar Statement
+ HiLink lispAtom Identifier
+ HiLink lispAtomBarSymbol Special
+ HiLink lispBarSymbol Special
+ HiLink lispComment Comment
+ HiLink lispConcat Statement
+ HiLink lispDecl Statement
+ HiLink lispFunc Statement
+ HiLink lispKey Type
+ HiLink lispMark Delimiter
+ HiLink lispNumber Number
+ HiLink lispParenError Error
+ HiLink lispSpecial Type
+ HiLink lispString String
+ HiLink lispTodo Todo
+ HiLink lispVar Statement
if exists("g:lisp_rainbow") && g:lisp_rainbow != 0
if &bg == "dark"
hi def hlLevel0 ctermfg=red guifg=red1
- hi def hlLevel1 ctermfg=yellow guifg=orange1
- hi def hlLevel2 ctermfg=green guifg=yellow1
- hi def hlLevel3 ctermfg=cyan guifg=greenyellow
- hi def hlLevel4 ctermfg=magenta guifg=green1
- hi def hlLevel5 ctermfg=red guifg=springgreen1
- hi def hlLevel6 ctermfg=yellow guifg=cyan1
- hi def hlLevel7 ctermfg=green guifg=slateblue1
- hi def hlLevel8 ctermfg=cyan guifg=magenta1
+ hi def hlLevel1 ctermfg=yellow guifg=orange1
+ hi def hlLevel2 ctermfg=green guifg=yellow1
+ hi def hlLevel3 ctermfg=cyan guifg=greenyellow
+ hi def hlLevel4 ctermfg=magenta guifg=green1
+ hi def hlLevel5 ctermfg=red guifg=springgreen1
+ hi def hlLevel6 ctermfg=yellow guifg=cyan1
+ hi def hlLevel7 ctermfg=green guifg=slateblue1
+ hi def hlLevel8 ctermfg=cyan guifg=magenta1
hi def hlLevel9 ctermfg=magenta guifg=purple1
else
hi def hlLevel0 ctermfg=red guifg=red3
diff --git a/runtime/syntax/lsl.vim b/runtime/syntax/lsl.vim
new file mode 100644
index 000000000..3f2481678
--- /dev/null
+++ b/runtime/syntax/lsl.vim
@@ -0,0 +1,272 @@
+" Vim syntax file
+" Language: Linden Scripting Language
+" Maintainer: Timo Frenay <timo@frenay.net>
+" Last Change: 2008 Mar 29
+
+" Quit when a syntax file was already loaded
+if exists("b:current_syntax")
+ finish
+endif
+
+" Initializations
+syn case match
+
+" Keywords
+syn keyword lslKeyword default do else for if jump return state while
+
+" Types
+syn keyword lslType float integer key list quaternion rotation string vector
+
+" Labels
+syn match lslLabel +@\h\w*+ display
+
+" Constants
+syn keyword lslConstant
+\ ACTIVE AGENT AGENT_ALWAYS_RUN AGENT_ATTACHMENTS AGENT_AWAY AGENT_BUSY
+\ AGENT_CROUCHING AGENT_FLYING AGENT_IN_AIR AGENT_MOUSELOOK AGENT_ON_OBJECT
+\ AGENT_SCRIPTED AGENT_SITTING AGENT_TYPING AGENT_WALKING ALL_SIDES ANIM_ON
+\ ATTACH_BACK ATTACH_BELLY ATTACH_CHEST ATTACH_CHIN ATTACH_HEAD
+\ ATTACH_HUD_BOTTOM ATTACH_HUD_BOTTOM_LEFT ATTACH_HUD_BOTTOM_RIGHT
+\ ATTACH_HUD_CENTER_1 ATTACH_HUD_CENTER_2 ATTACH_HUD_TOP_CENTER
+\ ATTACH_HUD_TOP_LEFT ATTACH_HUD_TOP_RIGHT ATTACH_LEAR ATTACH_LEYE ATTACH_LFOOT
+\ ATTACH_LHAND ATTACH_LHIP ATTACH_LLARM ATTACH_LLLEG ATTACH_LPEC
+\ ATTACH_LSHOULDER ATTACH_LUARM ATTACH_LULEG ATTACH_MOUTH ATTACH_NOSE
+\ ATTACH_PELVIS ATTACH_REAR ATTACH_REYE ATTACH_RFOOT ATTACH_RHAND ATTACH_RHIP
+\ ATTACH_RLARM ATTACH_RLLEG ATTACH_RPEC ATTACH_RSHOULDER ATTACH_RUARM
+\ ATTACH_RULEG CAMERA_ACTIVE CAMERA_BEHINDNESS_ANGLE CAMERA_BEHINDNESS_LAG
+\ CAMERA_DISTANCE CAMERA_FOCUS CAMERA_FOCUS_LAG CAMERA_FOCUS_LOCKED
+\ CAMERA_FOCUS_OFFSET CAMERA_FOCUS_THRESHOLD CAMERA_PITCH CAMERA_POSITION
+\ CAMERA_POSITION_LAG CAMERA_POSITION_LOCKED CAMERA_POSITION_THRESHOLD
+\ CHANGED_ALLOWED_DROP CHANGED_COLOR CHANGED_INVENTORY CHANGED_LINK
+\ CHANGED_OWNER CHANGED_REGION CHANGED_SCALE CHANGED_SHAPE CHANGED_TELEPORT
+\ CHANGED_TEXTURE CLICK_ACTION_BUY CLICK_ACTION_NONE CLICK_ACTION_OPEN
+\ CLICK_ACTION_OPEN_MEDIA CLICK_ACTION_PAY CLICK_ACTION_PLAY CLICK_ACTION_SIT
+\ CLICK_ACTION_TOUCH CONTROL_BACK CONTROL_DOWN CONTROL_FWD CONTROL_LBUTTON
+\ CONTROL_LEFT CONTROL_ML_LBUTTON CONTROL_RIGHT CONTROL_ROT_LEFT
+\ CONTROL_ROT_RIGHT CONTROL_UP DATA_BORN DATA_NAME DATA_ONLINE DATA_PAYINFO
+\ DATA_RATING DATA_SIM_POS DATA_SIM_RATING DATA_SIM_STATUS DEBUG_CHANNEL
+\ DEG_TO_RAD EOF FALSE HTTP_BODY_MAXLENGTH HTTP_BODY_TRUNCATED HTTP_METHOD
+\ HTTP_MIMETYPE HTTP_VERIFY_CERT INVENTORY_ALL INVENTORY_ANIMATION
+\ INVENTORY_BODYPART INVENTORY_CLOTHING INVENTORY_GESTURE INVENTORY_LANDMARK
+\ INVENTORY_NONE INVENTORY_NOTECARD INVENTORY_OBJECT INVENTORY_SCRIPT
+\ INVENTORY_SOUND INVENTORY_TEXTURE LAND_LARGE_BRUSH LAND_LEVEL LAND_LOWER
+\ LAND_MEDIUM_BRUSH LAND_NOISE LAND_RAISE LAND_REVERT LAND_SMALL_BRUSH
+\ LAND_SMOOTH LINK_ALL_CHILDREN LINK_ALL_OTHERS LINK_ROOT LINK_SET LINK_THIS
+\ LIST_STAT_GEOMETRIC_MEAN LIST_STAT_MAX LIST_STAT_MEAN LIST_STAT_MEDIAN
+\ LIST_STAT_MIN LIST_STAT_NUM_COUNT LIST_STAT_RANGE LIST_STAT_STD_DEV
+\ LIST_STAT_SUM LIST_STAT_SUM_SQUARES LOOP MASK_BASE MASK_EVERYONE MASK_GROUP
+\ MASK_NEXT MASK_OWNER NULL_KEY OBJECT_CREATOR OBJECT_DESC OBJECT_GROUP
+\ OBJECT_NAME OBJECT_OWNER OBJECT_POS OBJECT_ROT OBJECT_UNKNOWN_DETAIL
+\ OBJECT_VELOCITY PARCEL_COUNT_GROUP PARCEL_COUNT_OTHER PARCEL_COUNT_OWNER
+\ PARCEL_COUNT_SELECTED PARCEL_COUNT_TEMP PARCEL_COUNT_TOTAL PARCEL_DETAILS_AREA
+\ PARCEL_DETAILS_DESC PARCEL_DETAILS_GROUP PARCEL_DETAILS_NAME
+\ PARCEL_DETAILS_OWNER PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY
+\ PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS PARCEL_FLAG_ALLOW_CREATE_OBJECTS
+\ PARCEL_FLAG_ALLOW_DAMAGE PARCEL_FLAG_ALLOW_FLY
+\ PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY PARCEL_FLAG_ALLOW_GROUP_SCRIPTS
+\ PARCEL_FLAG_ALLOW_LANDMARK PARCEL_FLAG_ALLOW_SCRIPTS
+\ PARCEL_FLAG_ALLOW_TERRAFORM PARCEL_FLAG_LOCAL_SOUND_ONLY
+\ PARCEL_FLAG_RESTRICT_PUSHOBJECT PARCEL_FLAG_USE_ACCESS_GROUP
+\ PARCEL_FLAG_USE_ACCESS_LIST PARCEL_FLAG_USE_BAN_LIST
+\ PARCEL_FLAG_USE_LAND_PASS_LIST PARCEL_MEDIA_COMMAND_AGENT
+\ PARCEL_MEDIA_COMMAND_AUTO_ALIGN PARCEL_MEDIA_COMMAND_DESC
+\ PARCEL_MEDIA_COMMAND_LOOP PARCEL_MEDIA_COMMAND_LOOP_SET
+\ PARCEL_MEDIA_COMMAND_PAUSE PARCEL_MEDIA_COMMAND_PLAY PARCEL_MEDIA_COMMAND_SIZE
+\ PARCEL_MEDIA_COMMAND_STOP PARCEL_MEDIA_COMMAND_TEXTURE
+\ PARCEL_MEDIA_COMMAND_TIME PARCEL_MEDIA_COMMAND_TYPE
+\ PARCEL_MEDIA_COMMAND_UNLOAD PARCEL_MEDIA_COMMAND_URL PASSIVE
+\ PAYMENT_INFO_ON_FILE PAYMENT_INFO_USED PAY_DEFAULT PAY_HIDE PERM_ALL PERM_COPY
+\ PERM_MODIFY PERM_MOVE PERM_TRANSFER PERMISSION_ATTACH PERMISSION_CHANGE_LINKS
+\ PERMISSION_CONTROL_CAMERA PERMISSION_DEBIT PERMISSION_TAKE_CONTROLS
+\ PERMISSION_TRACK_CAMERA PERMISSION_TRIGGER_ANIMATION PI PI_BY_TWO PING_PONG
+\ PRIM_BUMP_BARK PRIM_BUMP_BLOBS PRIM_BUMP_BRICKS PRIM_BUMP_BRIGHT
+\ PRIM_BUMP_CHECKER PRIM_BUMP_CONCRETE PRIM_BUMP_DARK PRIM_BUMP_DISKS
+\ PRIM_BUMP_GRAVEL PRIM_BUMP_LARGETILE PRIM_BUMP_NONE PRIM_BUMP_SHINY
+\ PRIM_BUMP_SIDING PRIM_BUMP_STONE PRIM_BUMP_STUCCO PRIM_BUMP_SUCTION
+\ PRIM_BUMP_TILE PRIM_BUMP_WEAVE PRIM_BUMP_WOOD PRIM_CAST_SHADOWS PRIM_COLOR
+\ PRIM_FLEXIBLE PRIM_FULLBRIGHT PRIM_HOLE_CIRCLE PRIM_HOLE_DEFAULT
+\ PRIM_HOLE_SQUARE PRIM_HOLE_TRIANGLE PRIM_MATERIAL PRIM_MATERIAL_FLESH
+\ PRIM_MATERIAL_GLASS PRIM_MATERIAL_LIGHT PRIM_MATERIAL_METAL
+\ PRIM_MATERIAL_PLASTIC PRIM_MATERIAL_RUBBER PRIM_MATERIAL_STONE
+\ PRIM_MATERIAL_WOOD PRIM_PHANTOM PRIM_PHYSICS PRIM_POINT_LIGHT PRIM_POSITION
+\ PRIM_ROTATION PRIM_SCULPT_TYPE_CYLINDER PRIM_SCULPT_TYPE_PLANE
+\ PRIM_SCULPT_TYPE_SPHERE PRIM_SCULPT_TYPE_TORUS PRIM_SHINY_HIGH PRIM_SHINY_LOW
+\ PRIM_SHINY_MEDIUM PRIM_SHINY_NONE PRIM_SIZE PRIM_TEMP_ON_REZ PRIM_TEXGEN
+\ PRIM_TEXGEN_DEFAULT PRIM_TEXGEN_PLANAR PRIM_TEXTURE PRIM_TYPE PRIM_TYPE_BOX
+\ PRIM_TYPE_BOX PRIM_TYPE_CYLINDER PRIM_TYPE_CYLINDER PRIM_TYPE_LEGACY
+\ PRIM_TYPE_PRISM PRIM_TYPE_PRISM PRIM_TYPE_RING PRIM_TYPE_SCULPT
+\ PRIM_TYPE_SPHERE PRIM_TYPE_SPHERE PRIM_TYPE_TORUS PRIM_TYPE_TORUS
+\ PRIM_TYPE_TUBE PRIM_TYPE_TUBE PSYS_PART_BEAM_MASK PSYS_PART_BOUNCE_MASK
+\ PSYS_PART_DEAD_MASK PSYS_PART_EMISSIVE_MASK PSYS_PART_END_ALPHA
+\ PSYS_PART_END_COLOR PSYS_PART_END_SCALE PSYS_PART_FLAGS
+\ PSYS_PART_FOLLOW_SRC_MASK PSYS_PART_FOLLOW_VELOCITY_MASK
+\ PSYS_PART_INTERP_COLOR_MASK PSYS_PART_INTERP_SCALE_MASK PSYS_PART_MAX_AGE
+\ PSYS_PART_RANDOM_ACCEL_MASK PSYS_PART_RANDOM_VEL_MASK PSYS_PART_START_ALPHA
+\ PSYS_PART_START_COLOR PSYS_PART_START_SCALE PSYS_PART_TARGET_LINEAR_MASK
+\ PSYS_PART_TARGET_POS_MASK PSYS_PART_TRAIL_MASK PSYS_PART_WIND_MASK
+\ PSYS_SRC_ACCEL PSYS_SRC_ANGLE_BEGIN PSYS_SRC_ANGLE_END
+\ PSYS_SRC_BURST_PART_COUNT PSYS_SRC_BURST_RADIUS PSYS_SRC_BURST_RATE
+\ PSYS_SRC_BURST_SPEED_MAX PSYS_SRC_BURST_SPEED_MIN PSYS_SRC_INNERANGLE
+\ PSYS_SRC_MAX_AGE PSYS_SRC_OMEGA PSYS_SRC_OUTERANGLE PSYS_SRC_PATTERN
+\ PSYS_SRC_PATTERN_ANGLE PSYS_SRC_PATTERN_ANGLE_CONE
+\ PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY PSYS_SRC_PATTERN_DROP
+\ PSYS_SRC_PATTERN_EXPLODE PSYS_SRC_TARGET_KEY PSYS_SRC_TEXTURE PUBLIC_CHANNEL
+\ RAD_TO_DEG REGION_FLAG_ALLOW_DAMAGE REGION_FLAG_ALLOW_DIRECT_TELEPORT
+\ REGION_FLAG_BLOCK_FLY REGION_FLAG_BLOCK_TERRAFORM
+\ REGION_FLAG_DISABLE_COLLISIONS REGION_FLAG_DISABLE_PHYSICS
+\ REGION_FLAG_FIXED_SUN REGION_FLAG_RESTRICT_PUSHOBJECT REGION_FLAG_SANDBOX
+\ REMOTE_DATA_CHANNEL REMOTE_DATA_REPLY REMOTE_DATA_REQUEST REVERSE ROTATE SCALE
+\ SCRIPTED SMOOTH SQRT2 STATUS_BLOCK_GRAB STATUS_CAST_SHADOWS STATUS_DIE_AT_EDGE
+\ STATUS_PHANTOM STATUS_PHYSICS STATUS_RETURN_AT_EDGE STATUS_ROTATE_X
+\ STATUS_ROTATE_Y STATUS_ROTATE_Z STATUS_SANDBOX STRING_TRIM STRING_TRIM_HEAD
+\ STRING_TRIM_TAIL TRUE TWO_PI TYPE_FLOAT TYPE_INTEGER TYPE_INVALID TYPE_KEY
+\ TYPE_ROTATION TYPE_STRING TYPE_VECTOR VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY
+\ VEHICLE_ANGULAR_DEFLECTION_TIMESCALE VEHICLE_ANGULAR_FRICTION_TIMESCALE
+\ VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE VEHICLE_ANGULAR_MOTOR_DIRECTION
+\ VEHICLE_ANGULAR_MOTOR_TIMESCALE VEHICLE_BANKING_EFFICIENCY VEHICLE_BANKING_MIX
+\ VEHICLE_BANKING_TIMESCALE VEHICLE_BUOYANCY VEHICLE_FLAG_CAMERA_DECOUPLED
+\ VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT VEHICLE_FLAG_HOVER_TERRAIN_ONLY
+\ VEHICLE_FLAG_HOVER_UP_ONLY VEHICLE_FLAG_HOVER_WATER_ONLY
+\ VEHICLE_FLAG_LIMIT_MOTOR_UP VEHICLE_FLAG_LIMIT_ROLL_ONLY
+\ VEHICLE_FLAG_MOUSELOOK_BANK VEHICLE_FLAG_MOUSELOOK_STEER
+\ VEHICLE_FLAG_NO_DEFLECTION_UP VEHICLE_HOVER_EFFICIENCY VEHICLE_HOVER_HEIGHT
+\ VEHICLE_HOVER_TIMESCALE VEHICLE_LINEAR_DEFLECTION_EFFICIENCY
+\ VEHICLE_LINEAR_DEFLECTION_TIMESCALE VEHICLE_LINEAR_FRICTION_TIMESCALE
+\ VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE VEHICLE_LINEAR_MOTOR_TIMESCALE
+\ VEHICLE_LINEAR_MOTOR_DIRECTION VEHICLE_LINEAR_MOTOR_OFFSET
+\ VEHICLE_REFERENCE_FRAME VEHICLE_TYPE_AIRPLANE VEHICLE_TYPE_BALLOON
+\ VEHICLE_TYPE_BOAT VEHICLE_TYPE_CAR VEHICLE_TYPE_NONE VEHICLE_TYPE_SLED
+\ VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY VEHICLE_VERTICAL_ATTRACTION_TIMESCALE
+\ ZERO_ROTATION ZERO_VECTOR
+
+" Events
+syn keyword lslEvent
+\ attach at_rot_target at_target changed collision collision_end collision_start
+\ control dataserver email http_response land_collision land_collision_end
+\ land_collision_start link_message listen money moving_end moving_start
+\ not_at_rot_target no_sensor object_rez on_rez remote_data run_time_permissions
+\ sensor state_entry state_exit timer touch touch_end touch_start not_at_target
+
+" Functions
+syn keyword lslFunction
+\ llAbs llAcos llAddToLandBanList llAddToLandPassList llAdjustSoundVolume
+\ llAllowInventoryDrop llAngleBetween llApplyImpulse llApplyRotationalImpulse
+\ llAsin llAtan2 llAttachToAvatar llAvatarOnSitTarget llAxes2Rot llAxisAngle2Rot
+\ llBase64ToInteger llBase64ToString llBreakAllLinks llBreakLink llCSV2List
+\ llCeil llClearCameraParams llCloseRemoteDataChannel llCloud llCollisionFilter
+\ llCollisionSound llCollisionSprite llCos llCreateLink llDeleteSubList
+\ llDeleteSubString llDetachFromAvatar llDetectedGrab llDetectedGroup
+\ llDetectedKey llDetectedLinkNumber llDetectedName llDetectedOwner
+\ llDetectedPos llDetectedRot llDetectedType llDetectedVel llDialog llDie
+\ llDumpList2String llEdgeOfWorld llEjectFromLand llEmail llEscapeURL
+\ llEuler2Rot llFabs llFloor llForceMouselook llFrand llGetAccel llGetAgentInfo
+\ llGetAgentSize llGetAlpha llGetAndResetTime llGetAnimation llGetAnimationList
+\ llGetAttached llGetBoundingBox llGetCameraPos llGetCameraRot llGetCenterOfMass
+\ llGetColor llGetCreator llGetDate llGetEnergy llGetForce llGetFreeMemory
+\ llGetGMTclock llGetGeometricCenter llGetInventoryCreator llGetInventoryKey
+\ llGetInventoryName llGetInventoryNumber llGetInventoryPermMask
+\ llGetInventoryType llGetKey llGetLandOwnerAt llGetLinkKey llGetLinkName
+\ llGetLinkNumber llGetListEntryType llGetListLength llGetLocalPos llGetLocalRot
+\ llGetMass llGetNextEmail llGetNotecardLine llGetNumberOfNotecardLines
+\ llGetNumberOfPrims llGetNumberOfSides llGetObjectDesc llGetObjectDetails
+\ llGetObjectMass llGetObjectName llGetObjectPermMask llGetObjectPrimCount
+\ llGetOmega llGetOwner llGetOwnerKey llGetParcelDetails llGetParcelFlags
+\ llGetParcelMaxPrims llGetParcelPrimCount llGetParcelPrimOwners
+\ llGetPermissions llGetPermissionsKey llGetPos llGetPrimitiveParams
+\ llGetRegionCorner llGetRegionFPS llGetRegionFlags llGetRegionName
+\ llGetRegionTimeDilation llGetRootPosition llGetRootRotation llGetRot
+\ llGetScale llGetScriptName llGetScriptState llGetSimulatorHostname
+\ llGetStartParameter llGetStatus llGetSubString llGetSunDirection llGetTexture
+\ llGetTextureOffset llGetTextureRot llGetTextureScale llGetTime llGetTimeOfDay
+\ llGetTimestamp llGetTorque llGetUnixTime llGetVel llGetWallclock
+\ llGiveInventory llGiveInventoryList llGiveMoney llGodLikeRezObject llGround
+\ llGroundContour llGroundNormal llGroundRepel llGroundSlope llHTTPRequest
+\ llInsertString llInstantMessage llIntegerToBase64 llKey2Name llList2CSV
+\ llList2Float llList2Integer llList2Key llList2List llList2ListStrided
+\ llList2Rot llList2String llList2Vector llListFindList llListInsertList
+\ llListRandomize llListReplaceList llListSort llListStatistics llListen
+\ llListenControl llListenRemove llLoadURL llLog llLog10 llLookAt llLoopSound
+\ llLoopSoundMaster llLoopSoundSlave llMD5String llMakeExplosion llMakeFire
+\ llMakeFountain llMakeSmoke llMapDestination llMessageLinked llMinEventDelay
+\ llModPow llModifyLand llMoveToTarget llOffsetTexture llOpenRemoteDataChannel
+\ llOverMyLand llOwnerSay llParcelMediaCommandList llParcelMediaQuery
+\ llParseString2List llParseStringKeepNulls llParticleSystem llPassCollisions
+\ llPassTouches llPlaySound llPlaySoundSlave llPointAt llPow llPreloadSound
+\ llPushObject llRefreshPrimURL llRegionSay llReleaseCamera llReleaseControls
+\ llRemoteDataReply llRemoteDataSetRegion llRemoteLoadScript
+\ llRemoteLoadScriptPin llRemoveFromLandBanList llRemoveFromLandPassList
+\ llRemoveInventory llRemoveVehicleFlags llRequestAgentData
+\ llRequestInventoryData llRequestPermissions llRequestSimulatorData
+\ llResetLandBanList llResetLandPassList llResetOtherScript llResetScript
+\ llResetTime llRezAtRoot llRezObject llRot2Angle llRot2Axis llRot2Euler
+\ llRot2Fwd llRot2Left llRot2Up llRotBetween llRotLookAt llRotTarget
+\ llRotTargetRemove llRotateTexture llRound llSameGroup llSay llScaleTexture
+\ llScriptDanger llSendRemoteData llSensor llSensorRemove llSensorRepeat
+\ llSetAlpha llSetBuoyancy llSetCameraAtOffset llSetCameraEyeOffset
+\ llSetCameraParams llSetClickAction llSetColor llSetDamage llSetForce
+\ llSetForceAndTorque llSetHoverHeight llSetInventoryPermMask llSetLinkAlpha
+\ llSetLinkColor llSetLinkPrimitiveParams llSetLinkTexture llSetLocalRot
+\ llSetObjectDesc llSetObjectName llSetObjectPermMask llSetParcelMusicURL
+\ llSetPayPrice llSetPos llSetPrimURL llSetPrimitiveParams
+\ llSetRemoteScriptAccessPin llSetRot llSetScale llSetScriptState llSetSitText
+\ llSetSoundQueueing llSetSoundRadius llSetStatus llSetText llSetTexture
+\ llSetTextureAnim llSetTimerEvent llSetTorque llSetTouchText llSetVehicleFlags
+\ llSetVehicleFloatParam llSetVehicleRotationParam llSetVehicleType
+\ llSetVehicleVectorParam llShout llSin llSitTarget llSleep llSound
+\ llSoundPreload llSqrt llStartAnimation llStopAnimation llStopHover
+\ llStopLookAt llStopMoveToTarget llStopPointAt llStopSound llStringLength
+\ llStringToBase64 llStringTrim llSubStringIndex llTakeCamera llTakeControls
+\ llTan llTarget llTargetOmega llTargetRemove llTeleportAgentHome llToLower
+\ llToUpper llTriggerSound llTriggerSoundLimited llUnSit llUnescapeURL llVecDist
+\ llVecMag llVecNorm llVolumeDetect llWater llWhisper llWind llXorBase64Strings
+\ llXorBase64StringsCorrect
+
+" Operators
+syn match lslOperator +[-!%&*+/<=>^|~]+ display
+
+" Numbers
+syn match lslNumber +-\=\%(\<\d\+\|\%(\<\d\+\)\=\.\d\+\)\%([Ee][-+]\=\d\+\)\=\>\|\<0x\x\+\>+ display
+
+" Vectors and rotations
+syn match lslVectorRot +<[-\t +.0-9A-Za-z_]\+\%(,[-\t +.0-9A-Za-z_]\+\)\{2,3}>+ contains=lslNumber display
+
+" Vector and rotation properties
+syn match lslProperty +\.\@<=[sxyz]\>+ display
+
+" Strings
+syn region lslString start=+"+ skip=+\\.+ end=+"+ contains=lslSpecialChar,@Spell
+syn match lslSpecialChar +\\.+ contained display
+
+" Keys
+syn match lslKey +"\x\{8}-\x\{4}-\x\{4}-\x\{4}-\x\{12}"+ display
+
+" Parentheses, braces and brackets
+syn match lslBlock +[][(){}]+ display
+
+" Typecast operators
+syn match lslTypecast +(\%(float\|integer\|key\|list\|quaternion\|rotation\|string\|vector\))+ contains=lslType display
+
+" Comments
+syn match lslComment +//.*+ contains=@Spell
+
+" Define the default highlighting.
+hi def link lslKeyword Keyword
+hi def link lslType Type
+hi def link lslLabel Label
+hi def link lslConstant Constant
+hi def link lslEvent PreProc
+hi def link lslFunction Function
+hi def link lslOperator Operator
+hi def link lslNumber Number
+hi def link lslVectorRot Special
+hi def link lslProperty Identifier
+hi def link lslString String
+hi def link lslSpecialChar SpecialChar
+hi def link lslKey Special
+hi def link lslBlock Special
+hi def link lslTypecast Operator
+hi def link lslComment Comment
+
+let b:current_syntax = "lsl"
+
+" vim: ts=8
diff --git a/runtime/syntax/modconf.vim b/runtime/syntax/modconf.vim
index e982b8c58..d4e8827be 100644
--- a/runtime/syntax/modconf.vim
+++ b/runtime/syntax/modconf.vim
@@ -1,13 +1,13 @@
" Vim syntax file
" Language: modules.conf(5) configuration file
" Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2006-04-19
+" Latest Revision: 2007-06-17
if exists("b:current_syntax")
finish
endif
-setlocal iskeyword=@,48-57,-
+setlocal iskeyword+=-
let s:cpo_save = &cpo
set cpo&vim
diff --git a/runtime/syntax/mrxvtrc.vim b/runtime/syntax/mrxvtrc.vim
index d86f8e42a..878021e00 100644
--- a/runtime/syntax/mrxvtrc.vim
+++ b/runtime/syntax/mrxvtrc.vim
@@ -1,5 +1,5 @@
" Created : Wed 26 Apr 2006 01:20:53 AM CDT
-" Modified : Mon 20 Nov 2006 12:14:16 AM PST
+" Modified : Mon 27 Aug 2007 12:10:37 PM PDT
" Author : Gautam Iyer <gi1242@users.sourceforge.net>
" Description : Vim syntax file for mrxvtrc (for mrxvt-0.5.0 and up)
@@ -31,19 +31,19 @@ syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcBColon,mrxvtrcError
\ fullscreen reverseVideo loginShell
\ jumpScroll scrollBar scrollbarRight
\ scrollbarFloating scrollTtyOutputInhibit
- \ scrollTtyKeypress scrollWithBuffer
- \ transparentForce transparentScrollbar
- \ transparentMenubar transparentTabbar
- \ tabUsePixmap utmpInhibit visualBell mapAlert
- \ meta8 mouseWheelScrollPage multibyte_cursor
+ \ scrollTtyKeypress transparentForce
+ \ transparentScrollbar transparentMenubar
+ \ transparentTabbar tabUsePixmap utmpInhibit
+ \ visualBell mapAlert meta8
+ \ mouseWheelScrollPage multibyte_cursor
\ tripleclickwords showMenu xft xftNomFont
\ xftSlowOutput xftAntialias xftHinting
\ xftAutoHint xftGlobalAdvance cmdAllTabs
\ protectSecondary thai borderLess
- \ overrideRedirect broadcast
- \ smartResize smoothResize pointerBlank
- \ cursorBlink noSysConfig disableMacros
- \ linuxHomeEndKey sessionMgt
+ \ overrideRedirect broadcast smartResize
+ \ pointerBlank cursorBlink noSysConfig
+ \ disableMacros linuxHomeEndKey sessionMgt
+ \ boldColors smoothResize useFifo veryBright
syn match mrxvtrcOptions contained nextgroup=mrxvtrcBColon,mrxvtrcError
\ '\v<transparent>'
syn match mrxvtrcBColon contained skipwhite
@@ -74,8 +74,7 @@ syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcNColon,mrxvtrcError
\ externalBorder internalBorder lineSpace
\ pointerBlankDelay cursorBlinkInterval
\ shading backgroundFade bgRefreshInterval
- \ fading focusDelay opacity opacityDegree
- \ xftPSize
+ \ fading opacity opacityDegree xftPSize
syn match mrxvtrcNColon contained skipwhite
\ nextgroup=mrxvtrcNumVal,mrxvtrcError ':'
syn match mrxvtrcNumVal contained skipwhite nextgroup=mrxvtrcError
@@ -91,7 +90,6 @@ syn keyword mrxvtrcOptions contained nextgroup=mrxvtrcSColon,mrxvtrcError
\ greektoggle_key menu menubarPixmap
\ scrollbarPixmap tabbarPixmap appIcon
\ multichar_encoding initProfileList
- \ winTitleFormat
syn match mrxvtrcOptions contained nextgroup=mrxvtrcSColon,mrxvtrcError
\ '\v<m?font[1-5]?>'
syn match mrxvtrcSColon contained skipwhite nextgroup=mrxvtrcStrVal ':'
@@ -104,6 +102,7 @@ syn match mrxvtrcProfile contained nextgroup=@mrxvtrcPOpts,mrxvtrcError
syn keyword mrxvtrcPSOpts contained nextgroup=mrxvtrcSColon,mrxvtrcError
\ tabTitle command holdExitText holdExitTitle
\ Pixmap workingDirectory titleFormat
+ \ winTitleFormat
syn keyword mrxvtrcPCOpts contained nextgroup=mrxvtrcCColon,mrxvtrcError
\ background foreground
syn keyword mrxvtrcPNOpts contained nextgroup=mrxvtrcNColon,mrxvtrcError
@@ -205,7 +204,7 @@ syn keyword mrxvtrcMacro contained skipwhite nextgroup=mrxvtrcError
\ Dummy Copy Paste ToggleVeryBold
\ ToggleTransparency ToggleBroadcast
\ ToggleHold SetTitle ToggleMacros
- \ ToggleFullscreen
+ \ ToggleFullscreen Raise
" Macros with a string argument
syn keyword mrxvtrcMacro contained skipwhite nextgroup=mrxvtrcStrVal
@@ -214,7 +213,7 @@ syn keyword mrxvtrcMacro contained skipwhite nextgroup=mrxvtrcStrVal
" Macros with a numeric argument
syn keyword mrxvtrcMacro contained skipwhite
\ nextgroup=mrxvtrcNumVal,mrxvtrcError
- \ Close GotoTab MoveTab ResizeFont
+ \ Close GotoTab MoveTab ResizeFont UseFifo
" NewTab macro
syn keyword mrxvtrcMacro contained skipwhite
diff --git a/runtime/syntax/mysql.vim b/runtime/syntax/mysql.vim
index aa123b7a7..79cf4b5ab 100644
--- a/runtime/syntax/mysql.vim
+++ b/runtime/syntax/mysql.vim
@@ -1,10 +1,10 @@
" Vim syntax file
" Language: mysql
" Maintainer: Kenneth J. Pronovici <pronovic@ieee.org>
-" Last Change: $Date$
+" Last Change: $LastChangedDate: 2007-12-19 10:59:39 -0600 (Wed, 19 Dec 2007) $
" Filenames: *.mysql
-" URL: ftp://cedar-solutions.com/software/mysql.vim
-" Note: The definitions below are taken from the mysql user manual as of April 2002, for version 3.23
+" URL: ftp://cedar-solutions.com/software/mysql.vim
+" Note: The definitions below are taken from the mysql user manual as of April 2002, for version 3.23
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -18,56 +18,56 @@ endif
syn case ignore
" General keywords which don't fall into other categories
-syn keyword mysqlKeyword action add after aggregate all alter as asc auto_increment avg avg_row_length
-syn keyword mysqlKeyword both by
-syn keyword mysqlKeyword cascade change character check checksum column columns comment constraint create cross
-syn keyword mysqlKeyword current_date current_time current_timestamp
-syn keyword mysqlKeyword data database databases day day_hour day_minute day_second
-syn keyword mysqlKeyword default delayed delay_key_write delete desc describe distinct distinctrow drop
-syn keyword mysqlKeyword enclosed escape escaped explain
-syn keyword mysqlKeyword fields file first flush for foreign from full function
-syn keyword mysqlKeyword global grant grants group
-syn keyword mysqlKeyword having heap high_priority hosts hour hour_minute hour_second
-syn keyword mysqlKeyword identified ignore index infile inner insert insert_id into isam
-syn keyword mysqlKeyword join
-syn keyword mysqlKeyword key keys kill last_insert_id leading left limit lines load local lock logs long
-syn keyword mysqlKeyword low_priority
-syn keyword mysqlKeyword match max_rows middleint min_rows minute minute_second modify month myisam
-syn keyword mysqlKeyword natural no
-syn keyword mysqlKeyword on optimize option optionally order outer outfile
-syn keyword mysqlKeyword pack_keys partial password primary privileges procedure process processlist
-syn keyword mysqlKeyword read references reload rename replace restrict returns revoke row rows
-syn keyword mysqlKeyword second select show shutdown soname sql_big_result sql_big_selects sql_big_tables sql_log_off
-syn keyword mysqlKeyword sql_log_update sql_low_priority_updates sql_select_limit sql_small_result sql_warnings starting
-syn keyword mysqlKeyword status straight_join string
-syn keyword mysqlKeyword table tables temporary terminated to trailing type
-syn keyword mysqlKeyword unique unlock unsigned update usage use using
-syn keyword mysqlKeyword values varbinary variables varying
-syn keyword mysqlKeyword where with write
-syn keyword mysqlKeyword year_month
-syn keyword mysqlKeyword zerofill
+syn keyword mysqlKeyword action add after aggregate all alter as asc auto_increment avg avg_row_length
+syn keyword mysqlKeyword both by
+syn keyword mysqlKeyword cascade change character check checksum column columns comment constraint create cross
+syn keyword mysqlKeyword current_date current_time current_timestamp
+syn keyword mysqlKeyword data database databases day day_hour day_minute day_second
+syn keyword mysqlKeyword default delayed delay_key_write delete desc describe distinct distinctrow drop
+syn keyword mysqlKeyword enclosed escape escaped explain
+syn keyword mysqlKeyword fields file first flush for foreign from full function
+syn keyword mysqlKeyword global grant grants group
+syn keyword mysqlKeyword having heap high_priority hosts hour hour_minute hour_second
+syn keyword mysqlKeyword identified ignore index infile inner insert insert_id into isam
+syn keyword mysqlKeyword join
+syn keyword mysqlKeyword key keys kill last_insert_id leading left limit lines load local lock logs long
+syn keyword mysqlKeyword low_priority
+syn keyword mysqlKeyword match max_rows middleint min_rows minute minute_second modify month myisam
+syn keyword mysqlKeyword natural no
+syn keyword mysqlKeyword on optimize option optionally order outer outfile
+syn keyword mysqlKeyword pack_keys partial password primary privileges procedure process processlist
+syn keyword mysqlKeyword read references reload rename replace restrict returns revoke row rows
+syn keyword mysqlKeyword second select show shutdown soname sql_big_result sql_big_selects sql_big_tables sql_log_off
+syn keyword mysqlKeyword sql_log_update sql_low_priority_updates sql_select_limit sql_small_result sql_warnings starting
+syn keyword mysqlKeyword status straight_join string
+syn keyword mysqlKeyword table tables temporary terminated to trailing type
+syn keyword mysqlKeyword unique unlock unsigned update usage use using
+syn keyword mysqlKeyword values varbinary variables varying
+syn keyword mysqlKeyword where with write
+syn keyword mysqlKeyword year_month
+syn keyword mysqlKeyword zerofill
" Special values
-syn keyword mysqlSpecial false null true
+syn keyword mysqlSpecial false null true
" Strings (single- and double-quote)
-syn region mysqlString start=+"+ skip=+\\\\\|\\"+ end=+"+
-syn region mysqlString start=+'+ skip=+\\\\\|\\'+ end=+'+
+syn region mysqlString start=+"+ skip=+\\\\\|\\"+ end=+"+
+syn region mysqlString start=+'+ skip=+\\\\\|\\'+ end=+'+
" Numbers and hexidecimal values
-syn match mysqlNumber "-\=\<[0-9]*\>"
-syn match mysqlNumber "-\=\<[0-9]*\.[0-9]*\>"
-syn match mysqlNumber "-\=\<[0-9]*e[+-]\=[0-9]*\>"
-syn match mysqlNumber "-\=\<[0-9]*\.[0-9]*e[+-]\=[0-9]*\>"
-syn match mysqlNumber "\<0x[abcdefABCDEF0-9]*\>"
+syn match mysqlNumber "-\=\<[0-9]*\>"
+syn match mysqlNumber "-\=\<[0-9]*\.[0-9]*\>"
+syn match mysqlNumber "-\=\<[0-9]*e[+-]\=[0-9]*\>"
+syn match mysqlNumber "-\=\<[0-9]*\.[0-9]*e[+-]\=[0-9]*\>"
+syn match mysqlNumber "\<0x[abcdefABCDEF0-9]*\>"
" User variables
-syn match mysqlVariable "@\a*[A-Za-z0-9]*[._]*[A-Za-z0-9]*"
+syn match mysqlVariable "@\a*[A-Za-z0-9]*[._]*[A-Za-z0-9]*"
" Comments (c-style, mysql-style and modified sql-style)
-syn region mysqlComment start="/\*" end="\*/"
-syn match mysqlComment "#.*"
-syn match mysqlComment "-- .*"
+syn region mysqlComment start="/\*" end="\*/"
+syn match mysqlComment "#.*"
+syn match mysqlComment "--\_s.*"
syn sync ccomment mysqlComment
" Column types
@@ -84,189 +84,189 @@ syn sync ccomment mysqlComment
" The second problem is that some of these keywords are included in
" function names. For instance, year() is part of the name of the
" dayofyear() function, and the dec keyword (no parenthesis) is part of
-" the name of the decode() function.
+" the name of the decode() function.
-syn keyword mysqlType tinyint smallint mediumint int integer bigint
-syn keyword mysqlType date datetime time bit bool
-syn keyword mysqlType tinytext mediumtext longtext text
-syn keyword mysqlType tinyblob mediumblob longblob blob
-syn region mysqlType start="float\W" end="."me=s-1
-syn region mysqlType start="float$" end="."me=s-1
-syn region mysqlType start="float(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="double\W" end="."me=s-1
-syn region mysqlType start="double$" end="."me=s-1
-syn region mysqlType start="double(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="double precision\W" end="."me=s-1
-syn region mysqlType start="double precision$" end="."me=s-1
-syn region mysqlType start="double precision(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="real\W" end="."me=s-1
-syn region mysqlType start="real$" end="."me=s-1
-syn region mysqlType start="real(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="numeric(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="dec\W" end="."me=s-1
-syn region mysqlType start="dec$" end="."me=s-1
-syn region mysqlType start="dec(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="decimal\W" end="."me=s-1
-syn region mysqlType start="decimal$" end="."me=s-1
-syn region mysqlType start="decimal(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="\Wtimestamp\W" end="."me=s-1
-syn region mysqlType start="\Wtimestamp$" end="."me=s-1
-syn region mysqlType start="\Wtimestamp(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="^timestamp\W" end="."me=s-1
-syn region mysqlType start="^timestamp$" end="."me=s-1
-syn region mysqlType start="^timestamp(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="\Wyear(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="^year(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="char(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="varchar(" end=")" contains=mysqlNumber,mysqlVariable
-syn region mysqlType start="enum(" end=")" contains=mysqlString,mysqlVariable
-syn region mysqlType start="\Wset(" end=")" contains=mysqlString,mysqlVariable
-syn region mysqlType start="^set(" end=")" contains=mysqlString,mysqlVariable
+syn keyword mysqlType tinyint smallint mediumint int integer bigint
+syn keyword mysqlType date datetime time bit bool
+syn keyword mysqlType tinytext mediumtext longtext text
+syn keyword mysqlType tinyblob mediumblob longblob blob
+syn region mysqlType start="float\W" end="."me=s-1
+syn region mysqlType start="float$" end="."me=s-1
+syn region mysqlType start="float(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="double\W" end="."me=s-1
+syn region mysqlType start="double$" end="."me=s-1
+syn region mysqlType start="double(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="double precision\W" end="."me=s-1
+syn region mysqlType start="double precision$" end="."me=s-1
+syn region mysqlType start="double precision(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="real\W" end="."me=s-1
+syn region mysqlType start="real$" end="."me=s-1
+syn region mysqlType start="real(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="numeric(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="dec\W" end="."me=s-1
+syn region mysqlType start="dec$" end="."me=s-1
+syn region mysqlType start="dec(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="decimal\W" end="."me=s-1
+syn region mysqlType start="decimal$" end="."me=s-1
+syn region mysqlType start="decimal(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="\Wtimestamp\W" end="."me=s-1
+syn region mysqlType start="\Wtimestamp$" end="."me=s-1
+syn region mysqlType start="\Wtimestamp(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="^timestamp\W" end="."me=s-1
+syn region mysqlType start="^timestamp$" end="."me=s-1
+syn region mysqlType start="^timestamp(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="\Wyear(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="^year(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="char(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="varchar(" end=")" contains=mysqlNumber,mysqlVariable
+syn region mysqlType start="enum(" end=")" contains=mysqlString,mysqlVariable
+syn region mysqlType start="\Wset(" end=")" contains=mysqlString,mysqlVariable
+syn region mysqlType start="^set(" end=")" contains=mysqlString,mysqlVariable
" Logical, string and numeric operators
-syn keyword mysqlOperator between not and or is in like regexp rlike binary exists
-syn region mysqlOperator start="isnull(" end=")" contains=ALL
-syn region mysqlOperator start="coalesce(" end=")" contains=ALL
-syn region mysqlOperator start="interval(" end=")" contains=ALL
+syn keyword mysqlOperator between not and or is in like regexp rlike binary exists
+syn region mysqlOperator start="isnull(" end=")" contains=ALL
+syn region mysqlOperator start="coalesce(" end=")" contains=ALL
+syn region mysqlOperator start="interval(" end=")" contains=ALL
" Control flow functions
-syn keyword mysqlFlow case when then else end
-syn region mysqlFlow start="ifnull(" end=")" contains=ALL
-syn region mysqlFlow start="nullif(" end=")" contains=ALL
-syn region mysqlFlow start="if(" end=")" contains=ALL
+syn keyword mysqlFlow case when then else end
+syn region mysqlFlow start="ifnull(" end=")" contains=ALL
+syn region mysqlFlow start="nullif(" end=")" contains=ALL
+syn region mysqlFlow start="if(" end=")" contains=ALL
" General Functions
"
" I'm leery of just defining keywords for functions, since according to the MySQL manual:
"
-" Function names do not clash with table or column names. For example, ABS is a
-" valid column name. The only restriction is that for a function call, no spaces
-" are allowed between the function name and the `(' that follows it.
+" Function names do not clash with table or column names. For example, ABS is a
+" valid column name. The only restriction is that for a function call, no spaces
+" are allowed between the function name and the `(' that follows it.
"
-" This means that if I want to highlight function names properly, I have to use a
-" region to define them, not just a keyword. This will probably cause the syntax file
+" This means that if I want to highlight function names properly, I have to use a
+" region to define them, not just a keyword. This will probably cause the syntax file
" to load more slowly, but at least it will be 'correct'.
-syn region mysqlFunction start="abs(" end=")" contains=ALL
-syn region mysqlFunction start="acos(" end=")" contains=ALL
-syn region mysqlFunction start="adddate(" end=")" contains=ALL
-syn region mysqlFunction start="ascii(" end=")" contains=ALL
-syn region mysqlFunction start="asin(" end=")" contains=ALL
-syn region mysqlFunction start="atan(" end=")" contains=ALL
-syn region mysqlFunction start="atan2(" end=")" contains=ALL
-syn region mysqlFunction start="benchmark(" end=")" contains=ALL
-syn region mysqlFunction start="bin(" end=")" contains=ALL
-syn region mysqlFunction start="bit_and(" end=")" contains=ALL
-syn region mysqlFunction start="bit_count(" end=")" contains=ALL
-syn region mysqlFunction start="bit_or(" end=")" contains=ALL
-syn region mysqlFunction start="ceiling(" end=")" contains=ALL
-syn region mysqlFunction start="character_length(" end=")" contains=ALL
-syn region mysqlFunction start="char_length(" end=")" contains=ALL
-syn region mysqlFunction start="concat(" end=")" contains=ALL
-syn region mysqlFunction start="concat_ws(" end=")" contains=ALL
-syn region mysqlFunction start="connection_id(" end=")" contains=ALL
-syn region mysqlFunction start="conv(" end=")" contains=ALL
-syn region mysqlFunction start="cos(" end=")" contains=ALL
-syn region mysqlFunction start="cot(" end=")" contains=ALL
-syn region mysqlFunction start="count(" end=")" contains=ALL
-syn region mysqlFunction start="curdate(" end=")" contains=ALL
-syn region mysqlFunction start="curtime(" end=")" contains=ALL
-syn region mysqlFunction start="date_add(" end=")" contains=ALL
-syn region mysqlFunction start="date_format(" end=")" contains=ALL
-syn region mysqlFunction start="date_sub(" end=")" contains=ALL
-syn region mysqlFunction start="dayname(" end=")" contains=ALL
-syn region mysqlFunction start="dayofmonth(" end=")" contains=ALL
-syn region mysqlFunction start="dayofweek(" end=")" contains=ALL
-syn region mysqlFunction start="dayofyear(" end=")" contains=ALL
-syn region mysqlFunction start="decode(" end=")" contains=ALL
-syn region mysqlFunction start="degrees(" end=")" contains=ALL
-syn region mysqlFunction start="elt(" end=")" contains=ALL
-syn region mysqlFunction start="encode(" end=")" contains=ALL
-syn region mysqlFunction start="encrypt(" end=")" contains=ALL
-syn region mysqlFunction start="exp(" end=")" contains=ALL
-syn region mysqlFunction start="export_set(" end=")" contains=ALL
-syn region mysqlFunction start="extract(" end=")" contains=ALL
-syn region mysqlFunction start="field(" end=")" contains=ALL
-syn region mysqlFunction start="find_in_set(" end=")" contains=ALL
-syn region mysqlFunction start="floor(" end=")" contains=ALL
-syn region mysqlFunction start="format(" end=")" contains=ALL
-syn region mysqlFunction start="from_days(" end=")" contains=ALL
-syn region mysqlFunction start="from_unixtime(" end=")" contains=ALL
-syn region mysqlFunction start="get_lock(" end=")" contains=ALL
-syn region mysqlFunction start="greatest(" end=")" contains=ALL
-syn region mysqlFunction start="group_unique_users(" end=")" contains=ALL
-syn region mysqlFunction start="hex(" end=")" contains=ALL
-syn region mysqlFunction start="inet_aton(" end=")" contains=ALL
-syn region mysqlFunction start="inet_ntoa(" end=")" contains=ALL
-syn region mysqlFunction start="instr(" end=")" contains=ALL
-syn region mysqlFunction start="lcase(" end=")" contains=ALL
-syn region mysqlFunction start="least(" end=")" contains=ALL
-syn region mysqlFunction start="length(" end=")" contains=ALL
-syn region mysqlFunction start="load_file(" end=")" contains=ALL
-syn region mysqlFunction start="locate(" end=")" contains=ALL
-syn region mysqlFunction start="log(" end=")" contains=ALL
-syn region mysqlFunction start="log10(" end=")" contains=ALL
-syn region mysqlFunction start="lower(" end=")" contains=ALL
-syn region mysqlFunction start="lpad(" end=")" contains=ALL
-syn region mysqlFunction start="ltrim(" end=")" contains=ALL
-syn region mysqlFunction start="make_set(" end=")" contains=ALL
-syn region mysqlFunction start="master_pos_wait(" end=")" contains=ALL
-syn region mysqlFunction start="max(" end=")" contains=ALL
-syn region mysqlFunction start="md5(" end=")" contains=ALL
-syn region mysqlFunction start="mid(" end=")" contains=ALL
-syn region mysqlFunction start="min(" end=")" contains=ALL
-syn region mysqlFunction start="mod(" end=")" contains=ALL
-syn region mysqlFunction start="monthname(" end=")" contains=ALL
-syn region mysqlFunction start="now(" end=")" contains=ALL
-syn region mysqlFunction start="oct(" end=")" contains=ALL
-syn region mysqlFunction start="octet_length(" end=")" contains=ALL
-syn region mysqlFunction start="ord(" end=")" contains=ALL
-syn region mysqlFunction start="period_add(" end=")" contains=ALL
-syn region mysqlFunction start="period_diff(" end=")" contains=ALL
-syn region mysqlFunction start="pi(" end=")" contains=ALL
-syn region mysqlFunction start="position(" end=")" contains=ALL
-syn region mysqlFunction start="pow(" end=")" contains=ALL
-syn region mysqlFunction start="power(" end=")" contains=ALL
-syn region mysqlFunction start="quarter(" end=")" contains=ALL
-syn region mysqlFunction start="radians(" end=")" contains=ALL
-syn region mysqlFunction start="rand(" end=")" contains=ALL
-syn region mysqlFunction start="release_lock(" end=")" contains=ALL
-syn region mysqlFunction start="repeat(" end=")" contains=ALL
-syn region mysqlFunction start="reverse(" end=")" contains=ALL
-syn region mysqlFunction start="round(" end=")" contains=ALL
-syn region mysqlFunction start="rpad(" end=")" contains=ALL
-syn region mysqlFunction start="rtrim(" end=")" contains=ALL
-syn region mysqlFunction start="sec_to_time(" end=")" contains=ALL
-syn region mysqlFunction start="session_user(" end=")" contains=ALL
-syn region mysqlFunction start="sign(" end=")" contains=ALL
-syn region mysqlFunction start="sin(" end=")" contains=ALL
-syn region mysqlFunction start="soundex(" end=")" contains=ALL
-syn region mysqlFunction start="space(" end=")" contains=ALL
-syn region mysqlFunction start="sqrt(" end=")" contains=ALL
-syn region mysqlFunction start="std(" end=")" contains=ALL
-syn region mysqlFunction start="stddev(" end=")" contains=ALL
-syn region mysqlFunction start="strcmp(" end=")" contains=ALL
-syn region mysqlFunction start="subdate(" end=")" contains=ALL
-syn region mysqlFunction start="substring(" end=")" contains=ALL
-syn region mysqlFunction start="substring_index(" end=")" contains=ALL
-syn region mysqlFunction start="subtime(" end=")" contains=ALL
-syn region mysqlFunction start="sum(" end=")" contains=ALL
-syn region mysqlFunction start="sysdate(" end=")" contains=ALL
-syn region mysqlFunction start="system_user(" end=")" contains=ALL
-syn region mysqlFunction start="tan(" end=")" contains=ALL
-syn region mysqlFunction start="time_format(" end=")" contains=ALL
-syn region mysqlFunction start="time_to_sec(" end=")" contains=ALL
-syn region mysqlFunction start="to_days(" end=")" contains=ALL
-syn region mysqlFunction start="trim(" end=")" contains=ALL
-syn region mysqlFunction start="ucase(" end=")" contains=ALL
-syn region mysqlFunction start="unique_users(" end=")" contains=ALL
-syn region mysqlFunction start="unix_timestamp(" end=")" contains=ALL
-syn region mysqlFunction start="upper(" end=")" contains=ALL
-syn region mysqlFunction start="user(" end=")" contains=ALL
-syn region mysqlFunction start="version(" end=")" contains=ALL
-syn region mysqlFunction start="week(" end=")" contains=ALL
-syn region mysqlFunction start="weekday(" end=")" contains=ALL
-syn region mysqlFunction start="yearweek(" end=")" contains=ALL
+syn region mysqlFunction start="abs(" end=")" contains=ALL
+syn region mysqlFunction start="acos(" end=")" contains=ALL
+syn region mysqlFunction start="adddate(" end=")" contains=ALL
+syn region mysqlFunction start="ascii(" end=")" contains=ALL
+syn region mysqlFunction start="asin(" end=")" contains=ALL
+syn region mysqlFunction start="atan(" end=")" contains=ALL
+syn region mysqlFunction start="atan2(" end=")" contains=ALL
+syn region mysqlFunction start="benchmark(" end=")" contains=ALL
+syn region mysqlFunction start="bin(" end=")" contains=ALL
+syn region mysqlFunction start="bit_and(" end=")" contains=ALL
+syn region mysqlFunction start="bit_count(" end=")" contains=ALL
+syn region mysqlFunction start="bit_or(" end=")" contains=ALL
+syn region mysqlFunction start="ceiling(" end=")" contains=ALL
+syn region mysqlFunction start="character_length(" end=")" contains=ALL
+syn region mysqlFunction start="char_length(" end=")" contains=ALL
+syn region mysqlFunction start="concat(" end=")" contains=ALL
+syn region mysqlFunction start="concat_ws(" end=")" contains=ALL
+syn region mysqlFunction start="connection_id(" end=")" contains=ALL
+syn region mysqlFunction start="conv(" end=")" contains=ALL
+syn region mysqlFunction start="cos(" end=")" contains=ALL
+syn region mysqlFunction start="cot(" end=")" contains=ALL
+syn region mysqlFunction start="count(" end=")" contains=ALL
+syn region mysqlFunction start="curdate(" end=")" contains=ALL
+syn region mysqlFunction start="curtime(" end=")" contains=ALL
+syn region mysqlFunction start="date_add(" end=")" contains=ALL
+syn region mysqlFunction start="date_format(" end=")" contains=ALL
+syn region mysqlFunction start="date_sub(" end=")" contains=ALL
+syn region mysqlFunction start="dayname(" end=")" contains=ALL
+syn region mysqlFunction start="dayofmonth(" end=")" contains=ALL
+syn region mysqlFunction start="dayofweek(" end=")" contains=ALL
+syn region mysqlFunction start="dayofyear(" end=")" contains=ALL
+syn region mysqlFunction start="decode(" end=")" contains=ALL
+syn region mysqlFunction start="degrees(" end=")" contains=ALL
+syn region mysqlFunction start="elt(" end=")" contains=ALL
+syn region mysqlFunction start="encode(" end=")" contains=ALL
+syn region mysqlFunction start="encrypt(" end=")" contains=ALL
+syn region mysqlFunction start="exp(" end=")" contains=ALL
+syn region mysqlFunction start="export_set(" end=")" contains=ALL
+syn region mysqlFunction start="extract(" end=")" contains=ALL
+syn region mysqlFunction start="field(" end=")" contains=ALL
+syn region mysqlFunction start="find_in_set(" end=")" contains=ALL
+syn region mysqlFunction start="floor(" end=")" contains=ALL
+syn region mysqlFunction start="format(" end=")" contains=ALL
+syn region mysqlFunction start="from_days(" end=")" contains=ALL
+syn region mysqlFunction start="from_unixtime(" end=")" contains=ALL
+syn region mysqlFunction start="get_lock(" end=")" contains=ALL
+syn region mysqlFunction start="greatest(" end=")" contains=ALL
+syn region mysqlFunction start="group_unique_users(" end=")" contains=ALL
+syn region mysqlFunction start="hex(" end=")" contains=ALL
+syn region mysqlFunction start="inet_aton(" end=")" contains=ALL
+syn region mysqlFunction start="inet_ntoa(" end=")" contains=ALL
+syn region mysqlFunction start="instr(" end=")" contains=ALL
+syn region mysqlFunction start="lcase(" end=")" contains=ALL
+syn region mysqlFunction start="least(" end=")" contains=ALL
+syn region mysqlFunction start="length(" end=")" contains=ALL
+syn region mysqlFunction start="load_file(" end=")" contains=ALL
+syn region mysqlFunction start="locate(" end=")" contains=ALL
+syn region mysqlFunction start="log(" end=")" contains=ALL
+syn region mysqlFunction start="log10(" end=")" contains=ALL
+syn region mysqlFunction start="lower(" end=")" contains=ALL
+syn region mysqlFunction start="lpad(" end=")" contains=ALL
+syn region mysqlFunction start="ltrim(" end=")" contains=ALL
+syn region mysqlFunction start="make_set(" end=")" contains=ALL
+syn region mysqlFunction start="master_pos_wait(" end=")" contains=ALL
+syn region mysqlFunction start="max(" end=")" contains=ALL
+syn region mysqlFunction start="md5(" end=")" contains=ALL
+syn region mysqlFunction start="mid(" end=")" contains=ALL
+syn region mysqlFunction start="min(" end=")" contains=ALL
+syn region mysqlFunction start="mod(" end=")" contains=ALL
+syn region mysqlFunction start="monthname(" end=")" contains=ALL
+syn region mysqlFunction start="now(" end=")" contains=ALL
+syn region mysqlFunction start="oct(" end=")" contains=ALL
+syn region mysqlFunction start="octet_length(" end=")" contains=ALL
+syn region mysqlFunction start="ord(" end=")" contains=ALL
+syn region mysqlFunction start="period_add(" end=")" contains=ALL
+syn region mysqlFunction start="period_diff(" end=")" contains=ALL
+syn region mysqlFunction start="pi(" end=")" contains=ALL
+syn region mysqlFunction start="position(" end=")" contains=ALL
+syn region mysqlFunction start="pow(" end=")" contains=ALL
+syn region mysqlFunction start="power(" end=")" contains=ALL
+syn region mysqlFunction start="quarter(" end=")" contains=ALL
+syn region mysqlFunction start="radians(" end=")" contains=ALL
+syn region mysqlFunction start="rand(" end=")" contains=ALL
+syn region mysqlFunction start="release_lock(" end=")" contains=ALL
+syn region mysqlFunction start="repeat(" end=")" contains=ALL
+syn region mysqlFunction start="reverse(" end=")" contains=ALL
+syn region mysqlFunction start="round(" end=")" contains=ALL
+syn region mysqlFunction start="rpad(" end=")" contains=ALL
+syn region mysqlFunction start="rtrim(" end=")" contains=ALL
+syn region mysqlFunction start="sec_to_time(" end=")" contains=ALL
+syn region mysqlFunction start="session_user(" end=")" contains=ALL
+syn region mysqlFunction start="sign(" end=")" contains=ALL
+syn region mysqlFunction start="sin(" end=")" contains=ALL
+syn region mysqlFunction start="soundex(" end=")" contains=ALL
+syn region mysqlFunction start="space(" end=")" contains=ALL
+syn region mysqlFunction start="sqrt(" end=")" contains=ALL
+syn region mysqlFunction start="std(" end=")" contains=ALL
+syn region mysqlFunction start="stddev(" end=")" contains=ALL
+syn region mysqlFunction start="strcmp(" end=")" contains=ALL
+syn region mysqlFunction start="subdate(" end=")" contains=ALL
+syn region mysqlFunction start="substring(" end=")" contains=ALL
+syn region mysqlFunction start="substring_index(" end=")" contains=ALL
+syn region mysqlFunction start="subtime(" end=")" contains=ALL
+syn region mysqlFunction start="sum(" end=")" contains=ALL
+syn region mysqlFunction start="sysdate(" end=")" contains=ALL
+syn region mysqlFunction start="system_user(" end=")" contains=ALL
+syn region mysqlFunction start="tan(" end=")" contains=ALL
+syn region mysqlFunction start="time_format(" end=")" contains=ALL
+syn region mysqlFunction start="time_to_sec(" end=")" contains=ALL
+syn region mysqlFunction start="to_days(" end=")" contains=ALL
+syn region mysqlFunction start="trim(" end=")" contains=ALL
+syn region mysqlFunction start="ucase(" end=")" contains=ALL
+syn region mysqlFunction start="unique_users(" end=")" contains=ALL
+syn region mysqlFunction start="unix_timestamp(" end=")" contains=ALL
+syn region mysqlFunction start="upper(" end=")" contains=ALL
+syn region mysqlFunction start="user(" end=")" contains=ALL
+syn region mysqlFunction start="version(" end=")" contains=ALL
+syn region mysqlFunction start="week(" end=")" contains=ALL
+syn region mysqlFunction start="weekday(" end=")" contains=ALL
+syn region mysqlFunction start="yearweek(" end=")" contains=ALL
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
@@ -279,16 +279,16 @@ if version >= 508 || !exists("did_mysql_syn_inits")
command -nargs=+ HiLink hi def link <args>
endif
- HiLink mysqlKeyword Statement
- HiLink mysqlSpecial Special
- HiLink mysqlString String
- HiLink mysqlNumber Number
- HiLink mysqlVariable Identifier
- HiLink mysqlComment Comment
- HiLink mysqlType Type
- HiLink mysqlOperator Statement
- HiLink mysqlFlow Statement
- HiLink mysqlFunction Function
+ HiLink mysqlKeyword Statement
+ HiLink mysqlSpecial Special
+ HiLink mysqlString String
+ HiLink mysqlNumber Number
+ HiLink mysqlVariable Identifier
+ HiLink mysqlComment Comment
+ HiLink mysqlType Type
+ HiLink mysqlOperator Statement
+ HiLink mysqlFlow Statement
+ HiLink mysqlFunction Function
delcommand HiLink
endif
diff --git a/runtime/syntax/phtml.vim b/runtime/syntax/phtml.vim
index 2ff6dd95c..646129a20 100644
--- a/runtime/syntax/phtml.vim
+++ b/runtime/syntax/phtml.vim
@@ -1,244 +1,6 @@
" Vim syntax file
-" Language: phtml PHP 2.0
-" Maintainer: Lutz Eymers <ixtab@polzin.com>
-" URL: http://www.isp.de/data/phtml.vim
-" Email: Subject: send syntax_vim.tgz
-" Last change: 2003 May 11
-"
-" Options phtml_sql_query = 1 for SQL syntax highligthing inside strings
-" phtml_minlines = x to sync at least x lines backwards
+" PHTML used to be the filetype for PHP 2.0. Now everything is PHP.
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
- finish
+if !exists("b:current_syntax")
+ runtime! syntax/php.vim
endif
-
-if !exists("main_syntax")
- let main_syntax = 'phtml'
-endif
-
-if version < 600
- so <sfile>:p:h/html.vim
-else
- runtime! syntax/html.vim
- unlet b:current_syntax
-endif
-
-syn cluster htmlPreproc add=phtmlRegionInsideHtmlTags
-
-if exists( "phtml_sql_query")
- if phtml_sql_query == 1
- syn include @phtmlSql <sfile>:p:h/sql.vim
- unlet b:current_syntax
- endif
-endif
-syn cluster phtmlSql remove=sqlString,sqlComment
-
-syn case match
-
-" Env Variables
-syn keyword phtmlEnvVar SERVER_SOFTWARE SERVER_NAME SERVER_URL GATEWAY_INTERFACE contained
-syn keyword phtmlEnvVar SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO contained
-syn keyword phtmlEnvVar PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST contained
-syn keyword phtmlEnvVar REMOTE_ADDR AUTH_TYPE REMOTE_USER CONTEN_TYPE contained
-syn keyword phtmlEnvVar CONTENT_LENGTH HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE contained
-syn keyword phtmlEnvVar HTTP_ACCECT HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE contained
-syn keyword phtmlEnvVar HTTP_FROM HTTP_REFERER contained
-syn keyword phtmlEnvVar PHP_SELF contained
-
-syn case ignore
-
-" Internal Variables
-syn keyword phtmlIntVar phperrmsg php_self contained
-
-" Comment
-syn region phtmlComment start="/\*" end="\*/" contained contains=phtmlTodo
-
-" Function names
-syn keyword phtmlFunctions Abs Ada_Close Ada_Connect Ada_Exec Ada_FetchRow contained
-syn keyword phtmlFunctions Ada_FieldName Ada_FieldNum Ada_FieldType contained
-syn keyword phtmlFunctions Ada_FreeResult Ada_NumFields Ada_NumRows Ada_Result contained
-syn keyword phtmlFunctions Ada_ResultAll AddSlashes ASort BinDec Ceil ChDir contained
-syn keyword phtmlFunctions AdaGrp ChMod ChOwn Chop Chr ClearStack ClearStatCache contained
-syn keyword phtmlFunctions closeDir CloseLog Cos Count Crypt Date dbList contained
-syn keyword phtmlFunctions dbmClose dbmDelete dbmExists dbmFetch dbmFirstKey contained
-syn keyword phtmlFunctions dbmInsert dbmNextKey dbmOpen dbmReplace DecBin DecHex contained
-syn keyword phtmlFunctions DecOct doubleval Echo End ereg eregi ereg_replace contained
-syn keyword phtmlFunctions eregi_replace EscapeShellCmd Eval Exec Exit Exp contained
-syn keyword phtmlFunctions fclose feof fgets fgetss File fileAtime fileCtime contained
-syn keyword phtmlFunctions fileGroup fileInode fileMtime fileOwner filePerms contained
-syn keyword phtmlFunctions fileSize fileType Floor Flush fopen fputs FPassThru contained
-syn keyword phtmlFunctions fseek fsockopen ftell getAccDir GetEnv getHostByName contained
-syn keyword phtmlFunctions getHostByAddr GetImageSize getLastAcess contained
-syn keyword phtmlFunctions getLastbrowser getLastEmail getLastHost getLastMod contained
-syn keyword phtmlFunctions getLastref getLogDir getMyInode getMyPid getMyUid contained
-syn keyword phtmlFunctions getRandMax getStartLogging getToday getTotal GetType contained
-syn keyword phtmlFunctions gmDate Header HexDec HtmlSpecialChars ImageArc contained
-syn keyword phtmlFunctions ImageChar ImageCharUp IamgeColorAllocate contained
-syn keyword phtmlFunctions ImageColorTransparent ImageCopyResized ImageCreate contained
-syn keyword phtmlFunctions ImageCreateFromGif ImageDestroy ImageFill contained
-syn keyword phtmlFunctions ImageFilledPolygon ImageFilledRectangle contained
-syn keyword phtmlFunctions ImageFillToBorder ImageGif ImageInterlace ImageLine contained
-syn keyword phtmlFunctions ImagePolygon ImageRectangle ImageSetPixel contained
-syn keyword phtmlFunctions ImageString ImageStringUp ImageSX ImageSY Include contained
-syn keyword phtmlFunctions InitSyslog intval IsSet Key Link LinkInfo Log Log10 contained
-syn keyword phtmlFunctions LosAs Mail Max Md5 mi_Close mi_Connect mi_DBname contained
-syn keyword phtmlFunctions mi_Exec mi_FieldName mi_FieldNum mi_NumFields contained
-syn keyword phtmlFunctions mi_NumRows mi_Result Microtime Min MkDir MkTime msql contained
-syn keyword phtmlFunctions msql_connect msql_CreateDB msql_dbName msql_DropDB contained
-syn keyword phtmlFunctions msqlFieldFlags msql_FieldLen msql_FieldName contained
-syn keyword phtmlFunctions msql_FieldType msql_FreeResult msql_ListDBs contained
-syn keyword phtmlFunctions msql_Listfields msql_ListTables msql_NumFields contained
-syn keyword phtmlFunctions msql_NumRows msql_RegCase msql_Result msql_TableName contained
-syn keyword phtmlFunctions mysql mysql_affected_rows mysql_close mysql_connect contained
-syn keyword phtmlFunctions mysql_CreateDB mysql_dbName mysqlDropDB contained
-syn keyword phtmlFunctions mysql_FieldFlags mysql_FieldLen mysql_FieldName contained
-syn keyword phtmlFunctions mysql_FieldType mysql_FreeResult mysql_insert_id contained
-syn keyword phtmlFunctions mysql_listDBs mysql_Listfields mysql_ListTables contained
-syn keyword phtmlFunctions mysql_NumFields mysql_NumRows mysql_Result contained
-syn keyword phtmlFunctions mysql_TableName Next OctDec openDir OpenLog contained
-syn keyword phtmlFunctions Ora_Bind Ora_Close Ora_Commit Ora_CommitOff contained
-syn keyword phtmlFunctions Ora_CommitOn Ora_Exec Ora_Fetch Ora_GetColumn contained
-syn keyword phtmlFunctions Ora_Logoff Ora_Logon Ora_Parse Ora_Rollback Ord contained
-syn keyword phtmlFunctions Parse_str PassThru pclose pg_Close pg_Connect contained
-syn keyword phtmlFunctions pg_DBname pg_ErrorMessage pg_Exec pg_FieldName contained
-syn keyword phtmlFunctions pg_FieldPrtLen pg_FieldNum pg_FieldSize contained
-syn keyword phtmlFunctions pg_FieldType pg_FreeResult pg_GetLastOid pg_Host contained
-syn keyword phtmlFunctions pg_NumFields pg_NumRows pg_Options pg_Port contained
-syn keyword phtmlFunctions pg_Result pg_tty phpInfo phpVersion popen pos pow contained
-syn keyword phtmlFunctions Prev PutEnv QuoteMeta Rand readDir ReadFile ReadLink contained
-syn keyword phtmlFunctions reg_Match reg_replace reg_Search Rename Reset return contained
-syn keyword phtmlFunctions rewind rewindDir RmDir rSort SetCookie SetErrorReporting contained
-syn keyword phtmlFunctions SetLogging SetShowInfo SetType shl shr Sin Sleep contained
-syn keyword phtmlFunctions Solid_Close Solid_Connect Solid_Exec Solid_FetchRow contained
-syn keyword phtmlFunctions Solid_FieldName Solid_FieldNum Solid_FreeResult contained
-syn keyword phtmlFunctions Solid_NumFields Solid_NumRows Solid_Result Sort contained
-syn keyword phtmlFunctions Spundtex Sprintf Sqrt Srand strchr strtr contained
-syn keyword phtmlFunctions StripSlashes strlen strchr strstr strtok strtolower contained
-syn keyword phtmlFunctions strtoupper strval substr sybSQL_CheckConnect contained
-syn keyword phtmlFunctions sybSQL_DBUSE sybSQL_Connect sybSQL_Exit contained
-syn keyword phtmlFunctions sybSQL_Fieldname sybSQL_GetField sybSQL_IsRow contained
-syn keyword phtmlFunctions sybSQL_NextRow sybSQL_NumFields sybSQL_NumRows contained
-syn keyword phtmlFunctions sybSQL_Query sybSQL_Result sybSQL_Result sybSQL_Seek contained
-syn keyword phtmlFunctions Symlink syslog System Tan TempNam Time Umask UniqId contained
-syn keyword phtmlFunctions Unlink Unset UrlDecode UrlEncode USleep Virtual contained
-syn keyword phtmlFunctions SecureVar contained
-
-" Conditional
-syn keyword phtmlConditional if else elseif endif switch endswitch contained
-
-" Repeat
-syn keyword phtmlRepeat while endwhile contained
-
-" Repeat
-syn keyword phtmlLabel case default contained
-
-" Statement
-syn keyword phtmlStatement break return continue exit contained
-
-" Operator
-syn match phtmlOperator "[-=+%^&|*!]" contained
-syn match phtmlOperator "[-+*/%^&|]=" contained
-syn match phtmlOperator "/[^*]"me=e-1 contained
-syn match phtmlOperator "\$" contained
-syn match phtmlRelation "&&" contained
-syn match phtmlRelation "||" contained
-syn match phtmlRelation "[!=<>]=" contained
-syn match phtmlRelation "[<>]" contained
-
-" Identifier
-syn match phtmlIdentifier "$\h\w*" contained contains=phtmlEnvVar,phtmlIntVar,phtmlOperator
-
-
-" Include
-syn keyword phtmlInclude include contained
-
-" Definesag
-syn keyword phtmlDefine Function contained
-
-" String
-syn region phtmlString keepend matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=phtmlIdentifier,phtmlSpecialChar,@phtmlSql contained
-
-" Number
-syn match phtmlNumber "-\=\<\d\+\>" contained
-
-" Float
-syn match phtmlFloat "\(-\=\<\d+\|-\=\)\.\d\+\>" contained
-
-" SpecialChar
-syn match phtmlSpecialChar "\\[abcfnrtyv\\]" contained
-syn match phtmlSpecialChar "\\\d\{3}" contained contains=phtmlOctalError
-syn match phtmlSpecialChar "\\x[0-9a-fA-F]\{2}" contained
-
-syn match phtmlOctalError "[89]" contained
-
-
-syn match phtmlParentError "[)}\]]" contained
-
-" Todo
-syn keyword phtmlTodo TODO Todo todo contained
-
-" Parents
-syn cluster phtmlInside contains=phtmlComment,phtmlFunctions,phtmlIdentifier,phtmlConditional,phtmlRepeat,phtmlLabel,phtmlStatement,phtmlOperator,phtmlRelation,phtmlString,phtmlNumber,phtmlFloat,phtmlSpecialChar,phtmlParent,phtmlParentError,phtmlInclude
-
-syn cluster phtmlTop contains=@phtmlInside,phtmlInclude,phtmlDefine,phtmlParentError,phtmlTodo
-syn region phtmlParent matchgroup=Delimiter start="(" end=")" contained contains=@phtmlInside
-syn region phtmlParent matchgroup=Delimiter start="{" end="}" contained contains=@phtmlInside
-syn region phtmlParent matchgroup=Delimiter start="\[" end="\]" contained contains=@phtmlInside
-
-syn region phtmlRegion keepend matchgroup=Delimiter start="<?" skip=+(.*>.*)\|".\{-}>.\{-}"\|/\*.\{-}>.\{-}\*/+ end=">" contains=@phtmlTop
-syn region phtmlRegionInsideHtmlTags keepend matchgroup=Delimiter start="<?" skip=+(.*>.*)\|/\*.\{-}>.\{-}\*/+ end=">" contains=@phtmlTop contained
-
-" sync
-if exists("phtml_minlines")
- exec "syn sync minlines=" . phtml_minlines
-else
- syn sync minlines=100
-endif
-
-" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_phtml_syn_inits")
- if version < 508
- let did_phtml_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink phtmlComment Comment
- HiLink phtmlString String
- HiLink phtmlNumber Number
- HiLink phtmlFloat Float
- HiLink phtmlIdentifier Identifier
- HiLink phtmlIntVar Identifier
- HiLink phtmlEnvVar Identifier
- HiLink phtmlFunctions Function
- HiLink phtmlRepeat Repeat
- HiLink phtmlConditional Conditional
- HiLink phtmlLabel Label
- HiLink phtmlStatement Statement
- HiLink phtmlType Type
- HiLink phtmlInclude Include
- HiLink phtmlDefine Define
- HiLink phtmlSpecialChar SpecialChar
- HiLink phtmlParentError Error
- HiLink phtmlOctalError Error
- HiLink phtmlTodo Todo
- HiLink phtmlOperator Operator
- HiLink phtmlRelation Operator
-
- delcommand HiLink
-endif
-
-let b:current_syntax = "phtml"
-
-if main_syntax == 'phtml'
- unlet main_syntax
-endif
-
-" vim: ts=8
diff --git a/runtime/syntax/quake.vim b/runtime/syntax/quake.vim
index 7840f7cc4..3a9b68d6f 100644
--- a/runtime/syntax/quake.vim
+++ b/runtime/syntax/quake.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Quake[1-3] configuration file
" Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2006-04-19
+" Latest Revision: 2007-06-17
" quake_is_quake1 - the syntax is to be used for quake1 configs
" quake_is_quake2 - the syntax is to be used for quake2 configs
" quake_is_quake3 - the syntax is to be used for quake3 configs
@@ -14,7 +14,7 @@ endif
let s:cpo_save = &cpo
set cpo&vim
-setlocal iskeyword=@,48-57,+,-,_
+setlocal iskeyword+=-,+
syn keyword quakeTodo contained TODO FIXME XXX NOTE
diff --git a/runtime/syntax/rexx.vim b/runtime/syntax/rexx.vim
index 179e453c9..b4d07323d 100644
--- a/runtime/syntax/rexx.vim
+++ b/runtime/syntax/rexx.vim
@@ -4,6 +4,7 @@
" Last Change: 2005 Dez 9, added some <http://www.ooRexx.org>-coloring,
" line comments, do *over*, messages, directives,
" highlighting classes, methods, routines and requires
+" 2007 Oct 17, added support for new ooRexx 3.2 features
" Rony G. Flatscher <rony.flatscher@wu-wien.ac.at>
"
" URL: http://www.geulig.de/vim/rexx.vim
@@ -27,122 +28,194 @@ setlocal iskeyword+=!
setlocal iskeyword+=?
" ---rgf, position important: must be before comments etc. !
-syn match rexxOperator "[-=|\/\\\+\*\[\],;<>&\~]"
-
-syn match rexxIdentifier "\<[a-zA-Z\!\?_]\([a-zA-Z0-9._?!]\)*\>"
-syn match rexxEnvironmentSymbol "\<\.\+\([a-zA-Z0-9._?!]\)*\>"
+syn match rexxOperator "[=|\/\\\+\*\[\],;:<>&\~%\-]"
+" rgf syn match rexxIdentifier "\<[a-zA-Z\!\?_]\([a-zA-Z0-9._?!]\)*\>"
+syn match rexxIdentifier "\<\K\k*\>"
+syn match rexxEnvironmentSymbol "\<\.\k\+\>"
" A Keyword is the first symbol in a clause. A clause begins at the start
" of a line or after a semicolon. THEN, ELSE, OTHERWISE, and colons are always
" followed by an implied semicolon.
-syn match rexxClause "\(^\|;\|:\|then \|else \|otherwise \)\s*\w\+" contains=ALLBUT,rexxParse2,rexxRaise2
-
+syn match rexxClause "\(^\|;\|:\|then \|else \|when \|otherwise \)\s*\S*" contains=ALLBUT,rexxParse2,rexxRaise2,rexxForward2
" Considered keywords when used together in a phrase and begin a clause
-syn match rexxParse "\<parse\s*\(\(upper\|lower\|caseless\)\s*\)\=\(arg\|linein\|pull\|source\|var\|\<value\>\|version\)\>"
-syn match rexxParse2 "\<with\>" contained containedin=rexxParse
-
+syn match rexxParse "\<parse\s*\(\(upper\|lower\|caseless\)\s*\)\?\(arg\|linein\|pull\|source\|var\|\<value\>\|version\)\>" containedin=rexxClause contains=rexxParse2
+syn match rexxParse2 "\<with\>" containedin=rexxParse
syn match rexxKeyword contained "\<numeric \(digits\|form \(scientific\|engineering\|value\)\|fuzz\)\>"
-syn match rexxKeyword contained "\<\(address\|trace\)\( value\)\=\>"
-syn match rexxKeyword contained "\<procedure\(\s*expose\)\=\>"
-syn match rexxKeyword contained "\<do\>\(\s*forever\)\=\>"
-syn match rexxKeyword contained "\<use\>\s*\<arg\>"
+syn match rexxKeyword contained "\<\(address\|trace\)\( value\)\?\>"
+syn match rexxKeyword contained "\<procedure\(\s*expose\)\?\>"
+
+syn match rexxKeyword contained "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\(\s\+forever\)\?\>"
+syn match rexxKeyword contained "\<use\>\s*\(strict\s*\)\?\<arg\>"
" Another keyword phrase, separated to aid highlighting in rexxFunction
-syn match rexxKeyword contained "\<signal\(\s*\(on\|off\)\s*\(any\|error\|failure\|halt\|lostdigits\|nomethod\|nostring\|notready\|novalue\|syntax\|user\s*\k*\)\(\s\+name\)\=\)\=\>"
-syn match rexxKeyword2 contained "\<call\(\s*\(on\|off\)\s*\(any\|error\|failure\|halt\|notready\|user\s*\k*\)\(\s\+name\)\=\)\=\>"
+syn match rexxRegularCallSignal contained "\<\(call\|signal\)\s\(\s*on\>\|\s*off\>\)\@!\(\k\+\ze\|\ze(\)\(\s*\|;\|$\|(\)"
+syn region rexxLabel contained start="\<\(call\|signal\)\>\s*\zs\(\k*\|(\)" end="\ze\(\s*\|;\|$\|(\)" containedin=rexxRegularCallSignal
+
+syn match rexxExceptionHandling contained "\<\(call\|signal\)\>\s\+\<\(on\|off\)\>.*\(;\|$\)"
+" hilite label given after keyword "name"
+syn match rexxLabel "name\s\+\zs\k\+\ze" containedin=rexxExceptionHandling
+" hilite condition name (serves as label)
+syn match rexxLabel "\<\(call\|signal\)\>\s\+\<\(on\|off\)\>\s*\zs\k\+\ze\s*\(;\|$\)" containedin=rexxExceptionHandling
+" user exception handling, hilite user defined name
+syn region rexxLabel contained start="user\s\+\zs\k" end="\ze\(\s\|;\|$\)" containedin=rexxExceptionHandling
" Considered keywords when they begin a clause
-syn match rexxKeyword contained "\<\(arg\|do\|drop\|end\|exit\|expose\|forward\|if\|interpret\|iterate\|leave\|nop\)\>"
-syn match rexxKeyword contained "\<\(options\|pull\|push\|queue\|raise\|reply\|return\|say\|select\|trace\)\>"
+syn match rexxKeywordStatements "\<\(arg\|catch\|do\|drop\|end\|exit\|expose\|finally\|forward\|if\|interpret\|iterate\|leave\|loop\|nop\)\>"
+syn match rexxKeywordStatements "\<\(options\|pull\|push\|queue\|raise\|reply\|return\|say\|select\|trace\)\>"
+
+" Conditional keywords starting a new statement
+syn match rexxConditional "\<\(then\|else\|when\|otherwise\)\(\s*\|;\|\_$\|\)\>" contains=rexxKeywordStatements
" Conditional phrases
-syn match rexxConditional "\(^\s*\| \)\(to\|by\|for\|until\|while\|then\|when\|otherwise\|else\|over\)\( \|\s*$\)"
-syn match rexxConditional contained "\<\(to\|by\|for\|until\|while\|then\|when\|otherwise\|else\|over\)\>"
+syn match rexxLoopKeywords "\<\(to\|by\|for\|until\|while\|over\)\>" containedin=doLoopSelectLabelRegion
" must be after Conditional phrases!
-syn match rexxKeyword ".*\<\(then\|else\)\s*\<do\>"
+syn match doLoopSelectLabelRegion "\<\(do\|loop\|select\)\>\s\+\(label\s\+\)\?\(\s\+\k\+\s\+\zs\<over\>\)\?\k*\(\s\+forever\)\?\(\s\|;\|$\)"
+
+" color label's name
+syn match rexxLabel2 "\<\(do\|loop\|select\)\>\s\+label\s\+\zs\k*\ze" containedin=doLoopSelectLabelRegion
+
+" make sure control variable is normal
+syn match rexxControlVariable "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\s\+\<over\>" containedin=doLoopSelectLabelRegion
+
+" make sure control variable assignment is normal
+syn match rexxStartValueAssignment "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\(=.*\)\?\s\+\<to\>" containedin=doLoopSelectLabelRegion
+
+" highlight label name
+syn match endIterateLeaveLabelRegion "\<\(end\|leave\|iterate\)\>\(\s\+\K\k*\)" contains=rexxLabel2
+syn match rexxLabel2 "\<\(end\|leave\|iterate\)\>\s\+\zs\k*\ze" containedin=endIterateLeaveLabelRegion
+
+" Guard statement
+syn match rexxGuard "\(^\|;\|:\)\s*\<guard\>\s\+\<\(on\|off\)\>"
+
+" Trace statement
+syn match rexxTrace "\(^\|;\|:\)\s*\<trace\>\s\+\<\K\k*\>"
" Raise statement
-syn match rexxRaise "\(^\|;\|:\)\s\+\<raise\>\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\="
-syn match rexxRaise2 "\<\(additional\|array\|description\|exit\|return\)\>" contained containedin=rexxRaise
+syn match rexxRaise "\(^\|;\|:\)\s\+\<raise\>\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\?" contains=rexxRaise2
+syn match rexxRaise2 "\<\(additional\|array\|description\|exit\|propagate\|return\)\>" containedin=rexxRaise
-" Forward statement keywords
-syn match rexxForward "\(^\|;\|:\)\<forward\>\s*"
-syn match rexxForward2 "\<\(arguments\|array\|continue\|message\|class\|to\)\>" contained containedin=rexxForward
+" Forward statement
+syn match rexxForward "\(^\|;\|:\)\<forward\>\s*" contains=rexxForward2
+syn match rexxForward2 "\<\(arguments\|array\|continue\|message\|class\|to\)\>" contained
" Functions/Procedures
-syn match rexxFunction "\<\w*\(/\*\s*\*/\)*("me=e-1 contains=rexxComment,rexxConditional,rexxKeyword,rexxIdentifier
-syn match rexxFunction "\<\<[a-zA-Z\!\?_]\([a-zA-Z0-9._?!]\)*\>("me=e-1
-syn match rexxFunction "\<call\s\+\k\+\>" contains=rexxKeyword2
+syn match rexxFunction "\<\<[a-zA-Z\!\?_]\k*\>("me=e-1
syn match rexxFunction "[()]"
" String constants
-syn region rexxString start=+"+ skip=+""+ end=+"\(x\|b\)\=+ oneline
-syn region rexxString start=+'+ skip=+''+ end=+'\(x\|b\)\=+ oneline
+syn region rexxString start=+"+ skip=+""+ end=+"\(x\|b\)\?+ oneline
+syn region rexxString start=+'+ skip=+''+ end=+'\(x\|b\)\?+ oneline
-" Catch errors caused by wrong parenthesis
syn region rexxParen transparent start='(' end=')' contains=ALLBUT,rexxParenError,rexxTodo,rexxLabel,rexxKeyword
+" Catch errors caused by wrong parenthesis
syn match rexxParenError ")"
syn match rexxInParen "[\\[\\]{}]"
" Comments
-syn region rexxComment start="/\*" end="\*/" contains=rexxTodo,rexxComment
-syn match rexxCommentError "\*/"
-syn match rexxLineComment /--.*/
+syn region rexxComment start="/\*" end="\*/" contains=rexxTodo,rexxComment
+syn match rexxCommentError "\*/"
+syn region rexxLineComment start="--" end="\_$" oneline
-syn keyword rexxTodo contained TODO FIXME XXX
+" Highlight User Labels
+" check for labels between comments, labels stated in a statement in the middle of a line
+syn match rexxLabel "\(\_^\|;\)\s*\(\/\*.*\*\/\)*\s*\k\+\s*\(\/\*.*\*\/\)*\s*:"me=e-1 contains=rexxTodo,rexxComment
+syn keyword rexxTodo contained TODO FIXME XXX
" ooRexx messages
syn region rexxMessageOperator start="\(\~\|\~\~\)" end="\(\S\|\s\)"me=e-1
syn match rexxMessage "\(\~\|\~\~\)\s*\<\.*[a-zA-Z]\([a-zA-Z0-9._?!]\)*\>" contains=rexxMessageOperator
-" Highlight User Labels
-syn match rexxLabel "^\s*\k*\s*:"me=e-1
-
+" line continuations, take care of (line-)comments after it
syn match rexxLineContinue ",\ze\s*\(--.*\|\/\*.*\)*$"
+
" the following is necessary, otherwise three consecutive dashes will cause it to highlight the first one
-syn match rexxLineContinue "-\ze\(\s+--.*\|\s*\/\*.*\)*$"
+syn match rexxLineContinue "-\ze-\@!\s*\(--.*\|\s*\/\*.*\)\?$"
" Special Variables
syn keyword rexxSpecialVariable sigl rc result self super
+syn keyword rexxSpecialVariable .environment .error .input .local .methods .output .rs .stderr .stdin .stdout .stdque
" Constants
-syn keyword rexxConst .true .false .nil
-
-" ooRexx builtin classes, first define dot to be o.k. in keywords
-syn keyword rexxBuiltinClass .object .class .method .message
-syn keyword rexxBuiltinClass .monitor .alarm
-syn keyword rexxBuiltinClass .stem .stream .string
-syn keyword rexxBuiltinClass .mutablebuffer
-syn keyword rexxBuiltinClass .array .list .queue .directory .table .set
-syn keyword rexxBuiltinClass .relation .bag .supplier .regularExpressions
-
-" Windows-only classes
-syn keyword rexxBuiltinClass .OLEObject .MenuObject .WindowsClipboard .WindowsEventLog
-syn keyword rexxBuiltinClass .WindowsManager .WindowObject .WindowsProgramManager
-
-
-" ooRexx directives, ---rgf location important, otherwise directives in top of
-" file not matched!
-syn region rexxClass start="::\s*class\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
-syn region rexxMethod start="::\s*method\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
-syn region rexxRequires start="::\s*requires\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
-syn region rexxRoutine start="::\s*routine\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
-
-syn region rexxDirective start="\(^\|;\)\s*::\s*\w\+" end="\($\|;\)" contains=rexxString,rexxComment,rexxLineComment,rexxClass,rexxMethod,rexxRoutine,rexxRequires keepend
+syn keyword rexxConst .true .false .nil .endOfLine .line
+syn match rexxNumber "\(-\|+\)\?\s*\zs\<\(\d\+\.\?\|\d*\.\d\+\(E\(+\|-\)\d\{2,2}\)\?\)\?\>"
+" ooRexx builtin classes (as of version 3.2.0, fall 2007), first define dot to be o.k. in keywords
+syn keyword rexxBuiltinClass .Alarm .ArgUtil .Array .Bag .CaselessColumnComparator
+syn keyword rexxBuiltinClass .CaselessComparator .CaselessDescendingComparator .CircularQueue
+syn keyword rexxBuiltinClass .Class .Collection .ColumnComparator .Comparable .Comparator
+syn keyword rexxBuiltinClass .DateTime .DescendingComparator .Directory .InputOutputStream
+syn keyword rexxBuiltinClass .InputStream .InvertingComparator .List .MapCollection
+syn keyword rexxBuiltinClass .Message .Method .Monitor .MutableBuffer .Object
+syn keyword rexxBuiltinClass .OrderedCollection .OutputStream .Properties .Queue
+syn keyword rexxBuiltinClass .Relation .RexxQueue .Set .SetCollection .Stem .Stream
+syn keyword rexxBuiltinClass .StreamSupplier .String .Supplier .Table .TimeSpan
-if !exists("rexx_minlines")
-" let rexx_minlines = 10
- let rexx_minlines = 500
-endif
-exec "syn sync ccomment rexxComment minlines=" . rexx_minlines
+" Windows-only classes
+syn keyword rexxBuiltinClass .AdvancedControls .AnimatedButton .BaseDialog .ButtonControl
+syn keyword rexxBuiltinClass .CategoryDialog .CheckBox .CheckList .ComboBox .DialogControl
+syn keyword rexxBuiltinClass .DialogExtensions .DlgArea .DlgAreaU .DynamicDialog
+syn keyword rexxBuiltinClass .EditControl .InputBox .IntegerBox .ListBox .ListChoice
+syn keyword rexxBuiltinClass .ListControl .MenuObject .MessageExtensions .MultiInputBox
+syn keyword rexxBuiltinClass .MultiListChoice .PasswordBox .PlainBaseDialog .PlainUserDialog
+syn keyword rexxBuiltinClass .ProgressBar .ProgressIndicator .PropertySheet .RadioButton
+syn keyword rexxBuiltinClass .RcDialog .ResDialog .ScrollBar .SingleSelection .SliderControl
+syn keyword rexxBuiltinClass .StateIndicator .StaticControl .TabControl .TimedMessage
+syn keyword rexxBuiltinClass .TreeControl .UserDialog .VirtualKeyCodes .WindowBase
+syn keyword rexxBuiltinClass .WindowExtensions .WindowObject .WindowsClassesBase .WindowsClipboard
+syn keyword rexxBuiltinClass .WindowsEventLog .WindowsManager .WindowsProgramManager .WindowsRegistry
+
+" ooRexx directives, ---rgf location important, otherwise directives in top of file not matched!
+syn region rexxClassDirective start="::\s*class\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
+syn region rexxMethodDirective start="::\s*method\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
+syn region rexxRequiresDirective start="::\s*requires\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
+syn region rexxRoutineDirective start="::\s*routine\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
+syn region rexxAttributeDirective start="::\s*attribute\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
+
+syn region rexxDirective start="\(^\|;\)\s*::\s*\w\+" end="\($\|;\)" contains=rexxString,rexxComment,rexxLineComment,rexxClassDirective,rexxMethodDirective,rexxRoutineDirective,rexxRequiresDirective,rexxAttributeDirective keepend
+
+syn region rexxVariable start="\zs\<\(\.\)\@!\K\k\+\>\ze\s*\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)" end="\(\_$\|.\)"me=e-1
+syn match rexxVariable "\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)\s*\zs\K\k*\ze"
+
+" rgf, 2007-07-22: unfortunately, the entire region is colored (not only the
+" patterns), hence useless (vim 7.0)! (syntax-docs hint that that should work)
+" attempt: just colorize the parenthesis in matching colors, keep content
+" transparent to keep the formatting already done to it!
+" syn region par1 matchgroup=par1 start="(" matchgroup=par1 end=")" transparent contains=par2
+" syn region par2 matchgroup=par2 start="(" matchgroup=par2 end=")" transparent contains=par3 contained
+" syn region par3 matchgroup=par3 start="(" matchgroup=par3 end=")" transparent contains=par4 contained
+" syn region par4 matchgroup=par4 start="(" matchgroup=par4 end=")" transparent contains=par5 contained
+" syn region par5 matchgroup=par5 start="(" matchgroup=par5 end=")" transparent contains=par1 contained
+
+" this will colorize the entire region, removing any colorizing already done!
+" syn region par1 matchgroup=par1 start="(" end=")" contains=par2
+" syn region par2 matchgroup=par2 start="(" end=")" contains=par3 contained
+" syn region par3 matchgroup=par3 start="(" end=")" contains=par4 contained
+" syn region par4 matchgroup=par4 start="(" end=")" contains=par5 contained
+" syn region par5 matchgroup=par5 start="(" end=")" contains=par1 contained
+
+hi par1 ctermfg=red guifg=red
+hi par2 ctermfg=blue guifg=blue
+hi par3 ctermfg=darkgreen guifg=darkgreen
+hi par4 ctermfg=darkyellow guifg=darkyellow
+hi par5 ctermfg=darkgrey guifg=darkgrey
+
+" line continuation (trailing comma or single dash)
+syn sync linecont "\(,\|-\ze-\@!\)\ze\s*\(--.*\|\/\*.*\)*$"
+
+" if !exists("rexx_minlines")
+" let rexx_minlines = 500
+" endif
+" exec "syn sync ccomment rexxComment minlines=" . rexx_minlines
+
+" always scan from start, PCs are powerful enough for that in 2007 !
+exec "syn sync fromstart"
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
@@ -155,6 +228,20 @@ if version >= 508 || !exists("did_rexx_syn_inits")
command -nargs=+ HiLink hi def link <args>
endif
+ " make binary and hex strings stand out
+ hi rexxStringConstant term=bold,underline ctermfg=5 cterm=bold guifg=darkMagenta gui=bold
+
+ HiLink rexxLabel2 Function
+ HiLink doLoopSelectLabelRegion rexxKeyword
+ HiLink endIterateLeaveLabelRegion rexxKeyword
+ HiLink rexxLoopKeywords rexxKeyword " Todo
+
+ HiLink rexxNumber Normal
+" HiLink rexxIdentifier DiffChange
+
+ HiLink rexxRegularCallSignal Statement
+ HiLink rexxExceptionHandling Statement
+
HiLink rexxLabel Function
HiLink rexxCharacter Character
HiLink rexxParenError rexxError
@@ -162,7 +249,8 @@ if version >= 508 || !exists("did_rexx_syn_inits")
HiLink rexxCommentError rexxError
HiLink rexxError Error
HiLink rexxKeyword Statement
- HiLink rexxKeyword2 rexxKeyword
+ HiLink rexxKeywordStatements Statement
+
HiLink rexxFunction Function
HiLink rexxString String
HiLink rexxComment Comment
@@ -172,15 +260,16 @@ if version >= 508 || !exists("did_rexx_syn_inits")
HiLink rexxOperator Operator
HiLink rexxMessageOperator rexxOperator
- HiLink rexxLineComment RexxComment
+ HiLink rexxLineComment Comment
HiLink rexxLineContinue WildMenu
HiLink rexxDirective rexxKeyword
- HiLink rexxClass Type
- HiLink rexxMethod rexxFunction
- HiLink rexxRequires Include
- HiLink rexxRoutine rexxFunction
+ HiLink rexxClassDirective Type
+ HiLink rexxMethodDirective rexxFunction
+ HiLink rexxAttributeDirective rexxFunction
+ HiLink rexxRequiresDirective Include
+ HiLink rexxRoutineDirective rexxFunction
HiLink rexxConst Constant
HiLink rexxTypeSpecifier Type
@@ -192,6 +281,9 @@ if version >= 508 || !exists("did_rexx_syn_inits")
HiLink rexxParse rexxKeyword
HiLink rexxParse2 rexxParse
+ HiLink rexxGuard rexxKeyword
+ HiLink rexxTrace rexxKeyword
+
HiLink rexxRaise rexxKeyword
HiLink rexxRaise2 rexxRaise
diff --git a/runtime/syntax/snobol4.vim b/runtime/syntax/snobol4.vim
index 1f6460f1f..07eb63dec 100644
--- a/runtime/syntax/snobol4.vim
+++ b/runtime/syntax/snobol4.vim
@@ -2,8 +2,12 @@
" Language: SNOBOL4
" Maintainer: Rafal Sulejman <rms@poczta.onet.pl>
" Site: http://rms.republika.pl/vim/syntax/snobol4.vim
-" Last change: 2006 may 1
+" Last change: 2006 may 10
" Changes:
+" - strict snobol4 mode (set snobol4_strict_mode to activate)
+" - incorrect HL of dots in strings corrected
+" - incorrect HL of dot-variables in parens corrected
+" - one character labels weren't displayed correctly.
" - nonexistent Snobol4 keywords displayed as errors.
" For version 5.x: Clear all syntax items
@@ -15,40 +19,54 @@ elseif exists("b:current_syntax")
endif
syntax case ignore
-" Vanilla Snobol4 keywords
-syn keyword snobol4Keyword any apply arb arbno arg array
-syn keyword snobol4Keyword break
-syn keyword snobol4Keyword char clear code collect convert copy
-syn keyword snobol4Keyword data datatype date define detach differ dump dupl
-syn keyword snobol4Keyword endfile eq eval
-syn keyword snobol4Keyword field
-syn keyword snobol4Keyword ge gt ident
-syn keyword snobol4Keyword input integer item
-syn keyword snobol4Keyword le len lgt local lpad lt
-syn keyword snobol4Keyword ne notany
-syn keyword snobol4Keyword opsyn output
-syn keyword snobol4Keyword pos prototype
-syn keyword snobol4Keyword remdr replace rpad rpos rtab
-syn keyword snobol4Keyword size span stoptr
-syn keyword snobol4Keyword tab table time trace trim terminal
-syn keyword snobol4Keyword unload
-syn keyword snobol4Keyword value
-" Spitbol keywords
+
+" Snobol4 keywords
+syn keyword snobol4Keyword any apply arb arbno arg array
+syn keyword snobol4Keyword break
+syn keyword snobol4Keyword char clear code collect convert copy
+syn keyword snobol4Keyword data datatype date define detach differ dump dupl
+syn keyword snobol4Keyword endfile eq eval
+syn keyword snobol4Keyword field
+syn keyword snobol4Keyword ge gt ident
+syn keyword snobol4Keyword input integer item
+syn keyword snobol4Keyword le len lgt local lpad lt
+syn keyword snobol4Keyword ne notany
+syn keyword snobol4Keyword opsyn output
+syn keyword snobol4Keyword pos prototype
+syn keyword snobol4Keyword remdr replace rpad rpos rtab rewind
+syn keyword snobol4Keyword size span stoptr
+syn keyword snobol4Keyword tab table time trace trim terminal
+syn keyword snobol4Keyword unload
+syn keyword snobol4Keyword value
+
" CSNOBOL keywords
-syn keyword snobol4Keyword sset
+syn keyword snobol4ExtKeyword breakx
+syn keyword snobol4ExtKeyword char chop
+syn keyword snobol4ExtKeyword date delete
+syn keyword snobol4ExtKeyword exp
+syn keyword snobol4ExtKeyword freeze function
+syn keyword snobol4ExtKeyword host
+syn keyword snobol4ExtKeyword io_findunit
+syn keyword snobol4ExtKeyword label lpad leq lge lle llt lne log
+syn keyword snobol4ExtKeyword ord
+syn keyword snobol4ExtKeyword reverse rpad rsort rename
+syn keyword snobol4ExtKeyword serv_listen sset set sort sqrt substr
+syn keyword snobol4ExtKeyword thaw
+syn keyword snobol4ExtKeyword vdiffer
-syn region snobol4String matchgroup=Quote start=+"+ skip=+\\"+ end=+"+
-syn region snobol4String matchgroup=Quote start=+'+ skip=+\\'+ end=+'+
-syn match snobol4Statement "^-[^ ][^ ]*"
-syn match snobol4Comment "^\*.*$"
-syn match snobol4Comment ";\*.*$"
-syn match snobol4Constant "[^a-z]\.[a-z][a-z0-9\-]*"
-syn region snobol4Goto start=":[sf]\{0,1}(" end=")\|$\|;" contains=ALLBUT,snobol4ParenError
+syn region snobol4String matchgroup=Quote start=+"+ end=+"+
+syn region snobol4String matchgroup=Quote start=+'+ end=+'+
+syn match snobol4BogusStatement "^-[^ ][^ ]*"
+syn match snobol4Statement "^-\(include\|copy\|module\|line\|plusopts\|case\|error\|noerrors\|list\|unlist\|execute\|noexecute\|copy\)"
+syn match snobol4Constant /"[^a-z"']\.[a-z][a-z0-9\-]*"/hs=s+1
+syn region snobol4Goto start=":[sf]\{0,1}(" end=")\|$\|;" contains=ALLBUT,snobol4ParenError
syn match snobol4Number "\<\d*\(\.\d\d*\)*\>"
-syn match snobol4BogusSysVar "&\w\{1,}"
+syn match snobol4BogusSysVar "&\w\{1,}"
syn match snobol4SysVar "&\(abort\|alphabet\|anchor\|arb\|bal\|case\|code\|dump\|errlimit\|errtext\|errtype\|fail\|fence\|fnclevel\|ftrace\|fullscan\|input\|lastno\|lcase\|maxlngth\|output\|parm\|rem\|rtntype\|stcount\|stfcount\|stlimit\|stno\|succeed\|trace\|trim\|ucase\)"
-syn match snobol4Label "^[^-\.\+ \t]\S\{1,}"
-"
+syn match snobol4ExtSysVar "&\(gtrace\|line\|file\|lastline\|lastfile\)"
+syn match snobol4Label "\(^\|;\)[^-\.\+ \t\*\.]\{1,}[^ \t\*\;]*"
+syn match snobol4Comment "\(^\|;\)\([\*\|!;#].*$\)"
+
" Parens matching
syn cluster snobol4ParenGroup contains=snobol4ParenError
syn region snobol4Paren transparent start='(' end=')' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInBracket
@@ -58,8 +76,7 @@ syn region snobol4Bracket transparent start='\[\|<:' end=']\|:>' conta
syn match snobol4ErrInBracket display contained "[){}]\|<%\|%>"
" optional shell shebang line
-syn match snobol4Comment "^\#\!.*$"
-
+" syn match snobol4Comment "^\#\!.*$"
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
@@ -80,19 +97,26 @@ if version >= 508 || !exists("did_snobol4_syntax_inits")
HiLink snobol4Number Number
HiLink snobol4Error Error
HiLink snobol4Statement PreProc
+ HiLink snobol4BogusStatement snobol4Error
HiLink snobol4String String
HiLink snobol4Comment Comment
HiLink snobol4Special Special
HiLink snobol4Todo Todo
- HiLink snobol4Keyword Statement
- HiLink snobol4Function Statement
HiLink snobol4Keyword Keyword
+ HiLink snobol4Function Function
HiLink snobol4MathsOperator Operator
HiLink snobol4ParenError snobol4Error
HiLink snobol4ErrInParen snobol4Error
HiLink snobol4ErrInBracket snobol4Error
HiLink snobol4SysVar Keyword
HiLink snobol4BogusSysVar snobol4Error
+ if exists("snobol4_strict_mode")
+ HiLink snobol4ExtSysVar WarningMsg
+ HiLink snobol4ExtKeyword WarningMsg
+ else
+ HiLink snobol4ExtSysVar snobol4SysVar
+ HiLink snobol4ExtKeyword snobol4Keyword
+ endif
delcommand HiLink
endif
diff --git a/runtime/syntax/sql.vim b/runtime/syntax/sql.vim
index 311d9eeb8..7ba20f344 100644
--- a/runtime/syntax/sql.vim
+++ b/runtime/syntax/sql.vim
@@ -36,4 +36,4 @@ endif
" Source the appropriate file
exec 'runtime syntax/'.filename.'.vim'
-" vim:sw=4:ff=unix:
+" vim:sw=4:
diff --git a/runtime/syntax/yacc.vim b/runtime/syntax/yacc.vim
index aef02b53c..d4bd0196b 100644
--- a/runtime/syntax/yacc.vim
+++ b/runtime/syntax/yacc.vim
@@ -1,14 +1,17 @@
" Vim syntax file
" Language: Yacc
-" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
-" Last Change: Feb 22, 2006
-" Version: 4
+" Maintainer: Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
+" Last Change: Jan 09, 2008
+" Version: 5
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
"
-" Option:
+" Options: {{{1
" g:yacc_uses_cpp : if this variable exists, then C++ is loaded rather than C
+" g:yacc_minlines : see :help :he syn-sync-minlines -- default 50
+" g:yacc_maxlines : see :help :he syn-sync-maxlines -- default 200
-" For version 5.x: Clear all syntax items
+" ---------------------------------------------------------------------
+" For version 5.x: Clear all syntax items {{{1
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
@@ -16,7 +19,8 @@ elseif exists("b:current_syntax")
finish
endif
-" Read the C syntax to start with
+" ---------------------------------------------------------------------
+" Read the C syntax to start with {{{1
if version >= 600
if exists("g:yacc_uses_cpp")
runtime! syntax/cpp.vim
@@ -29,11 +33,13 @@ else
so <sfile>:p:h/c.vim
endif
-" Clusters
+" ---------------------------------------------------------------------
+" Clusters {{{1
syn cluster yaccActionGroup contains=yaccDelim,cInParen,cTodo,cIncluded,yaccDelim,yaccCurlyError,yaccUnionCurly,yaccUnion,cUserLabel,cOctalZero,cCppOut2,cCppSkip,cErrInBracket,cErrInParen,cOctalError,cCommentStartError,cParenError
syn cluster yaccUnionGroup contains=yaccKey,cComment,yaccCurly,cType,cStructure,cStorageClass,yaccUnionCurly
-" Yacc stuff
+" ---------------------------------------------------------------------
+" Yacc stuff {{{1
syn match yaccDelim "^\s*[:|;]"
syn match yaccOper "@\d\+"
@@ -49,17 +55,32 @@ syn match yaccBrkt contained "[<>]"
syn match yaccType "<[a-zA-Z_][a-zA-Z0-9_]*>" contains=yaccBrkt
syn match yaccDefinition "^[A-Za-z][A-Za-z0-9_]*\_s*:"
-" special Yacc separators
+" ---------------------------------------------------------------------
+" special Yacc separators {{{1
syn match yaccSectionSep "^[ \t]*%%"
syn match yaccSep "^[ \t]*%{"
syn match yaccSep "^[ \t]*%}"
-" I'd really like to highlight just the outer {}. Any suggestions???
+" ---------------------------------------------------------------------
+" I'd really like to highlight just the outer {}. Any suggestions??? {{{1
syn match yaccCurlyError "[{}]"
syn region yaccAction matchgroup=yaccCurly start="{" end="}" contains=ALLBUT,@yaccActionGroup
+" ---------------------------------------------------------------------
+" Yacc synchronization: {{{1
+if exists("g:yacc_maxlines")
+ exe "syn sync maxlines=".g:yacc_maxlines
+else
+ syn sync maxlines=200
+endif
+if exists("g:yacc_minlines")
+ exe "syn sync minlines=".g:yacc_minlines
+else
+ syn sync minlines=50
+endif
-" Define the default highlighting.
+" ---------------------------------------------------------------------
+" Define the default highlighting. {{{1
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_yacc_syn_inits")
@@ -70,13 +91,13 @@ if version >= 508 || !exists("did_yacc_syn_inits")
command -nargs=+ HiLink hi def link <args>
endif
- " Internal yacc highlighting links
+ " Internal yacc highlighting links {{{2
HiLink yaccBrkt yaccStmt
HiLink yaccKey yaccStmt
HiLink yaccOper yaccStmt
HiLink yaccUnionStart yaccKey
- " External yacc highlighting links
+ " External yacc highlighting links {{{2
HiLink yaccCurly Delimiter
HiLink yaccCurlyError Error
HiLink yaccDefinition Function
@@ -87,12 +108,13 @@ if version >= 508 || !exists("did_yacc_syn_inits")
HiLink yaccStmt Statement
HiLink yaccType Type
- " since Bram doesn't like my Delimiter :|
+ " since Bram doesn't like my Delimiter :| {{{2
HiLink Delimiter Type
delcommand HiLink
endif
-
let b:current_syntax = "yacc"
-" vim: ts=15
+" ---------------------------------------------------------------------
+" Modelines: {{{1
+" vim: ts=15 fdm=marker
diff --git a/runtime/syntax/zsh.vim b/runtime/syntax/zsh.vim
index 761e3ac02..eb19eba56 100644
--- a/runtime/syntax/zsh.vim
+++ b/runtime/syntax/zsh.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Zsh shell script
" Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2006-08-06
+" Latest Revision: 2007-06-17
if exists("b:current_syntax")
finish
@@ -10,7 +10,7 @@ endif
let s:cpo_save = &cpo
set cpo&vim
-setlocal iskeyword=@,48-57,_,-
+setlocal iskeyword+=-
syn keyword zshTodo contained TODO FIXME XXX NOTE
diff --git a/runtime/tutor/Contents b/runtime/tutor/Contents
new file mode 100644
index 000000000..97dc1b554
--- /dev/null
+++ b/runtime/tutor/Contents
@@ -0,0 +1,23 @@
+Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful
+ for editing programs and other plain ASCII text. Full Vi
+ compatibility and includes all Ex commands. Extra features
+ above Vi: Multilevel undo, multiple windows, syntax
+ highlighting, command line history, folding, improved command
+ line editing, command typeahead display, command to display
+ yank buffers, possibility to edit binary files, file name
+ stack, support for Manx QuickFix and other compiler's error
+ messages, shows current file name in window title, on-line
+ help, rectangular cut/paste, etc., etc., etc...
+
+ Version 7.2a. Also runs under UNIX, MSDOS and other systems.
+ vim72art.tgz contains the documentation and syntax files.
+ vim72abin.tgz contains the binaries.
+ vim72asrc.tgz contains the sources.
+ Author: Bram Moolenaar et al.
+
+
+Xxd Hex dumper and reader. Can be used to view files as hex, edit
+ them and write them back. Can also be used to patch files.
+
+ Version 1.8 (1997 May 22)
+ Author: Juergen Weigert
diff --git a/runtime/tutor/README.gr.cp737.txt b/runtime/tutor/README.gr.cp737.txt
deleted file mode 100644
index 426f929c6..000000000
--- a/runtime/tutor/README.gr.cp737.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-挦 Tutor 滃 e "疁牗Δ槨珷°" 銡灘 殸 もΜ 悌珳 
-┈か帷珵 Vim.
-
-帬 ┅娅湪 も 悌珳 'Θ︾   珳犻│  氭珳é 槯
-e 楱. 挦 槯Λ猗湬 滃 娅 'Θ滃珳  ♂珳 e 槯€ 湪殬╁
-湩湧湪殬╁槳 牐猡Μ 灘牐Η椁珮  ┈か帷珵 Vim.
-
-挦 Tutor 滃 猡 槰疁濡 Е 猱湢 珮 熴珮 珵 ЖΗ槰槱.
-嫥Θ滃珳  湣珳⑩珳 槯⑨ "vim tutor"    槨ΒΜ熴珳 珷
-灇鍦 ┇ 熴珮. 挊 熴珮 煒  Е绀  ΗΗ悌湯
- 槰疁濡, 湩Γ猡嗒 媶 拵 墍寗拕 憭 彁棐帓搹 寬垈悁攷 憖.
-
-憸 ╃┇灒 Unix 'Θ滃珳 湩濠灙  灘牐Η悌湯  Ж鏆# "vimtutor".
-嚇 洖Μ悌湢 Ж楂 猡 Ж娈湢é 槫毃槶  tutor.
-
-氘 湱珳  ЖΙ熲┼ ┅娅湪 ЖΞ啜灒猡 熴珮 槩⑨ 洔 猱 櫒湢
- 槯槰樺珵 妞. 劋灒湪椹珳  ㈤ ч 煒  熲珳  ┇滃珳
-& Η湬涖Е珳 櫆犻牚 ♂珳.
-
-Bob Ware, Colorado School of Mines, Golden, Co 80401, USA
-(303) 273-3987
-bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet
-
-[挦 槰疁濡 槵 ΗΗ銦灐 殸  Vim 槯  Bram Moolenaar]
diff --git a/runtime/tutor/README.gr.txt b/runtime/tutor/README.gr.txt
deleted file mode 100644
index b2f5e0746..000000000
--- a/runtime/tutor/README.gr.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-燥 Tutor 暹磲 爝 "麇轳镯彡糸贽" 疱耖捭珞 汩 磔秕 黢摅翦 麸
-篚眙荜翮 Vim.
-
-祥 疱耖篌羼镩 磔镩 黢摅翦 祓锺稞 磲 麸 翦脲辋箫蹴 箦 腴泓翦耧 狃
-爝 . 燥 狃雉蓦弩灬 暹磲  祓锺暹翦 磲 贶礤翦 爝 狃朕 羼汜筮
-屦孱羼汜筮狎 赍殪蓓秕 黢珞殪镳镩翎 麸 篚眙荜翮 Vim.
-
-燥 Tutor 暹磲 蓓 狁麇唢 痫 疱耖蓣彘 翎 灬柁灬翎 翮 瘃镳狁狍赍蹀.
-甜锺暹翦 磲 尻翦胼箦翦 狃胲 "vim tutor" 赆 戾糗 磲 彡镫秕柁箦翦 糸
-镤玢咤 篝 灬柁灬翎. 葬 灬柁灬翎 栳 筢 痫 磲 赳镳镳镩摅弭
-麸 狁麇唢, 屦镬蓓 糖 韵 柿团耘 釉 醒僭显招 镣陨醚林 恿.
-
-渝 簖篝珈 Unix 祓锺暹翦 屦唧珧 磲 黢珞殪镳镩摅弭 麸 瘃襻祆 "vimtutor".
-柔 溏扉秕胥摅彘 瘃 蓓 瘃彘耧 犴暨泷狯 麸 tutor.
-
-各 箨弼翦 磲 瘃矬栎簌 疱耖篌羼 瘃秣珈蓓 灬柁灬翎 犭胲 溴 蓣 怦彘
-麸 狃狁徇翮麸 黢. 彭珈羼翦 戾 疳襻赆膻 瘙 栳 麸 栎脶翦 赆 篝暹脲翦
-祜 镳镩弩滢痫翦 忮媵辋箦轵 贶礤翦.
-
-Bob Ware, Colorado School of Mines, Golden, Co 80401, USA
-(303) 273-3987
-bware@mines.colorado.edu bware@slate.mines.colorado.edu bware@mines.bitnet
-
-[燥 狁麇唢 狨酎 赳镳镳镩掼珀 汩 麸 Vim 狃 麸 Bram Moolenaar]
diff --git a/runtime/tutor/README_amisrc.txt b/runtime/tutor/README_amisrc.txt
new file mode 100644
index 000000000..8732efb66
--- /dev/null
+++ b/runtime/tutor/README_amisrc.txt
@@ -0,0 +1,11 @@
+README_amisrc.txt for version 7.2a of Vim: Vi IMproved.
+
+See "README.txt" for general information about Vim.
+See "README_ami.txt" for installation instructions for the Amiga.
+These files are in the runtime archive (vim60rt.tgz).
+
+
+The Amiga source archive contains the files needed to compile Vim on the
+Amiga.
+
+See "src/INSTALLami.txt" for instructions on how to compile Vim on the Amiga.
diff --git a/runtime/tutor/README_amisrc.txt.info b/runtime/tutor/README_amisrc.txt.info
new file mode 100755
index 000000000..476af9ac0
--- /dev/null
+++ b/runtime/tutor/README_amisrc.txt.info
Binary files differ
diff --git a/runtime/tutor/README_os2.txt b/runtime/tutor/README_os2.txt
new file mode 100644
index 000000000..a9e0a4299
--- /dev/null
+++ b/runtime/tutor/README_os2.txt
@@ -0,0 +1,58 @@
+README_os2.txt for version 7.2a of Vim: Vi IMproved.
+
+This file explains the installation of Vim on OS/2 systems.
+See "README.txt" for general information about Vim.
+
+
+NOTE: You will need two archives:
+ vim71rt.zip contains the runtime files (same as for the PC version)
+ vim71os2.zip contains the OS/2 executables
+
+1. Go to the directory where you want to put the Vim files. Examples:
+ cd C:\
+ cd D:\editors
+
+2. Unpack the zip archives. This will create a new directory "vim/vim71",
+ in which all the distributed Vim files are placed. Since the directory
+ name includes the version number, it is unlikely that you overwrite
+ existing files.
+ Examples:
+ pkunzip -d vim71os2.zip
+ unzip vim71os2.zip
+
+ After you unpacked the files, you can still move the whole directory tree
+ to another location.
+
+3. Add the directory where vim.exe is to your path. The simplest is to add a
+ line to your autoexec.bat. Examples:
+ set path=%path%;C:\vim\vim71
+ set path=%path%;D:\editors\vim\vim71
+
+That's it!
+
+
+Extra remarks:
+
+- To avoid confusion between distributed files of different versions and your
+ own modified vim scripts, it is recommended to use this directory layout:
+ ("C:\vim" is used here as the root, replace with the path you use)
+ Your own files:
+ C:\vim\_vimrc Your personal vimrc.
+ C:\vim\_viminfo Dynamic info for 'viminfo'.
+ C:\vim\... Other files you made.
+ Distributed files:
+ C:\vim\vim71\vim.exe The Vim version 7.1 executable.
+ C:\vim\vim71\doc\*.txt The version 7.1 documentation files.
+ C:\vim\vim71\bugreport.vim A Vim version 7.1 script.
+ C:\vim\vim71\... Other version 7.1 distributed files.
+ In this case the $VIM environment variable would be set like this:
+ set VIM=C:\vim
+
+- You can put your Vim executable anywhere else. If the executable is not
+ with the other distributed Vim files, you should set $VIM. The simplest is
+ to add a line to your autoexec.bat. Examples:
+ set VIM=c:\vim
+ set VIM=d:\editors\vim
+
+For further information, type this inside Vim:
+ :help os2
diff --git a/runtime/tutor/README_src.txt b/runtime/tutor/README_src.txt
new file mode 100644
index 000000000..7079f3e06
--- /dev/null
+++ b/runtime/tutor/README_src.txt
@@ -0,0 +1,10 @@
+README_src.txt for version 7.2a of Vim: Vi IMproved.
+
+The source archive contains the files needed to compile Vim on Unix systems.
+It is packed for Unix systems (NL line separator). It is also used for other
+systems in combination with the extra archive (vim-7.0-extra.tar.gz, in the
+"extra" directory of ftp.vim.org).
+
+For more information, see the README.txt file that comes with the runtime
+archive (vim-7.0-rt.tar.gz). To be able to run Vim you MUST get the runtime
+archive too!
diff --git a/runtime/tutor/README_vms.txt b/runtime/tutor/README_vms.txt
new file mode 100644
index 000000000..d51339e9f
--- /dev/null
+++ b/runtime/tutor/README_vms.txt
@@ -0,0 +1,48 @@
+README_vms.txt for version 7.2a of Vim: Vi IMproved.
+
+This file explains the installation of Vim on VMS systems.
+See "README.txt" in the runtime archive for information about Vim.
+
+
+Most information can be found in the on-line documentation. Use ":help vms"
+inside Vim. Or get the runtime files and read runtime/doc/os_vms.txt to find
+out how to install and configure Vim with runtime files etc.
+
+To compile Vim yourself you need three archives:
+ vim-X.X-rt.tar.gz runtime files
+ vim-X.X-src.tar.gz source files
+ vim-X.X-extra.tar.gz extra source files
+
+Compilation is recommended, in order to make sure that the correct
+libraries are used for your specific system. Read about compiling in
+src/INSTALLvms.txt.
+
+To use the binary version, you need one of these archives:
+
+ vim-XX-exe-ia64-gui.zip IA64 GUI/Motif executables
+ vim-XX-exe-ia64-gtk.zip IA64 GUI/GTK executables
+ vim-XX-exe-ia64-term.zip IA64 console executables
+ vim-XX-exe-axp-gui.zip Alpha GUI/Motif executables
+ vim-XX-exe-axp-gtk.zip Alpha GUI/GTK executables
+ vim-XX-exe-axp-term.zip Alpha console executables
+ vim-XX-exe-vax-gui.zip VAX GUI executables
+ vim-XX-exe-vax-term.zip VAX console executables
+
+and of course
+ vim-XX-runtime.zip runtime files
+
+The binary archives contain: vim.exe, ctags.exe, xxd.exe files,
+but there are also prepared "deploy ready" archives:
+
+vim-XX-ia64.zip GUI and console executables with runtime and
+ help files for IA64 systems
+vim-XX-axp.zip GUI and console executables with runtime and
+ help files for Alpha systems
+vim-XX-vax.zip GUI and console executables with runtime and
+ help files for VAX systems
+
+GTK builds need LIBGTK library installed.
+
+These executables and up to date patches for OpenVMS system are downloadable
+from http://www.polarhome.com/vim/ or ftp://ftp.polarhome.com/pub/vim/
+
diff --git a/runtime/tutor/README_w32s.txt b/runtime/tutor/README_w32s.txt
new file mode 100644
index 000000000..1b9774d36
--- /dev/null
+++ b/runtime/tutor/README_w32s.txt
@@ -0,0 +1,15 @@
+README_w32s.txt for version 7.2a of Vim: Vi IMproved.
+
+This archive contains the gvim.exe that was specifically compiled for use in
+the Win32s subsystem in MS-Windows 3.1 and 3.11.
+
+Also see the README_bindos.txt, README_dos.txt and README.txt files.
+
+Be careful not to overwrite the Win32s gvim.exe with the another gvim.exe when
+unpacking another binary archive! Check the output of ":version":
+ Win32s - "MS-Windows 16/32 bit GUI version"
+ Win32 - "MS-Windows 32 bit GUI version"
+Win32 with OLE - "MS-Windows 32 bit GUI version with OLE support"
+
+For further information, type this inside Vim:
+ :help win32s
diff --git a/runtime/tutor/Vim.info b/runtime/tutor/Vim.info
new file mode 100755
index 000000000..5c465ffab
--- /dev/null
+++ b/runtime/tutor/Vim.info
Binary files differ
diff --git a/runtime/tutor/Xxd.info b/runtime/tutor/Xxd.info
new file mode 100755
index 000000000..7ae7643b2
--- /dev/null
+++ b/runtime/tutor/Xxd.info
Binary files differ
diff --git a/runtime/tutor/configure b/runtime/tutor/configure
new file mode 100755
index 000000000..1d0c5b2ec
--- /dev/null
+++ b/runtime/tutor/configure
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+# This is just a stub for the Unix configure script, to provide support for
+# doing "./configure" in the top Vim directory.
+
+cd src && exec ./configure "$@"
diff --git a/runtime/tutor/csdpmi4b.zip b/runtime/tutor/csdpmi4b.zip
new file mode 100755
index 000000000..211396fae
--- /dev/null
+++ b/runtime/tutor/csdpmi4b.zip
Binary files differ
diff --git a/runtime/tutor/runtime/bugreport.vim b/runtime/tutor/runtime/bugreport.vim
new file mode 100644
index 000000000..f0c045e6c
--- /dev/null
+++ b/runtime/tutor/runtime/bugreport.vim
@@ -0,0 +1,88 @@
+:" Use this script to create the file "bugreport.txt", which contains
+:" information about the environment of a possible bug in Vim.
+:"
+:" Maintainer: Bram Moolenaar <Bram@vim.org>
+:" Last change: 2005 Jun 12
+:"
+:" To use inside Vim:
+:" :so $VIMRUNTIME/bugreport.vim
+:" Or, from the command line:
+:" vim -s $VIMRUNTIME/bugreport.vim
+:"
+:" The "if 1" lines are to avoid error messages when expression evaluation is
+:" not compiled in.
+:"
+:if 1
+: let more_save = &more
+:endif
+:set nomore
+:if has("unix")
+: !echo "uname -a" >bugreport.txt
+: !uname -a >>bugreport.txt
+:endif
+:redir >>bugreport.txt
+:version
+:if 1
+: func <SID>CheckDir(n)
+: if isdirectory(a:n)
+: echo 'directory "' . a:n . '" exists'
+: else
+: echo 'directory "' . a:n . '" does NOT exist'
+: endif
+: endfun
+: func <SID>CheckFile(n)
+: if filereadable(a:n)
+: echo '"' . a:n . '" is readable'
+: else
+: echo '"' . a:n . '" is NOT readable'
+: endif
+: endfun
+: echo "--- Directories and Files ---"
+: echo '$VIM = "' . $VIM . '"'
+: call <SID>CheckDir($VIM)
+: echo '$VIMRUNTIME = "' . $VIMRUNTIME . '"'
+: call <SID>CheckDir($VIMRUNTIME)
+: call <SID>CheckFile(&helpfile)
+: call <SID>CheckFile(fnamemodify(&helpfile, ":h") . "/tags")
+: call <SID>CheckFile($VIMRUNTIME . "/menu.vim")
+: call <SID>CheckFile($VIMRUNTIME . "/filetype.vim")
+: call <SID>CheckFile($VIMRUNTIME . "/syntax/synload.vim")
+: delfun <SID>CheckDir
+: delfun <SID>CheckFile
+: echo "--- Scripts sourced ---"
+: scriptnames
+:endif
+:set all
+:set termcap
+:if has("autocmd")
+: au
+:endif
+:if 1
+: echo "--- Normal/Visual mode mappings ---"
+:endif
+:map
+:if 1
+: echo "--- Insert/Command-line mode mappings ---"
+:endif
+:map!
+:if 1
+: echo "--- Abbreviations ---"
+:endif
+:ab
+:if 1
+: echo "--- Highlighting ---"
+:endif
+:highlight
+:if 1
+: echo "--- Variables ---"
+:endif
+:if 1
+: let
+:endif
+:redir END
+:set more&
+:if 1
+: let &more = more_save
+: unlet more_save
+:endif
+:e bugreport.txt
diff --git a/runtime/tutor/runtime/hi22-action-make.png b/runtime/tutor/runtime/hi22-action-make.png
new file mode 100644
index 000000000..f9abb7796
--- /dev/null
+++ b/runtime/tutor/runtime/hi22-action-make.png
Binary files differ
diff --git a/runtime/tutor/runtime/indoff.vim b/runtime/tutor/runtime/indoff.vim
new file mode 100644
index 000000000..0d930352b
--- /dev/null
+++ b/runtime/tutor/runtime/indoff.vim
@@ -0,0 +1,11 @@
+" Vim support file to switch off loading indent files for file types
+"
+" Maintainer: Bram Moolenaar <Bram@vim.org>
+" Last Change: 2001 Jun 11
+
+if exists("did_indent_on")
+ unlet did_indent_on
+endif
+
+" Remove all autocommands in the filetypeindent group
+silent! au! filetypeindent *
diff --git a/runtime/tutor/runtime/mswin.vim b/runtime/tutor/runtime/mswin.vim
new file mode 100644
index 000000000..1ceef847e
--- /dev/null
+++ b/runtime/tutor/runtime/mswin.vim
@@ -0,0 +1,106 @@
+" Set options and add mapping such that Vim behaves a lot like MS-Windows
+"
+" Maintainer: Bram Moolenaar <Bram@vim.org>
+" Last change: 2006 Apr 02
+
+" bail out if this isn't wanted (mrsvim.vim uses this).
+if exists("g:skip_loading_mswin") && g:skip_loading_mswin
+ finish
+endif
+
+" set the 'cpoptions' to its Vim default
+if 1 " only do this when compiled with expression evaluation
+ let s:save_cpo = &cpoptions
+endif
+set cpo&vim
+
+" set 'selection', 'selectmode', 'mousemodel' and 'keymodel' for MS-Windows
+behave mswin
+
+" backspace and cursor keys wrap to previous/next line
+set backspace=indent,eol,start whichwrap+=<,>,[,]
+
+" backspace in Visual mode deletes selection
+vnoremap <BS> d
+
+" CTRL-X and SHIFT-Del are Cut
+vnoremap <C-X> "+x
+vnoremap <S-Del> "+x
+
+" CTRL-C and CTRL-Insert are Copy
+vnoremap <C-C> "+y
+vnoremap <C-Insert> "+y
+
+" CTRL-V and SHIFT-Insert are Paste
+map <C-V> "+gP
+map <S-Insert> "+gP
+
+cmap <C-V> <C-R>+
+cmap <S-Insert> <C-R>+
+
+" Pasting blockwise and linewise selections is not possible in Insert and
+" Visual mode without the +virtualedit feature. They are pasted as if they
+" were characterwise instead.
+" Uses the paste.vim autoload script.
+
+exe 'inoremap <script> <C-V>' paste#paste_cmd['i']
+exe 'vnoremap <script> <C-V>' paste#paste_cmd['v']
+
+imap <S-Insert> <C-V>
+vmap <S-Insert> <C-V>
+
+" Use CTRL-Q to do what CTRL-V used to do
+noremap <C-Q> <C-V>
+
+" Use CTRL-S for saving, also in Insert mode
+noremap <C-S> :update<CR>
+vnoremap <C-S> <C-C>:update<CR>
+inoremap <C-S> <C-O>:update<CR>
+
+" For CTRL-V to work autoselect must be off.
+" On Unix we have two selections, autoselect can be used.
+if !has("unix")
+ set guioptions-=a
+endif
+
+" CTRL-Z is Undo; not in cmdline though
+noremap <C-Z> u
+inoremap <C-Z> <C-O>u
+
+" CTRL-Y is Redo (although not repeat); not in cmdline though
+noremap <C-Y> <C-R>
+inoremap <C-Y> <C-O><C-R>
+
+" Alt-Space is System menu
+if has("gui")
+ noremap <M-Space> :simalt ~<CR>
+ inoremap <M-Space> <C-O>:simalt ~<CR>
+ cnoremap <M-Space> <C-C>:simalt ~<CR>
+endif
+
+" CTRL-A is Select all
+noremap <C-A> gggH<C-O>G
+inoremap <C-A> <C-O>gg<C-O>gH<C-O>G
+cnoremap <C-A> <C-C>gggH<C-O>G
+onoremap <C-A> <C-C>gggH<C-O>G
+snoremap <C-A> <C-C>gggH<C-O>G
+xnoremap <C-A> <C-C>ggVG
+
+" CTRL-Tab is Next window
+noremap <C-Tab> <C-W>w
+inoremap <C-Tab> <C-O><C-W>w
+cnoremap <C-Tab> <C-C><C-W>w
+onoremap <C-Tab> <C-C><C-W>w
+
+" CTRL-F4 is Close window
+noremap <C-F4> <C-W>c
+inoremap <C-F4> <C-O><C-W>c
+cnoremap <C-F4> <C-C><C-W>c
+onoremap <C-F4> <C-C><C-W>c
+
+" restore 'cpoptions'
+set cpo&
+if 1
+ let &cpoptions = s:save_cpo
+ unlet s:save_cpo
+endif
diff --git a/runtime/tutor/runtime/termcap b/runtime/tutor/runtime/termcap
new file mode 100644
index 000000000..38790c49d
--- /dev/null
+++ b/runtime/tutor/runtime/termcap
@@ -0,0 +1,135 @@
+#
+# Demonstration of a termcap file (for the Amiga and Archimedes)
+#
+# Maintainer: Bram Moolenaar <Bram@vim.org>
+# Last change: 1999 Feb 02
+#
+sx|ansi|any ansi terminal with pessimistic assumptions:\
+ :co#80:li#24:cl=50\E[;H\E[2J:bs:am:cm=\E[%i%d;%dH:\
+ :nd=\E[C:up=\E[A:ce=\E[K:ho=\E[H:pt:
+
+Mu|sun|Sun Microsystems Workstation console:\
+ :am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\
+ :ce=\E[K:cd=\E[J:\
+ :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:rs=\E[s:\
+ :md=\E[1m:mr=\E[7m:me=\E[m:\
+ :al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
+ :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
+ :up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\
+ :k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
+ :k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z:
+
+M-|sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character:\
+ :ic@:im@:ei@:tc=sun:
+Mu|sun-s|Sun Microsystems Workstation window with status line:\
+ :hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun:
+Mu|sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs:\
+ :hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun-e:
+M0|sun-48|Sun 48-line window:\
+ :li#48:co#80:tc=sun:
+M1|sun-34|Sun 34-line window:\
+ :li#34:co#80:tc=sun:
+M2|sun-24|Sun 24-line window:\
+ :li#24:co#80:tc=sun:
+M3|sun-17|Sun 17-line window:\
+ :li#17:co#80:tc=sun:
+
+v9|925a|tvi925a|TeleVideo Model 925:\
+ :al=\EE:am:bs:bt=\EI:bw:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :co#80:dc=\EW:\
+ :dl=\ER:do=^V:ei=:ic=\EQ:if=/usr/share/lib/tabset/std:im=:kb=^H:kd=^V:\
+ :kh=^^:kl=^H:kn#12:kr=^L:ku=^K:li#24:nd=^L:pt:se=\EG0:sg#1:so=\EG4:\
+ :ue=\EG0:ug#1:ul:up=^K:us=\EG8:is=\El\
+ :vb=\Eb\200\200\200\200\200\200\200\200\200\200\200\200\200\200\Ed:\
+ :ve=\E.4:vs=\E.2:
+
+d0|vt100|vt100-am|vt100am|dec vt100:\
+ :do=^J:co#80:li#24:cl=50\E[;H\E[2J:sf=5\ED:\
+ :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
+ :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
+ :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\
+ :rf=/usr/share/lib/tabset/vt100:\
+ :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
+ :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
+ :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:xn:\
+ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
+
+# Amiga termcap by Bram Moolenaar
+AA|amiga|Amiga ANSI:\
+ :co#80:li#25:am:do=\E[B:ce=\E[K:cd=\E[J:\
+ :cl=\014:ku=\233A:kd=\233B:kl=\233D:kr=\233C:kb=^H:\
+ :#4=\233 A:%i=\233 @:%1=\233?~:\
+ :k1=\2330~:k2=\2331~:k3=\2332~:k4=\2333~:k5=\2334~:\
+ :k6=\2335~:k7=\2336~:k8=\2337~:k9=\2338~:k;=\2339~:\
+ :F1=\23310~:F2=\23311~:F3=\23312~:F4=\23313~:F5=\23314~:\
+ :F6=\23315~:F7=\23316~:F8=\23317~:F9=\23318~:FA=\23319~:\
+ :al=\E[L:AL=\E[%dL:dl=\E[M:DL=\E[%dM:le=^H:cm=\E[%i%d;%dH:\
+ :nd=\E[C:RI=\E[%dC:up=\E[A:\
+ :ce=\E[K:ho=\E[H:dc=\E[P:ic=\E[@:vi=\E[0 p:ve=\E[1 p:\
+ :so=\E[2m:se=\E[m:us=\E[4m:ue=\E[m:mr=\E[7m:mb=\E[7;2m:me=\E[m:
+
+# Acorn VDU
+# For non-green text, change the ^B in the :cl= line to
+# your favourite control code.
+a0|acorn0|Acorn VDU Driver Mode 0:\
+ :cl=^V\200^S^A^B\200\200\200:\
+ :is=^C^F^D^O^V\200^S^A^B\200\200\200:\
+ :tc=acorn_generic
+
+ag|acorn_generic|Acorn Generic VDU driver:\
+ :li#32:\
+ :co#80:\
+ :am:\
+ :bs:\
+ :bw:\
+ :bl=^G:\
+ :ce=^W^H^E^F\200\200\200\200\200\200:\
+ :cl=^L:\
+ :cm=^_%r%.%.:\
+ :ho=^^:\
+ :le=\010:\
+ :cr=\015:\
+ :me=^W^Q^E\200\200\200\200\200\200\200:\
+ :mr=^W^Q^E\200\200\200\200\200\200\200:\
+ :sb=^W^G^A^B\200\200\200\200\200\200:\
+ :se=^W^Q^E\200\200\200\200\200\200\200:\
+ :sf=^W^G^A^C\200\200\200\200\200\200:\
+ :so=^W^Q^E\200\200\200\200\200\200\200:\
+ :sr=^W^G^A^B\200\200\200\200\200\200:\
+ :up=^K:\
+ :vb=^R^C^G^Y^D\200\200\200\200^Ye\200^E\200^D^Ye\200\200\200\200:\
+ :vi=^W^A\200\200\200\200\200\200\200\200:\
+ :ve=^W^A^A\200\200\200\200\200\200\200:\
+ :ku=\317:\
+ :kd=\316:\
+ :kl=\314:\
+ :kr=\315:\
+ :kP=\337:\
+ :kN=\336:\
+ :kh=\036:\
+ :kH=\313:\
+ :su=\337:\
+ :sd=\336:\
+ :#4=\334:\
+ :%i=\335:\
+ :k1=\301:\
+ :k2=\302:\
+ :k3=\303:\
+ :k4=\304:\
+ :k5=\305:\
+ :k6=\306:\
+ :k7=\307:\
+ :k8=\310:\
+ :k9=\311:\
+ :F1=\321:\
+ :F2=\322:\
+ :F3=\323:\
+ :F4=\324:\
+ :F5=\325:\
+ :F6=\326:\
+ :F7=\327:\
+ :F8=\330:\
+ :F9=\331
+
+#
+# END OF TERMCAP
+#
diff --git a/runtime/tutor/runtime/vim16x16.xpm b/runtime/tutor/runtime/vim16x16.xpm
new file mode 100644
index 000000000..cb75b7178
--- /dev/null
+++ b/runtime/tutor/runtime/vim16x16.xpm
@@ -0,0 +1,27 @@
+/* XPM */
+static char * vim16x16[] = {
+"16 16 8 1",
+" c None",
+". c #000000",
+"+ c #000080",
+"@ c #008000",
+"# c #00FF00",
+"$ c #808080",
+"% c #C0C0C0",
+"& c #FFFFFF",
+" .....#. .... ",
+" .&&&&&.@.&&&&. ",
+" .%%%%%$..%%%%$.",
+" .%%%$.@.&%%$. ",
+" .%%%$..&%%$. ",
+" .%%%$.&%%$.. ",
+" #.%%%$&%%$.@@. ",
+"#@.%%%&%%$.@@@@.",
+".@.%%%%%..@@@@+ ",
+" ..%%%%.%...@. ",
+" .%%%%...%%.%. ",
+" .%%%.%%.%%%%%.",
+" .%%$..%.%.%.%.",
+" .%$.@.%.%.%.%.",
+" .. .%%.%.%.%.",
+" .. . . . "};
diff --git a/runtime/tutor/runtime/vimlogo.cdr b/runtime/tutor/runtime/vimlogo.cdr
new file mode 100644
index 000000000..e2a35f266
--- /dev/null
+++ b/runtime/tutor/runtime/vimlogo.cdr
Binary files differ
diff --git a/runtime/tutor/runtime/vimlogo.gif b/runtime/tutor/runtime/vimlogo.gif
new file mode 100644
index 000000000..89c4c135a
--- /dev/null
+++ b/runtime/tutor/runtime/vimlogo.gif
Binary files differ
diff --git a/runtime/tutor/runtime/vimlogo.pdf b/runtime/tutor/runtime/vimlogo.pdf
new file mode 100644
index 000000000..a9ad60ff4
--- /dev/null
+++ b/runtime/tutor/runtime/vimlogo.pdf
Binary files differ
diff --git a/runtime/tutor/tutor.ca b/runtime/tutor/tutor.ca
deleted file mode 100644
index 603a34756..000000000
--- a/runtime/tutor/tutor.ca
+++ /dev/null
@@ -1,807 +0,0 @@
-===============================================================================
-= B e n v i n g u t s a l t u t o r d e l V I M - Versi 1.5 =
-===============================================================================
-
- El Vim 閟 un editor molt potent que t moltes ordres, masses com per
- explicar-les totes un tutor com aquest. Aquest tutor est dissenyat
- per descriure les ordres b鄐iques que us permetin fer servir el Vim com
- a editor de prop騭it general.
-
- El temps aproximat de seguir el tutor complet 閟 d'uns 25 o 30 minuts
- depenent de quant temps dediqueu a experimentar.
-
- Feu una c騪ia d'aquest fitxer per practicar-hi (si heu comen鏰t amb el
- programa vimtutor aix que esteu llegint ja 閟 una c騪ia).
-
- 蓅 important recordar que aquest tutor est pensat per ensenyar
- practicant. 蓅 a dir, que haureu d'executar les ordres si les voleu
- aprendre. Si nom閟 llegiu el text el m閟 probable 閟 que les oblideu.
-
- Ara assegureu-vos que la tecla de bloqueig de maj鷖cules no est
- activada i premeu la tecla j per moure el cursor avall, fins que
- la lli珞 1.1 ocupi completament la pantalla.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 1.1: MOURE EL CURSOR
-
-
- ** Per moure el cursor premeu les tecles h,j,k,l tal com est indicat. **
- ^
- k Pista: La h 閟 a l'esquerra i mou el cursor cap a l'esquerra.
- < h l > La l 閟 a la dreta i mou el cursor cap a la dreta.
- j La j sembla una fletxa cap avall.
- v
- 1. Moveu el cursor per la pantalla fins que us sentiu confortables.
-
- 2. Mantingueu premuda la tecla avall (j) una estona.
----> Ara sabeu com moure-us fins a la pr騲ima lli珞.
-
- 3. Usant la tecla avall, aneu a la lli珞 1.2.
-
-Nota: Si no esteu segurs de la tecla que heu premut, premeu <ESC> per tornar
- al mode Normal. Llavors torneu a teclejar l'ordre que vol韊u.
-
-Nota: Les tecles de moviment del cursor (fletxes) tamb funcionen. Per usant
- hjkl anireu m閟 r鄍id, quan us hi h鄃iu acostumant.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 1.2: ENTRAR I SORTIR DEL VIM
-
-
- !! NOTA: Abans de seguir els passos seg黣nts llegiu *tota* la lli珞!!
-
- 1. Premeu <ESC> (per estar segurs que esteu en el mode Normal).
-
- 2. Teclegeu: :q! <ENTRAR>.
-
----> Amb aix sortireu de l'editor SENSE desar els canvis que h鄃iu pogut
- fer. Si voleu desar els canvis teclegeu:
- :wq <ENTRAR>
-
- 3. Quan vegeu l'introductor de la shell escriviu l'ordre amb la qual heu
- arribat a aquest tutor. Podria ser: vimtutor <ENTRAR>
- O b: vim tutor <ENTRAR>
-
----> 'vim' 閟 l'editor vim, i 'tutor' 閟 el fitxer que voleu editar.
-
- 4. Si heu memoritzat les ordres, feu els passos anteriors, de l'1 al 3,
- per sortir i tornar a entrar a l'editor. Llavors moveu el cursor avall
- fins la lli珞 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 1.3: EDITAR TEXT - ESBORRAR
-
-
- ** En mode Normal premeu x per esborrar el car郼ter de sota el cursor. **
-
- 1. Moveu el cursor fins la l韓ia que hi ha m閟 avall marcada amb --->.
-
- 2. Poseu el cursor a sobre el car郼ter que cal esborrar, per corregir els
- errors.
-
- 3. Premeu la tecla x per esborrar el car郼ter.
-
- 4. Repetiu els passos 2 i 3 fins que la frase sigui correcta.
-
----> Unna vaaca vva salttar sobbree la llluna.
-
- 5. Ara que la l韓ia 閟 correcta, aneu a la lli珞 1.4.
-
-NOTA: Mentre aneu fent no tracteu de memoritzar, practiqueu i prou.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 1.4: EDITAR TEXT - INSERIR
-
-
- ** En mode Normal premeu i per inserir text. **
-
- 1. Moveu el cursor avall fins la primera l韓ia marcada amb --->.
-
- 2. Per fer la primera l韓ia igual que la segona poseu el cursor sobre el
- primer car郼ter POSTERIOR al text que s'ha d'inserir.
-
- 3. Premeu la tecla i i escriviu el text que falta.
-
- 4. Quan h鄃iu acabat premeu <ESC> per tornar al mode Normal. Repetiu
- els passos 2, 3 i 4 per corregir la frase.
-
----> Falten carctrs en aquesta .
----> Falten alguns car郼ters en aquesta l韓ia.
-
- 5. Quan us trobeu c騧odes inserint text aneu al sumari de baix.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 1 SUMARI
-
-
- 1. El cursor es mou amb les fletxes o b amb les tecles hjkl.
- h (esquerra) j (avall) k (amunt) l (dreta)
-
- 2. Per entrar al Vim (des de la shell) escriviu: vim FITXER <ENTRAR>
-
- 3. Per sortir teclegeu: <ESC> :q! <ENTRAR> per descartar els canvis.
- O B teclegeu: <ESC> :wq <ENTRAR> per desar els canvis.
-
- 4. Per esborrar el car郼ter de sota el cursor en el mode Normal premeu: x
-
- 5. Per inserir text on hi ha el cursor, en mode Normal, premeu:
- i escriviu el text <ESC>
-
-NOTA: La tecla <ESC> us portar al mode Normal o cancel穕ar una ordre
- que estigui a mitges.
-
-Ara continueu amb la lli珞 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 2.1: ORDRES PER ESBORRAR
-
-
- ** Teclegeu dw per esborrar fins al final d'una paraula. **
-
- 1. Premeu <ESC> per estar segurs que esteu en mode normal.
-
- 2. Moveu el cursor avall fins la l韓ia marcada amb --->.
-
- 3. Moveu el cursor fins el principi de la paraula que s'ha d'esborrar.
-
- 4. Teclegeu dw per fer desapar鑙xer la paraula.
-
-NOTA: Les lletres dw apareixeran a la l韓ia de baix de la pantalla mentre
- les aneu escrivint. Si us equivoqueu premeu <ESC> i torneu a comen鏰r.
-
----> Hi han algunes paraules divertit que no pertanyen paper a aquesta frase.
-
- 5. Repetiu el passos 3 i 4 fins que la frase sigui correcta i continueu a
- la lli珞 2.2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 2.2: M蒘 ORDRES PER ESBORRAR
-
-
- ** Escriviu d$ per esborrar fins al final de la l韓ia. **
-
- 1. Premeu <ESC> per estar segurs que esteu en el mode Normal.
-
- 2. Moveu el cursor avall fins a la l韓ia marcada amb --->.
-
- 3. Moveu el cursor fins el final de la l韓ia correcta
- (DESPR蒘 del primer . ).
-
- 4. Teclegeu d$ per esborrar fins al final de la l韓ia.
-
----> Alg ha escrit el final d'aquesta l韓ia dos cops. l韓ia dos cops.
-
- 5. Aneu a la lli珞 2.3 per entendre qu est passant.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 2.3: SOBRE ORDRES I OBJECTES
-
-
- El format de l'ordre d'esborrar d 閟 el seg黣nt:
-
- [nombre] d objecte O B d [nombre] objecte
- On:
- nombre - 閟 el nombre de cops que s'ha d'executar (opcional, omissi=1).
- d - 閟 l'ordre per esborrar.
- objecte - 閟 la cosa amb la qual operar (llista a baix).
-
- Una petita llista d'objectes:
- w - des del cursor fins al final de la paraula, incloent-hi l'espai.
- e - des del cursor fins al final de la paraula, SENSE incloure l'espai.
- $ - des del cursor fins al final de la l韓ia.
-
-NOTA: Per als aventurers: si teclegeu nom閟 l'objecte, en el mode Normal,
- sense cap ordre, el cursor es mour tal com est especificat a la
- llista d'objectes.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 2.4: UNA EXCEPCI A 'ORDRE-OBJECTE'
-
-
- ** Teclegeu dd esborrar tota la l韓ia. **
-
- Com que molt sovint s'han d'eliminar l韓ies senceres els dissenyadors del
- Vi van creure que seria m閟 f郼il teclejar dd per esborrar tota la l韓ia.
-
- 1. Moveu el cursor a la segona l韓ia de la frase de baix.
- 2. Teclegeu dd per esborrar la l韓ia.
- 3. Ara aneu a la quarta l韓ia.
- 4. Teclegeu 2dd per esborrar dues l韓ies (recordeu nombre-ordre-objecte).
-
- 1) Les roses s髇 vermelles,
- 2) El fang 閟 divertit,
- 3) Les violetes s髇 blaves,
- 4) Tinc un cotxe,
- 5) Els rellotges diuen l'hora,
- 6) El sucre 閟 dol,
- 7) Igual que tu.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 2.5: L'ORDRE DESFER
-
-
- ** Premeu u per desfer els 鷏tims canvis, U per arreglar tota la l韓ia. **
-
- 1. Moveu el cursor sobre el primer error de l韓ia de baix marcada amb --->
- 2. Premeu x per esborrar el car郼ter no desitjat.
- 3. Ara premeu u per desfer l'鷏tima ordre executada.
- 4. Aquest cop corregiu tots els errors de la l韓ia amb l'ordre x.
- 5. Ara premeu U per restablir la l韓ia al seu estat original.
- 6. Ara premeu u uns quants cops per desfer U i les ordres anteriors.
- 7. Ara premeu CONTROL-R (les dues tecles al mateix temps) uns quants cops
- per refer les ordres.
-
----> Correegiu els errors d'aqquesta l韓ia i dessfeu-los aamb desfer.
-
- 8. Aquestes ordres s髇 molt 鷗ils. Ara aneu al sumari de la lli珞 2.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 2 SUMARI
-
-
- 1. Per esborrar del cursor al final de la paraula teclegeu: dw
-
- 2. Per esborrar del cursor al final de la l韓ia teclegeu: d$
-
- 3. Per esborrar una l韓ia sencera teclegeu: dd
-
- 4. El format de qualsevol ordre del mode Normal 閟:
-
- [nombre] ordre objecte O B ordre [nombre] objecte
- on:
- nombre - 閟 quants cops repetir l'ordre
- ordre - 閟 qu fer, com ara d per esborrar
- objecte - 閟 amb qu s'ha d'actuar, com ara w (paraula),
- $ (fins a final de l韓ia), etc.
-
- 5. Per desfer les accions anteriors premeu: u
- Per desfer tots el canvis en una l韓ia premeu: U
- Per desfer l'ordre desfer premeu: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 3.1: L'ORDRE 'POSAR'
-
-
- ** Premeu p per posar l'鷏tima cosa que heu esborrat despr閟 del cursor. **
-
-
- 1. Moveu el cursor a la primera l韓ia de llista de baix.
-
- 2. Teclegeu dd per esborrar la l韓ia i desar-la a la mem騬ia.
-
- 3. Moveu el cursor a la l韓ia ANTERIOR on hauria d'anar.
-
- 4. En mode Normal, premeu p per inserir la l韓ia.
-
- 5. Repetiu els passos 2, 3 i 4 per ordenar les l韓ies correctament.
-
- d) Pots aprendre tu?
- b) Les violetes s髇 blaves,
- c) L'intel穕ig鑞cia s'apr鑞,
- a) Les roses s髇 vermelles,
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 3.2: L'ORDRE SUBSTITUIR
-
-
- ** Premeu r i un car郼ter per substituir el car郼ter de sota el cursor. **
-
- 1. Moveu el cursor a la primera l韓ia de sota marcada amb --->.
-
- 2. Moveu el cursor a sobre del primer car郼ter equivocat.
-
- 3. Premeu r i tot seguit el car郼ter correcte per corregir l'error.
-
- 4. Repetiu els passos 2 i 3 fins que la l韓ia sigui correcta.
-
----> Quen van escroure aquerta l韓ia, algh va apretar tikles equivocades!
----> Quan van escriure aquesta l韓ia, alg va apretar tecles equivocades!
-
- 5. Ara continueu a la lli珞 3.2.
-
-NOTA: Recordeu que heu de practicar, no memoritzar.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 3.3: L'ORDRE CANVIAR
-
-
- ** Per canviar una part o tota la paraula, escriviu cw . **
-
- 1. Moveu el cursor a la primera l韓ia de sota marcada amb --->.
-
- 2. Poseu el cursor sobre la u de 'lughc'.
-
- 3. Teclegeu cw i corregiu la paraula (en aquest cas escriviu '韓ia'.)
-
- 4. Premeu <ESC> i aneu al seg黣nt error.
-
- 5. Repetiu els passos 3 i 4 fins que les dues frases siguin iguals.
-
----> Aquesta lughc t algunes paradskl que s'han de cdddf.
----> Aquesta l韓ia t algunes paraules que s'han de canviar.
-
-Noteu que cw no nom閟 canvia la paraula, tamb us posa en mode d'inserci.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 3.4: M蒘 CANVIS AMB c
-
-
- ** L'ordre canviar s'usa amb els mateixos objectes que l'ordre esborrar. **
-
- 1. L'ordre canviar funciona igual que la d'esborrar. El format 閟:
-
- [nombre] c objecte O B c [nombre] objecte
-
- 2. Els objectes s髇 els mateixos, com w (paraula), $ (final de l韓ia), etc.
-
- 3. Moveu el cursor fins la primera l韓ia marcada amb --->.
-
- 4. Avanceu fins al primer error.
-
- 5. Premeu c$ per fer la l韓ia igual que la segona i premeu <ESC>.
-
----> El final d'aquesta l韓ia necessita canvis per ser igual que la segona.
----> El final d'aquesta l韓ia s'ha de corregir amb l'ordre c$.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 3 SUMARI
-
-
- 1. Per tornar a posar el text que s'ha esborrat, premeu p . Aix posa el
- text esborrat DESPR蒘 del cursor (si heu esborrat una l韓ia anir a
- parar a la l韓ia SEG蹺NT d'on hi ha el cursor).
-
- 2. Per substituir el car郼ter de sota el cursor, premeu r i tot seguit
- el car郼ter que ha de reempla鏰r l'original.
-
- 3. L'ordre canviar permet canviar l'objecte especificat des del cursor
- fins el final de l'objecte. Per exemple, cw canvia el que hi ha des
- del cursor fins al final de la paraula, i c$ fins al final de l韓ia.
-
- 4. El format de l'ordre canviar 閟:
-
- [nombre] c objecte O B c [nombre] objecte
-
-Ara aneu a la pr騲ima lli珞.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 4.1: SITUACI I ESTAT DEL FITXER
-
-
- ** Premeu CTRL-g per veure la situaci dins del fitxer i el seu estat.
- Premeu SHIFT-G per anar a una l韓ia determinada. **
-
- Nota: No proveu res fins que h鄃iu llegit TOTA la lli珞!!
-
- 1. Mantingueu premuda la tecla Control i premeu g . A la part de baix de
- la p鄃ina apareixer un l韓ia amb el nom del fitxer i la l韓ia en la
- qual us trobeu. Recordeu el n鷐ero de la l韓ia pel Pas 3.
-
- 2. Premeu Shift-G per anar al final de tot del fitxer.
-
- 3. Teclegeu el n鷐ero de la l韓ia on 閞eu i despr閟 premeu Shift-G. Aix
- us tornar a la l韓ia on 閞eu quan heu premut per primer cop Ctrl-g.
- (Quan teclegeu el n鷐ero NO es veur a la pantalla.)
-
- 4. Ara executeu els passos de l'1 al 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 4.2: L'ORDRE CERCAR
-
-
- ** Premeu / seguit de la frase que vulgueu cercar. **
-
- 1. En el mode Normal premeu el car郼ter / . Noteu que el cursor apareix
- a la part de baix de la pantalla igual que amb l'ordre : .
-
- 2. Ara escriviu 'errroor' <ENTRAR>. Aquesta 閟 la paraula que voleu
- cercar.
-
- 3. Per tornar a cercar la mateixa frase, premeu n .
- Per cercar la mateixa frase en direcci contraria, premeu Shift-N .
-
- 4. Si voleu cercar una frase en direcci ascendent, useu l'ordre ? en
- lloc de /.
-
----> "errroor" no 閟 com s'escriu error; errroor 閟 un error.
-
-Note: Quan la cerca arribi al final del fitxer continuar a l'inici.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 4.3: CERCA DE PAR萅TESIS
-
-
- ** Premeu % per cercar el ),], o } corresponent. **
-
- 1. Poseu el cursor en qualsevol (, [, o { de la l韓ia marcada amb --->.
-
- 2. Ara premeu el car郼ter % .
-
- 3. El cursor hauria d'anar a la clau o par鑞tesis corresponent.
-
- 4. Premeu % per tornar el cursor al primer par鑞tesi.
-
----> Aix ( 閟 una l韓ia amb car郼ters (, [ ] i { } de prova. ))
-
-Nota: Aix 閟 molt 鷗il per trobar errors en programes inform鄑ics!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 4.4: UNA MANERA DE CANVIAR ERRORS
-
-
- ** Escriviu :s/vell/nou/g per substituir 'vell' per 'nou'. **
-
- 1. Moveu el cursor a la l韓ia de sota marcada amb --->.
-
- 2. Escriviu :s/laa/la <ENTRAR> . Aquesta ordre nom閟 canvia la primera
- coincid鑞cia que es trobi a la l韓ia.
-
- 3. Ara escriviu :s/laa/la/g per fer una substituci global. Aix
- canviar totes les coincid鑞cies que es trobin a la l韓ia.
-
----> laa millor 鑠oca per veure laa flor 閟 laa primavera.
-
- 4. Per canviar totes les coincid鑞cies d'una cadena entre dues l韓ies,
- escriviu :#,#s/vell/nou/g on #,# s髇 els nombres de les l韓ies.
- Escriviu :%s/vell/nou/g per substituir la cadena a tot el fitxer.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 4 SUMARI
-
-
- 1. Ctrl-g mostra la posici dins del fitxer i l'estat del mateix.
- Shift-G us porta al final del fitxer. Un n鷐ero seguit de Shift-G
- us porta a la l韓ia corresponent.
-
- 2. L'ordre / seguida d'una frase cerca la frase ENDAVANT.
- L'ordre ? seguida d'una frase cerca la frase ENDARRERE.
- Despr閟 d'una cerca premeu n per trobar la pr騲ima coincid鑞cia en
- la mateixa direcci, o Shift-N per cercar en la direcci contr鄏ia.
-
- 3. L'ordre % quan el cursor 閟 a sobre un (,),[,],{, o } troba la
- parella corresponent.
-
- 4. Per substituir el primer 'vell' per 'nou' en una l韓ia :s/vell/nou
- Per substituir tots els 'vell' per 'nou' en una l韓ia :s/vell/nou/g
- Per substituir frases entre les l韓ies # i # :#,#s/vell/nou/g
- Per substituir totes les coincid鑞cies en el fitxer :%s/vell/nou/g
- Per demanar confirmaci cada cop afegiu 'c' :%s/vell/nou/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 5.1: COM EXECUTAR UNA ORDRE EXTERNA
-
-
- ** Teclegeu :! seguit d'una ordre externa per executar-la. **
-
- 1. Premeu el familiar : per col穕ocar el cursor a la part de baix de
- la pantalla. Aix us permet entrar una ordre.
-
- 2. Ara teclegeu el car郼ter ! (signe d'exclamaci). Aix us permet
- executar qualsevol ordre de la shell.
-
- 3. Com a exemple escriviu ls i tot seguit premeu <ENTRAR>. Aix us
- mostrar el contingut del directori, tal com si estigu閟siu a la
- l韓ia d'ordres. Feu servir :!dir si ls no funciona.
-
-Nota: D'aquesta manera es pot executar qualsevol ordre externa.
-
-Nota: Totes les ordres : s'han d'acabar amb la tecla <ENTRAR>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 5.2: M蒘 SOBRE L'ESCRIPTURA DE FITXERS
-
-
- ** Per desar els canvis fets, escriviu :w FITXER. ***
-
- 1. Escriviu :!dir o b :!ls per obtenir un llistat del directori.
- Ja sabeu que heu de pr閙er <ENTRAR> despr閟 d'aix.
-
- 2. Trieu un nom de fitxer que no existeixi, com ara PROVA.
-
- 3. Ara feu: :w PROVA (on PROVA 閟 el nom que heu triat.)
-
- 4. Aix desa tot el fitxer amb el nom de PROVA. Per comprovar-ho
- escriviu :!dir per veure el contingut del directori.
-
-Note: Si sortiu del Vim i entreu una altra vegada amb el fitxer PROVA, el
- fitxer ser una c騪ia exacta del tutor que heu desat.
-
- 5. Ara esborreu el fitxer teclejant (MS-DOS): :!del PROVA
- o b (Unix): :!rm PROVA
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 5.3: UNA ORDRE SELECTIVA PER DESAR
-
-
- ** Per desar una part del fitxer, escriviu :#,# w FITXER **
-
- 1. Un altre cop, feu :!dir o :!ls per obtenir un llistat del directori
- i trieu un nom de fitxer adequat com ara PROVA.
-
- 2. Moveu el cursor a dalt de tot de la p鄃ina i premeu Ctrl-g per
- saber el n鷐ero de la l韓ia. RECORDEU AQUEST N贛ERO!
-
- 3. Ara aneu a baix de tot de la p鄃ina i torneu a pr閙er Ctrl-g.
- RECORDEU AQUEST N贛ERO TAMB!
-
- 4. Per desar NOM蒘 una secci en un fitxer, escriviu :#,# w PROVA on
- #,# s髇 els dos n鷐eros que heu recordat (dalt,baix) i PROVA el nom
- del fitxer.
-
- 5. Mireu que el fitxer nou hi sigui amb :!dir per no l'esborreu.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 5.4: OBTENIR I AJUNTAR FITXERS
-
-
- ** Per inserir el contingut d'un fitxer, feu :r FITXER **
-
- 1. Assegureu-vos, amb l'ordre :!dir , que el fitxer PROVA encara hi 閟.
-
- 2. Poseu el cursor a dalt de tot d'aquesta p鄃ina.
-
-NOTA: Despr閟 d'executar el Pas 3 veureu la lli珞 5.3. Aleshores moveu-vos
- cap avall fins a aquesta lli珞 un altre cop.
-
- 3. Ara obtingueu el fitxer PROVA amb l'ordre :r PROVA on PROVA 閟 el
- nom del fitxer.
-
-NOTA: El fitxer que obtingueu es posa en el lloc on hi hagi el cursor.
-
- 4. Per comprovar que s'ha obtingut el fitxer tireu enrere i mireu com
- ara hi han dues c騪ies de la lli珞 5.3: l'original i la del fitxer.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 5 SUMARI
-
-
- 1. :!ordre executa una ordre externa.
-
- Alguns exemples 鷗ils s髇:
- (MS-DOS) (Unix)
- :!dir :!ls - mostra un llistat del directori
- :!del FITXER :!rm FITXER - esborra el fitxer FITXER
-
- 2. :w FITXER escriu el fitxer editat al disc dur, amb el nom FITXER.
-
- 3. :#,#w FITXER desa les l韓ies de # a # en el fitxer FITXER.
-
- 4. :r FITXER llegeix el fitxer FITXER del disc dur i l'insereix en el
- fitxer editat a la posici on hi ha el cursor.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 6.1: L'ORDRE OBRIR
-
-
-** Premeu o per obrir una l韓ia sota el cursor i entrar en mode inserci. **
-
- 1. Moveu el cursor a la l韓ia de sota marcada amb --->.
-
- 2. Premeu o (min鷖cula) per obrir una l韓ia SOTA el cursor i situar-vos
- en mode d'inserci.
-
- 3. Ara copieu la l韓ia marcada amb ---> i premeu <ESC> per tornar al mode
- normal.
-
----> Despr閟 de pr閙er o el cursor es situa a la l韓ia nova en mode inserci.
-
- 4. Per obrir una l韓ia SOBRE el cursor, premeu la O maj鷖cula, en lloc
- de la min鷖cula. Proveu-ho amb la l韓ia de sota.
-Obriu una l韓ia sobre aquesta amb Shift-O amb el cursor en aquesta l韓ia.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 6.2: L'ORDRE AFEGIR
-
-
- ** Premeu a per afegir text DESPR蒘 del cursor. **
-
- 1. Moveu el cursor al final de la primera l韓ia de sota marcada
- amb ---> prement $ en el mode Normal.
-
- 2. Premeu la lletra a (min鷖cula) per afegir text DESPR蒘 del car郼ter
- sota el cursor. (La A maj鷖cula afegeix text al final de l韓ia.)
-
-Nota: Aix s'evita haver de pr閙er i , l'鷏tim car郼ter, el text a inserir,
- la tecla <ESC>, cursor a la dreta, i finalment x , nom閟 per afegir
- text a final de l韓ia.
-
- 3. Ara completeu la primera l韓ia. Tingueu en compte que aquesta ordre
- 閟 exactament igual que la d'inserir, excepte pel que fa al lloc on
- s'insereix el text.
-
----> Aquesta l韓ia us permetr practicar
----> Aquesta l韓ia us permetr practicar afegir text a final de l韓ia.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 6.3: UNA ALTRA MANERA DE SUBSTITUIR
-
-
- ** Teclegeu una R maj鷖cula per substituir m閟 d'un car郼ter. **
-
- 1. Moveu el cursor a la l韓ia de sota marcada amb --->.
-
- 2. Poseu el cursor al principi de la primera paraula que es diferent
- respecte a la segona l韓ia marcada amb ---> (la paraula "l'鷏tima").
-
- 3. Ara premeu R i substitu飖 el que queda de text a la primera l韓ia
- escrivint sobre el text vell, per fer-la igual que la segona.
-
----> Per fer aquesta l韓ia igual que l'鷏tima useu les tecles.
----> Per fer aquesta l韓ia igual que la segona, premeu R i el text nou.
-
- 4. Tingueu en compte que en pr閙er <ESC> per sortir, el text que no
- s'hagi alterat es mant.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lli珞 6.4: ESTABLIR OPCIONS
-
- ** Feu que les ordres cercar o substituir ignorin les difer鑞cies
- entre maj鷖cules i min鷖cules **
-
- 1. Cerqueu la paraula 'ignorar' amb: /ignorar
- Repetiu-ho uns quants cops amb la tecla n.
-
- 2. Establiu l'opci 'ic' (Ignorar Capitals) escrivint:
- :set ic
-
- 3. Ara cerqueu 'ignorar' un altre cop amb la tecla n.
- Repetiu-ho uns quants cops m閟.
-
- 4. Establiu les opcions 'hlsearch' i 'incsearch':
- :set hls is
-
- 5. Ara torneu a executar una ordre de cerca, i mireu qu passa:
- /ignorar
-
- 6. Per treure el ressalt dels resultats, feu:
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 6 SUMARI
-
-
- 1. L'ordre o obre una l韓ia SOTA la del cursor i mou el cursor a la nova
- l韓ia, en mode Inserci.
- La O maj鷖cula obre la l韓ia a SOBRE la que hi ha el cursor.
-
- 2. Premeu una a per afegir text DESPR蒘 del car郼ter sota el cursor.
- La A maj鷖cula afegeix autom鄑icament el text a final de l韓ia.
-
- 3. L'ordre R maj鷖cula us posa en mode substituci fins que premeu <ESC>.
-
- 4. Escriviu ":set xxx" per establir l'opci "xxx"
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 7: ORDRES D'AJUDA
-
-
- ** Utilitzeu el sistema intern d'ajuda **
-
- El Vim t un extens sistema d'ajuda. Per llegir una introducci proveu una
- d'aquestes tres coses:
- - premeu la tecla <AJUDA> (si en teniu alguna)
- - premeu la tecla <F1> (si en teniu alguna)
- - escriviu :help <ENTRAR>
-
- Teclegeu :q <ENTRAR> per tancar la finestra d'ajuda.
-
- Podeu trobar ajuda sobre pr郼ticament qualsevol tema donant un argument
- a l'ordre ":help". Proveu aix (no oblideu pr閙er <ENTRAR>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LLI怯 8: CREAR UN SCRIPT D'INICI
-
- ** Activar funcions autom鄑icament **
-
- El Vim t moltes m閟 funcions que el Vi, per moltes estan desactivades per
- omissi. Per comen鏰r a utilitzar m閟 funcions heu de crear un fitxer "vimrc".
-
- 1. Comenceu a editar el fitxer "vimrc", depenent del sistema
- :edit ~/.vimrc per Unix
- :edit $VIM/_vimrc per MS-Windows
-
- 2. Ara llegiu el fitxer "vimrc" d'exemple:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Deseu el fitxer amb:
-
- :write
-
- El pr騲im cop que executeu el Vim usar ressalt de sintaxi.
- Podeu afegir els ajustos que vulgueu en aquest fitxer "vimrc".
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Aqu conclou el Tutor del Vim. Ha sigut un intent de fer-vos una breu
- introducci a l'editor Vim, suficient com per qu el pugueu comen鏰r a fer
- servir. Est lluny de ser complet perqu el Vim t moltes m閟 ordres.
- Llegiu el manual de l'usuari: ":help user-manual".
-
- Per un estudi m閟 profund us recomanem el seg黣nt llibre:
- Vim - Vi Improved - de Steve Oualline
- Editorial: New Riders
- 蓅 el primer llibre dedicat completament al Vim, especialment 鷗il per a
- usuaris novells. T molts exemples i dibuixos.
- Vegeu http://iccf-holland.org/click5.html
-
- Aquest altre 閟 m閟 vell i tracta m閟 sobre el Vi que sobre el Vim:
- Learning the Vi Editor - de Linda Lamb
- Editorial: O'Reilly & Associates Inc.
- 蓅 un bon llibre per saber qualsevol cosa que desitgeu sobre el Vi.
- La sisena edici tamb inclou informaci sobre el Vim.
-
- Aquest tutorial ha estat escrit per Michael C. Pierce i Robert K. Ware,
- Colorado School of Mines amb la col穕aboraci de Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Modificat pel Vim per Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.ca.utf-8 b/runtime/tutor/tutor.ca.utf-8
new file mode 100644
index 000000000..7e8e57013
--- /dev/null
+++ b/runtime/tutor/tutor.ca.utf-8
@@ -0,0 +1,807 @@
+===============================================================================
+= B e n v i n g u t s a l t u t o r d e l V I M - Versi贸 1.5 =
+===============================================================================
+
+ El Vim 茅s un editor molt potent que t茅 moltes ordres, masses com per
+ explicar-les totes un tutor com aquest. Aquest tutor est脿 dissenyat
+ per descriure les ordres b脿siques que us permetin fer servir el Vim com
+ a editor de prop貌sit general.
+
+ El temps aproximat de seguir el tutor complet 茅s d'uns 25 o 30 minuts
+ depenent de quant temps dediqueu a experimentar.
+
+ Feu una c貌pia d'aquest fitxer per practicar-hi (si heu comen莽at amb el
+ programa vimtutor aix貌 que esteu llegint ja 茅s una c貌pia).
+
+ 脡s important recordar que aquest tutor est脿 pensat per ensenyar
+ practicant. 脡s a dir, que haureu d'executar les ordres si les voleu
+ aprendre. Si nom茅s llegiu el text el m茅s probable 茅s que les oblideu.
+
+ Ara assegureu-vos que la tecla de bloqueig de maj煤scules no est脿
+ activada i premeu la tecla j per moure el cursor avall, fins que
+ la lli莽贸 1.1 ocupi completament la pantalla.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 1.1: MOURE EL CURSOR
+
+
+ ** Per moure el cursor premeu les tecles h,j,k,l tal com est脿 indicat. **
+ ^
+ k Pista: La h 茅s a l'esquerra i mou el cursor cap a l'esquerra.
+ < h l > La l 茅s a la dreta i mou el cursor cap a la dreta.
+ j La j sembla una fletxa cap avall.
+ v
+ 1. Moveu el cursor per la pantalla fins que us sentiu confortables.
+
+ 2. Mantingueu premuda la tecla avall (j) una estona.
+---> Ara sabeu com moure-us fins a la pr貌xima lli莽贸.
+
+ 3. Usant la tecla avall, aneu a la lli莽贸 1.2.
+
+Nota: Si no esteu segurs de la tecla que heu premut, premeu <ESC> per tornar
+ al mode Normal. Llavors torneu a teclejar l'ordre que vol铆eu.
+
+Nota: Les tecles de moviment del cursor (fletxes) tamb茅 funcionen. Per貌 usant
+ hjkl anireu m茅s r脿pid, quan us hi h脿giu acostumant.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 1.2: ENTRAR I SORTIR DEL VIM
+
+
+ !! NOTA: Abans de seguir els passos seg眉ents llegiu *tota* la lli莽贸!!
+
+ 1. Premeu <ESC> (per estar segurs que esteu en el mode Normal).
+
+ 2. Teclegeu: :q! <ENTRAR>.
+
+---> Amb aix貌 sortireu de l'editor SENSE desar els canvis que h脿giu pogut
+ fer. Si voleu desar els canvis teclegeu:
+ :wq <ENTRAR>
+
+ 3. Quan vegeu l'introductor de la shell escriviu l'ordre amb la qual heu
+ arribat a aquest tutor. Podria ser: vimtutor <ENTRAR>
+ O b茅: vim tutor <ENTRAR>
+
+---> 'vim' 茅s l'editor vim, i 'tutor' 茅s el fitxer que voleu editar.
+
+ 4. Si heu memoritzat les ordres, feu els passos anteriors, de l'1 al 3,
+ per sortir i tornar a entrar a l'editor. Llavors moveu el cursor avall
+ fins la lli莽贸 1.3.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 1.3: EDITAR TEXT - ESBORRAR
+
+
+ ** En mode Normal premeu x per esborrar el car脿cter de sota el cursor. **
+
+ 1. Moveu el cursor fins la l铆nia que hi ha m茅s avall marcada amb --->.
+
+ 2. Poseu el cursor a sobre el car脿cter que cal esborrar, per corregir els
+ errors.
+
+ 3. Premeu la tecla x per esborrar el car脿cter.
+
+ 4. Repetiu els passos 2 i 3 fins que la frase sigui correcta.
+
+---> Unna vaaca vva salttar sobbree la llluna.
+
+ 5. Ara que la l铆nia 茅s correcta, aneu a la lli莽贸 1.4.
+
+NOTA: Mentre aneu fent no tracteu de memoritzar, practiqueu i prou.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 1.4: EDITAR TEXT - INSERIR
+
+
+ ** En mode Normal premeu i per inserir text. **
+
+ 1. Moveu el cursor avall fins la primera l铆nia marcada amb --->.
+
+ 2. Per fer la primera l铆nia igual que la segona poseu el cursor sobre el
+ primer car脿cter POSTERIOR al text que s'ha d'inserir.
+
+ 3. Premeu la tecla i i escriviu el text que falta.
+
+ 4. Quan h脿giu acabat premeu <ESC> per tornar al mode Normal. Repetiu
+ els passos 2, 3 i 4 per corregir la frase.
+
+---> Falten carctrs en aquesta .
+---> Falten alguns car脿cters en aquesta l铆nia.
+
+ 5. Quan us trobeu c貌modes inserint text aneu al sumari de baix.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 1 SUMARI
+
+
+ 1. El cursor es mou amb les fletxes o b茅 amb les tecles hjkl.
+ h (esquerra) j (avall) k (amunt) l (dreta)
+
+ 2. Per entrar al Vim (des de la shell) escriviu: vim FITXER <ENTRAR>
+
+ 3. Per sortir teclegeu: <ESC> :q! <ENTRAR> per descartar els canvis.
+ O B脡 teclegeu: <ESC> :wq <ENTRAR> per desar els canvis.
+
+ 4. Per esborrar el car脿cter de sota el cursor en el mode Normal premeu: x
+
+ 5. Per inserir text on hi ha el cursor, en mode Normal, premeu:
+ i escriviu el text <ESC>
+
+NOTA: La tecla <ESC> us portar脿 al mode Normal o cancel路lar脿 una ordre
+ que estigui a mitges.
+
+Ara continueu amb la lli莽贸 2.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 2.1: ORDRES PER ESBORRAR
+
+
+ ** Teclegeu dw per esborrar fins al final d'una paraula. **
+
+ 1. Premeu <ESC> per estar segurs que esteu en mode normal.
+
+ 2. Moveu el cursor avall fins la l铆nia marcada amb --->.
+
+ 3. Moveu el cursor fins el principi de la paraula que s'ha d'esborrar.
+
+ 4. Teclegeu dw per fer desapar猫ixer la paraula.
+
+NOTA: Les lletres dw apareixeran a la l铆nia de baix de la pantalla mentre
+ les aneu escrivint. Si us equivoqueu premeu <ESC> i torneu a comen莽ar.
+
+---> Hi han algunes paraules divertit que no pertanyen paper a aquesta frase.
+
+ 5. Repetiu el passos 3 i 4 fins que la frase sigui correcta i continueu a
+ la lli莽贸 2.2.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 2.2: M脡S ORDRES PER ESBORRAR
+
+
+ ** Escriviu d$ per esborrar fins al final de la l铆nia. **
+
+ 1. Premeu <ESC> per estar segurs que esteu en el mode Normal.
+
+ 2. Moveu el cursor avall fins a la l铆nia marcada amb --->.
+
+ 3. Moveu el cursor fins el final de la l铆nia correcta
+ (DESPR脡S del primer . ).
+
+ 4. Teclegeu d$ per esborrar fins al final de la l铆nia.
+
+---> Alg煤 ha escrit el final d'aquesta l铆nia dos cops. l铆nia dos cops.
+
+ 5. Aneu a la lli莽贸 2.3 per entendre qu猫 est脿 passant.
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 2.3: SOBRE ORDRES I OBJECTES
+
+
+ El format de l'ordre d'esborrar d 茅s el seg眉ent:
+
+ [nombre] d objecte O B脡 d [nombre] objecte
+ On:
+ nombre - 茅s el nombre de cops que s'ha d'executar (opcional, omissi贸=1).
+ d - 茅s l'ordre per esborrar.
+ objecte - 茅s la cosa amb la qual operar (llista a baix).
+
+ Una petita llista d'objectes:
+ w - des del cursor fins al final de la paraula, incloent-hi l'espai.
+ e - des del cursor fins al final de la paraula, SENSE incloure l'espai.
+ $ - des del cursor fins al final de la l铆nia.
+
+NOTA: Per als aventurers: si teclegeu nom茅s l'objecte, en el mode Normal,
+ sense cap ordre, el cursor es mour脿 tal com est脿 especificat a la
+ llista d'objectes.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 2.4: UNA EXCEPCI脫 A 'ORDRE-OBJECTE'
+
+
+ ** Teclegeu dd esborrar tota la l铆nia. **
+
+ Com que molt sovint s'han d'eliminar l铆nies senceres els dissenyadors del
+ Vi van creure que seria m茅s f脿cil teclejar dd per esborrar tota la l铆nia.
+
+ 1. Moveu el cursor a la segona l铆nia de la frase de baix.
+ 2. Teclegeu dd per esborrar la l铆nia.
+ 3. Ara aneu a la quarta l铆nia.
+ 4. Teclegeu 2dd per esborrar dues l铆nies (recordeu nombre-ordre-objecte).
+
+ 1) Les roses s贸n vermelles,
+ 2) El fang 茅s divertit,
+ 3) Les violetes s贸n blaves,
+ 4) Tinc un cotxe,
+ 5) Els rellotges diuen l'hora,
+ 6) El sucre 茅s dol莽,
+ 7) Igual que tu.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 2.5: L'ORDRE DESFER
+
+
+ ** Premeu u per desfer els 煤ltims canvis, U per arreglar tota la l铆nia. **
+
+ 1. Moveu el cursor sobre el primer error de l铆nia de baix marcada amb --->
+ 2. Premeu x per esborrar el car脿cter no desitjat.
+ 3. Ara premeu u per desfer l'煤ltima ordre executada.
+ 4. Aquest cop corregiu tots els errors de la l铆nia amb l'ordre x.
+ 5. Ara premeu U per restablir la l铆nia al seu estat original.
+ 6. Ara premeu u uns quants cops per desfer U i les ordres anteriors.
+ 7. Ara premeu CONTROL-R (les dues tecles al mateix temps) uns quants cops
+ per refer les ordres.
+
+---> Correegiu els errors d'aqquesta l铆nia i dessfeu-los aamb desfer.
+
+ 8. Aquestes ordres s贸n molt 煤tils. Ara aneu al sumari de la lli莽贸 2.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 2 SUMARI
+
+
+ 1. Per esborrar del cursor al final de la paraula teclegeu: dw
+
+ 2. Per esborrar del cursor al final de la l铆nia teclegeu: d$
+
+ 3. Per esborrar una l铆nia sencera teclegeu: dd
+
+ 4. El format de qualsevol ordre del mode Normal 茅s:
+
+ [nombre] ordre objecte O B脡 ordre [nombre] objecte
+ on:
+ nombre - 茅s quants cops repetir l'ordre
+ ordre - 茅s qu猫 fer, com ara d per esborrar
+ objecte - 茅s amb qu猫 s'ha d'actuar, com ara w (paraula),
+ $ (fins a final de l铆nia), etc.
+
+ 5. Per desfer les accions anteriors premeu: u
+ Per desfer tots el canvis en una l铆nia premeu: U
+ Per desfer l'ordre desfer premeu: CTRL-R
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 3.1: L'ORDRE 'POSAR'
+
+
+ ** Premeu p per posar l'煤ltima cosa que heu esborrat despr茅s del cursor. **
+
+
+ 1. Moveu el cursor a la primera l铆nia de llista de baix.
+
+ 2. Teclegeu dd per esborrar la l铆nia i desar-la a la mem貌ria.
+
+ 3. Moveu el cursor a la l铆nia ANTERIOR on hauria d'anar.
+
+ 4. En mode Normal, premeu p per inserir la l铆nia.
+
+ 5. Repetiu els passos 2, 3 i 4 per ordenar les l铆nies correctament.
+
+ d) Pots aprendre tu?
+ b) Les violetes s贸n blaves,
+ c) L'intel路lig猫ncia s'apr猫n,
+ a) Les roses s贸n vermelles,
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 3.2: L'ORDRE SUBSTITUIR
+
+
+ ** Premeu r i un car脿cter per substituir el car脿cter de sota el cursor. **
+
+ 1. Moveu el cursor a la primera l铆nia de sota marcada amb --->.
+
+ 2. Moveu el cursor a sobre del primer car脿cter equivocat.
+
+ 3. Premeu r i tot seguit el car脿cter correcte per corregir l'error.
+
+ 4. Repetiu els passos 2 i 3 fins que la l铆nia sigui correcta.
+
+---> Quen van escroure aquerta l铆nia, algh va apretar tikles equivocades!
+---> Quan van escriure aquesta l铆nia, alg煤 va apretar tecles equivocades!
+
+ 5. Ara continueu a la lli莽贸 3.2.
+
+NOTA: Recordeu que heu de practicar, no memoritzar.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 3.3: L'ORDRE CANVIAR
+
+
+ ** Per canviar una part o tota la paraula, escriviu cw . **
+
+ 1. Moveu el cursor a la primera l铆nia de sota marcada amb --->.
+
+ 2. Poseu el cursor sobre la u de 'lughc'.
+
+ 3. Teclegeu cw i corregiu la paraula (en aquest cas escriviu '铆nia'.)
+
+ 4. Premeu <ESC> i aneu al seg眉ent error.
+
+ 5. Repetiu els passos 3 i 4 fins que les dues frases siguin iguals.
+
+---> Aquesta lughc t茅 algunes paradskl que s'han de cdddf.
+---> Aquesta l铆nia t茅 algunes paraules que s'han de canviar.
+
+Noteu que cw no nom茅s canvia la paraula, tamb茅 us posa en mode d'inserci贸.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 3.4: M脡S CANVIS AMB c
+
+
+ ** L'ordre canviar s'usa amb els mateixos objectes que l'ordre esborrar. **
+
+ 1. L'ordre canviar funciona igual que la d'esborrar. El format 茅s:
+
+ [nombre] c objecte O B脡 c [nombre] objecte
+
+ 2. Els objectes s贸n els mateixos, com w (paraula), $ (final de l铆nia), etc.
+
+ 3. Moveu el cursor fins la primera l铆nia marcada amb --->.
+
+ 4. Avanceu fins al primer error.
+
+ 5. Premeu c$ per fer la l铆nia igual que la segona i premeu <ESC>.
+
+---> El final d'aquesta l铆nia necessita canvis per ser igual que la segona.
+---> El final d'aquesta l铆nia s'ha de corregir amb l'ordre c$.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 3 SUMARI
+
+
+ 1. Per tornar a posar el text que s'ha esborrat, premeu p . Aix貌 posa el
+ text esborrat DESPR脡S del cursor (si heu esborrat una l铆nia anir脿 a
+ parar a la l铆nia SEG脺ENT d'on hi ha el cursor).
+
+ 2. Per substituir el car脿cter de sota el cursor, premeu r i tot seguit
+ el car脿cter que ha de reempla莽ar l'original.
+
+ 3. L'ordre canviar permet canviar l'objecte especificat des del cursor
+ fins el final de l'objecte. Per exemple, cw canvia el que hi ha des
+ del cursor fins al final de la paraula, i c$ fins al final de l铆nia.
+
+ 4. El format de l'ordre canviar 茅s:
+
+ [nombre] c objecte O B脡 c [nombre] objecte
+
+Ara aneu a la pr貌xima lli莽贸.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 4.1: SITUACI脫 I ESTAT DEL FITXER
+
+
+ ** Premeu CTRL-g per veure la situaci贸 dins del fitxer i el seu estat.
+ Premeu SHIFT-G per anar a una l铆nia determinada. **
+
+ Nota: No proveu res fins que h脿giu llegit TOTA la lli莽贸!!
+
+ 1. Mantingueu premuda la tecla Control i premeu g . A la part de baix de
+ la p脿gina apareixer脿 un l铆nia amb el nom del fitxer i la l铆nia en la
+ qual us trobeu. Recordeu el n煤mero de la l铆nia pel Pas 3.
+
+ 2. Premeu Shift-G per anar al final de tot del fitxer.
+
+ 3. Teclegeu el n煤mero de la l铆nia on 茅reu i despr茅s premeu Shift-G. Aix貌
+ us tornar脿 a la l铆nia on 茅reu quan heu premut per primer cop Ctrl-g.
+ (Quan teclegeu el n煤mero NO es veur脿 a la pantalla.)
+
+ 4. Ara executeu els passos de l'1 al 3.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 4.2: L'ORDRE CERCAR
+
+
+ ** Premeu / seguit de la frase que vulgueu cercar. **
+
+ 1. En el mode Normal premeu el car脿cter / . Noteu que el cursor apareix
+ a la part de baix de la pantalla igual que amb l'ordre : .
+
+ 2. Ara escriviu 'errroor' <ENTRAR>. Aquesta 茅s la paraula que voleu
+ cercar.
+
+ 3. Per tornar a cercar la mateixa frase, premeu n .
+ Per cercar la mateixa frase en direcci贸 contraria, premeu Shift-N .
+
+ 4. Si voleu cercar una frase en direcci贸 ascendent, useu l'ordre ? en
+ lloc de /.
+
+---> "errroor" no 茅s com s'escriu error; errroor 茅s un error.
+
+Note: Quan la cerca arribi al final del fitxer continuar脿 a l'inici.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 4.3: CERCA DE PAR脠NTESIS
+
+
+ ** Premeu % per cercar el ),], o } corresponent. **
+
+ 1. Poseu el cursor en qualsevol (, [, o { de la l铆nia marcada amb --->.
+
+ 2. Ara premeu el car脿cter % .
+
+ 3. El cursor hauria d'anar a la clau o par猫ntesis corresponent.
+
+ 4. Premeu % per tornar el cursor al primer par猫ntesi.
+
+---> Aix貌 ( 茅s una l铆nia amb car脿cters (, [ ] i { } de prova. ))
+
+Nota: Aix貌 茅s molt 煤til per trobar errors en programes inform脿tics!
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 4.4: UNA MANERA DE CANVIAR ERRORS
+
+
+ ** Escriviu :s/vell/nou/g per substituir 'vell' per 'nou'. **
+
+ 1. Moveu el cursor a la l铆nia de sota marcada amb --->.
+
+ 2. Escriviu :s/laa/la <ENTRAR> . Aquesta ordre nom茅s canvia la primera
+ coincid猫ncia que es trobi a la l铆nia.
+
+ 3. Ara escriviu :s/laa/la/g per fer una substituci贸 global. Aix貌
+ canviar脿 totes les coincid猫ncies que es trobin a la l铆nia.
+
+---> laa millor 猫poca per veure laa flor 茅s laa primavera.
+
+ 4. Per canviar totes les coincid猫ncies d'una cadena entre dues l铆nies,
+ escriviu :#,#s/vell/nou/g on #,# s贸n els nombres de les l铆nies.
+ Escriviu :%s/vell/nou/g per substituir la cadena a tot el fitxer.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 4 SUMARI
+
+
+ 1. Ctrl-g mostra la posici贸 dins del fitxer i l'estat del mateix.
+ Shift-G us porta al final del fitxer. Un n煤mero seguit de Shift-G
+ us porta a la l铆nia corresponent.
+
+ 2. L'ordre / seguida d'una frase cerca la frase ENDAVANT.
+ L'ordre ? seguida d'una frase cerca la frase ENDARRERE.
+ Despr茅s d'una cerca premeu n per trobar la pr貌xima coincid猫ncia en
+ la mateixa direcci贸, o Shift-N per cercar en la direcci贸 contr脿ria.
+
+ 3. L'ordre % quan el cursor 茅s a sobre un (,),[,],{, o } troba la
+ parella corresponent.
+
+ 4. Per substituir el primer 'vell' per 'nou' en una l铆nia :s/vell/nou
+ Per substituir tots els 'vell' per 'nou' en una l铆nia :s/vell/nou/g
+ Per substituir frases entre les l铆nies # i # :#,#s/vell/nou/g
+ Per substituir totes les coincid猫ncies en el fitxer :%s/vell/nou/g
+ Per demanar confirmaci贸 cada cop afegiu 'c' :%s/vell/nou/gc
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 5.1: COM EXECUTAR UNA ORDRE EXTERNA
+
+
+ ** Teclegeu :! seguit d'una ordre externa per executar-la. **
+
+ 1. Premeu el familiar : per col路locar el cursor a la part de baix de
+ la pantalla. Aix貌 us permet entrar una ordre.
+
+ 2. Ara teclegeu el car脿cter ! (signe d'exclamaci贸). Aix貌 us permet
+ executar qualsevol ordre de la shell.
+
+ 3. Com a exemple escriviu ls i tot seguit premeu <ENTRAR>. Aix貌 us
+ mostrar脿 el contingut del directori, tal com si estigu茅ssiu a la
+ l铆nia d'ordres. Feu servir :!dir si ls no funciona.
+
+Nota: D'aquesta manera es pot executar qualsevol ordre externa.
+
+Nota: Totes les ordres : s'han d'acabar amb la tecla <ENTRAR>
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 5.2: M脡S SOBRE L'ESCRIPTURA DE FITXERS
+
+
+ ** Per desar els canvis fets, escriviu :w FITXER. ***
+
+ 1. Escriviu :!dir o b茅 :!ls per obtenir un llistat del directori.
+ Ja sabeu que heu de pr茅mer <ENTRAR> despr茅s d'aix貌.
+
+ 2. Trieu un nom de fitxer que no existeixi, com ara PROVA.
+
+ 3. Ara feu: :w PROVA (on PROVA 茅s el nom que heu triat.)
+
+ 4. Aix貌 desa tot el fitxer amb el nom de PROVA. Per comprovar-ho
+ escriviu :!dir per veure el contingut del directori.
+
+Note: Si sortiu del Vim i entreu una altra vegada amb el fitxer PROVA, el
+ fitxer ser脿 una c貌pia exacta del tutor que heu desat.
+
+ 5. Ara esborreu el fitxer teclejant (MS-DOS): :!del PROVA
+ o b茅 (Unix): :!rm PROVA
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 5.3: UNA ORDRE SELECTIVA PER DESAR
+
+
+ ** Per desar una part del fitxer, escriviu :#,# w FITXER **
+
+ 1. Un altre cop, feu :!dir o :!ls per obtenir un llistat del directori
+ i trieu un nom de fitxer adequat com ara PROVA.
+
+ 2. Moveu el cursor a dalt de tot de la p脿gina i premeu Ctrl-g per
+ saber el n煤mero de la l铆nia. RECORDEU AQUEST N脷MERO!
+
+ 3. Ara aneu a baix de tot de la p脿gina i torneu a pr茅mer Ctrl-g.
+ RECORDEU AQUEST N脷MERO TAMB脡!
+
+ 4. Per desar NOM脡S una secci贸 en un fitxer, escriviu :#,# w PROVA on
+ #,# s贸n els dos n煤meros que heu recordat (dalt,baix) i PROVA el nom
+ del fitxer.
+
+ 5. Mireu que el fitxer nou hi sigui amb :!dir per貌 no l'esborreu.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 5.4: OBTENIR I AJUNTAR FITXERS
+
+
+ ** Per inserir el contingut d'un fitxer, feu :r FITXER **
+
+ 1. Assegureu-vos, amb l'ordre :!dir , que el fitxer PROVA encara hi 茅s.
+
+ 2. Poseu el cursor a dalt de tot d'aquesta p脿gina.
+
+NOTA: Despr茅s d'executar el Pas 3 veureu la lli莽贸 5.3. Aleshores moveu-vos
+ cap avall fins a aquesta lli莽贸 un altre cop.
+
+ 3. Ara obtingueu el fitxer PROVA amb l'ordre :r PROVA on PROVA 茅s el
+ nom del fitxer.
+
+NOTA: El fitxer que obtingueu es posa en el lloc on hi hagi el cursor.
+
+ 4. Per comprovar que s'ha obtingut el fitxer tireu enrere i mireu com
+ ara hi han dues c貌pies de la lli莽贸 5.3: l'original i la del fitxer.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 5 SUMARI
+
+
+ 1. :!ordre executa una ordre externa.
+
+ Alguns exemples 煤tils s贸n:
+ (MS-DOS) (Unix)
+ :!dir :!ls - mostra un llistat del directori
+ :!del FITXER :!rm FITXER - esborra el fitxer FITXER
+
+ 2. :w FITXER escriu el fitxer editat al disc dur, amb el nom FITXER.
+
+ 3. :#,#w FITXER desa les l铆nies de # a # en el fitxer FITXER.
+
+ 4. :r FITXER llegeix el fitxer FITXER del disc dur i l'insereix en el
+ fitxer editat a la posici贸 on hi ha el cursor.
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 6.1: L'ORDRE OBRIR
+
+
+** Premeu o per obrir una l铆nia sota el cursor i entrar en mode inserci贸. **
+
+ 1. Moveu el cursor a la l铆nia de sota marcada amb --->.
+
+ 2. Premeu o (min煤scula) per obrir una l铆nia SOTA el cursor i situar-vos
+ en mode d'inserci贸.
+
+ 3. Ara copieu la l铆nia marcada amb ---> i premeu <ESC> per tornar al mode
+ normal.
+
+---> Despr茅s de pr茅mer o el cursor es situa a la l铆nia nova en mode inserci贸.
+
+ 4. Per obrir una l铆nia SOBRE el cursor, premeu la O maj煤scula, en lloc
+ de la min煤scula. Proveu-ho amb la l铆nia de sota.
+Obriu una l铆nia sobre aquesta amb Shift-O amb el cursor en aquesta l铆nia.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 6.2: L'ORDRE AFEGIR
+
+
+ ** Premeu a per afegir text DESPR脡S del cursor. **
+
+ 1. Moveu el cursor al final de la primera l铆nia de sota marcada
+ amb ---> prement $ en el mode Normal.
+
+ 2. Premeu la lletra a (min煤scula) per afegir text DESPR脡S del car脿cter
+ sota el cursor. (La A maj煤scula afegeix text al final de l铆nia.)
+
+Nota: Aix铆 s'evita haver de pr茅mer i , l'煤ltim car脿cter, el text a inserir,
+ la tecla <ESC>, cursor a la dreta, i finalment x , nom茅s per afegir
+ text a final de l铆nia.
+
+ 3. Ara completeu la primera l铆nia. Tingueu en compte que aquesta ordre
+ 茅s exactament igual que la d'inserir, excepte pel que fa al lloc on
+ s'insereix el text.
+
+---> Aquesta l铆nia us permetr脿 practicar
+---> Aquesta l铆nia us permetr脿 practicar afegir text a final de l铆nia.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 6.3: UNA ALTRA MANERA DE SUBSTITUIR
+
+
+ ** Teclegeu una R maj煤scula per substituir m茅s d'un car脿cter. **
+
+ 1. Moveu el cursor a la l铆nia de sota marcada amb --->.
+
+ 2. Poseu el cursor al principi de la primera paraula que es diferent
+ respecte a la segona l铆nia marcada amb ---> (la paraula "l'煤ltima").
+
+ 3. Ara premeu R i substitu茂u el que queda de text a la primera l铆nia
+ escrivint sobre el text vell, per fer-la igual que la segona.
+
+---> Per fer aquesta l铆nia igual que l'煤ltima useu les tecles.
+---> Per fer aquesta l铆nia igual que la segona, premeu R i el text nou.
+
+ 4. Tingueu en compte que en pr茅mer <ESC> per sortir, el text que no
+ s'hagi alterat es mant茅.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lli莽贸 6.4: ESTABLIR OPCIONS
+
+ ** Feu que les ordres cercar o substituir ignorin les difer猫ncies
+ entre maj煤scules i min煤scules **
+
+ 1. Cerqueu la paraula 'ignorar' amb: /ignorar
+ Repetiu-ho uns quants cops amb la tecla n.
+
+ 2. Establiu l'opci贸 'ic' (Ignorar Capitals) escrivint:
+ :set ic
+
+ 3. Ara cerqueu 'ignorar' un altre cop amb la tecla n.
+ Repetiu-ho uns quants cops m茅s.
+
+ 4. Establiu les opcions 'hlsearch' i 'incsearch':
+ :set hls is
+
+ 5. Ara torneu a executar una ordre de cerca, i mireu qu猫 passa:
+ /ignorar
+
+ 6. Per treure el ressalt dels resultats, feu:
+ :nohlsearch
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 6 SUMARI
+
+
+ 1. L'ordre o obre una l铆nia SOTA la del cursor i mou el cursor a la nova
+ l铆nia, en mode Inserci贸.
+ La O maj煤scula obre la l铆nia a SOBRE la que hi ha el cursor.
+
+ 2. Premeu una a per afegir text DESPR脡S del car脿cter sota el cursor.
+ La A maj煤scula afegeix autom脿ticament el text a final de l铆nia.
+
+ 3. L'ordre R maj煤scula us posa en mode substituci贸 fins que premeu <ESC>.
+
+ 4. Escriviu ":set xxx" per establir l'opci贸 "xxx"
+
+
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 7: ORDRES D'AJUDA
+
+
+ ** Utilitzeu el sistema intern d'ajuda **
+
+ El Vim t茅 un extens sistema d'ajuda. Per llegir una introducci贸 proveu una
+ d'aquestes tres coses:
+ - premeu la tecla <AJUDA> (si en teniu alguna)
+ - premeu la tecla <F1> (si en teniu alguna)
+ - escriviu :help <ENTRAR>
+
+ Teclegeu :q <ENTRAR> per tancar la finestra d'ajuda.
+
+ Podeu trobar ajuda sobre pr脿cticament qualsevol tema donant un argument
+ a l'ordre ":help". Proveu aix貌 (no oblideu pr茅mer <ENTRAR>):
+
+ :help w
+ :help c_<T
+ :help insert-index
+ :help user-manual
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ LLI脟脫 8: CREAR UN SCRIPT D'INICI
+
+ ** Activar funcions autom脿ticament **
+
+ El Vim t茅 moltes m茅s funcions que el Vi, per貌 moltes estan desactivades per
+ omissi贸. Per comen莽ar a utilitzar m茅s funcions heu de crear un fitxer "vimrc".
+
+ 1. Comenceu a editar el fitxer "vimrc", depenent del sistema
+ :edit ~/.vimrc per Unix
+ :edit $VIM/_vimrc per MS-Windows
+
+ 2. Ara llegiu el fitxer "vimrc" d'exemple:
+
+ :read $VIMRUNTIME/vimrc_example.vim
+
+ 3. Deseu el fitxer amb:
+
+ :write
+
+ El pr貌xim cop que executeu el Vim usar脿 ressalt de sintaxi.
+ Podeu afegir els ajustos que vulgueu en aquest fitxer "vimrc".
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ Aqu铆 conclou el Tutor del Vim. Ha sigut un intent de fer-vos una breu
+ introducci贸 a l'editor Vim, suficient com per qu猫 el pugueu comen莽ar a fer
+ servir. Est脿 lluny de ser complet perqu猫 el Vim t茅 moltes m茅s ordres.
+ Llegiu el manual de l'usuari: ":help user-manual".
+
+ Per un estudi m茅s profund us recomanem el seg眉ent llibre:
+ Vim - Vi Improved - de Steve Oualline
+ Editorial: New Riders
+ 脡s el primer llibre dedicat completament al Vim, especialment 煤til per a
+ usuaris novells. T茅 molts exemples i dibuixos.
+ Vegeu http://iccf-holland.org/click5.html
+
+ Aquest altre 茅s m茅s vell i tracta m茅s sobre el Vi que sobre el Vim:
+ Learning the Vi Editor - de Linda Lamb
+ Editorial: O'Reilly & Associates Inc.
+ 脡s un bon llibre per saber qualsevol cosa que desitgeu sobre el Vi.
+ La sisena edici贸 tamb茅 inclou informaci贸 sobre el Vim.
+
+ Aquest tutorial ha estat escrit per Michael C. Pierce i Robert K. Ware,
+ Colorado School of Mines amb la col路laboraci贸 de Charles Smith,
+ Colorado State University. E-mail: bware@mines.colorado.edu.
+
+ Modificat pel Vim per Bram Moolenaar.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.cs b/runtime/tutor/tutor.cs
deleted file mode 100644
index baaef66b3..000000000
--- a/runtime/tutor/tutor.cs
+++ /dev/null
@@ -1,812 +0,0 @@
-===============================================================================
-= V t e j t e v t u t o r i a l u V I M - Verze 1.5 =
-===============================================================================
-
- Vim je velmi v齥onn editor, kter m pli mnoho pkaz na to, aby
- mohly b齮 v筫chny vysv靦len ve v齯ce jako tato. Tato v齯ka obsahuje
- dostate鑞 mno緎tv pkaz na to, aby bylo mo緉 pou卷vat Vim jako
- v韈eelov editor.
-
- P鴌bli緉 鑑s pot鴈bn ke zvl醖nut t閠o v齯ky je 25-30 minut, z醠e卷
- na tom, kolik 鑑su str醰韙e p鴈zku筼v醤韒.
-
- Pkazy v lekc韈h upravuj text. Vytvo kopii tohoto souboru pro
- procvi鑟v醤 (p鴌 startu "vimtutor" je ji toto kopie).
-
- Je d鵯e緄t pamatovat, 緀 tato v齯ka je vytvo鴈na pro v齯ku pou卷v醤韒.
- To znamen, 緀 je pot鴈ba si pkazy vyzkou筫t pro jejich spr醰n
- nau鑕n. Pokud si jen 鑤e text, pkazy zapomene!
-
- Nyn se p鴈sv靌鑤e, 緀 Shift-Lock NEN stla鑕n a n靕olikr醫 stiskn靦e
- kl醰esu j aby se kurzor posunul natolik, 緀 lekce 1.1 zapln celou
- obrazovku.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.1: POHYB KURZORU
-
-
- ** Pro pohyb kurzoru pou卷vej kl醰esy h,j,k,l jak je zn醶orn靚o n砭e. **
- ^
- k Funkce: Kl醰esa h je vlevo a vykon pohyb vlevo.
- < h l > Kl醰esa l je vpravo a vykon pohyb vpravo.
- j Kl醰esa j vypad na 筰pku dolu.
- v
- 1. Pohybuj kurzorem po obrazovce dokud si na to nezvykne.
-
- 2. Dr kl醰esu pro pohyb dolu (j), dokud se jej funkce nezopakuje.
----> Te v砉 jak se p鴈sunout na n醩leduj韈 lekci.
-
- 3. Pou緄t韒 kl醰esy dolu p鴈jdi na lekci 1.2.
-
-Pozn醡ka: Pokud si n靕dy nejsi jist n扈韒, co jsi napsal, stla <ESC> pro
- p鴈chod do Norm醠n韍o m骴u. Pot p鴈pi po綼dovan pkaz.
-
-Pozn醡ka: Kurzorov kl醰esy tak funguj, av筧k pou卷v醤 hjkl je rychlej鬼
- jakmile si na n靔 zvykne.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.2: SPU㏕蘊 A UKON菶N VIM
-
-
- !! POZN罬KA: P鴈d vykon醤韒 t靋hto krok si p鴈鑤i celou lekci!!
-
- 1. Stla <ESC> (pro uji箃靚, 緀 se nach醶砉 v Norm醠n韒 m骴u).
-
- 2. Napi: :q! <ENTER>.
-
----> T韒to ukon桧 editor BEZ ulo緀n zm靚, kter si vykonal.
- Pokud chce ulo緄t zm靚y a ukon鑙t editor napi:
- :wq <ENTER>
-
- 3. A se dostane na pkazov dek, napi pkaz, kter齧 se dostane zp靦
- do t閠o v齯ky. To me b齮: vimtutor <ENTER>
- B炀n se pou卷v: vim tutor <ENTER>
-
----> 'vim' znamen spu箃靚 editoru, 'tutor' je soubor k editaci.
-
- 4. Pokud si tyto kroky spolehliv pamatuje, vykonej kroky 1 a 3, 桧m
- ukon桧 a znovu spust砉 editor. Potom p鴈su kurzor dolu na lekci 1.3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.3: 赑RAVA TEXTU - MAZ罭
-
-
- ** Stisknut韒 kl醰esy x v Norm醠n韒 m骴u sma緀 znak na m韘t kurzoru. **
-
- 1. P鴈su kurzor n砭e na dek ozna鑕n --->.
-
- 2. K odstran靚 chyb p鴈jdi kurzorem na znak, kter chce smazat.
-
- 3. Stla kl醰esu x k odstran靚 necht靚齝h znak.
-
- 4. Opakuj kroky 2 a 4 dokud nen v靦a spr醰n.
-
----> Kr後va sko梃illa p鴈ss m靤s韈.
-
- 5. Pokud je v靦a spr醰n, p鴈jdi na lekci 1.4.
-
-POZN罬KA: Nesna se pouze zapamatovat p鴈dv醖靚 pkazy, u se je pou卷v醤韒.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.4: 赑RAVA TEXTU - VKL罝罭
-
-
- ** Stla鑕n kl醰esy i v Norm醠n韒 m骴u umo掘uje vkl醖醤 textu. **
-
- 1. P鴈su kurzor na prvn dek ozna鑕n --->.
-
- 2. Pro upraven prvn韍o dku do podoby dku druh閔o, p鴈su kurzor na
- prvn znak za m韘to, kde m b齮 text vlo緀n.
-
- 3. Stla i a napi pot鴈bn dodatek.
-
- 4. Po opraven ka綿 chyby stla <ESC> pro n醰rat do Norm醠n韍o m骴u.
- Opakuj kroky 2 a 4 dokud nen v靦a spr醰n.
-
----> N靔ak txt na t閠o .
----> N靔ak text chyb na t閠o dce.
-
- 5. Pokud ji ovl醖峁 vkl醖醤 textu, p鴈jdi na n醩leduj韈 shrnut.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 1
-
-
- 1. Kurzorem se pohybuje pomoc 筰pek nebo kl醰esami hjkl.
- h (vlevo) j (dolu) k (nahoru) l (vpravo)
-
- 2. Pro spu箃靚 Vimu (z pkazov閔o dku) napi: vim SOUBOR <ENTER>
-
- 3. Pro ukon鑕n Vimu napi: <ESC> :q! <ENTER> bez ulo緀n zm靚.
- anebo: <ESC> :wq <ENTER> pro ulo緀n zm靚.
-
- 4. Pro smaz醤 znaku pod kurzorem napi v Norm醠n韒 m骴u: x
-
- 5. Pro vkl醖醤 textu od m韘ta kurzoru napi v Norm醠n韒 m骴u:
- i vkl醖an text <ESC>
-
-POZN罬KA: Stla鑕n <ESC> t p鴈m韘t do Norm醠n韍o m骴u nebo zru鬼 necht靚
- a 栳ste鑞 dokon鑕n pkaz.
-
-Nyn pokra鑥j Lekc 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.1: P赝KAZY MAZ罭
-
-
- ** Pkaz dw sma緀 znaky do konce slova. **
-
- 1. Stla <ESC> k ubezpe鑕n, 緀 jsi v Norm醠n韒 m骴u.
-
- 2. P鴈su kurzor n砭e na dek ozna鑕n --->.
-
- 3. P鴈su kurzor na za栳tek slova, kter je pot鴈ba smazat.
-
- 4. Napi dw , aby slovo zmizelo.
-
-POZN罬KA: P韘mena dw se zobraz na posledn韒 dku obrazovky jakmile je
- nap砉e. Kdy nap砉e n靋o 筽atn, stla <ESC> a za鑞i znova.
-
----> Jsou tu n靔ak slova z醔ava, kter nepat list do t閠o v靦y.
-
- 5. Opakuj kroky 3 a 4 dokud nen v靦a spr醰n a p鴈jdi na lekci 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.2: V虲E P赝KAZ MAZ罭
-
-
- ** Naps醤 pkazu d$ sma緀 v筫 a do konce dky. **
-
- 1. Stla <ESC> k ubezpe鑕n, 緀 jsi v Norm醠n韒 m骴u.
-
- 2. P鴈su kurzor n砭e na dek ozna鑕n --->.
-
- 3. P鴈su kurzor na konec spr醰n v靦y (ZA prvn te鑛u).
-
- 4. Napi d$ ,aby jsi smazal znaky a do konce dku.
-
----> N靕do napsal konec t閠o v靦y dvakr醫. konec t閠o v靦y dvakr醫.
-
-
- 5. P鴈jdi na lekci 2.3 pro pochopen toho, co se stalo.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.3: ROZ㊣豋VAC P赝KAZY A OBJEKTY
-
-
- Form醫 mazac韍o pkazu d je n醩leduj韈:
-
- [桧slo] d objekt NEBO d [桧slo] objekt
- Kde:
- 桧slo - ud醰 kolikr醫 se pkaz vykon (voliteln, v齝hoz=1).
- d - je pkaz maz醤.
- objekt - ud醰 na 鑕m se pkaz vykon醰 (vypsan n砭e).
-
- Kr醫k v齪is objekt:
- w - od kurzoru do konce slova, v鑕tn mezer.
- e - od kurzoru do konce slova, BEZ mezer.
- $ - od kurzoru do konce dku.
-
-POZN罬KA: Stla鑕n韒 kl醰esy objektu v Norm醠n韒 m骴u se kurzor p鴈sune na
- m韘to up鴈sn靚 ve v齪isu objekt.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.4: V軯IMKA Z 'P赝KAZ-OBJEKT'
-
-
- ** Naps醤韒 dd sma緀 cel dek. **
-
- Vzhledem k 鑑stosti maz醤 cel閔o dku se auto鴌 Vimu rozhodli, 緀 bude
- jednodu鬼 napsat prost dv d k smaz醤 cel閔o dku.
-
- 1. P鴈su kurzor na druh dek spodn韍o textu.
- 2. Napi dd pro smaz醤 dku.
- 3. P鴈jdi na 鑤vrt dek.
- 4. Napi 2dd (vzpome si 桧slo-pkaz-objekt) pro smaz醤 dvou dk.
-
- 1) Re jsou 鑕rven,
- 2) Bl醫o je z醔avn,
- 3) Fialky jsou modr,
- 4) M醡 auto,
- 5) Hodinky ukazuj 鑑s,
- 6) Cukr je sladk,
- 7) A to jsi i ty.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.5: P赝KAZ UNDO
-
-
- ** Stla u pro vr醕en posledn韍o pkazu, U pro celou dku. **
-
- 1. P鴈su kurzor n砭e na dek ozna鑕n ---> a p鴈m韘ti ho na prvn chybu.
- 2. Napi x pro smaz醤 prvn韍o necht靚閔o znaku.
- 3. Te napi u 桧m vr醫砉 zp靦 posledn vykonan pkaz.
- 4. Nyn oprav v筫chny chyby na dku pomoc pkazu x .
- 5. Napi velk U 桧m vr醫砉 dek do p鵹odn韍o stavu.
- 6. Te napi u n靕olikr醫, 桧m vr醫砉 zp靦 pkaz U .
- 7. Stla CTRL-R (kl醰esu CTRL dr stla鑕nou a stiskni R) n靕olikr醫,
- 桧m vr醫砉 zp靦 p鴈dt韒 vr醕en pkazy (redo).
-
----> Opprav chybby nna toomto dku a nahra je pommoc undo.
-
- 8. Toto jsou velmi u緄te鑞 pkazy. Nyn p鴈jdi na souhrn Lekce 2.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 2
-
-
- 1. Pro smaz醤 znak od kurzoru do konce slova napi: dw
-
- 2. Pro smaz醤 znak od kurzoru do konce dku napi: d$
-
- 3. Pro smaz醤 cel閔o dku napi: dd
-
- 4. Form醫 pkazu v Norm醠n韒 m骴u je:
-
- [桧slo] pkaz objekt NEBO pkaz [桧slo] objekt
- kde:
- 桧slo - ud醰 po鑕t opakov醤 pkazu
- pkaz - ud醰 co je t鴈ba vykonat, napklad d ma緀
- objekt - ud醰 rozsah pkazu, napklad w (slovo),
- $ (do konce dku), atd.
-
- 5. Pro vr醕en p鴈de筶 鑙nnosti, napi: u (mal u)
- Pro vr醕en v筫ch 鷓rav na dku napi: U (velk U)
- Pro vr醕en vr醕en齝h 鷓rav (redo) napi: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.1: P赝KAZ VLO甀T
-
-
- ** Pka p vlo卷 posledn vymazan text za kurzor. **
-
- 1. P鴈su kurzor n砭e na posledn dek textu.
-
- 2. Napi dd pro smaz醤 dku a jeho ulo緀n do bufferu.
-
- 3. P鴈su kurzor V荸E tam, kam smazan dek pat.
-
- 4. V Norm醠n韒 m骴u napi p pro op靦n vlo緀n dku.
-
- 5. Opakuj kroky 2 a 4 dokud dky nebudou ve spr醰n閙 po鴄d.
-
- d) Tak se dok峋e vzd靗醰at?
- b) Fialky jsou modr,
- c) Inteligence se u桧,
- a) Re jsou 鑕rven,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.2: P赝KAZ NAHRAZEN
-
-
- ** Naps醤韒 r a znaku se nahrad znak pod kurzorem. **
-
- 1. P鴈su kurzor n砭e na prvn dek ozna鑕n --->.
-
- 2. P鴈su kurzor na za栳tek prvn chyby.
-
- 3. Napi r a potom znak, kter nahrad chybu.
-
- 4. Opakuj kroky 2 a 3 dokud nen prvn dka spr醰n.
-
----> Kdi byl pz醤 tento deg, n靕du stla緄l 筽aqn kl醰esy!
----> Kdy byl ps醤 tento dek, n靕do stla桧l 筽atn kl醰esy!
-
- 5. Nyn p鴈jdi na Lekci 3.2.
-
-POZN罬KA: Zapamatuj si, 緀 by ses m靗 u鑙t pou卷v醤韒, ne zapamatov醤韒.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.3: P赝KAZ 赑RAVY
-
-
- ** Pokud chce zm靚it 栳st nebo cel slovo, napi cw . **
-
- 1. P鴈su kurzor n砭e na prvn dek ozna鑕n --->.
-
- 2. Um韘ti kurzor na p韘meno i v slov 鴌籵k.
-
- 3. Napi cw a oprav slovo (v tomto ppad napi '醖ek'.)
-
- 4. Stla <ESC> a p鴈jdi na dal鬼 chybu (prvn znak, kter t鴈ba zm靚it.)
-
- 5. Opakuj kroky 3 a 4 dokud nen prvn v靦a stejn jako ta druh.
-
----> Tento 鴌籵k m n靕olik skic, kter psadoinsa zm靚it pasdgf pkazu.
----> Tento dek m n靕olik slov, kter pot鴈buj zm靚it pomoc pkazu.
-
-V筰mni si, 緀 cw nejen nahrazuje slovo, ale tak p鴈m韘t do vkl醖醤.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.4: V虲E ZM蘊 POU甀T蚆 c
-
-
- ** Pkaz pro 鷓ravu se dru卷 se stejn齧i objekty jako ten pro maz醤. **
-
- 1. Pkaz pro 鷓ravu pracuje stejn jako pro maz醤. Form醫 je:
-
- [桧slo] c objekt NEBO c [桧slo] objekt
-
- 2. Objekty jsou tak shodn, jako nap.: w (slovo), $ (konec dku), atd.
-
- 3. P鴈jdi n砭e na prvn dek ozna鑕n --->.
-
- 4. P鴈su kurzor na prvn rozd韑.
-
- 5. Napi c$ pro upraven zbytku dku podle toho druh閔o a stla <ESC>.
-
----> Konec tohoto dku pot鴈buje pomoc, aby byl jako ten druh.
----> Konec tohoto dku pot鴈buje opravit pou緄t韒 pkazu c$ .
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 3
-
-
- 1. Pro vlo緀n textu, kter byl smaz醤, napi p . To vlo卷 smazan text
- ZA kurzor (pokud byl dek smazan, p鴈jde na dek pod kurzorem).
-
- 2. Pro nahrazen znaku pod kurzorem, napi r a potom znak, kter齧
- chce p鵹odn znak nahradit.
-
- 3. Pkaz na upravov醤 umo掘uje zm靚it specifikovan objekt od kurzoru
- do konce objektu. Napklad: Napi cw ,桧m zm靚砉 text od pozice
- kurzoru do konce slova, c$ zm靚 text do konce dku.
-
- 4. Form醫 pro nahrazov醤 je:
-
- [桧slo] c objekt NEBO c [桧slo] objekt
-
-Nyn p鴈jdi na n醩leduj韈 lekci.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.1: POZICE A STATUS SOUBORU
-
-
- ** Stla CTRL-g pro zobrazen sv pozice v souboru a statusu souboru.
- Stla SHIFT-G pro p鴈chod na dek v souboru. **
-
- Pozn醡ka: P鴈鑤i si celou lekci ne za鑞e vykon醰at kroky!!
-
- 1. Dr kl醰esu Ctrl stla鑕nou a stiskni g . Vespod obrazovky se zobraz
- stavov dek s n醶vem souboru a dkou na kter se nach醶砉. Zapamatuj
- si 桧slo dku pro krok 3.
-
- 2. Stla shift-G pro p鴈sun na konec souboru.
-
- 3. Napi 桧slo dku na kter閙 si se nach醶el a stla shift-G. To t
- vr醫 na dek, na kter閙 jsi dve stiskl Ctrl-g.
- (Kdy p砉e 桧sla, tak se NEZOBRAZUJ na obrazovce.)
-
- 4. Pokud se c韙砉 schopn vykonat tyto kroky, vykonej je.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.2: P赝KAZ VYHLED罺罭
-
-
- ** Napi / n醩ledovan 鴈t靭cem pro vyhled醤 onoho 鴈t靭ce. **
-
- 1. Stiskni / v Norm醠n韒 m骴u. V筰mni si, 緀 tento znak se spolu s
- kurzorem zobraz v doln 栳sti obrazovky jako pkaz : .
-
- 2. Nyn napi 'chhybba' <ENTER>. To je slovo, kter chce vyhledat.
-
- 3. Pro vyhled醤 dal鬼ho v齭ledku stejn閔o 鴈t靭ce, jednodu筫 stla n .
- Pro vyhled醤 dal鬼ho v齭ledku stejn閔o 鴈t靭ce opa鑞齧 sm靣em, stiskni
- Shift-N.
-
- 4. Pokud chce vyhledat 鴈t靭ec v opa鑞閙 sm靣u, pou緄j pkaz ? m韘to
- pkazu / .
-
----> "chhybba" nen zp鵶ob, jak hl醩kovat chyba; chhybba je chyba.
-
-Pozn醡ka: Kdy vyhled醰醤 dos醜ne konce souboru, bude pokra鑟vat na jeho
- za栳tku.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.3: VYHLED罺罭 P罵OV Z罺ORKY
-
-
- ** Napi % pro nalezen p醨ov ),], nebo } . **
-
- 1. P鴈m韘ti kurzor na kteroukoli (, [, nebo { v dku ozna鑕n閙 --->.
-
- 2. Nyn napi znak % .
-
- 3. Kurzor se p鴈m韘t na odpov韉aj韈 z醰orku.
-
- 4. Stla % pro p鴈sun kurzoru zp靦 na otv韗aj韈 z醰orku.
-
----> Toto ( je testovac dek ('s, ['s ] a {'s } v n靘. ))
-
-Pozn醡ka: Toto je velmi u緄te鑞 p lad靚 programu s chyb靔韈韒i
- uzav韗ac韒i z醰orkami.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.4: ZP賁OB JAK ZM蘊IT CHYBY
-
-
- ** Napi :s/star/nov/g pro nahrazen slova 'nov' za 'star'. **
-
- 1. P鴈su kurzor na dek ozna鑕n --->.
-
- 2. Napi :s/dobr殚/dobr <ENTER> . V筰mni si, 緀 tento pkaz zm靚 pouze
- prvn v齭kyt v dku.
-
- 3. Nyn napi :s/dobr殚/dobr/g co znamen celkov nahrazen v dku.
- Toto nahrad v筫chny v齭kyty v dku.
-
----> dobr殚 suroviny a dobr殚 n徼in jsou z醟ladem dobr殚 kuchyn.
-
- 4. Pro zm靚u v筫ch v齭kyt 鴈t靭ce mezi dv靘a dky,
- Napi :#,#s/star/nov/g kde #,# jsou 桧sla on靋h dek.
- Napi :%s/star/nov/g pro zm靚u v筫ch v齭kyt v cel閙 souboru.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 4
-
-
- 1. Ctrl-g vyp砉e tvou pozici v souboru a status souboru.
- Shift-G t p鴈m韘t na konec souboru. 软slo n醩ledovan
- Shift-G t p鴈sune na dan 桧slo dku.
-
- 2. Naps醤 / n醩ledovan 鴈t靭cem vyhled 鴈t靭ec sm靣em DOP谽DU.
- Naps醤 ? n醩ledovan 鴈t靭cem vyhled 鴈t靭ec sm靣em DOZADU.
- Naps醤 n po vyhled醰醤 najde n醩leduj韈 v齭kyt 鴈t靭ce ve stejn閙
- sm靣u, Shift-N ve sm靣u opa鑞閙.
-
- 3. Stisknut % kdy je kurzor na (,),[,],{, nebo } najde odpov韉aj韈
- p醨ovou z醰orku.
-
- 4. Pro nahrazen nov閔o za prvn star v dku napi :s/star/nov
- Pro nahrazen nov閔o za v筫chny star v dku napi :s/star/nov/g
- Pro nahrazen 鴈t靭c mezi dv靘i dkami # napi :#,#s/star/nov/g
- Pro nahrazen v筫ch v齭kyt v souboru napi :%s/star/nov/g
- Pro potvrzen ka綿閔o nahrazen p鴌dej 'c' :%s/star/nov/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.1: JAK VYKONAT VN蘆┩ P赝KAZ
-
-
- ** Napi :! n醩ledovan vn靔鬼m pkazem pro spu箃靚 pkazu. **
-
- 1. Napi obvykl pkaz : , kter um韘t kurzor na spodek obrazovky
- To umo緉 napsat pkaz.
-
- 2. Nyn stiskni ! (vyk鴌鑞韐). To umo緉 vykonat jak齥oliv vn靔鬼
- pkaz z pkazov閔o dku.
-
- 3. Napklad napi ls za ! a stiskni <ENTER>. Tento pkaz zobraz
- obsah tv閔o adres狲e jako v pkazov閙 dku.
- Vyzkou筫j :!dir pokud ls nefunguje.
-
-Pozn醡ka: Takto je mo緉 vykonat jak齥oliv pkaz.
-
-Pozn醡ka: V筫chny pkazy : mus b齮 dokon鑕n stisknut韒 <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.2: V虲E O UKL罝罭 SOUBOR
-
-
- ** Pro ulo緀n zm靚 v souboru napi :w SOUBOR. **
-
- 1. Napi :!dir nebo :!ls pro v齪is aktu醠n韍o adres狲e.
- U v砉, 緀 za t韒to mus砉 stisknout <ENTER>.
-
- 2. Vyber si n醶ev souboru, kter je箃 neexistuje, napklad TEST.
-
- 3. Nyn napi: :w TEST (kde TEST je vybran n醶ev souboru.)
-
- 4. To ulo卷 cel soubor (V齯ka Vimu) pod n醶vem TEST.
- Pro ov禅en napi znovu :!dir , 桧m zobraz砉 obsah adres狲e.
-
-Pozn醡ka: Jakmile ukon桧 Vim a znovu ho spust砉 s n醶vem souboru TEST,
- soubor bude p鴈sn kopie v齯ky, kdy si ji ukl醖al.
-
- 5. Nyn odstra soubor naps醤韒 (MS-DOS): :!del TEST
- nebo (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.3: V軧蘎OV P赝KAZ ULO瓻N
-
-
- ** Pro ulo緀n 栳sti souboru napi :#,# w SOUBOR **
-
- 1. Je箃 jednou napi :!dir nebo :!ls pro v齪is aktu醠n韍o adres狲e
- a vyber vhodn n醶ev souboru jako nap. TEST.
-
- 2. P鴈su kurzor na vrch t閠o str醤ky a stiskni Ctrl-g pro zobrazen
- 桧sla dku. ZAPAMATUJ SI TOTO 韧SLO!
-
- 3. Nyn se p鴈su na spodek t閠o str醤ky a op靦 stiskni Ctrl-g.
- ZAPAMATUJ SI I 韧SLO TOHOTO 亓DKU!
-
- 4. Pro ulo緀n POUZE 栳sti souboru, napi :#,# w TEST kde #,# jsou
- 桧sla dvou zapamatovan齝h dk (vrch, spodek) a TEST je n醶ev souboru.
-
- 5. Znova se ujisti, 緀 tam ten soubor je pomoc :!dir ale NEODSTRA襏J ho.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.4: SLU萇V罭 SOUBOR
-
-
- ** K vlo緀n obsahu souboru napi :r N罿EV_SOUBORU **
-
- 1. Napi :!dir pro uji箃靚, 緀 soubor TEST st醠e existuje.
-
- 2. P鴈su kurzor na vrch t閠o str醤ky.
-
-POZN罬KA: Po vykon醤 kroku 3 uvid砉 lekci 5.3. Potom se op靦 p鴈su dol
- na tuto lekci.
-
- 3. Nyn vlo soubor TEST pou緄t韒 pkazu :r TEST kde TEST je n醶ev
- souboru.
-
-POZN罬KA: Soubor, kter vkl醖峁 se vlo卷 od m韘ta, kde se nach醶 kurzor.
-
- 4. Pro potvrzen vlo緀n souboru, p鴈su kurzor zp靦 a v筰mni si, 緀 te
- m峁 dv kopie lekce 5.3, origin醠 a souborovou verzi.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 5
-
-
- 1. :!pkaz vykon vn靔鬼 pkaz.
-
- N靕ter u緄te鑞 pklady jsou:
- (MS-DOS) (Unix)
- :!dir :!ls - zobraz obsah souboru.
- :!del SOUBOR :!rm SOUBOR - odstran SOUBOR.
-
- 2. :w SOUBOR ulo卷 aktu醠n text jako SOUBOR na disk.
-
- 3. :#,#w SOUBOR ulo卷 dky od # do # do SOUBORU.
-
- 4. :r SOUBOR vybere z disku SOUBOR a vlo卷 ho do editovan閔o souboru
- za pozici kurzoru.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.1: P赝KAZ OTEV赝T
-
-
- ** Napi o pro vlo緀n dku pod kurzor a p鴈pnut do Vkl醖ac韍o m骴u. **
-
- 1. P鴈m韘ti kurzor n砭e na dek ozna鑕n --->.
-
- 2. Napi o (mal) pro vlo緀n dku POD kurzor a p鴈pnut do
- Vkl醖ac韍o m骴u.
-
- 3. Nyn zkop韗uj dek ozna鑕n ---> a stiskni <ESC> pro ukon鑕n
- Vkl醖ac韍o m骴u.
-
----> Po stisknut o se kurzor p鴈m韘t na vlo緀n dek do Vkl醖ac韍o
- m骴u.
-
- 4. Pro otev鴈n dku NAD kurzorem jednodu筫 napi velk O , m韘to
- mal閔o o. Vyzkou筫j si to na n醩leduj韈韒 dku.
-Vlo dek nad t韒to naps醤韒 Shift-O po um韘t靚 kurzoru na tento dek.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.2: P赝KAZ P豂DAT
-
-
- ** Stiskni a pro vlo緀n textu ZA kurzor. **
-
- 1. P鴈su kurzor na n砭e na konec dky ozna鑕n --->
- stisknut韒 $ v Norm醠n韒 m骴u.
-
- 2. Stiskni a (mal) pro p鴌d醤 textu ZA znak, kter je pod kurzorem.
- (Velk A p鴌d na konec dku.)
-
-Pozn醡ka: T韒to se vyhne stisknut i , posledn韍o znaku, textu na vlo緀n,
- <ESC>, kurzor doprava, a nakonec x na p鴌d醰醤 na konec dku!
-
- 3. Nyn dokon桧 prvn dek. V筰mni si, 緀 p鴌d醰醤 je vlastn stejn jako
- Vkl醖ac m骴, krom m韘ta, kam se text vkl醖.
-
----> Tento dek ti umo掘uje nacvi鑙t
----> Tento dek ti umo掘uje nacvi鑙t p鴌d醰醤 textu na konec dky.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.3: JIN ZP賁OB NAHRAZOV罭
-
-
- ** Napi velk R pro nahrazen v韈 ne jednoho znaku. **
-
- 1. P鴈su kurzor na prvn dek ozna鑕n --->.
-
- 2. Um韘ti kurzor na za栳tek prvn韍o slova, kter je odli筺 od druh閔o
- dku ozna鑕n閔o ---> (slovo 'posledn').
-
- 3. Nyn stiskni R a nahra zbytek textu na prvn韒 dku p鴈ps醤韒
- star閔o textu tak, aby byl prvn dek stejn jako ten druh.
-
----> Pro upraven prvn韍o dku do tvaru toho posledn na stran pou緄j kl.
----> Pro upraven prvn韍o dku do tvaru toho druh閔o, napi R a nov text.
-
- 4. V筰mni si, 緀 jakmile stiskne <ESC> v筫chen nezm靚靚 text z鵶t醰.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.4: NASTAVEN MO甆OST
-
- ** Nastav mo緉ost, 緀 vyhled醰醤 anebo nahrazov醤 nedb velikosti p韘men **
-
- 1. Vyhledej 鴈t靭ec 'ignore' naps醤韒:
- /ignore
- Zopakuj n靕olikr醫 stisknut kl醰esy n.
-
- 2. Nastav mo緉ost 'ic' (Ignore case) naps醤韒 pkazu:
- :set ic
-
- 3. Nyn znovu vyhledej 'ignore' stisknut韒: n
- N靕olikr醫 hled醤 zopakuj stisknut韒 kl醰esy n.
-
- 4. Nastav mo緉osti 'hlsearch' a 'incsearch':
- :set hls is
-
- 5. Nyn znovu vykonej vyhled醰ac pkaz a sleduj, co se stane:
- /ignore
-
- 6. Pro vypnut zv齬az騩v醤 v齭ledk napi:
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRHNUT LEKCE 6
-
-
- 1. Stisknut o otev鴈 nov dek POD kurzorem a um韘t kurzor na vlo緀n
- dek do Vkl醖ac韍o m骴u.
- Naps醤 velk閔o O otev鴈 dek NAD dkem, na kter閙 je kurzor.
-
- 2. Stiskni a pro vlo緀n textu ZA znak na pozici kurzoru.
- Naps醤 velk閔o A automaticky p鴌d text na konec dku.
-
- 3. Stisknut velk閔o R p鴈pne do Nahrazovac韍o m骴u, dokud
- nestiskne <ESC> pro jeho ukon鑕n.
-
- 4. Naps醤 ":set xxx" nastav mo緉osti "xxx".
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCE 7: P赝KAZY ON-LINE N罰OV藾Y
-
-
- ** Pou卷vej on-line syst閙 n醦ov靌y **
-
- Vim m obs醜l on-line syst閙 n醦ov靌y. Pro za栳tek vyzkou筫j jeden z
- n醩leduj韈韈h:
- - stiskni kl醰esu <HELP> (pokud ji m峁)
- - stiskni kl醰esu <F1> (pokud ji m峁)
- - napi :help <ENTER>
-
- Napi :q <ENTER> pro uzav鴈n okna n醦ov靌y.
-
- Me naj韙 n醦ov靌u k jak閙ukoliv t閙atu p鴌d醤韒 argumentu k
- pkazu ":help". Zkus tyto (nezapome stisknout <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCE 8: VYTVO谽N INICIALIZA萅虷O SKRIPTU
-
- ** Zapni funkce editoru Vim **
-
- Vim m daleko v韈e funkc ne Vi, ale v靦筰na z nich je vypnuta ve v齝hoz韒
- nastaven. Pro zapnut n靕ter齝h vytvo soubor "vimrc".
-
- 1. Za鑞i upravovat soubor "vimrc". Toto z醰is na pou緄t閙 syst閙u:
- :edit ~/.vimrc pro Unix
- :edit $VIM/_vimrc pro MS-Windows
-
- 2. Nyn 鑤i uk醶kov "vimrc" soubor:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Ulo soubor pomoc:
-
- :write
-
- Po p箃韒 startu Vim se zapne zv齬az騩v醤 syntaxe.
- Do souboru "vimrc" me p鴌dat v筫chny svoje up鴈dnost騩van nastaven.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Toto ukon鑥je v齯ku Vim, kter byla my筶en jako stru鑞 p鴈hled
- editoru Vim, tak akor醫 posta鑥j韈 pro lehk a obstojn pou卷v醤 editoru.
- Tato v齯ka m daleko od 鷓lnosti, proto緀 Vim obsahuje podstatn v韈e
- pkaz. D醠e si p鴈鑤i u緄vatelsk manu醠: ":help user-manual".
-
- Pro dal鬼 studium je doporu鑕n kniha:
- Vim - Vi Improved - od Steve Oualline
- Nakladatel: New Riders
- Prvn kniha ur鑕n pro Vim. Obzvl峁t vhodn pro za栳te鑞韐y.
- Obsahuje mno緎tv pklad a obr醶k.
- viz http://iccf-holland.org/click5.html
-
- Tato kniha je star鬼 a v韈e v靚ovan Vi ne Vim, ale tak doporu鑕n:
- Learning the Vi Editor - od Linda Lamb
- Nakladatel: O'Reilly & Associates Inc.
- Je to dobr kniha pro z韘k醤 v靌omost t閙禅 o v筫m, co mete s Vi d靗at.
- 〆st vyd醤 obsahuje t榫 informace o Vim.
-
- Tato v齯ka byla napsan autory Michael C. Pierce a Robert K. Ware,
- Colorado School of Mines s pou緄t韒 my筶enek od: Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Upravil pro Vim: Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- P鴈klad do 鑕箃iny: Lubo Turek
- E-Mail: lubos.turek@gmail.com
- 2007 Feb 28
diff --git a/runtime/tutor/tutor.cs.cp1250 b/runtime/tutor/tutor.cs.cp1250
deleted file mode 100644
index 93fd7b7b2..000000000
--- a/runtime/tutor/tutor.cs.cp1250
+++ /dev/null
@@ -1,812 +0,0 @@
-===============================================================================
-= V t e j t e v t u t o r i a l u V I M - Verze 1.5 =
-===============================================================================
-
- Vim je velmi v齥onn editor, kter m pli mnoho pkaz na to, aby
- mohly b齮 v歟chny vysv靦len ve v齯ce jako tato. Tato v齯ka obsahuje
- dostate鑞 mno瀞tv pkaz na to, aby bylo mo瀗 pou烅vat Vim jako
- v韈eelov editor.
-
- P鴌bli瀗 鑑s pot鴈bn ke zvl醖nut t閠o v齯ky je 25-30 minut, z醠e烅
- na tom, kolik 鑑su str醰韙e p鴈zku歰v醤韒.
-
- Pkazy v lekc韈h upravuj text. Vytvo kopii tohoto souboru pro
- procvi鑟v醤 (p鴌 startu "vimtutor" je ji toto kopie).
-
- Je d鵯e瀒t pamatovat, 瀍 tato v齯ka je vytvo鴈na pro v齯ku pou烅v醤韒.
- To znamen, 瀍 je pot鴈ba si pkazy vyzkou歟t pro jejich spr醰n
- nau鑕n. Pokud si jen 鑤e text, pkazy zapomene!
-
- Nyn se p鴈sv靌鑤e, 瀍 Shift-Lock NEN stla鑕n a n靕olikr醫 stiskn靦e
- kl醰esu j aby se kurzor posunul natolik, 瀍 lekce 1.1 zapln celou
- obrazovku.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.1: POHYB KURZORU
-
-
- ** Pro pohyb kurzoru pou烅vej kl醰esy h,j,k,l jak je zn醶orn靚o n頌e. **
- ^
- k Funkce: Kl醰esa h je vlevo a vykon pohyb vlevo.
- < h l > Kl醰esa l je vpravo a vykon pohyb vpravo.
- j Kl醰esa j vypad na 歩pku dolu.
- v
- 1. Pohybuj kurzorem po obrazovce dokud si na to nezvykne.
-
- 2. Dr kl醰esu pro pohyb dolu (j), dokud se jej funkce nezopakuje.
----> Te v須 jak se p鴈sunout na n醩leduj韈 lekci.
-
- 3. Pou瀒t韒 kl醰esy dolu p鴈jdi na lekci 1.2.
-
-Pozn醡ka: Pokud si n靕dy nejsi jist n扈韒, co jsi napsal, stla <ESC> pro
- p鴈chod do Norm醠n韍o m骴u. Pot p鴈pi po瀉dovan pkaz.
-
-Pozn醡ka: Kurzorov kl醰esy tak funguj, av歛k pou烅v醤 hjkl je rychlej氻
- jakmile si na n靔 zvykne.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.2: SPU奣蘊 A UKON菶N VIM
-
-
- !! POZN罬KA: P鴈d vykon醤韒 t靋hto krok si p鴈鑤i celou lekci!!
-
- 1. Stla <ESC> (pro uji歵靚, 瀍 se nach醶須 v Norm醠n韒 m骴u).
-
- 2. Napi: :q! <ENTER>.
-
----> T韒to ukon桧 editor BEZ ulo瀍n zm靚, kter si vykonal.
- Pokud chce ulo瀒t zm靚y a ukon鑙t editor napi:
- :wq <ENTER>
-
- 3. A se dostane na pkazov dek, napi pkaz, kter齧 se dostane zp靦
- do t閠o v齯ky. To m鶠e b齮: vimtutor <ENTER>
- B鞛n se pou烅v: vim tutor <ENTER>
-
----> 'vim' znamen spu歵靚 editoru, 'tutor' je soubor k editaci.
-
- 4. Pokud si tyto kroky spolehliv pamatuje, vykonej kroky 1 a 3, 桧m
- ukon桧 a znovu spust須 editor. Potom p鴈su kurzor dolu na lekci 1.3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.3: 赑RAVA TEXTU - MAZ罭
-
-
- ** Stisknut韒 kl醰esy x v Norm醠n韒 m骴u sma瀍 znak na m韘t kurzoru. **
-
- 1. P鴈su kurzor n頌e na dek ozna鑕n --->.
-
- 2. K odstran靚 chyb p鴈jdi kurzorem na znak, kter chce smazat.
-
- 3. Stla kl醰esu x k odstran靚 necht靚齝h znak.
-
- 4. Opakuj kroky 2 a 4 dokud nen v靦a spr醰n.
-
----> Kr後va sko梃illa p鴈ss m靤s韈.
-
- 5. Pokud je v靦a spr醰n, p鴈jdi na lekci 1.4.
-
-POZN罬KA: Nesna se pouze zapamatovat p鴈dv醖靚 pkazy, u se je pou烅v醤韒.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.4: 赑RAVA TEXTU - VKL罝罭
-
-
- ** Stla鑕n kl醰esy i v Norm醠n韒 m骴u umo烌uje vkl醖醤 textu. **
-
- 1. P鴈su kurzor na prvn dek ozna鑕n --->.
-
- 2. Pro upraven prvn韍o dku do podoby dku druh閔o, p鴈su kurzor na
- prvn znak za m韘to, kde m b齮 text vlo瀍n.
-
- 3. Stla i a napi pot鴈bn dodatek.
-
- 4. Po opraven ka瀌 chyby stla <ESC> pro n醰rat do Norm醠n韍o m骴u.
- Opakuj kroky 2 a 4 dokud nen v靦a spr醰n.
-
----> N靔ak txt na t閠o .
----> N靔ak text chyb na t閠o dce.
-
- 5. Pokud ji ovl醖釟 vkl醖醤 textu, p鴈jdi na n醩leduj韈 shrnut.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 1
-
-
- 1. Kurzorem se pohybuje pomoc 歩pek nebo kl醰esami hjkl.
- h (vlevo) j (dolu) k (nahoru) l (vpravo)
-
- 2. Pro spu歵靚 Vimu (z pkazov閔o dku) napi: vim SOUBOR <ENTER>
-
- 3. Pro ukon鑕n Vimu napi: <ESC> :q! <ENTER> bez ulo瀍n zm靚.
- anebo: <ESC> :wq <ENTER> pro ulo瀍n zm靚.
-
- 4. Pro smaz醤 znaku pod kurzorem napi v Norm醠n韒 m骴u: x
-
- 5. Pro vkl醖醤 textu od m韘ta kurzoru napi v Norm醠n韒 m骴u:
- i vkl醖an text <ESC>
-
-POZN罬KA: Stla鑕n <ESC> t p鴈m韘t do Norm醠n韍o m骴u nebo zru氻 necht靚
- a 栳ste鑞 dokon鑕n pkaz.
-
-Nyn pokra鑥j Lekc 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.1: P赝KAZY MAZ罭
-
-
- ** Pkaz dw sma瀍 znaky do konce slova. **
-
- 1. Stla <ESC> k ubezpe鑕n, 瀍 jsi v Norm醠n韒 m骴u.
-
- 2. P鴈su kurzor n頌e na dek ozna鑕n --->.
-
- 3. P鴈su kurzor na za栳tek slova, kter je pot鴈ba smazat.
-
- 4. Napi dw , aby slovo zmizelo.
-
-POZN罬KA: P韘mena dw se zobraz na posledn韒 dku obrazovky jakmile je
- nap須e. Kdy nap須e n靋o 歱atn, stla <ESC> a za鑞i znova.
-
----> Jsou tu n靔ak slova z醔ava, kter nepat list do t閠o v靦y.
-
- 5. Opakuj kroky 3 a 4 dokud nen v靦a spr醰n a p鴈jdi na lekci 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.2: V虲E P赝KAZ MAZ罭
-
-
- ** Naps醤 pkazu d$ sma瀍 v歟 a do konce dky. **
-
- 1. Stla <ESC> k ubezpe鑕n, 瀍 jsi v Norm醠n韒 m骴u.
-
- 2. P鴈su kurzor n頌e na dek ozna鑕n --->.
-
- 3. P鴈su kurzor na konec spr醰n v靦y (ZA prvn te鑛u).
-
- 4. Napi d$ ,aby jsi smazal znaky a do konce dku.
-
----> N靕do napsal konec t閠o v靦y dvakr醫. konec t閠o v靦y dvakr醫.
-
-
- 5. P鴈jdi na lekci 2.3 pro pochopen toho, co se stalo.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.3: ROZ奍豋VAC P赝KAZY A OBJEKTY
-
-
- Form醫 mazac韍o pkazu d je n醩leduj韈:
-
- [桧slo] d objekt NEBO d [桧slo] objekt
- Kde:
- 桧slo - ud醰 kolikr醫 se pkaz vykon (voliteln, v齝hoz=1).
- d - je pkaz maz醤.
- objekt - ud醰 na 鑕m se pkaz vykon醰 (vypsan n頌e).
-
- Kr醫k v齪is objekt:
- w - od kurzoru do konce slova, v鑕tn mezer.
- e - od kurzoru do konce slova, BEZ mezer.
- $ - od kurzoru do konce dku.
-
-POZN罬KA: Stla鑕n韒 kl醰esy objektu v Norm醠n韒 m骴u se kurzor p鴈sune na
- m韘to up鴈sn靚 ve v齪isu objekt.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.4: V軯IMKA Z 'P赝KAZ-OBJEKT'
-
-
- ** Naps醤韒 dd sma瀍 cel dek. **
-
- Vzhledem k 鑑stosti maz醤 cel閔o dku se auto鴌 Vimu rozhodli, 瀍 bude
- jednodu氻 napsat prost dv d k smaz醤 cel閔o dku.
-
- 1. P鴈su kurzor na druh dek spodn韍o textu.
- 2. Napi dd pro smaz醤 dku.
- 3. P鴈jdi na 鑤vrt dek.
- 4. Napi 2dd (vzpome si 桧slo-pkaz-objekt) pro smaz醤 dvou dk.
-
- 1) R鶠e jsou 鑕rven,
- 2) Bl醫o je z醔avn,
- 3) Fialky jsou modr,
- 4) M醡 auto,
- 5) Hodinky ukazuj 鑑s,
- 6) Cukr je sladk,
- 7) A to jsi i ty.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.5: P赝KAZ UNDO
-
-
- ** Stla u pro vr醕en posledn韍o pkazu, U pro celou dku. **
-
- 1. P鴈su kurzor n頌e na dek ozna鑕n ---> a p鴈m韘ti ho na prvn chybu.
- 2. Napi x pro smaz醤 prvn韍o necht靚閔o znaku.
- 3. Te napi u 桧m vr醫須 zp靦 posledn vykonan pkaz.
- 4. Nyn oprav v歟chny chyby na dku pomoc pkazu x .
- 5. Napi velk U 桧m vr醫須 dek do p鵹odn韍o stavu.
- 6. Te napi u n靕olikr醫, 桧m vr醫須 zp靦 pkaz U .
- 7. Stla CTRL-R (kl醰esu CTRL dr stla鑕nou a stiskni R) n靕olikr醫,
- 桧m vr醫須 zp靦 p鴈dt韒 vr醕en pkazy (redo).
-
----> Opprav chybby nna toomto dku a nahra je pommoc undo.
-
- 8. Toto jsou velmi u瀒te鑞 pkazy. Nyn p鴈jdi na souhrn Lekce 2.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 2
-
-
- 1. Pro smaz醤 znak od kurzoru do konce slova napi: dw
-
- 2. Pro smaz醤 znak od kurzoru do konce dku napi: d$
-
- 3. Pro smaz醤 cel閔o dku napi: dd
-
- 4. Form醫 pkazu v Norm醠n韒 m骴u je:
-
- [桧slo] pkaz objekt NEBO pkaz [桧slo] objekt
- kde:
- 桧slo - ud醰 po鑕t opakov醤 pkazu
- pkaz - ud醰 co je t鴈ba vykonat, napklad d ma瀍
- objekt - ud醰 rozsah pkazu, napklad w (slovo),
- $ (do konce dku), atd.
-
- 5. Pro vr醕en p鴈de歭 鑙nnosti, napi: u (mal u)
- Pro vr醕en v歟ch 鷓rav na dku napi: U (velk U)
- Pro vr醕en vr醕en齝h 鷓rav (redo) napi: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.1: P赝KAZ VLO嶪T
-
-
- ** Pka p vlo烅 posledn vymazan text za kurzor. **
-
- 1. P鴈su kurzor n頌e na posledn dek textu.
-
- 2. Napi dd pro smaz醤 dku a jeho ulo瀍n do bufferu.
-
- 3. P鴈su kurzor V輮E tam, kam smazan dek pat.
-
- 4. V Norm醠n韒 m骴u napi p pro op靦n vlo瀍n dku.
-
- 5. Opakuj kroky 2 a 4 dokud dky nebudou ve spr醰n閙 po鴄d.
-
- d) Tak se dok釣e vzd靗醰at?
- b) Fialky jsou modr,
- c) Inteligence se u桧,
- a) R鶠e jsou 鑕rven,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.2: P赝KAZ NAHRAZEN
-
-
- ** Naps醤韒 r a znaku se nahrad znak pod kurzorem. **
-
- 1. P鴈su kurzor n頌e na prvn dek ozna鑕n --->.
-
- 2. P鴈su kurzor na za栳tek prvn chyby.
-
- 3. Napi r a potom znak, kter nahrad chybu.
-
- 4. Opakuj kroky 2 a 3 dokud nen prvn dka spr醰n.
-
----> Kdi byl pz醤 tento deg, n靕du stla瀒l 歱aqn kl醰esy!
----> Kdy byl ps醤 tento dek, n靕do stla桧l 歱atn kl醰esy!
-
- 5. Nyn p鴈jdi na Lekci 3.2.
-
-POZN罬KA: Zapamatuj si, 瀍 by ses m靗 u鑙t pou烅v醤韒, ne zapamatov醤韒.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.3: P赝KAZ 赑RAVY
-
-
- ** Pokud chce zm靚it 栳st nebo cel slovo, napi cw . **
-
- 1. P鴈su kurzor n頌e na prvn dek ozna鑕n --->.
-
- 2. Um韘ti kurzor na p韘meno i v slov 鴌漮k.
-
- 3. Napi cw a oprav slovo (v tomto ppad napi '醖ek'.)
-
- 4. Stla <ESC> a p鴈jdi na dal氻 chybu (prvn znak, kter t鴈ba zm靚it.)
-
- 5. Opakuj kroky 3 a 4 dokud nen prvn v靦a stejn jako ta druh.
-
----> Tento 鴌漮k m n靕olik skic, kter psadoinsa zm靚it pasdgf pkazu.
----> Tento dek m n靕olik slov, kter pot鴈buj zm靚it pomoc pkazu.
-
-V歩mni si, 瀍 cw nejen nahrazuje slovo, ale tak p鴈m韘t do vkl醖醤.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.4: V虲E ZM蘊 POU嶪T蚆 c
-
-
- ** Pkaz pro 鷓ravu se dru烅 se stejn齧i objekty jako ten pro maz醤. **
-
- 1. Pkaz pro 鷓ravu pracuje stejn jako pro maz醤. Form醫 je:
-
- [桧slo] c objekt NEBO c [桧slo] objekt
-
- 2. Objekty jsou tak shodn, jako nap.: w (slovo), $ (konec dku), atd.
-
- 3. P鴈jdi n頌e na prvn dek ozna鑕n --->.
-
- 4. P鴈su kurzor na prvn rozd韑.
-
- 5. Napi c$ pro upraven zbytku dku podle toho druh閔o a stla <ESC>.
-
----> Konec tohoto dku pot鴈buje pomoc, aby byl jako ten druh.
----> Konec tohoto dku pot鴈buje opravit pou瀒t韒 pkazu c$ .
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 3
-
-
- 1. Pro vlo瀍n textu, kter byl smaz醤, napi p . To vlo烅 smazan text
- ZA kurzor (pokud byl dek smazan, p鴈jde na dek pod kurzorem).
-
- 2. Pro nahrazen znaku pod kurzorem, napi r a potom znak, kter齧
- chce p鵹odn znak nahradit.
-
- 3. Pkaz na upravov醤 umo烌uje zm靚it specifikovan objekt od kurzoru
- do konce objektu. Napklad: Napi cw ,桧m zm靚須 text od pozice
- kurzoru do konce slova, c$ zm靚 text do konce dku.
-
- 4. Form醫 pro nahrazov醤 je:
-
- [桧slo] c objekt NEBO c [桧slo] objekt
-
-Nyn p鴈jdi na n醩leduj韈 lekci.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.1: POZICE A STATUS SOUBORU
-
-
- ** Stla CTRL-g pro zobrazen sv pozice v souboru a statusu souboru.
- Stla SHIFT-G pro p鴈chod na dek v souboru. **
-
- Pozn醡ka: P鴈鑤i si celou lekci ne za鑞e vykon醰at kroky!!
-
- 1. Dr kl醰esu Ctrl stla鑕nou a stiskni g . Vespod obrazovky se zobraz
- stavov dek s n醶vem souboru a dkou na kter se nach醶須. Zapamatuj
- si 桧slo dku pro krok 3.
-
- 2. Stla shift-G pro p鴈sun na konec souboru.
-
- 3. Napi 桧slo dku na kter閙 si se nach醶el a stla shift-G. To t
- vr醫 na dek, na kter閙 jsi dve stiskl Ctrl-g.
- (Kdy p須e 桧sla, tak se NEZOBRAZUJ na obrazovce.)
-
- 4. Pokud se c韙須 schopn vykonat tyto kroky, vykonej je.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.2: P赝KAZ VYHLED罺罭
-
-
- ** Napi / n醩ledovan 鴈t靭cem pro vyhled醤 onoho 鴈t靭ce. **
-
- 1. Stiskni / v Norm醠n韒 m骴u. V歩mni si, 瀍 tento znak se spolu s
- kurzorem zobraz v doln 栳sti obrazovky jako pkaz : .
-
- 2. Nyn napi 'chhybba' <ENTER>. To je slovo, kter chce vyhledat.
-
- 3. Pro vyhled醤 dal氻ho v齭ledku stejn閔o 鴈t靭ce, jednodu歟 stla n .
- Pro vyhled醤 dal氻ho v齭ledku stejn閔o 鴈t靭ce opa鑞齧 sm靣em, stiskni
- Shift-N.
-
- 4. Pokud chce vyhledat 鴈t靭ec v opa鑞閙 sm靣u, pou瀒j pkaz ? m韘to
- pkazu / .
-
----> "chhybba" nen zp鵶ob, jak hl醩kovat chyba; chhybba je chyba.
-
-Pozn醡ka: Kdy vyhled醰醤 dos醜ne konce souboru, bude pokra鑟vat na jeho
- za栳tku.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.3: VYHLED罺罭 P罵OV Z罺ORKY
-
-
- ** Napi % pro nalezen p醨ov ),], nebo } . **
-
- 1. P鴈m韘ti kurzor na kteroukoli (, [, nebo { v dku ozna鑕n閙 --->.
-
- 2. Nyn napi znak % .
-
- 3. Kurzor se p鴈m韘t na odpov韉aj韈 z醰orku.
-
- 4. Stla % pro p鴈sun kurzoru zp靦 na otv韗aj韈 z醰orku.
-
----> Toto ( je testovac dek ('s, ['s ] a {'s } v n靘. ))
-
-Pozn醡ka: Toto je velmi u瀒te鑞 p lad靚 programu s chyb靔韈韒i
- uzav韗ac韒i z醰orkami.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.4: ZP賁OB JAK ZM蘊IT CHYBY
-
-
- ** Napi :s/star/nov/g pro nahrazen slova 'nov' za 'star'. **
-
- 1. P鴈su kurzor na dek ozna鑕n --->.
-
- 2. Napi :s/dobr殚/dobr <ENTER> . V歩mni si, 瀍 tento pkaz zm靚 pouze
- prvn v齭kyt v dku.
-
- 3. Nyn napi :s/dobr殚/dobr/g co znamen celkov nahrazen v dku.
- Toto nahrad v歟chny v齭kyty v dku.
-
----> dobr殚 suroviny a dobr殚 n徼in jsou z醟ladem dobr殚 kuchyn.
-
- 4. Pro zm靚u v歟ch v齭kyt 鴈t靭ce mezi dv靘a dky,
- Napi :#,#s/star/nov/g kde #,# jsou 桧sla on靋h dek.
- Napi :%s/star/nov/g pro zm靚u v歟ch v齭kyt v cel閙 souboru.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 4
-
-
- 1. Ctrl-g vyp須e tvou pozici v souboru a status souboru.
- Shift-G t p鴈m韘t na konec souboru. 软slo n醩ledovan
- Shift-G t p鴈sune na dan 桧slo dku.
-
- 2. Naps醤 / n醩ledovan 鴈t靭cem vyhled 鴈t靭ec sm靣em DOP谽DU.
- Naps醤 ? n醩ledovan 鴈t靭cem vyhled 鴈t靭ec sm靣em DOZADU.
- Naps醤 n po vyhled醰醤 najde n醩leduj韈 v齭kyt 鴈t靭ce ve stejn閙
- sm靣u, Shift-N ve sm靣u opa鑞閙.
-
- 3. Stisknut % kdy je kurzor na (,),[,],{, nebo } najde odpov韉aj韈
- p醨ovou z醰orku.
-
- 4. Pro nahrazen nov閔o za prvn star v dku napi :s/star/nov
- Pro nahrazen nov閔o za v歟chny star v dku napi :s/star/nov/g
- Pro nahrazen 鴈t靭c mezi dv靘i dkami # napi :#,#s/star/nov/g
- Pro nahrazen v歟ch v齭kyt v souboru napi :%s/star/nov/g
- Pro potvrzen ka瀌閔o nahrazen p鴌dej 'c' :%s/star/nov/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.1: JAK VYKONAT VN蘆娡 P赝KAZ
-
-
- ** Napi :! n醩ledovan vn靔氻m pkazem pro spu歵靚 pkazu. **
-
- 1. Napi obvykl pkaz : , kter um韘t kurzor na spodek obrazovky
- To umo瀗 napsat pkaz.
-
- 2. Nyn stiskni ! (vyk鴌鑞韐). To umo瀗 vykonat jak齥oliv vn靔氻
- pkaz z pkazov閔o dku.
-
- 3. Napklad napi ls za ! a stiskni <ENTER>. Tento pkaz zobraz
- obsah tv閔o adres狲e jako v pkazov閙 dku.
- Vyzkou歟j :!dir pokud ls nefunguje.
-
-Pozn醡ka: Takto je mo瀗 vykonat jak齥oliv pkaz.
-
-Pozn醡ka: V歟chny pkazy : mus b齮 dokon鑕n stisknut韒 <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.2: V虲E O UKL罝罭 SOUBOR
-
-
- ** Pro ulo瀍n zm靚 v souboru napi :w SOUBOR. **
-
- 1. Napi :!dir nebo :!ls pro v齪is aktu醠n韍o adres狲e.
- U v須, 瀍 za t韒to mus須 stisknout <ENTER>.
-
- 2. Vyber si n醶ev souboru, kter je歵 neexistuje, napklad TEST.
-
- 3. Nyn napi: :w TEST (kde TEST je vybran n醶ev souboru.)
-
- 4. To ulo烅 cel soubor (V齯ka Vimu) pod n醶vem TEST.
- Pro ov禅en napi znovu :!dir , 桧m zobraz須 obsah adres狲e.
-
-Pozn醡ka: Jakmile ukon桧 Vim a znovu ho spust須 s n醶vem souboru TEST,
- soubor bude p鴈sn kopie v齯ky, kdy si ji ukl醖al.
-
- 5. Nyn odstra soubor naps醤韒 (MS-DOS): :!del TEST
- nebo (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.3: V軧蘎OV P赝KAZ ULO嶦N
-
-
- ** Pro ulo瀍n 栳sti souboru napi :#,# w SOUBOR **
-
- 1. Je歵 jednou napi :!dir nebo :!ls pro v齪is aktu醠n韍o adres狲e
- a vyber vhodn n醶ev souboru jako nap. TEST.
-
- 2. P鴈su kurzor na vrch t閠o str醤ky a stiskni Ctrl-g pro zobrazen
- 桧sla dku. ZAPAMATUJ SI TOTO 韧SLO!
-
- 3. Nyn se p鴈su na spodek t閠o str醤ky a op靦 stiskni Ctrl-g.
- ZAPAMATUJ SI I 韧SLO TOHOTO 亓DKU!
-
- 4. Pro ulo瀍n POUZE 栳sti souboru, napi :#,# w TEST kde #,# jsou
- 桧sla dvou zapamatovan齝h dk (vrch, spodek) a TEST je n醶ev souboru.
-
- 5. Znova se ujisti, 瀍 tam ten soubor je pomoc :!dir ale NEODSTRA襏J ho.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.4: SLU萇V罭 SOUBOR
-
-
- ** K vlo瀍n obsahu souboru napi :r N罿EV_SOUBORU **
-
- 1. Napi :!dir pro uji歵靚, 瀍 soubor TEST st醠e existuje.
-
- 2. P鴈su kurzor na vrch t閠o str醤ky.
-
-POZN罬KA: Po vykon醤 kroku 3 uvid須 lekci 5.3. Potom se op靦 p鴈su dol
- na tuto lekci.
-
- 3. Nyn vlo soubor TEST pou瀒t韒 pkazu :r TEST kde TEST je n醶ev
- souboru.
-
-POZN罬KA: Soubor, kter vkl醖釟 se vlo烅 od m韘ta, kde se nach醶 kurzor.
-
- 4. Pro potvrzen vlo瀍n souboru, p鴈su kurzor zp靦 a v歩mni si, 瀍 te
- m釟 dv kopie lekce 5.3, origin醠 a souborovou verzi.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT LEKCE 5
-
-
- 1. :!pkaz vykon vn靔氻 pkaz.
-
- N靕ter u瀒te鑞 pklady jsou:
- (MS-DOS) (Unix)
- :!dir :!ls - zobraz obsah souboru.
- :!del SOUBOR :!rm SOUBOR - odstran SOUBOR.
-
- 2. :w SOUBOR ulo烅 aktu醠n text jako SOUBOR na disk.
-
- 3. :#,#w SOUBOR ulo烅 dky od # do # do SOUBORU.
-
- 4. :r SOUBOR vybere z disku SOUBOR a vlo烅 ho do editovan閔o souboru
- za pozici kurzoru.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.1: P赝KAZ OTEV赝T
-
-
- ** Napi o pro vlo瀍n dku pod kurzor a p鴈pnut do Vkl醖ac韍o m骴u. **
-
- 1. P鴈m韘ti kurzor n頌e na dek ozna鑕n --->.
-
- 2. Napi o (mal) pro vlo瀍n dku POD kurzor a p鴈pnut do
- Vkl醖ac韍o m骴u.
-
- 3. Nyn zkop韗uj dek ozna鑕n ---> a stiskni <ESC> pro ukon鑕n
- Vkl醖ac韍o m骴u.
-
----> Po stisknut o se kurzor p鴈m韘t na vlo瀍n dek do Vkl醖ac韍o
- m骴u.
-
- 4. Pro otev鴈n dku NAD kurzorem jednodu歟 napi velk O , m韘to
- mal閔o o. Vyzkou歟j si to na n醩leduj韈韒 dku.
-Vlo dek nad t韒to naps醤韒 Shift-O po um韘t靚 kurzoru na tento dek.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.2: P赝KAZ P豂DAT
-
-
- ** Stiskni a pro vlo瀍n textu ZA kurzor. **
-
- 1. P鴈su kurzor na n頌e na konec dky ozna鑕n --->
- stisknut韒 $ v Norm醠n韒 m骴u.
-
- 2. Stiskni a (mal) pro p鴌d醤 textu ZA znak, kter je pod kurzorem.
- (Velk A p鴌d na konec dku.)
-
-Pozn醡ka: T韒to se vyhne stisknut i , posledn韍o znaku, textu na vlo瀍n,
- <ESC>, kurzor doprava, a nakonec x na p鴌d醰醤 na konec dku!
-
- 3. Nyn dokon桧 prvn dek. V歩mni si, 瀍 p鴌d醰醤 je vlastn stejn jako
- Vkl醖ac m骴, krom m韘ta, kam se text vkl醖.
-
----> Tento dek ti umo烌uje nacvi鑙t
----> Tento dek ti umo烌uje nacvi鑙t p鴌d醰醤 textu na konec dky.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.3: JIN ZP賁OB NAHRAZOV罭
-
-
- ** Napi velk R pro nahrazen v韈 ne jednoho znaku. **
-
- 1. P鴈su kurzor na prvn dek ozna鑕n --->.
-
- 2. Um韘ti kurzor na za栳tek prvn韍o slova, kter je odli歯 od druh閔o
- dku ozna鑕n閔o ---> (slovo 'posledn').
-
- 3. Nyn stiskni R a nahra zbytek textu na prvn韒 dku p鴈ps醤韒
- star閔o textu tak, aby byl prvn dek stejn jako ten druh.
-
----> Pro upraven prvn韍o dku do tvaru toho posledn na stran pou瀒j kl.
----> Pro upraven prvn韍o dku do tvaru toho druh閔o, napi R a nov text.
-
- 4. V歩mni si, 瀍 jakmile stiskne <ESC> v歟chen nezm靚靚 text z鵶t醰.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.4: NASTAVEN MO嶯OST
-
- ** Nastav mo瀗ost, 瀍 vyhled醰醤 anebo nahrazov醤 nedb velikosti p韘men **
-
- 1. Vyhledej 鴈t靭ec 'ignore' naps醤韒:
- /ignore
- Zopakuj n靕olikr醫 stisknut kl醰esy n.
-
- 2. Nastav mo瀗ost 'ic' (Ignore case) naps醤韒 pkazu:
- :set ic
-
- 3. Nyn znovu vyhledej 'ignore' stisknut韒: n
- N靕olikr醫 hled醤 zopakuj stisknut韒 kl醰esy n.
-
- 4. Nastav mo瀗osti 'hlsearch' a 'incsearch':
- :set hls is
-
- 5. Nyn znovu vykonej vyhled醰ac pkaz a sleduj, co se stane:
- /ignore
-
- 6. Pro vypnut zv齬az騩v醤 v齭ledk napi:
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRHNUT LEKCE 6
-
-
- 1. Stisknut o otev鴈 nov dek POD kurzorem a um韘t kurzor na vlo瀍n
- dek do Vkl醖ac韍o m骴u.
- Naps醤 velk閔o O otev鴈 dek NAD dkem, na kter閙 je kurzor.
-
- 2. Stiskni a pro vlo瀍n textu ZA znak na pozici kurzoru.
- Naps醤 velk閔o A automaticky p鴌d text na konec dku.
-
- 3. Stisknut velk閔o R p鴈pne do Nahrazovac韍o m骴u, dokud
- nestiskne <ESC> pro jeho ukon鑕n.
-
- 4. Naps醤 ":set xxx" nastav mo瀗osti "xxx".
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCE 7: P赝KAZY ON-LINE N罰OV藾Y
-
-
- ** Pou烅vej on-line syst閙 n醦ov靌y **
-
- Vim m obs醜l on-line syst閙 n醦ov靌y. Pro za栳tek vyzkou歟j jeden z
- n醩leduj韈韈h:
- - stiskni kl醰esu <HELP> (pokud ji m釟)
- - stiskni kl醰esu <F1> (pokud ji m釟)
- - napi :help <ENTER>
-
- Napi :q <ENTER> pro uzav鴈n okna n醦ov靌y.
-
- M鶠e naj韙 n醦ov靌u k jak閙ukoliv t閙atu p鴌d醤韒 argumentu k
- pkazu ":help". Zkus tyto (nezapome stisknout <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCE 8: VYTVO谽N INICIALIZA萅虷O SKRIPTU
-
- ** Zapni funkce editoru Vim **
-
- Vim m daleko v韈e funkc ne Vi, ale v靦歩na z nich je vypnuta ve v齝hoz韒
- nastaven. Pro zapnut n靕ter齝h vytvo soubor "vimrc".
-
- 1. Za鑞i upravovat soubor "vimrc". Toto z醰is na pou瀒t閙 syst閙u:
- :edit ~/.vimrc pro Unix
- :edit $VIM/_vimrc pro MS-Windows
-
- 2. Nyn 鑤i uk醶kov "vimrc" soubor:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Ulo soubor pomoc:
-
- :write
-
- Po p歵韒 startu Vim se zapne zv齬az騩v醤 syntaxe.
- Do souboru "vimrc" m鶠e p鴌dat v歟chny svoje up鴈dnost騩van nastaven.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Toto ukon鑥je v齯ku Vim, kter byla my歭en jako stru鑞 p鴈hled
- editoru Vim, tak akor醫 posta鑥j韈 pro lehk a obstojn pou烅v醤 editoru.
- Tato v齯ka m daleko od 鷓lnosti, proto瀍 Vim obsahuje podstatn v韈e
- pkaz. D醠e si p鴈鑤i u瀒vatelsk manu醠: ":help user-manual".
-
- Pro dal氻 studium je doporu鑕n kniha:
- Vim - Vi Improved - od Steve Oualline
- Nakladatel: New Riders
- Prvn kniha ur鑕n pro Vim. Obzvl釟t vhodn pro za栳te鑞韐y.
- Obsahuje mno瀞tv pklad a obr醶k.
- viz http://iccf-holland.org/click5.html
-
- Tato kniha je star氻 a v韈e v靚ovan Vi ne Vim, ale tak doporu鑕n:
- Learning the Vi Editor - od Linda Lamb
- Nakladatel: O'Reilly & Associates Inc.
- Je to dobr kniha pro z韘k醤 v靌omost t閙禅 o v歟m, co m鶠ete s Vi d靗at.
- 奺st vyd醤 obsahuje t闉 informace o Vim.
-
- Tato v齯ka byla napsan autory Michael C. Pierce a Robert K. Ware,
- Colorado School of Mines s pou瀒t韒 my歭enek od: Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Upravil pro Vim: Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- P鴈klad do 鑕歵iny: Lubo Turek
- E-Mail: lubos.turek@gmail.com
- 2007 Feb 28
diff --git a/runtime/tutor/tutor.cs.utf-8 b/runtime/tutor/tutor.cs.utf-8
deleted file mode 100644
index c880d6df5..000000000
--- a/runtime/tutor/tutor.cs.utf-8
+++ /dev/null
@@ -1,812 +0,0 @@
-===============================================================================
-= V 铆 t e j t e v t u t o r i a l u V I M - Verze 1.5 =
-===============================================================================
-
- Vim je velmi v媒konn媒 editor, kter媒 m谩 p艡铆li拧 mnoho p艡铆kaz暖 na to, aby
- mohly b媒t v拧echny vysv臎tlen茅 ve v媒uce jako tato. Tato v媒uka obsahuje
- dostate膷n茅 mno啪stv铆 p艡铆kaz暖 na to, aby bylo mo啪n茅 pou啪铆vat Vim jako
- v铆ce煤膷elov媒 editor.
-
- P艡ibli啪n媒 膷as pot艡ebn媒 ke zvl谩dnut铆 t茅to v媒uky je 25-30 minut, z谩le啪铆
- na tom, kolik 膷asu str谩v铆te p艡ezku拧ov谩n铆m.
-
- P艡铆kazy v lekc铆ch upravuj铆 text. Vytvo艡 kopii tohoto souboru pro
- procvi膷ov谩n铆 (p艡i startu "vimtutor" je ji啪 toto kopie).
-
- Je d暖le啪it茅 pamatovat, 啪e tato v媒uka je vytvo艡ena pro v媒uku pou啪铆v谩n铆m.
- To znamen谩, 啪e je pot艡eba si p艡铆kazy vyzkou拧et pro jejich spr谩vn茅
- nau膷en铆. Pokud si jen 膷te拧 text, p艡铆kazy zapomene拧!
-
- Nyn铆 se p艡esv臎d膷te, 啪e Shift-Lock NEN脥 stla膷en媒 a n臎kolikr谩t stiskn臎te
- kl谩vesu j aby se kurzor posunul natolik, 啪e lekce 1.1 zapln铆 celou
- obrazovku.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.1: POHYB KURZORU
-
-
- ** Pro pohyb kurzoru pou啪铆vej kl谩vesy h,j,k,l jak je zn谩zorn臎no n铆啪e. **
- ^
- k Funkce: Kl谩vesa h je vlevo a vykon谩 pohyb vlevo.
- < h l > Kl谩vesa l je vpravo a vykon谩 pohyb vpravo.
- j Kl谩vesa j vypad谩 na 拧ipku dolu.
- v
- 1. Pohybuj kurzorem po obrazovce dokud si na to nezvykne拧.
-
- 2. Dr啪 kl谩vesu pro pohyb dolu (j), dokud se jej铆 funkce nezopakuje.
----> Te膹 v铆拧 jak se p艡esunout na n谩sleduj铆c铆 lekci.
-
- 3. Pou啪it铆m kl谩vesy dolu p艡ejdi na lekci 1.2.
-
-Pozn谩mka: Pokud si n臎kdy nejsi jist n臎膷铆m, co jsi napsal, stla膷 <ESC> pro
- p艡echod do Norm谩ln铆ho m贸du. Pot茅 p艡epi拧 po啪adovan媒 p艡铆kaz.
-
-Pozn谩mka: Kurzorov茅 kl谩vesy tak茅 funguj铆, av拧ak pou啪铆v谩n铆 hjkl je rychlej拧铆
- jakmile si na n臎j zvykne拧.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.2: SPU艩T臍N脥 A UKON膶EN脥 VIM
-
-
- !! POZN脕MKA: P艡ed vykon谩n铆m t臎chto krok暖 si p艡e膷ti celou lekci!!
-
- 1. Stla膷 <ESC> (pro uji拧t臎n铆, 啪e se nach谩z铆拧 v Norm谩ln铆m m贸du).
-
- 2. Napi拧: :q! <ENTER>.
-
----> T铆mto ukon膷铆拧 editor BEZ ulo啪en铆 zm臎n, kter茅 si vykonal.
- Pokud chce拧 ulo啪it zm臎ny a ukon膷it editor napi拧:
- :wq <ENTER>
-
- 3. A啪 se dostane拧 na p艡铆kazov媒 艡谩dek, napi拧 p艡铆kaz, kter媒m se dostane拧 zp臎t
- do t茅to v媒uky. To m暖啪e b媒t: vimtutor <ENTER>
- B臎啪n臎 se pou啪铆v谩: vim tutor <ENTER>
-
----> 'vim' znamen谩 spu拧t臎n铆 editoru, 'tutor' je soubor k editaci.
-
- 4. Pokud si tyto kroky spolehliv臎 pamatuje拧, vykonej kroky 1 a啪 3, 膷铆m啪
- ukon膷铆拧 a znovu spust铆拧 editor. Potom p艡esu艌 kurzor dolu na lekci 1.3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.3: 脷PRAVA TEXTU - MAZ脕N脥
-
-
- ** Stisknut铆m kl谩vesy x v Norm谩ln铆m m贸du sma啪e拧 znak na m铆st臎 kurzoru. **
-
- 1. P艡esu艌 kurzor n铆啪e na 艡谩dek ozna膷en媒 --->.
-
- 2. K odstran臎n铆 chyb p艡ejdi kurzorem na znak, kter媒 chce拧 smazat.
-
- 3. Stla膷 kl谩vesu x k odstran臎n铆 necht臎n媒ch znak暖.
-
- 4. Opakuj kroky 2 a啪 4 dokud nen铆 v臎ta spr谩vn臎.
-
----> Kr谩谩va sko膷膷illa p艡ess m臎ss铆c.
-
- 5. Pokud je v臎ta spr谩vn臎, p艡ejdi na lekci 1.4.
-
-POZN脕MKA: Nesna啪 se pouze zapamatovat p艡edv谩d臎n茅 p艡铆kazy, u膷 se je pou啪铆v谩n铆m.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 1.4: 脷PRAVA TEXTU - VKL脕D脕N脥
-
-
- ** Stla膷en铆 kl谩vesy i v Norm谩ln铆m m贸du umo啪艌uje vkl谩d谩n铆 textu. **
-
- 1. P艡esu艌 kurzor na prvn铆 艡谩dek ozna膷en媒 --->.
-
- 2. Pro upraven铆 prvn铆ho 艡谩dku do podoby 艡谩dku druh茅ho, p艡esu艌 kurzor na
- prvn铆 znak za m铆sto, kde m谩 b媒t text vlo啪en媒.
-
- 3. Stla膷 i a napi拧 pot艡ebn媒 dodatek.
-
- 4. Po opraven铆 ka啪d茅 chyby stla膷 <ESC> pro n谩vrat do Norm谩ln铆ho m贸du.
- Opakuj kroky 2 a啪 4 dokud nen铆 v臎ta spr谩vn臎.
-
----> N臎jak媒 txt na t茅to .
----> N臎jak媒 text chyb铆 na t茅to 艡谩dce.
-
- 5. Pokud ji啪 ovl谩d谩拧 vkl谩d谩n铆 textu, p艡ejdi na n谩sleduj铆c铆 shrnut铆.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT脥 LEKCE 1
-
-
- 1. Kurzorem se pohybuje pomoc铆 拧ipek nebo kl谩vesami hjkl.
- h (vlevo) j (dolu) k (nahoru) l (vpravo)
-
- 2. Pro spu拧t臎n铆 Vimu (z p艡铆kazov茅ho 艡谩dku) napi拧: vim SOUBOR <ENTER>
-
- 3. Pro ukon膷en铆 Vimu napi拧: <ESC> :q! <ENTER> bez ulo啪en铆 zm臎n.
- anebo: <ESC> :wq <ENTER> pro ulo啪en铆 zm臎n.
-
- 4. Pro smaz谩n铆 znaku pod kurzorem napi拧 v Norm谩ln铆m m贸du: x
-
- 5. Pro vkl谩d谩n铆 textu od m铆sta kurzoru napi拧 v Norm谩ln铆m m贸du:
- i vkl谩dan媒 text <ESC>
-
-POZN脕MKA: Stla膷en铆 <ESC> t臎 p艡em铆st铆 do Norm谩ln铆ho m贸du nebo zru拧铆 necht臎n媒
- a 膷谩ste膷n臎 dokon膷en媒 p艡铆kaz.
-
-Nyn铆 pokra膷uj Lekc铆 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.1: P艠脥KAZY MAZ脕N脥
-
-
- ** P艡铆kaz dw sma啪e znaky do konce slova. **
-
- 1. Stla膷 <ESC> k ubezpe膷en铆, 啪e jsi v Norm谩ln铆m m贸du.
-
- 2. P艡esu艌 kurzor n铆啪e na 艡谩dek ozna膷en媒 --->.
-
- 3. P艡esu艌 kurzor na za膷谩tek slova, kter茅 je pot艡eba smazat.
-
- 4. Napi拧 dw , aby slovo zmizelo.
-
-POZN脕MKA: P铆smena dw se zobraz铆 na posledn铆m 艡谩dku obrazovky jakmile je
- nap铆拧e拧. Kdy啪 nap铆拧e拧 n臎co 拧patn臎, stla膷 <ESC> a za膷ni znova.
-
----> Jsou tu n臎jak谩 slova z谩bava, kter谩 nepat艡铆 list do t茅to v臎ty.
-
- 5. Opakuj kroky 3 a啪 4 dokud nen铆 v臎ta spr谩vn臎 a p艡ejdi na lekci 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.2: V脥CE P艠脥KAZ女 MAZ脕N脥
-
-
- ** Naps谩n铆 p艡铆kazu d$ sma啪e v拧e a啪 do konce 艡谩dky. **
-
- 1. Stla膷 <ESC> k ubezpe膷en铆, 啪e jsi v Norm谩ln铆m m贸du.
-
- 2. P艡esu艌 kurzor n铆啪e na 艡谩dek ozna膷en媒 --->.
-
- 3. P艡esu艌 kurzor na konec spr谩vn茅 v臎ty (ZA prvn铆 te膷ku).
-
- 4. Napi拧 d$ ,aby jsi smazal znaky a啪 do konce 艡谩dku.
-
----> N臎kdo napsal konec t茅to v臎ty dvakr谩t. konec t茅to v臎ty dvakr谩t.
-
-
- 5. P艡ejdi na lekci 2.3 pro pochopen铆 toho, co se stalo.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.3: ROZ艩I艠OVAC脥 P艠脥KAZY A OBJEKTY
-
-
- Form谩t mazac铆ho p艡铆kazu d je n谩sleduj铆c铆:
-
- [膷铆slo] d objekt NEBO d [膷铆slo] objekt
- Kde:
- 膷铆slo - ud谩v谩 kolikr谩t se p艡铆kaz vykon谩 (voliteln茅, v媒choz铆=1).
- d - je p艡铆kaz maz谩n铆.
- objekt - ud谩v谩 na 膷em se p艡铆kaz vykon谩v谩 (vypsan茅 n铆啪e).
-
- Kr谩tk媒 v媒pis objekt暖:
- w - od kurzoru do konce slova, v膷etn臎 mezer.
- e - od kurzoru do konce slova, BEZ mezer.
- $ - od kurzoru do konce 艡谩dku.
-
-POZN脕MKA: Stla膷en铆m kl谩vesy objektu v Norm谩ln铆m m贸du se kurzor p艡esune na
- m铆sto up艡esn臎n茅 ve v媒pisu objekt暖.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.4: V脻JIMKA Z 'P艠脥KAZ-OBJEKT'
-
-
- ** Naps谩n铆m dd sma啪e拧 cel媒 艡谩dek. **
-
- Vzhledem k 膷astosti maz谩n铆 cel茅ho 艡谩dku se auto艡i Vimu rozhodli, 啪e bude
- jednodu拧铆 napsat prost臎 dv臎 d k smaz谩n铆 cel茅ho 艡谩dku.
-
- 1. P艡esu艌 kurzor na druh媒 艡谩dek spodn铆ho textu.
- 2. Napi拧 dd pro smaz谩n铆 艡谩dku.
- 3. P艡ejdi na 膷tvrt媒 艡谩dek.
- 4. Napi拧 2dd (vzpome艌 si 膷铆slo-p艡铆kaz-objekt) pro smaz谩n铆 dvou 艡谩dk暖.
-
- 1) R暖啪e jsou 膷erven茅,
- 2) Bl谩to je z谩bavn茅,
- 3) Fialky jsou modr茅,
- 4) M谩m auto,
- 5) Hodinky ukazuj铆 膷as,
- 6) Cukr je sladk媒,
- 7) A to jsi i ty.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 2.5: P艠脥KAZ UNDO
-
-
- ** Stla膷 u pro vr谩cen铆 posledn铆ho p艡铆kazu, U pro celou 艡谩dku. **
-
- 1. P艡esu艌 kurzor n铆啪e na 艡谩dek ozna膷en媒 ---> a p艡em铆sti ho na prvn铆 chybu.
- 2. Napi拧 x pro smaz谩n铆 prvn铆ho necht臎n茅ho znaku.
- 3. Te膹 napi拧 u 膷铆m啪 vr谩t铆拧 zp臎t posledn铆 vykonan媒 p艡铆kaz.
- 4. Nyn铆 oprav v拧echny chyby na 艡谩dku pomoc铆 p艡铆kazu x .
- 5. Napi拧 velk茅 U 膷铆m啪 vr谩t铆拧 艡谩dek do p暖vodn铆ho stavu.
- 6. Te膹 napi拧 u n臎kolikr谩t, 膷铆m啪 vr谩t铆拧 zp臎t p艡铆kaz U .
- 7. Stla膷 CTRL-R (kl谩vesu CTRL dr啪 stla膷enou a stiskni R) n臎kolikr谩t,
- 膷铆m啪 vr谩t铆拧 zp臎t p艡edt铆m vr谩cen茅 p艡铆kazy (redo).
-
----> Opprav chybby nna toomto 艡谩dku a nahra膹 je pommoc铆 undo.
-
- 8. Toto jsou velmi u啪ite膷n茅 p艡铆kazy. Nyn铆 p艡ejdi na souhrn Lekce 2.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT脥 LEKCE 2
-
-
- 1. Pro smaz谩n铆 znak暖 od kurzoru do konce slova napi拧: dw
-
- 2. Pro smaz谩n铆 znak暖 od kurzoru do konce 艡谩dku napi拧: d$
-
- 3. Pro smaz谩n铆 cel茅ho 艡谩dku napi拧: dd
-
- 4. Form谩t p艡铆kazu v Norm谩ln铆m m贸du je:
-
- [膷铆slo] p艡铆kaz objekt NEBO p艡铆kaz [膷铆slo] objekt
- kde:
- 膷铆slo - ud谩v谩 po膷et opakov谩n铆 p艡铆kazu
- p艡铆kaz - ud谩v谩 co je t艡eba vykonat, nap艡铆klad d ma啪e
- objekt - ud谩v谩 rozsah p艡铆kazu, nap艡铆klad w (slovo),
- $ (do konce 艡谩dku), atd.
-
- 5. Pro vr谩cen铆 p艡ede拧l茅 膷innosti, napi拧: u (mal茅 u)
- Pro vr谩cen铆 v拧ech 煤prav na 艡谩dku napi拧: U (velk茅 U)
- Pro vr谩cen铆 vr谩cen媒ch 煤prav (redo) napi拧: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.1: P艠脥KAZ VLO沤IT
-
-
- ** P艡铆ka p vlo啪铆 posledn铆 vymazan媒 text za kurzor. **
-
- 1. P艡esu艌 kurzor n铆啪e na posledn铆 艡谩dek textu.
-
- 2. Napi拧 dd pro smaz谩n铆 艡谩dku a jeho ulo啪en铆 do bufferu.
-
- 3. P艡esu艌 kurzor V脻艩E tam, kam smazan媒 艡谩dek pat艡铆.
-
- 4. V Norm谩ln铆m m贸du napi拧 p pro op臎tn茅 vlo啪en铆 艡谩dku.
-
- 5. Opakuj kroky 2 a啪 4 dokud 艡谩dky nebudou ve spr谩vn茅m po艡ad铆.
-
- d) Tak茅 se dok谩啪e拧 vzd臎l谩vat?
- b) Fialky jsou modr茅,
- c) Inteligence se u膷铆,
- a) R暖啪e jsou 膷erven茅,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.2: P艠脥KAZ NAHRAZEN脥
-
-
- ** Naps谩n铆m r a znaku se nahrad铆 znak pod kurzorem. **
-
- 1. P艡esu艌 kurzor n铆啪e na prvn铆 艡谩dek ozna膷en媒 --->.
-
- 2. P艡esu艌 kurzor na za膷谩tek prvn铆 chyby.
-
- 3. Napi拧 r a potom znak, kter媒 nahrad铆 chybu.
-
- 4. Opakuj kroky 2 a啪 3 dokud nen铆 prvn铆 艡谩dka spr谩vn臎.
-
----> Kdi啪 byl pz谩n tento 艡谩deg, n臎kdu stla啪il 拧paqn茅 kl谩vesy!
----> Kdy啪 byl ps谩n tento 艡谩dek, n臎kdo stla膷铆l 拧patn茅 kl谩vesy!
-
- 5. Nyn铆 p艡ejdi na Lekci 3.2.
-
-POZN脕MKA: Zapamatuj si, 啪e by ses m臎l u膷it pou啪铆v谩n铆m, ne zapamatov谩n铆m.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.3: P艠脥KAZ 脷PRAVY
-
-
- ** Pokud chce拧 zm臎nit 膷谩st nebo cel茅 slovo, napi拧 cw . **
-
- 1. P艡esu艌 kurzor n铆啪e na prvn铆 艡谩dek ozna膷en媒 --->.
-
- 2. Um铆sti kurzor na p铆smeno i v slov臎 艡i钮ok.
-
- 3. Napi拧 cw a oprav slovo (v tomto p艡铆pad臎 napi拧 '谩dek'.)
-
- 4. Stla膷 <ESC> a p艡ejdi na dal拧铆 chybu (prvn铆 znak, kter媒 t艡eba zm臎nit.)
-
- 5. Opakuj kroky 3 a啪 4 dokud nen铆 prvn铆 v臎ta stejn谩 jako ta druh谩.
-
----> Tento 艡i钮ok m谩 n臎kolik skic, kter茅 psadoinsa zm臎nit pasdgf p艡铆kazu.
----> Tento 艡谩dek m谩 n臎kolik slov, kter茅 pot艡ebuj铆 zm臎nit pomoc铆 p艡铆kazu.
-
-V拧imni si, 啪e cw nejen nahrazuje slovo, ale tak茅 p艡em铆st铆 do vkl谩d谩n铆.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 3.4: V脥CE ZM臍N POU沤IT脥M c
-
-
- ** P艡铆kaz pro 煤pravu se dru啪铆 se stejn媒mi objekty jako ten pro maz谩n铆. **
-
- 1. P艡铆kaz pro 煤pravu pracuje stejn臎 jako pro maz谩n铆. Form谩t je:
-
- [膷铆slo] c objekt NEBO c [膷铆slo] objekt
-
- 2. Objekty jsou tak茅 shodn茅, jako nap艡.: w (slovo), $ (konec 艡谩dku), atd.
-
- 3. P艡ejdi n铆啪e na prvn铆 艡谩dek ozna膷en媒 --->.
-
- 4. P艡esu艌 kurzor na prvn铆 rozd铆l.
-
- 5. Napi拧 c$ pro upraven铆 zbytku 艡谩dku podle toho druh茅ho a stla膷 <ESC>.
-
----> Konec tohoto 艡谩dku pot艡ebuje pomoc, aby byl jako ten druh媒.
----> Konec tohoto 艡谩dku pot艡ebuje opravit pou啪it铆m p艡铆kazu c$ .
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT脥 LEKCE 3
-
-
- 1. Pro vlo啪en铆 textu, kter媒 byl smaz谩n, napi拧 p . To vlo啪铆 smazan媒 text
- ZA kurzor (pokud byl 艡谩dek smazan媒, p艡ejde na 艡谩dek pod kurzorem).
-
- 2. Pro nahrazen铆 znaku pod kurzorem, napi拧 r a potom znak, kter媒m
- chce拧 p暖vodn铆 znak nahradit.
-
- 3. P艡铆kaz na upravov谩n铆 umo啪艌uje zm臎nit specifikovan媒 objekt od kurzoru
- do konce objektu. Nap艡铆klad: Napi拧 cw ,膷铆m啪 zm臎n铆拧 text od pozice
- kurzoru do konce slova, c$ zm臎n铆 text do konce 艡谩dku.
-
- 4. Form谩t pro nahrazov谩n铆 je:
-
- [膷铆slo] c objekt NEBO c [膷铆slo] objekt
-
-Nyn铆 p艡ejdi na n谩sleduj铆c铆 lekci.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.1: POZICE A STATUS SOUBORU
-
-
- ** Stla膷 CTRL-g pro zobrazen铆 sv茅 pozice v souboru a statusu souboru.
- Stla膷 SHIFT-G pro p艡echod na 艡谩dek v souboru. **
-
- Pozn谩mka: P艡e膷ti si celou lekci ne啪 za膷ne拧 vykon谩vat kroky!!
-
- 1. Dr啪 kl谩vesu Ctrl stla膷enou a stiskni g . Vespod obrazovky se zobraz铆
- stavov媒 艡谩dek s n谩zvem souboru a 艡谩dkou na kter茅 se nach谩z铆拧. Zapamatuj
- si 膷铆slo 艡谩dku pro krok 3.
-
- 2. Stla膷 shift-G pro p艡esun na konec souboru.
-
- 3. Napi拧 膷铆slo 艡谩dku na kter茅m si se nach谩zel a stla膷 shift-G. To t臎
- vr谩t铆 na 艡谩dek, na kter茅m jsi d艡铆ve stiskl Ctrl-g.
- (Kdy啪 p铆拧e拧 膷铆sla, tak se NEZOBRAZUJ脥 na obrazovce.)
-
- 4. Pokud se c铆t铆拧 schopn媒 vykonat tyto kroky, vykonej je.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.2: P艠脥KAZ VYHLED脕V脕N脥
-
-
- ** Napi拧 / n谩sledovan茅 艡et臎zcem pro vyhled谩n铆 onoho 艡et臎zce. **
-
- 1. Stiskni / v Norm谩ln铆m m贸du. V拧imni si, 啪e tento znak se spolu s
- kurzorem zobraz铆 v doln铆 膷谩sti obrazovky jako p艡铆kaz : .
-
- 2. Nyn铆 napi拧 'chhybba' <ENTER>. To je slovo, kter茅 chce拧 vyhledat.
-
- 3. Pro vyhled谩n铆 dal拧铆ho v媒sledku stejn茅ho 艡et臎zce, jednodu拧e stla膷 n .
- Pro vyhled谩n铆 dal拧铆ho v媒sledku stejn茅ho 艡et臎zce opa膷n媒m sm臎rem, stiskni
- Shift-N.
-
- 4. Pokud chce拧 vyhledat 艡et臎zec v opa膷n茅m sm臎ru, pou啪ij p艡铆kaz ? m铆sto
- p艡铆kazu / .
-
----> "chhybba" nen铆 zp暖sob, jak hl谩skovat chyba; chhybba je chyba.
-
-Pozn谩mka: Kdy啪 vyhled谩v谩n铆 dos谩hne konce souboru, bude pokra膷ovat na jeho
- za膷谩tku.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.3: VYHLED脕V脕N脥 P脕ROV脡 Z脕VORKY
-
-
- ** Napi拧 % pro nalezen铆 p谩rov茅 ),], nebo } . **
-
- 1. P艡em铆sti kurzor na kteroukoli (, [, nebo { v 艡谩dku ozna膷en茅m --->.
-
- 2. Nyn铆 napi拧 znak % .
-
- 3. Kurzor se p艡em铆st铆 na odpov铆daj铆c铆 z谩vorku.
-
- 4. Stla膷 % pro p艡esun kurzoru zp臎t na otv铆raj铆c铆 z谩vorku.
-
----> Toto ( je testovac铆 艡谩dek ('s, ['s ] a {'s } v n臎m. ))
-
-Pozn谩mka: Toto je velmi u啪ite膷n茅 p艡铆 lad臎n铆 programu s chyb臎j铆c铆mi
- uzav铆rac铆mi z谩vorkami.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 4.4: ZP女SOB JAK ZM臍NIT CHYBY
-
-
- ** Napi拧 :s/star茅/nov茅/g pro nahrazen铆 slova 'nov茅' za 'star茅'. **
-
- 1. P艡esu艌 kurzor na 艡谩dek ozna膷en媒 --->.
-
- 2. Napi拧 :s/dobr茅茅/dobr茅 <ENTER> . V拧imni si, 啪e tento p艡铆kaz zm臎n铆 pouze
- prvn铆 v媒skyt v 艡谩dku.
-
- 3. Nyn铆 napi拧 :s/dobr茅茅/dobr茅/g co啪 znamen谩 celkov茅 nahrazen铆 v 艡谩dku.
- Toto nahrad铆 v拧echny v媒skyty v 艡谩dku.
-
----> dobr茅茅 suroviny a dobr茅茅 n谩膷in铆 jsou z谩kladem dobr茅茅 kuchyn臎.
-
- 4. Pro zm臎nu v拧ech v媒skyt暖 艡et臎zce mezi dv臎ma 艡谩dky,
- Napi拧 :#,#s/star茅/nov茅/g kde #,# jsou 膷铆sla on臎ch 艡谩dek.
- Napi拧 :%s/star茅/nov茅/g pro zm臎nu v拧ech v媒skyt暖 v cel茅m souboru.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT脥 LEKCE 4
-
-
- 1. Ctrl-g vyp铆拧e tvou pozici v souboru a status souboru.
- Shift-G t臎 p艡em铆st铆 na konec souboru. 膶铆slo n谩sledovan茅
- Shift-G t臎 p艡esune na dan茅 膷铆slo 艡谩dku.
-
- 2. Naps谩n铆 / n谩sledovan茅 艡et臎zcem vyhled谩 艡et臎zec sm臎rem DOP艠EDU.
- Naps谩n铆 ? n谩sledovan茅 艡et臎zcem vyhled谩 艡et臎zec sm臎rem DOZADU.
- Naps谩n铆 n po vyhled谩v谩n铆 najde n谩sleduj铆c铆 v媒skyt 艡et臎zce ve stejn茅m
- sm臎ru, Shift-N ve sm臎ru opa膷n茅m.
-
- 3. Stisknut铆 % kdy啪 je kurzor na (,),[,],{, nebo } najde odpov铆daj铆c铆
- p谩rovou z谩vorku.
-
- 4. Pro nahrazen铆 nov茅ho za prvn铆 star媒 v 艡谩dku napi拧 :s/star茅/nov茅
- Pro nahrazen铆 nov茅ho za v拧echny star茅 v 艡谩dku napi拧 :s/star茅/nov茅/g
- Pro nahrazen铆 艡et臎zc暖 mezi dv臎mi 艡谩dkami # napi拧 :#,#s/star茅/nov茅/g
- Pro nahrazen铆 v拧ech v媒skyt暖 v souboru napi拧 :%s/star茅/nov茅/g
- Pro potvrzen铆 ka啪d茅ho nahrazen铆 p艡idej 'c' :%s/star茅/nov茅/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.1: JAK VYKONAT VN臍J艩脥 P艠脥KAZ
-
-
- ** Napi拧 :! n谩sledovan茅 vn臎j拧铆m p艡铆kazem pro spu拧t臎n铆 p艡铆kazu. **
-
- 1. Napi拧 obvykl媒 p艡铆kaz : , kter媒 um铆st铆 kurzor na spodek obrazovky
- To umo啪n铆 napsat p艡铆kaz.
-
- 2. Nyn铆 stiskni ! (vyk艡i膷n铆k). To umo啪n铆 vykonat jak媒koliv vn臎j拧铆
- p艡铆kaz z p艡铆kazov茅ho 艡谩dku.
-
- 3. Nap艡铆klad napi拧 ls za ! a stiskni <ENTER>. Tento p艡铆kaz zobraz铆
- obsah tv茅ho adres谩艡e jako v p艡铆kazov茅m 艡谩dku.
- Vyzkou拧ej :!dir pokud ls nefunguje.
-
-Pozn谩mka: Takto je mo啪n茅 vykonat jak媒koliv p艡铆kaz.
-
-Pozn谩mka: V拧echny p艡铆kazy : mus铆 b媒t dokon膷en茅 stisknut铆m <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.2: V脥CE O UKL脕D脕N脥 SOUBOR女
-
-
- ** Pro ulo啪en铆 zm臎n v souboru napi拧 :w SOUBOR. **
-
- 1. Napi拧 :!dir nebo :!ls pro v媒pis aktu谩ln铆ho adres谩艡e.
- U啪 v铆拧, 啪e za t铆mto mus铆拧 stisknout <ENTER>.
-
- 2. Vyber si n谩zev souboru, kter媒 je拧t臎 neexistuje, nap艡铆klad TEST.
-
- 3. Nyn铆 napi拧: :w TEST (kde TEST je vybran媒 n谩zev souboru.)
-
- 4. To ulo啪铆 cel媒 soubor (V媒uka Vimu) pod n谩zvem TEST.
- Pro ov臎艡en铆 napi拧 znovu :!dir , 膷铆m啪 zobraz铆拧 obsah adres谩艡e.
-
-Pozn谩mka: Jakmile ukon膷铆拧 Vim a znovu ho spust铆拧 s n谩zvem souboru TEST,
- soubor bude p艡esn谩 kopie v媒uky, kdy啪 si ji ukl谩dal.
-
- 5. Nyn铆 odstra艌 soubor naps谩n铆m (MS-DOS): :!del TEST
- nebo (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.3: V脻B臍ROV脻 P艠脥KAZ ULO沤EN脥
-
-
- ** Pro ulo啪en铆 膷谩sti souboru napi拧 :#,# w SOUBOR **
-
- 1. Je拧t臎 jednou napi拧 :!dir nebo :!ls pro v媒pis aktu谩ln铆ho adres谩艡e
- a vyber vhodn媒 n谩zev souboru jako nap艡. TEST.
-
- 2. P艡esu艌 kurzor na vrch t茅to str谩nky a stiskni Ctrl-g pro zobrazen铆
- 膷铆sla 艡谩dku. ZAPAMATUJ SI TOTO 膶脥SLO!
-
- 3. Nyn铆 se p艡esu艌 na spodek t茅to str谩nky a op臎t stiskni Ctrl-g.
- ZAPAMATUJ SI I 膶脥SLO TOHOTO 艠脕DKU!
-
- 4. Pro ulo啪en铆 POUZE 膷谩sti souboru, napi拧 :#,# w TEST kde #,# jsou
- 膷铆sla dvou zapamatovan媒ch 艡谩dk暖 (vrch, spodek) a TEST je n谩zev souboru.
-
- 5. Znova se ujisti, 啪e tam ten soubor je pomoc铆 :!dir ale NEODSTRA艊UJ ho.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 5.4: SLU膶OV脕N脥 SOUBOR女
-
-
- ** K vlo啪en铆 obsahu souboru napi拧 :r N脕ZEV_SOUBORU **
-
- 1. Napi拧 :!dir pro uji拧t臎n铆, 啪e soubor TEST st谩le existuje.
-
- 2. P艡esu艌 kurzor na vrch t茅to str谩nky.
-
-POZN脕MKA: Po vykon谩n铆 kroku 3 uvid铆拧 lekci 5.3. Potom se op臎t p艡esu艌 dol暖
- na tuto lekci.
-
- 3. Nyn铆 vlo啪 soubor TEST pou啪it铆m p艡铆kazu :r TEST kde TEST je n谩zev
- souboru.
-
-POZN脕MKA: Soubor, kter媒 vkl谩d谩拧 se vlo啪铆 od m铆sta, kde se nach谩z铆 kurzor.
-
- 4. Pro potvrzen铆 vlo啪en铆 souboru, p艡esu艌 kurzor zp臎t a v拧imni si, 啪e te膹
- m谩拧 dv臎 kopie lekce 5.3, origin谩l a souborovou verzi.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRNUT脥 LEKCE 5
-
-
- 1. :!p艡铆kaz vykon谩 vn臎j拧铆 p艡铆kaz.
-
- N臎kter茅 u啪ite膷n茅 p艡铆klady jsou:
- (MS-DOS) (Unix)
- :!dir :!ls - zobraz铆 obsah souboru.
- :!del SOUBOR :!rm SOUBOR - odstran铆 SOUBOR.
-
- 2. :w SOUBOR ulo啪铆 aktu谩ln铆 text jako SOUBOR na disk.
-
- 3. :#,#w SOUBOR ulo啪铆 艡谩dky od # do # do SOUBORU.
-
- 4. :r SOUBOR vybere z disku SOUBOR a vlo啪铆 ho do editovan茅ho souboru
- za pozici kurzoru.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.1: P艠脥KAZ OTEV艠脥T
-
-
- ** Napi拧 o pro vlo啪en铆 艡谩dku pod kurzor a p艡epnut铆 do Vkl谩dac铆ho m贸du. **
-
- 1. P艡em铆sti kurzor n铆啪e na 艡谩dek ozna膷en媒 --->.
-
- 2. Napi拧 o (mal茅) pro vlo啪en铆 艡谩dku POD kurzor a p艡epnut铆 do
- Vkl谩dac铆ho m贸du.
-
- 3. Nyn铆 zkop铆ruj 艡谩dek ozna膷en媒 ---> a stiskni <ESC> pro ukon膷en铆
- Vkl谩dac铆ho m贸du.
-
----> Po stisknut铆 o se kurzor p艡em铆st铆 na vlo啪en媒 艡谩dek do Vkl谩dac铆ho
- m贸du.
-
- 4. Pro otev艡en铆 艡谩dku NAD kurzorem jednodu拧e napi拧 velk茅 O , m铆sto
- mal茅ho o. Vyzkou拧ej si to na n谩sleduj铆c铆m 艡谩dku.
-Vlo啪 艡谩dek nad t铆mto naps谩n铆m Shift-O po um铆st臎n铆 kurzoru na tento 艡谩dek.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.2: P艠脥KAZ P艠IDAT
-
-
- ** Stiskni a pro vlo啪en铆 textu ZA kurzor. **
-
- 1. P艡esu艌 kurzor na n铆啪e na konec 艡谩dky ozna膷en茅 --->
- stisknut铆m $ v Norm谩ln铆m m贸du.
-
- 2. Stiskni a (mal茅) pro p艡id谩n铆 textu ZA znak, kter媒 je pod kurzorem.
- (Velk茅 A p艡id谩 na konec 艡谩dku.)
-
-Pozn谩mka: T铆mto se vyhne拧 stisknut铆 i , posledn铆ho znaku, textu na vlo啪en铆,
- <ESC>, kurzor doprava, a nakonec x na p艡id谩v谩n铆 na konec 艡谩dku!
-
- 3. Nyn铆 dokon膷铆 prvn铆 艡谩dek. V拧imni si, 啪e p艡id谩v谩n铆 je vlastn臎 stejn茅 jako
- Vkl谩dac铆 m贸d, krom臎 m铆sta, kam se text vkl谩d谩.
-
----> Tento 艡谩dek ti umo啪艌uje nacvi膷it
----> Tento 艡谩dek ti umo啪艌uje nacvi膷it p艡id谩v谩n铆 textu na konec 艡谩dky.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.3: JIN脻 ZP女SOB NAHRAZOV脕N脥
-
-
- ** Napi拧 velk茅 R pro nahrazen铆 v铆c ne啪 jednoho znaku. **
-
- 1. P艡esu艌 kurzor na prvn铆 艡谩dek ozna膷en媒 --->.
-
- 2. Um铆sti kurzor na za膷谩tek prvn铆ho slova, kter茅 je odli拧n茅 od druh茅ho
- 艡谩dku ozna膷en茅ho ---> (slovo 'posledn铆').
-
- 3. Nyn铆 stiskni R a nahra膹 zbytek textu na prvn铆m 艡谩dku p艡eps谩n铆m
- star茅ho textu tak, aby byl prvn铆 艡谩dek stejn媒 jako ten druh媒.
-
----> Pro upraven铆 prvn铆ho 艡谩dku do tvaru toho posledn铆 na stran臎 pou啪ij kl.
----> Pro upraven铆 prvn铆ho 艡谩dku do tvaru toho druh茅ho, napi拧 R a nov媒 text.
-
- 4. V拧imni si, 啪e jakmile stiskne拧 <ESC> v拧echen nezm臎n臎n媒 text z暖st谩v谩.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekce 6.4: NASTAVEN脥 MO沤NOST脥
-
- ** Nastav mo啪nost, 啪e vyhled谩v谩n铆 anebo nahrazov谩n铆 nedb谩 velikosti p铆smen **
-
- 1. Vyhledej 艡et臎zec 'ignore' naps谩n铆m:
- /ignore
- Zopakuj n臎kolikr谩t stisknut铆 kl谩vesy n.
-
- 2. Nastav mo啪nost 'ic' (Ignore case) naps谩n铆m p艡铆kazu:
- :set ic
-
- 3. Nyn铆 znovu vyhledej 'ignore' stisknut铆m: n
- N臎kolikr谩t hled谩n铆 zopakuj stisknut铆m kl谩vesy n.
-
- 4. Nastav mo啪nosti 'hlsearch' a 'incsearch':
- :set hls is
-
- 5. Nyn铆 znovu vykonej vyhled谩vac铆 p艡铆kaz a sleduj, co se stane:
- /ignore
-
- 6. Pro vypnut铆 zv媒raz艌ov谩n铆 v媒sledk暖 napi拧:
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SHRHNUT脥 LEKCE 6
-
-
- 1. Stisknut铆 o otev艡e nov媒 艡谩dek POD kurzorem a um铆st铆 kurzor na vlo啪en媒
- 艡谩dek do Vkl谩dac铆ho m贸du.
- Naps谩n铆 velk茅ho O otev艡e 艡谩dek NAD 艡谩dkem, na kter茅m je kurzor.
-
- 2. Stiskni a pro vlo啪en铆 textu ZA znak na pozici kurzoru.
- Naps谩n铆 velk茅ho A automaticky p艡id谩 text na konec 艡谩dku.
-
- 3. Stisknut铆 velk茅ho R p艡epne do Nahrazovac铆ho m贸du, dokud
- nestiskne拧 <ESC> pro jeho ukon膷en铆.
-
- 4. Naps谩n铆 ":set xxx" nastav铆 mo啪nosti "xxx".
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCE 7: P艠脥KAZY ON-LINE N脕POV臍DY
-
-
- ** Pou啪铆vej on-line syst茅m n谩pov臎dy **
-
- Vim m谩 obs谩hl媒 on-line syst茅m n谩pov臎dy. Pro za膷谩tek vyzkou拧ej jeden z
- n谩sleduj铆c铆ch:
- - stiskni kl谩vesu <HELP> (pokud ji m谩拧)
- - stiskni kl谩vesu <F1> (pokud ji m谩拧)
- - napi拧 :help <ENTER>
-
- Napi拧 :q <ENTER> pro uzav艡en铆 okna n谩pov臎dy.
-
- M暖啪e拧 naj铆t n谩pov臎du k jak茅mukoliv t茅matu p艡id谩n铆m argumentu k
- p艡铆kazu ":help". Zkus tyto (nezapome艌 stisknout <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCE 8: VYTVO艠EN脥 INICIALIZA膶N脥HO SKRIPTU
-
- ** Zapni funkce editoru Vim **
-
- Vim m谩 daleko v铆ce funkc铆 ne啪 Vi, ale v臎t拧ina z nich je vypnuta ve v媒choz铆m
- nastaven铆. Pro zapnut铆 n臎kter媒ch vytvo艡 soubor "vimrc".
-
- 1. Za膷ni upravovat soubor "vimrc". Toto z谩vis铆 na pou啪it茅m syst茅mu:
- :edit ~/.vimrc pro Unix
- :edit $VIM/_vimrc pro MS-Windows
-
- 2. Nyn铆 膷ti uk谩zkov媒 "vimrc" soubor:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Ulo啪 soubor pomoc铆:
-
- :write
-
- Po p艡铆拧t铆m startu Vim se zapne zv媒raz艌ov谩n铆 syntaxe.
- Do souboru "vimrc" m暖啪e拧 p艡idat v拧echny svoje up艡ednost艌ovan茅 nastaven铆.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Toto ukon膷uje v媒uku Vim, kter谩 byla my拧len谩 jako stru膷n媒 p艡ehled
- editoru Vim, tak akor谩t posta膷uj铆c铆 pro lehk茅 a obstojn茅 pou啪铆v谩n铆 editoru.
- Tato v媒uka m谩 daleko od 煤plnosti, proto啪e Vim obsahuje podstatn臎 v铆ce
- p艡铆kaz暖. D谩le si p艡e膷ti u啪ivatelsk媒 manu谩l: ":help user-manual".
-
- Pro dal拧铆 studium je doporu膷en谩 kniha:
- Vim - Vi Improved - od Steve Oualline
- Nakladatel: New Riders
- Prvn铆 kniha ur膷en谩 pro Vim. Obzvl谩拧t臎 vhodn谩 pro za膷谩te膷n铆ky.
- Obsahuje mno啪stv铆 p艡铆klad暖 a obr谩zk暖.
- viz http://iccf-holland.org/click5.html
-
- Tato kniha je star拧铆 a v铆ce v臎novan谩 Vi ne啪 Vim, ale tak茅 doporu膷en谩:
- Learning the Vi Editor - od Linda Lamb
- Nakladatel: O'Reilly & Associates Inc.
- Je to dobr谩 kniha pro z铆sk谩n铆 v臎domost铆 t茅m臎艡 o v拧em, co m暖啪ete s Vi d臎lat.
- 艩est茅 vyd谩n铆 obsahuje t茅啪 informace o Vim.
-
- Tato v媒uka byla napsan谩 autory Michael C. Pierce a Robert K. Ware,
- Colorado School of Mines s pou啪it铆m my拧lenek od: Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Upravil pro Vim: Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- P艡eklad do 膷e拧tiny: Lubo拧 Turek
- E-Mail: lubos.turek@gmail.com
- 2007 Feb 28
diff --git a/runtime/tutor/tutor.de b/runtime/tutor/tutor.de
deleted file mode 100644
index 7438c96ba..000000000
--- a/runtime/tutor/tutor.de
+++ /dev/null
@@ -1,980 +0,0 @@
-===============================================================================
-= W i l l k o m m e n im V I M T u t o r - Version 1.7D =
-===============================================================================
-
- Vim ist ein sehr m鋍htiger Editor, der viele Befehle bereitstellt; zu viele,
- um alle in einem Tutor wie diesem zu erkl鋜en. Dieser Tutor ist so
- gestaltet, um genug Befehle vorzustellen, dass Du die F鋒igkeit erlangst,
- Vim mit Leichtigkeit als einen Allzweck-Editor zu benutzen.
- Die Zeit f黵 das Durcharbeiten dieses Tutors betr鋑t ca. 25-30 Minuten,
- abh鋘gig davon, wie viel Zeit Du mit Experimentieren verbringst.
-
- ACHTUNG:
- Die in den Lektionen angewendeten Kommandos werden den Text modifizieren.
- Erstelle eine Kopie dieser Datei, in der Du 黚en willst (falls Du "vimtutor"
- aufgerufen hast, ist dies bereits eine Kopie).
-
- Es ist wichtig, sich zu vergegenw鋜tigen, dass dieser Tutor f黵 das Anwenden
- konzipiert ist. Das bedeutet, dass Du die Befehle ausf黨ren musst, um sie
- richtig zu lernen. Wenn Du nur den Text liest, vergisst Du die Befehle!
-
- Jetzt stelle sicher, dass Deine Umstelltaste NICHT gedr點kt ist und bet鋞ige
- die j Taste gen黦end Male, um den Cursor nach unten zu bewegen, so dass
- Lektion 1.1 den Bildschirm vollkommen ausf黮lt.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.1: BEWEGEN DES CURSORS
-
- ** Um den Cursor zu bewegen, dr點ke die h,j,k,l Tasten wie unten gezeigt. **
- ^ Hilfestellung:
- k Die h Taste befindet sich links und bewegt nach links.
- < h l > Die l Taste liegt rechts und bewegt nach rechts.
- j Die j Taste 鋒nelt einem Pfeil nach unten.
- v
- 1. Bewege den Cursor auf dem Bildschirm umher, bis Du Dich sicher f黨lst.
-
- 2. Halte die Nach-Unten-Taste (j) gedr點kt, bis sie sich wiederholt.
- Jetzt wei遲 Du, wie Du Dich zur n鋍hsten Lektion bewegen kannst.
-
- 3. Benutze die Nach-Unten-Taste, um Dich zu Lektion 1.2 zu bewegen.
-
-Bemerkung: Immer, wenn Du Dir unsicher bist 黚er das, was Du getippt hast,
- dr點ke <ESC> , um Dich in den Normalmodus zu begeben.
- Dann gib das gew黱schte Kommando noch einmal ein.
-
-Bemerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
- hjkl benutzt, wirst Du in der Lage sein, Dich sehr viel schneller
- umherzubewegen, wenn Du Dich einmal daran gew鰄nt hast. Wirklich!
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.2: VIM BEENDEN
-
-
- !! ACHTUNG: Bevor Du einen der unten aufgef黨rten Schritte ausf黨rst, lies
- diese gesamte Lektion!!
-
- 1. Dr點ke die <ESC> Taste (um sicherzustellen, dass Du im Normalmodus bist).
-
- 2. Tippe: :q! <ENTER>.
- Dies beendet den Editor und VERWIRFT alle 膎derungen, die Du gemacht hast.
-
- 3. Wenn Du die Eingabeaufforderung siehst, gib das Kommando ein, das Dich zu
- diesem Tutor gef黨rt hat. Dies w鋜e: vimtutor <ENTER>
-
- 4. Wenn Du Dir diese Schritte eingepr鋑t hast und Du Dich sicher f黨lst,
- f黨re Schritte 1 bis 3 aus, um den Editor zu verlassen und wieder
- hineinzugelangen.
-
-Bemerkung: :q! <ENTER> verwirft alle 膎derungen, die Du gemacht hast. In
- einigen Lektionen lernst Du , die 膎derungen in einer Datei zu speichern.
-
- 5. Bewege den Cursor abw鋜ts zu Lektion 1.3.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.3: TEXT EDITIEREN - L諷CHEN
-
-
- ** Dr點ke x um das Zeichen unter dem Cursor zu l鰏chen. **
-
- 1. Bewege den Cursor zu der mit ---> markierten Zeile unten.
-
- 2. Um die Fehler zu beheben, bewege den Cursor, bis er auf dem Zeichen steht,
- das gel鰏cht werden soll.
-
- 3. Dr點ke die x Taste, um das 黚erfl黶sige Zeichen zu l鰏chen.
-
- 4. Wiederhole die Schritte 2 bis 4, bis der Satz korrekt ist.
-
----> Die Kkuh sprangg 黚ber deen Moond.
-
- 5. Wenn nun die Zeile korrekt ist, gehe weiter zur Lektion 1.4.
-
-Anmerkung: W鋒rend Du durch diesen Tutor gehst, versuche nicht, auswendig zu
- lernen, lerne vielmehr durch Anwenden.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.4: TEXT EDITIEREN - EINF蹽EN
-
-
- ** Dr點ke i , um Text einzuf黦en. **
-
- 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
-
- 2. Um die erste Zeile mit der zweiten gleichzumachen, bewege den Cursor auf
- das erste Zeichen NACH der Stelle, wo der Text eingef黦t werden soll.
-
- 3. Dr點ke i und gib die notwendigen Erg鋘zungen ein.
-
- 4. Wenn jeweils ein Fehler beseitigt ist, dr點ke <ESC> , um zum Normalmodus
- zur點kzukehren.
- Wiederhole die Schritte 2 bis 4, um den Satz zu korrigieren.
-
----> In dieser ft etwas .
----> In dieser Zeile fehlt etwas Text.
-
- 5. Wenn Du Dich mit dem Einf黦en von Text sicher f黨lst, gehe zu Lektion 1.5.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.5: TEXT EDITIEREN - ANF蹽EN
-
-
- ** Dr點ke A , um Text anzuf黦en. **
-
- 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
- Es ist gleichg黮tig, auf welchem Zeichen der Zeile der Cursor steht.
-
- 2. Dr點ke A und gib die n鰐igen Erg鋘zungen ein.
-
- 3. Wenn das Anf黦en abgeschlossen ist, dr點ke <ESC>, um in den Normalmodus
- zur點kzukehren.
-
- 4. Bewege den Cursor zur zweiten mit ---> markierten Zeile und wiederhole
- die Schritte 2 und 3, um den Satz zu korrigieren.
-
----> In dieser Zeile feh
- In dieser Zeile fehlt etwas Text.
----> Auch hier steh
- Auch hier steht etwas Unvollst鋘diges.
-
- 5. Wenn Du dich mit dem Anf黦en von Text sicher f黨lst, gehe zu Lektion 1.6.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.6: EINE DATEI EDITIEREN
-
-
- ** Benutze :wq , um eine Datei zu speichern und Vim zu verlassen. **
-
- !! ACHTUNG: Bevor Du einen der unten aufgef黨rten Schritte ausf黨rst, lies
- diese gesamte Lektion!!
-
- 1. Verlasse den Editor so wie in Lektion 1.2: :q!
-
- 2. Gib dieses Kommando in die Eingabeaufforderung ein: vim tutor <ENTER>
- 'vim' ist der Aufruf des Editors, 'tutor' ist die zu editierende Datei.
- Benutze eine Datei, die ge鋘dert werden kann.
-
- 3. F黦e Text ein oder l鰏che ihn, wie Du in den vorigen Lektionen gelernt
- hast.
-
- 4. Speichere die ge鋘derte Datei und verlasse Vim mit: :wq <ENTER>
-
- 5. Starte den vimtutor neu und bewege Dich zu der folgenden Zusammenfassung.
-
- 6. Nachdem Du obige Schritte gelesen und verstanden hast, f黨re sie durch.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 1
-
-
- 1. Der Cursor wird mit den Pfeiltasten oder den Tasten hjkl bewegt.
- h (links) j (unten) k (aufw鋜ts) l (rechts)
-
- 2. Um Vim von der Eingabeaufforderung auszuf黨ren, tippe: vim DATEI <ENTER>
-
- 3. Um Vim zu verlassen und alle 膎derungen zu verwerfen, tippe:
- <ESC> :q! <ENTER> .
- ODER tippe: <ESC> :wq <ENTER> , um die 膎derungen zu speichern.
-
- 4. Um das Zeichen unter dem Cursor zu l鰏chen, tippe: x
-
- 5. Um Text einzuf黦en oder anzuf黦en, tippe:
- i Einzuf黦enden Text eingeben <ESC> Einf黦en vor dem Cursor
- A Anzuf黦enden Text eingeben <ESC> Anf黦en nach dem Zeilendene
-
-Bemerkung: Dr點ken von <ESC> bringt Dich in den Normalmodus oder bricht ein
- ungewolltes, erst teilweise eingegebenes Kommando ab.
-
- Nun fahre mit Lektion 2 fort.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.1: L諷CHKOMMANDOS
-
-
- ** Tippe dw , um ein Wort zu l鰏chen. **
-
- 1. Dr點ke <ESC> um sicherzustellen, dass Du im Normalmodus bist.
-
- 2. Bewege den Cursor zu der mit ---> markierten Zeile unten.
-
- 3. Bewege den Cursor zum Anfang eines Wortes, das gel鰏cht werden soll.
-
- 4. Tippe dw , um das Wort zu entfernen.
-
- Bemerkung: Der Buchstabe d erscheint auf der letzten Zeile des Bildschirms,
- wenn Du ihn eingibst. Vim wartet darauf, da Du w eingibst. Wenn Du
- ein anderes Zeichen als d siehst, hast Du etwas falsches getippt;
- dr點ke <ESC> und beginne neu.
-
----> Einige W鰎ter lustig geh鰎en nicht Papier in diesen Satz.
-
- 5. Wiederhole die Schritte 3 und 4, bis der Satz korrekt ist und gehe
- danach zur Lektion 2.2.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.2: WEITERE L諷CHKOMMANDOS
-
-
- ** Tippe d$ , um bis zum Ende der Zeile zu l鰏chen. **
-
- 1. Dr點ke <ESC> , um sicherzustellen, dass Du im Normalmodus bist.
-
- 2. Bewege den Cursor zu der mit ---> markierten Zeile unten.
-
- 3. Bewege den Cursor zum Ende der korrekten Zeile (NACH dem ersten . ).
-
- 4. Tippe d$ , um bis zum Ende der Zeile zu l鰏chen.
-
----> Jemand hat das Ende der Zeile doppelt eingegeben. doppelt eingegeben.
-
-
- 5. Gehe weiter zur Lektion 2.3 , um zu verstehen, was hierbei passiert.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.3: 蹷ER OPERATOREN UND BEWEGUNGSZ蹽E
-
-
- Viele Kommandos, die Text 鋘dern, setzen sich aus einem Operator und einer
- Bewegung zusammen. Das Format f黵 ein L鰏chkommando mit dem L鰏choperator d
- lautet wie folgt:
-
- d Bewegung
-
- wobei:
- d - der L鰏choperator
- Bewegung - worauf der L鰏choperator angewandt wird (unten aufgelistet).
-
- Eine kleine Auflistung von Bewegungen:
- w - bis zum Beginn des n鋍hsten Wortes OHNE dessen erstes Zeichen.
- e - zum Ende des aktuellen Wortes MIT dessen letztem Zeichen.
- $ - zum Ende der Zeile MIT dem letzen Zeichen.
-
- Dementsprechend l鰏cht die Eingabe von de vom Cursor an bis zum Wortende.
-
-Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
- Cursor entsprechend.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.4: ANWENDUNG EINES Z腍LERS F躌 EINEN BEWEGUNGSSCHRITT
-
-
- ** Die Eingabe einer Zahl vor einem Bewegungsschritt wiederholt diesen. **
-
- 1. Bewege den Cursor zum Beginn der mit ---> markierten Zeile unten.
-
- 2. Tippe 2w , um den Cursor zwei W鰎ter vorw鋜ts zu bewegen.
-
- 3. Tippe 3e , um den Cursor zum Ende des dritten Wortes zu bewegen.
-
- 4. Tippe 0 (Null) , um zum Anfang der Zeile zu gelangen.
-
- 5. Wiederhole Schritte 2 und 3 mit verschiedenen Z鋒lern.
-
- ---> Dies ist nur eine Zeile aus W鰎ten um sich darin herumzubewegen.
-
- 6. Gehe weiter zu Lektion 2.5.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.5: ANWENDUNG EINES Z腍LERS F躌 MEHRERE L諷CHVORG腘GE
-
-
- ** Die Eingabe einer Zahl mit einem Operator wiederholt diesen mehrfach. **
-
- F黵 die Kombination des L鰏choperators und einem Bewegungsschritt (siehe
- oben) stellt man dem Bewegungsschritt einen Z鋒ler voran, um mehr zu l鰏chen:
- d Nummer Bewegungsschritt
-
- 1. Bewege den Cursor zum ersten Wort in GROSSBUCHSTABEN in der mit --->
- markieren Zeile.
-
- 2. Tippe d2w , um die zwei W鰎ter in GROSSBUCHSTABEN zu l鰏chen.
-
- 3. Wiederhole Schritte 1 und 2 mit einem anderen Z鋒ler, um die
- darauffolgenden W鰎ter in GROSSBUCHSTABEN mit einem einzigen Kommando
- zu l鰏chen.
-
----> Diese ABC DE Zeile FGHI JK LMN OP mit W鰎tern ist Q RS TUV bereinigt.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.6: ARBEITEN AUF ZEILEN
-
-
- ** Tippe dd , um eine ganze Zeile zu l鰏chen. **
-
- Wegen der H鋟figkeit, dass man ganze Zeilen l鰏cht, kamen die Entwickler von
- Vi darauf, dass es leichter w鋜e, einfach zwei d's einzugeben, um eine Zeile
- zu l鰏chen.
-
- 1. Bewege den Cursor zur zweiten Zeile in der unten stehenden Redewendung.
- 2. Tippe dd , um die Zeile zu l鰏chen.
- 3. Nun bewege Dich zur vierten Zeile.
- 4. Tippe 2dd , um zwei Zeilen zu l鰏chen.
-
----> 1) Rosen sind rot,
----> 2) Matsch ist lustig,
----> 3) Veilchen sind blau,
----> 4) Ich habe ein Auto,
----> 5) Die Uhr sagt die Zeit,
----> 6) Zucker ist s,
----> 7) So wie Du auch.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.7: R蹸KG腘GIG MACHEN (UNDO)
-
-
- ** Tippe u , um die letzten Kommandos r點kg鋘gig zu machen **
- ** oder U um eine ganze Zeile wiederherzustellen. **
-
- 1. Bewege den Cursor zu der mit ---> markierten Zeile unten
- und setze ihn auf den ersten Fehler.
- 2. Tippe x , um das erste unerw黱schte Zeichen zu l鰏chen.
- 3. Nun tippe u um das soeben ausgef黨rte Kommando r點kg鋘gig zu machen.
- 4. Jetzt behebe alle Fehler auf der Zeile mit Hilfe des x Kommandos.
- 5. Nun tippe ein gro遝s U , um die Zeile in ihren Ursprungszustand
- wiederherzustellen.
- 6. Nun tippe u einige Male, um das U und die vorhergehenden Kommandos
- r點kg鋘gig zu machen.
- 7. Nun tippe CTRL-R (halte CTRL gedr點kt und dr點ke R) mehrere Male, um die
- Kommandos wiederherzustellen (die R點kg鋘gigmachungen r點kg鋘gig machen).
-
----> Beehebe die Fehller diesser Zeile und sttelle sie mitt 'undo' wieder her.
-
- 8. Dies sind sehr n黷zliche Kommandos.
- Nun gehe weiter zur Zusammenfassung von Lektion 2.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 2
-
-
- 1. Um vom Cursor bis zum n鋍hsten Wort zu l鰏chen, tippe: dw
- 2. Um vom Cursor bis zum Ende einer Zeile zu l鰏chen, tippe: d$
- 3. Um eine ganze Zeile zu l鰏chen, tippe: dd
-
- 4. Um eine Bewegung zu wiederholen, stelle eine Nummer voran: 2w
- 5. Das Format f黵 ein 膎derungskommando ist:
- Operator [Anzahl] Bewegungsschritt
- wobei:
- Operator - gibt an, was getan werden soll, zum Beispiel d f黵 delete
- [Anzahl] - ein optionaler Z鋒ler, um den Bewegungsschritt zu wiederholen
- Bewegungsschritt - Bewegung 黚er den zu 鋘dernden Text, so wie
- w (Wort), $ (zum Ende der Zeile), etc.
-
- 6. Um Dich zum Anfang der Zeile zu begeben, benutze die Null: 0
-
- 7. Um vorherige Aktionen r點kg鋘gig zu machen, tippe: u (kleines u)
- Um alle 膎derungen auf einer Zeile r點kg鋘gig zu machen: U (gro遝s U)
- Um die R點kg鋘gigmachungen r點kg鋘gig zu machen, tippe: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.1: ANF蹽EN (PUT)
-
-
- ** Tippe p , um vorher gel鰏chten Text nach dem Cursor anzuf黦en. **
-
- 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
-
- 2. Tippe dd , um die Zeile zu l鰏chen und sie in eimem Vim-Register zu
- speichern.
-
- 3. Bewege den Cursor zur Zeile c), 蹷ER derjenigen, wo die gel鰏chte Zeile
- platziert werden soll.
-
- 4. Tippe p , um die Zeile unterhalb des Cursors zu platzieren.
-
- 5. Wiederhole die Schritte 2 bis 4, um alle Zeilen in die richtige
- Reihenfolge zu bringen.
-
----> d) Kannst Du das auch?
----> b) Veilchen sind blau,
----> c) Intelligenz ist erlernbar,
----> a) Rosen sind rot,
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.2: ERSETZEN (REPLACE)
-
-
- ** Tippe rx , um das Zeichen unter dem Cursor durch x zu ersetzen. **
-
- 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
-
- 2. Bewege den Cursor, bis er sich auf dem ersten Fehler befindet.
-
- 3. Tippe r und anschlie遝nd das Zeichen, welches dort stehen sollte.
-
- 4. Wiederhole Schritte 2 und 3, bis die erste Zeile gleich der zweiten ist.
-
----> Als diese Zeite eingegoben wurde, wurden einike falsche Tasten gelippt!
----> Als diese Zeile eingegeben wurde, wurden einige falsche Tasten getippt!
-
- 5. Nun fahre fort mit Lektion 3.2.
-
-Bemerkung: Erinnere Dich, dass Du durch Anwenden lernen solltest, nicht durch
- Auswendiglernen.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.3: 腘DERN (CHANGE)
-
-
- ** Um eine 膎derung bis zum Wortende durchzuf黨ren, tippe ce . **
-
- 1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
-
- 2. Platziere den Cursor auf das s von Wstwr.
-
- 3. Tippe ce und die Wortkorrektur ein (in diesem Fall tippe 鰎ter ).
-
- 4. Dr點ke <ESC> und bewege den Cursor zum n鋍hsten zu 鋘dernden Zeichen.
-
- 5. Wiederhole Schritte 3 und 4 bis der erste Satz gleich dem zweiten ist.
-
----> Einige Wstwr dieser Zlaww lasdjlaf mit dem 膎dern-Operator gaaauu werden.
----> Einige W鰎ter dieser Zeile sollen mit dem 膎dern-Operator ge鋘dert werden.
-
-Bemerke, dass ce das Wort l鰏cht und Dich in den Eingabemodus versetzt.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.4: MEHR 腘DERUNGEN MITTELS c
-
-
- ** Das change-Kommando arbeitet mit denselben Bewegungen wie delete. **
-
- 1. Der change Operator arbeitet in gleicher Weise wie delete. Das Format ist:
-
- c [Anzahl] Bewegungsschritt
-
- 2. Die Bewegungsschritte sind die gleichen , so wie w (Wort) und $
- (Zeilenende).
-
- 3. Bewege Dich zur ersten unten stehenden mit ---> markierten Zeile.
-
- 4. Bewege den Cursor zum ersten Fehler.
-
- 5. Tippe c$ , gib den Rest der Zeile wie in der zweiten ein, dr點ke <ESC> .
-
----> Das Ende dieser Zeile soll an die zweite Zeile angeglichen werden.
----> Das Ende dieser Zeile soll mit dem c$ Kommando korrigiert werden.
-
-Bemerkung: Du kannst die R點ktaste benutzen, um Tippfehler zu korrigieren.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 3
-
-
- 1. Um einen vorher gel鰏chten Text anzuf黦en, tippe p . Dies f黦t den
- gel鰏chten Text NACH dem Cursor an (wenn eine ganze Zeile gel鰏cht wurde,
- wird diese in die Zeile unter dem Cursor eingef黦t).
-
- 2. Um das Zeichen unter dem Cursor zu ersetzen, tippe r und das an dieser
- Stelle gew黱schte Zeichen.
-
- 3. Der 膎derungs- (change) Operator erlaubt, vom Cursor bis zum Ende des
- Bewegungsschrittes zu 鋘dern. Tippe ce , um eine 膎derung vom Cursor bis
- zum Ende des Wortes vorzunehmen; c$ bis zum Ende einer Zeile.
-
- 4. Das Format f黵 change ist:
-
- c [Anzahl] Bewegungsschritt
-
- Nun fahre mit der n鋍hsten Lektion fort.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.1: CURSORPOSITION UND DATEISTATUS
-
- ** Tippe CTRL-G , um Deine Dateiposition sowie den Dateistatus anzuzeigen. **
- ** Tippe G , um Dich zu einer Zeile in der Datei zu begeben. **
-
-Bemerkung: Lies diese gesamte Lektion, bevor Du irgendeinen Schritt ausf黨rst!!
-
- 1. Halte die Ctrl Taste unten und dr點ke g . Dies nennen wir wir CTRL-G.
- Eine Statusmeldung am Fu der Seite erscheint mit dem Dateinamen und der
- Position innerhalb der Datei. Merke Dir die Zeilennummer f黵 Schritt 3.
-
-Bemerkung: M鰃licherweise siehst Du die Cursorposition in der unteren rechten
- Bildschirmecke. Dies ist Folge der 'ruler' Option (siehe :help 'ruler')
-
- 2. Dr點ke G , um Dich zum Ende der Datei zu begeben.
- Tippe gg , um Dich zum Anfang der Datei zu begeben.
-
- 3. Gib die Nummer der Zeile ein, auf der Du vorher warst, gefolgt von G .
- Dies bringt Dich zur點k zu der Zeile, auf der Du gestanden hast, als Du
- das erste Mal CTRL-G gedr點kt hast.
-
- 4. Wenn Du Dich sicher genug f黨lst, f黨re die Schritte 1 bis 3 aus.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.2: DAS SUCHEN - KOMMANDO
-
-
- ** Tippe / gefolgt von einem Ausdruck, um nach dem Ausdruck zu suchen. **
-
- 1. Im Normalmodus, tippe das / Zeichen. Bemerke, dass das / und der
- Cursor am Fu des Schirms erscheinen, so wie beim : Kommando.
-
- 2. Nun tippe 'Fehhler' <ENTER>. Dies ist das Wort, nach dem Du suchen willst.
-
- 3. Um nach demselben Ausdruck weiterzusuchen, tippe einfach n (f黵 next).
- Um nach demselben Ausdruck in der Gegenrichtung zu suchen, tippe N .
-
- 4. Um nach einem Ausdruck r點kw鋜ts zu suchen , benutze ? statt / .
-
- 5. Um dahin zur點kzukehren, von wo Du gekommen bist, dr點ke CTRL-O (Halte
- Ctrl unten und dr點ke den Buchstaben o). Wiederhole dies, um weiter
- zur點kzugehen. CTRL-I bringt dich vorw鋜ts.
-
----> Fehler schreibt sich nicht "Fehhler"; Fehhler ist ein Fehler
-Bemerkung: Wenn die Suche das Dateiende erreicht hat, wird sie am Anfang
- fortgesetzt, es sei denn, die 'wrapscan' Option wurde abgeschaltet.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.3: PASSENDE KLAMMERN FINDEN
-
-
- ** Tippe % , um eine korrespondierende Klammer ),], oder } zu finden. **
-
- 1. Platziere den Cursor auf irgendeines der Zeichen (, [, oder { in der unten
- stehenden Zeile, die mit ---> markiert ist.
-
- 2. Nun tippe das % Zeichen.
-
- 3. Der Cursor bewegt sich zur passenden gegen黚erliegenden Klammer.
-
- 4. Tippe % , um den Cursor zur anderen passenden Klammer zu bewegen.
-
- 5. Setze den Cursor auf ein anderes (,),[,],{ oder } und probiere % aus.
-
----> Dies ( ist eine Testzeile ( mit [ verschiedenen ] { Klammern } darin. ))
-
-Bemerkung: Diese Funktionalit鋞 ist sehr n黷zlich bei der Fehlersuche in einem
- Programmtext, in dem passende Klammern fehlen!
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.4: DAS ERSETZUNGSKOMMANDO (SUBSTITUTE)
-
-
- ** Tippe :s/alt/neu/g , um 'alt' durch 'neu' zu ersetzen. **
-
- 1. Bewege den Cursor zu der unten stehenden mit ---> markierten Zeile.
-
- 2. Tippe :s/diee/die <ENTER> . Bemerke, dass der Befehl nur das erste
- Vorkommen von "diee" ersetzt.
-
- 3. Nun tippe :s/diee/die/g . Das Zuf黦en des Flags g bedeutet, eine
- globale Ersetzung 黚er die Zeile durchzuf黨ren, was alle Vorkommen von
- "diee" auf der Zeile ersetzt.
-
----> diee sch鰊ste Zeit, um diee Blumen anzuschauen, ist diee Fr黨lingszeit.
-
- 4. Um alle Vorkommen einer Zeichenkette innerhalb zweier Zeilen zu 鋘dern,
- tippe :#,#s/alt/neu/g wobei #,# die Zeilennummern des Zeilenbereiches
- sind, in dem die Ersetzung durchgef黨rt werden soll.
- Tippe :%s/alt/neu/g um alle Vorkommen in der gesamten Datei zu 鋘dern.
- Tippe :%s/alt/neu/gc um alle Vorkommen in der gesamten Datei zu finden
- mit einem Fragedialog, ob ersetzt werden soll oder nicht.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 4
-
- 1. CTRL-G zeigt die aktuelle Dateiposition sowie den Dateistatus.
- G bringt Dich zum Ende der Datei.
- Nummer G bringt Dich zur entsprechenden Zeilennummer.
- gg bringt Dich zur ersten Zeile.
-
- 2. Die Eingabe von / plus einem Ausdruck sucht VORW腞TS nach dem Ausdruck.
- Die Eingabe von ? plus einem Ausdruck sucht R蹸KW腞TS nach dem Ausdruck.
- Tippe nach einer Suche n , um das n鋍hste Vorkommen in der gleichen
- Richtung zu finden; oder N , um in der Gegenrichtung zu suchen.
- CTRL-O bringt Dich zur點k zu 鋖teren Positionen, CTRL-I zu neueren.
-
- 3. Die Eingabe von % , wenn der Cursor sich auf (,),[,],{, oder }
- befindet, bringt Dich zur Gegenklammer.
-
- 4. Um das erste Vorkommen von "alt" in einer Zeile durch "neu" zu ersetzen,
- tippe :s/alt/neu
- Um alle Vorkommen von "alt" in der Zeile ersetzen, tippe :s/alt/neu/g
- Um Ausdr點ke innerhalb zweier Zeilennummern zu ersetzen, :#,#s/alt/neu/g
- Um alle Vorkommen in der ganzen Datei zu ersetzen, tippe :%s/alt/neu/g
- F黵 eine jedmalige Best鋞igung, addiere 'c' (confirm) :%s/alt/neu/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.1: AUSF蹾REN EINES EXTERNEN KOMMANDOS
-
-
- ** Gib :! , gefolgt von einem externen Kommando ein, um es auszuf黨ren. **
-
- 1. Tippe das vertraute Kommando : , um den Cursor auf den Fu des Schirms
- zu setzen. Dies erlaubt Dir, ein Kommandozeilen-Kommando einzugeben.
-
- 2. Nun tippe ein ! (Ausrufezeichen). Dies erm鰃licht Dir, ein beliebiges,
- externes Shellkommando auszuf黨ren.
-
- 3. Als Beispiel tippe ls nach dem ! und dr點ke <ENTER>. Dies zeigt
- eine Auflistung Deines Verzeichnisses; genauso, als wenn Du auf der
- Eingabeaufforderung w鋜st. Oder verwende :!dir , falls ls nicht geht.
-
-Bemerkung: Mit dieser Methode kann jedes beliebige externe Kommando
- ausgef黨rt werden, auch mit Argumenten.
-
-Bemerkung: Alle : Kommandos m黶sen durch Eingabe von <ENTER>
- abgeschlossen werden. Von jetzt an erw鋒nen wir dies nicht jedesmal.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.2: MEHR 蹷ER DAS SCHREIBEN VON DATEIEN
-
-
-** Um am Text durchgef黨rte 膎derungen zu speichern, tippe :w DATEINAME. **
-
- 1. Tippe :!dir oder :!ls , um eine Auflistung Deines Verzeichnisses zu
- erhalten. Du wei遲 nun bereits, dass Du danach <ENTER> eingeben musst.
-
- 2. W鋒le einen Dateinamen, der noch nicht existiert, z.B. TEST.
-
- 3. Nun tippe: :w TEST (wobei TEST der gew鋒lte Dateiname ist).
-
- 4. Dies speichert die ganze Datei (den Vim Tutor) unter dem Namen TEST.
- Um dies zu 黚erpr黤en, tippe nochmals :!ls bzw. !dir, um Deinen
- Verzeichnisinhalt zu sehen.
-
-Bemerkung: W黵dest Du Vim jetzt beenden und danach wieder mit vim TEST
- starten, dann w鋜e diese Datei eine exakte Kopie des Tutors zu dem
- Zeitpunkt, als Du ihn gespeichert hast.
-
- 5. Nun entferne die Datei durch Eingabe von (MS-DOS): :!del TEST
- oder (Unix): :!rm TEST
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.3: AUSW腍LEN VON TEXT ZUM SCHREIBEN
-
-** Um einen Abschnitt der Datei zu speichern, tippe v Bewegung :w DATEI **
-
- 1. Bewege den Cursor zu dieser Zeile.
-
- 2. Tippe v und bewege den Cursor zum f黱ften Auflistungspunkt unten.
- Bemerke, da der Text hervorgehoben wird.
-
- 3. Dr點ke das Zeichen : . Am Fu des Schirms erscheint :'<,'> .
-
- 4. Tippe w TEST , wobei TEST ein noch nicht vorhandener Dateiname ist.
- Vergewissere Dich, da Du :'<,'>w TEST siehst, bevor Du Enter dr點kst.
-
- 5. Vim schreibt die ausgew鋒lten Zeilen in die Datei TEST. Benutze :!dir
- oder :!ls , um sie zu sehen. L鰏che sie noch nicht! Wir werden sie in
- der n鋍hsten Lektion benutzen.
-
-Bemerkung: Dr點ken von v startet die Visuelle Auswahl. Du kannst den Cursor
- umherbewegen, um die Auswahl gr鲞er oder kleiner zu machen. Anschlie遝nd
- kann man einen Operator anwenden, um mit dem Text etwas zu tun. Zum
- Beispiel l鰏cht d den Text.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.4: EINLESEN UND ZUSAMMENF蹾REN VON DATEIEN
-
-
- ** Um den Inhalt einer Datei einzulesen, tippe :r DATEINAME **
-
- 1. Platziere den Cursor 黚erhalb dieser Zeile.
-
-BEACHTE: Nachdem Du Schritt 2 ausgef黨rt hast, wirst Du Text aus Lektion 5.3
- sehen. Dann bewege Dich wieder ABW腞TS, um diese Lektion wiederzusehen.
-
- 2. Nun lies Deine Datei TEST ein indem Du das Kommando :r TEST ausf黨rst,
- wobei TEST der von Dir verwendete Dateiname ist.
- Die eingelesene Datei wird unterhalb der Cursorzeile eingef黦t.
-
- 3. Um zu 黚erpr黤en, dass die Datei eingelesen wurde, gehe zur點k und siehe,
- dass es jetzt zwei Kopien von Lektion 5.3 gibt, das Original und die
- eingef黦te Dateiversion.
-
-Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
- Beispiel liest :r !ls die Ausgabe des Kommandos ls ein und platziert
- sie unterhalb des Cursors.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 5
-
-
- 1. :!Kommando f黨rt ein externes Kommando aus.
-
- Einige n黷zliche Beispiele sind
- (MS-DOS) (Unix)
- :!dir :!ls - zeigt eine Verzeichnisauflistung.
- :!del DATEINAME :!rm DATEINAME - entfernt Datei DATEINAME.
-
- 2. :w DATEINAME speichert die aktuelle Vim-Datei unter dem Namen DATEINAME.
-
- 3. v Bewegung :w DATEINAME schreibt die Visuell ausgew鋒lten Zeilen in
- die Datei DATEINAME.
-
- 4. :r DATEINAME l鋎t die Datei DATEINAME und f黦t sie unterhalb der
- Cursorposition ein.
-
- 5. :r !dir liest die Ausgabe des Kommandos dir und f黦t sie unterhalb der
- Cursorposition ein.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.1: ZEILEN 諪FNEN (OPEN)
-
-
- ** Tippe o , um eine Zeile unterhalb des Cursors zu 鰂fnen und Dich in **
- ** den Einf黦emodus zu begeben. **
-
- 1. Bewege den Cursor zu der ersten mit ---> markierten Zeile unten.
-
- 2. Tippe o (klein geschrieben), um eine Zeile UNTERHALB des Cursos zu 鰂fnen
- und Dich in den Einf黦emodus zu begeben.
-
- 3. Nun tippe etwas Text und dr點ke <ESC> , um den Einf黦emodus zu verlassen.
-
----> Mit o wird der Cursor auf der offenen Zeile im Einf黦emodus platziert.
-
- 4. Um eine Zeile 蹷ERHALB des Cursos aufzumachen, gib einfach ein gro遝s O
- statt einem kleinen o ein. Versuche dies auf der unten stehenden Zeile.
-
----> 謋fne eine Zeile 黚er dieser mit O , wenn der Cursor auf dieser Zeile ist.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.2: TEXT ANF蹽EN (APPEND)
-
-
- ** Tippe a , um Text NACH dem Cursor einzuf黦en. **
-
- 1. Bewege den Cursor zum Anfang der ersten 躡ungszeile mit ---> unten.
-
- 2. Dr點ke e , bis der Cursor am Ende von Zei steht.
-
- 3. Tippe ein kleines a , um Text NACH dem Cursor anzuf黦en.
-
- 4. Vervollst鋘dige das Wort so wie in der Zeile darunter. Dr點ke <ESC> ,
- um den Einf黦emodus zu verlassen.
-
- 5. Bewege Dich mit e zum n鋍hsten unvollst鋘digen Wort und wiederhole
- Schritte 3 und 4.
-
----> Diese Zei bietet Gelegen , Text in einer Zeile anzuf.
----> Diese Zeile bietet Gelegenheit, Text in einer Zeile anzuf黦en.
-
-Bemerkung: a, i und A gehen alle gleicherma遝n in den Einf黦emodus; der
- einzige Unterschied ist, wo die Zeichen eingef黦t werden.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.3: EINE ANDERE ART DES ERSETZENS (REPLACE)
-
-
- ** Tippe ein gro遝s R , um mehr als ein Zeichen zu ersetzen. **
-
- 1. Bewege den Cursor zur ersten unten stehenden, mit ---> markierten Zeile.
- Bewege den Cursor zum Anfang des ersten xxx .
-
- 2. Nun dr點ke R und tippe die Nummer, die darunter in der zweiten Zeile
- steht, so das diese das xxx ersetzt.
-
- 3. Dr點ke <ESC> , um den Ersetzungsmodus zu verlassen. Bemerke, da der Rest
- der Zeile unver鋘dert bleibt.
-
- 4. Wiederhole die Schritte, um das verbliebene xxx zu ersetzen.
-
----> Das Addieren von 123 zu xxx ergibt xxx.
----> Das Addieren von 123 zu 456 ergibt 579.
-
-Bemerkung: Der Ersetzungsmodus ist wie der Einf黦emodus, aber jedes eingetippte
- Zeichen l鰏cht ein vorhandenes Zeichen.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.4: TEXT KOPIEREN UND EINF蹽EN
-
- ** Benutze den y Operator, um Text zu kopieren; p , um ihn einzuf黦en **
-
- 1. Gehe zu der mit ---> markierten Zeile unten, setze den Cursor hinter "a)".
-
- 2. Starte den Visuellen Modus mit v , bewege den Cursor genau vor "erste".
-
- 3. Tippe y , um den hervorgehoben Text zu kopieren.
-
- 4. Bewege den Cursor zum Ende der n鋍hsten Zeile: j$
-
- 5. Tippe p , um den Text einzuf黦en und anschlie遝nd: a zweite <ESC> .
-
- 6. Benutze den Visuellen Modus, um " Eintrag." auszuw鋒len, kopiere mittels
- y , bewege Dich zum Ende der n鋍hsten Zeile mit j$ und f黦e den Text
- dort mit p an.
-
----> a) dies ist der erste Eintrag.
- b)
-
-Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.5: OPTIONEN SETZEN
-
- ** Setze eine Option so, dass eine Suche oder eine Ersetzung Gro- **
- ** und Kleinschreibung ignoriert **
-
- 1. Suche nach 'ignoriere', indem Du /ignoriere eingibst.
- Wiederhole die Suche einige Male, indem Du die n - Taste dr點kst.
-
- 2. Setze die 'ic' (Ignore case) - Option, indem Du :set ic eingibst.
-
- 3. Nun suche wieder nach 'ignoriere', indem Du n tippst.
- Bemerke, da jetzt Ignoriere und auch IGNORIERE gefunden wird.
-
- 4. Setze die 'hlsearch' und 'incsearch' - Optionen: :set hls is
-
- 5. Wiederhole die Suche und beobachte, was passiert: /ignoriere <ENTER>
-
- 6. Um das Ignorieren von Gro/Kleinschreibung abzuschalten, tippe: :set noic
-
-Bemerkung: Um die Hervorhebung der Treffer zu enfernen, gib ein: :nohlsearch
-Bemerkung: Um die Schreibweise f黵 eine einzige Suche zu ignorieren, benutze
- \c im Suchausdruck: /ignoriere\c <ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 6
-
- 1. Tippe o , um eine Zeile UNTER dem Cursor zu 鰂fnen und den Einf黦emodus
- zu starten.
- Tippe O , um eine Zeile 蹷ER dem Cursor zu 鰂fnen.
-
- 2. Tippe a , um Text NACH dem Cursor anzuf黦en.
- Tippe A , um Text nach dem Zeilenende anzuf黦en.
-
- 3. Das Kommando e bringt Dich zum Ende eines Wortes.
-
- 4. Der Operator y (yank) kopiert Text, p (put) f黦t ihn ein.
-
- 5. Ein gro遝s R geht in den Ersetzungsmodus bis zum Dr點ken von <ESC> .
-
- 6. Die Eingabe von ":set xxx" setzt die Option "xxx". Einige Optionen sind:
- 'ic' 'ignorecase' Ignoriere Gro/Kleinschreibung bei einer Suche
- 'is' 'incsearch' Zeige Teil黚ereinstimmungen f黵 einen Suchausdruck
- 'hls' 'hlsearch' Hebe alle passenden Ausdr點ke hervor
- Der Optionsname kann in der Kurz- oder der Langform angegeben werden.
-
- 7. Stelle einer Option "no" voran, um sie abzuschalten: :set noic
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 7.1 : AUFRUFEN VON HILFE
-
-
- ** Nutze das eingebaute Hilfesystem **
-
- Vim besitzt ein umfassendes eingebautes Hilfesystem. F黵 den Anfang probiere
- eins der drei folgenden Dinge aus:
- - Dr點ke die <Hilfe> - Taste (falls Du eine besitzt)
- - Dr點ke die <F1> Taste (falls Du eine besitzt)
- - Tippe :help <ENTER>
-
- Lies den Text im Hilfefenster, um zu verstehen wie die Hilfe funktioniert.
- Tippe CTRL-W CTRL-W , um von einem Fenster zum anderen zu springen.
- Tippe :q <ENTER> , um das Hilfefenster zu schlie遝n.
-
- Du kannst Hilfe zu praktisch jedem Thema finden, indem Du dem ":help"-
- Kommando ein Argument gibst. Probiere folgendes (<ENTER> nicht vergessen):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 7.2: ERSTELLE EIN START-SKRIPT
-
-
- ** Aktiviere die eingebauten Funktionalit鋞en von Vim **
-
- Vim besitzt viele Funktionalit鋞en, die 黚er Vi hinausgehen, aber die meisten
- von ihnen sind standardm溥ig deaktiviert. Um mehr Funktionalit鋞en zu nutzen,
- musst Du eine "vimrc" - Datei erstellen.
-
- 1. Starte das Editieren der "vimrc"-Datei, abh鋘gig von Deinem System:
- :e ~/.vimrc f黵 Unix
- :e $VIM/_vimrc f黵 MS-Windows
-
- 2. Nun lies den Inhalt der Beispiel-"vimrc"-Datei ein:
- :r $VIMRUNTIME/vimrc_example.vim
-
- 3. Speichere die Datei mit:
- :w
-
- Beim n鋍hsten Start von Vim wird die Syntaxhervorhebung aktiviert sein.
- Du kannst all Deine bevorzugten Optionen zu dieser "vimrc"-Datei zuf黦en.
- F黵 mehr Informationen tippe :help vimrc-intro
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 7.3: VERVOLLST腘DIGEN
-
-
- ** Kommandozeilenvervollst鋘digung mit CTRL-D and <TAB> **
-
- 1. Stelle sicher, da Vim nicht im vi-Kompatibilit鋞smodus ist: :set nocp
-
- 2. Siehe nach, welche Dateien im Verzeichnis existieren: :!ls oder :dir
-
- 3. Tippe den Beginn eines Komandos: :e
-
- 4. Dr點ke CTRL-D und Vim zeigt eine Liste mit "e" beginnender Kommandos.
-
- 5. Dr點ke <TAB> und Vim vervollst鋘digt den Kommandonamen zu ":edit".
-
- 6. Nun f黦e ein Leerzeichen und den Beginn einer existierenden Datei an:
- :edit DAT
-
- 7. Dr點ke <TAB>. Vim vervollst鋘digt den Namen (falls er eindeutig ist).
-
-Bemerkung: Vervollst鋘digung funktioniert f黵 viele Kommandos. Versuche
- einfach CTRL-D und <TAB>. Dies ist insbesondere n黷zlich f黵 :help .
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZUSAMMENFASSUNG VON LEKTION 7
-
-
- 1. Tippe :help oder dr點ke <F1> oder <Help>, um ein Hilfefenster zu 鰂fnen.
-
- 2. Tippe :help Kommando , um Hilfe 黚er Kommando zu erhalten.
-
- 3. Tippe CTRL-W CTRL-W , um zum anderen Fenster zu springen.
-
- 4. Tippe :q , um das Hilfefenster zu schlie遝n.
-
- 5. Erstelle ein vimrc - Startskript zur Sicherung bevorzugter Einstellungen.
-
- 6. Dr點ke CTRL-D nach dem Tippen eines Kommandos : , um m鰃liche
- Vervollst鋘digungen zu sehen.
- Dr點ke <TAB> f黵 eine einzige Vervollst鋘digung.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Damit ist der Vim Tutor beendet. Die Intention war, einen kurzen und
- b黱digen 躡erblick 黚er den Vim Editor zu liefern; gerade genug, um relativ
- leicht mit ihm umgehen zu k鰊nen. Der Vim Tutor hat nicht den geringsten
- Anspruch auf Vollst鋘digkeit; Vim hat noch weitaus mehr Kommandos. Lies als
- n鋍hstes das User Manual: ":help user-manual".
-
- F黵 weiteres Lesen und Lernen ist folgendes Buch empfohlen :
- Vim - Vi Improved - von Steve Oualline
- Verlag: New Riders
- Das erste Buch, welches durchg鋘gig Vim gewidmet ist. Besonders n黷zlich
- f黵 Anf鋘ger. Viele Beispiele und Bilder sind enthalten.
- Siehe http://iccf-holland.org/click5.html
-
- Folgendes Buch ist 鋖ter und mehr 黚er Vi als Vim, aber auch empfehlenswert:
- Textbearbeitung mit dem vi-Editor - von Linda Lamb und Arnold Robbins
- Verlag O'Reilly - ISBN: 3897211262
- In diesem Buch kann man fast alles finden, was man mit Vi tun m鯿hte.
- Die sechste Ausgabe enth鋖t auch Informationen 黚er Vim.
-
- Als aktuelle Referenz f黵 Version 6.2 und knappe Einf黨rung dient das
- folgende Buch:
- vim ge-packt von Reinhard Wobst
- mitp-Verlag, ISBN 3-8266-1425-9
- Trotz der kompakten Darstellung ist es durch viele n黷zliche Beispiele auch
- f黵 Einsteiger empfehlenswert. Probekapitel und die Beispielskripte sind
- online erh鋖tlich. Siehe http://iccf-holland.org/click5.html
-
- Dieses Tutorial wurde geschrieben von Michael C. Pierce and Robert K. Ware,
- Colorado School of Mines. Es benutzt Ideen, die Charles Smith, Colorado State
- University, zur Verf黦ung stellte. E-mail: bware@mines.colorado.edu.
-
- Bearbeitet f黵 Vim von Bram Moolenaar.
- Deutsche 躡ersetzung von Joachim Hofmann 2007. E-mail: Joachim.Hof@gmx.de
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.gr b/runtime/tutor/tutor.el
index d402bc8ad..d402bc8ad 100644
--- a/runtime/tutor/tutor.gr
+++ b/runtime/tutor/tutor.el
diff --git a/runtime/tutor/tutor.es b/runtime/tutor/tutor.es
deleted file mode 100644
index bbdb13d1f..000000000
--- a/runtime/tutor/tutor.es
+++ /dev/null
@@ -1,769 +0,0 @@
-===============================================================================
-= B i e n v e n i d o a l t u t o r d e V I M - Versi髇 1.4 =
-===============================================================================
-
- Vim es un editor muy potente que dispone de muchos mandatos, demasiados
- para ser explicados en un tutor como 閟te. Este tutor est dise馻do
- para describir suficientes mandatos para que usted sea capaz de
- aprender f醕ilmente a usar Vim como un editor de prop髎ito general.
-
- El tiempo necesario para completar el tutor es aproximadamente de 25-30
- minutos, dependiendo de cuanto tiempo se dedique a la experimentaci髇.
-
- Los mandatos de estas lecciones modificar醤 el texto. Haga una copia de
- este fichero para practicar (con 玽imtutor esto ya es una copia).
-
- Es importante recordar que este tutor est pensado para ense馻r con
- la pr醕tica. Esto significa que es necesario ejecutar los mandatos
- para aprenderlos adecuadamente. Si 鷑icamente se lee el texto, se
- olvidar醤 los mandatos.
-
- Ahora, aseg鷕ese de que la tecla de bloqueo de may鷖culas no est
- activada y pulse la tecla j lo suficiente para mover el cursor
- de forma que la Lecci髇 1.1 ocupe completamente la pantalla.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 1.1: MOVIMIENTOS DEL CURSOR
-
- ** Para mover el cursor, pulse las teclas h,j,k,l de la forma que se indica. **
- ^
- k Indicaci髇: La tecla h est a la izquierda y mueve a la izquierda.
- < h l > La tecla l est a la derecha y mueve a la derecha.
- j La tecla j parece una flecha que apunta hacia abajo.
- v
-
- 1. Mueva el cursor por la pantalla hasta que se sienta c髆odo con ello.
-
- 2. Mantenga pulsada la tecla j hasta que se repita 玜utom醙icamente.
----> Ahora ya sabe como llegar a la lecci髇 siguiente.
-
- 3. Utilizando la tecla abajo, vaya a la Lecci髇 1.2.
-
-Nota: Si alguna vez no est seguro sobre algo que ha tecleado, pulse <ESC>
- para situarse en modo Normal. Luego vuelva a teclear la orden que deseaba.
-
-Nota: Las teclas de movimiento del cursor tambi閚 funcionan. Pero usando
- hjkl podr moverse mucho m醩 r醦ido una vez que se acostumbre a ello.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 1.2: ENTRANDO Y SALIENDO DE VIM
-
-   NOTA: Antes de ejecutar alguno de los pasos siguientes lea primero
- la lecci髇 entera!!
-
- 1. Pulse la tecla <ESC> (para asegurarse de que est en modo Normal).
-
- 2. Escriba: :q! <INTRO>
-
----> Esto provoca la salida del editor SIN guardar ning鷑 cambio que se haya
- hecho. Si quiere guardar los cambios y salir escriba:
- :wq <INTRO>
-
- 3. Cuando vea el s韒bolo del sistema, escriba el mandato que le trajo a este
- tutor. 蓅te puede haber sido: vimtutor <INTRO>
- Normalmente se usar韆: vim tutor <INTRO>
-
----> 'vim' significa entrar al editor, 'tutor' es el fichero a editar.
-
- 4. Si ha memorizado estos pasos y se se siente con confianza, ejecute los
- pasos 1 a 3 para salir y volver a entrar al editor. Despu閟 mueva el
- cursor hasta la Lecci髇 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 1.3: EDICI覰 DE TEXTO - BORRADO
-
-** Estando en modo Normal pulse x para borrar el car醕ter sobre el cursor. **j
-
-
- 1. Mueva el cursor a la l韓ea de abajo se馻lada con --->.
-
- 2. Para corregir los errores, mueva el cursor hasta que est bajo el
- car醕ter que va aser borrado.
-
- 3. Pulse la tecla x para borrar el car醕ter sobrante.
-
- 4. Repita los pasos 2 a 4 hasta que la frase sea la correcta.
-
----> La vvaca salt篌 soobree laa luuuuna.
-
- 5. Ahora que la l韓ea esta correcta, contin鷈 con la Lecci髇 1.4.
-
-
-NOTA: A medida que vaya avanzando en este tutor no intente memorizar,
- aprenda practicando.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 1.4: EDICI覰 DE TEXTO - INSERCI覰
-
- ** Estando en modo Normal pulse i para insertar texto. **
-
-
- 1. Mueva el cursor a la primera l韓ea de abajo se馻lada con --->.
-
- 2. Para que la primera l韓ea se igual a la segunda mueva el cursor bajo el
- primer car醕ter que sigue al texto que ha de ser insertado.
-
- 3. Pulse i y escriba los caracteres a a馻dir.
-
- 4. A medida que sea corregido cada error pulse <ESC> para volver al modo
- Normal. Repita los pasos 2 a 4 para corregir la frase.
-
----> Flta texto en esta .
----> Falta algo de texto en esta l韓ea.
-
- 5. Cuando se sienta c髆odo insertando texto pase al resumen que esta m醩
- abajo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- RESUMEN DE LA LECCI覰 1
-
-
- 1. El cursor se mueve utilizamdo las teclas de las flechas o las teclas hjkl.
- h (izquierda) j (abajo) k (arriba) l (derecha)
-
- 2. Para acceder a Vim (desde el s韒bolo del sistema %) escriba:
- vin FILENAME <INTRO>
-
- 3. Para salir de Vim escriba: <ESC> :q! <INTRO> para eliminar todos
- los cambios.
-
- 4. Para borrar un car醕ter sobre el cursor en modo Normal pulse: x
-
- 5. Para insertar texto en la posici髇 del cursor estando en modo Normal:
- pulse i escriba el texto pulse <ESC>
-
-NOTA: Pulsando <ESC> se vuelve al modo Normal o cancela un mandato no deseado
- o incompleto.
-
-Ahora contin鷈 con la Lecci髇 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 2.1: MANDATOS PARA BORRAR
-
-
- ** Escriba dw para borrar hasta el final de una palabra **
-
-
- 1. Pulse <ESC> para asegurarse de que est en el modo Normal.
-
- 2. Mueva el cursor a la l韓ea de abajo se馻lada con --->.
-
- 3. Mueva el cursor al comienzo de una palabra que desee borrar.
-
- 4. Pulse dw para hacer que la palabra desaparezca.
-
-
- NOTA: Las letras dw aparecer醤 en la 鷏tima l韓ea de la pantalla cuando
- las escriba. Si escribe algo equivocado pulse <ESC> y comience de nuevo.
-
-
----> Hay algunas palabras p醩alo bien que no pertenecen papel a esta frase.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 2.2: M罶 MANDATOS PARA BORRAR
-
-
- ** Escriba d$ para borrar hasta el final de la l韓ea. **
-
-
- 1. Pulse <ESC> para asegurarse de que est en el modo Normal.
-
- 2. Mueva el cursor a la l韓ea de abajo se馻lada con --->.
-
- 3. Mueva el cursor al final de la l韓ea correcta (DESPU蒘 del primer . ).
-
- 4. Escriba d$ para borrar hasta el final de la l韓ea.
-
----> Alguien ha escrito el final de esta l韓ea dos veces. esta l韓ea dos veces.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 2.3: SOBRE MANDATOS Y OBJETOS
-
-
- El formato del mandato de borrar d es como sigue:
-
- [n鷐ero] d objeto O d [n鷐ero] objeto
- donde:
- n鷐ero - es cu醤tas veces se ha de ejecutar el mandato (opcional, defecto=1).
- d - es el mandato para borrar.
- objeto - es sobre lo que el mandato va a operar (lista, abajo).
-
- Una lista corta de objetos:
- w - desde el cursor hasta el final de la palabra, incluyendo el espacio.
- e - desde el cursor hasta el final de la palabra, SIN incluir el espacio.
- $ - desde el cursor hasta el final de la l韓ea.
-
-NOTE: Para los aventureros, pulsando s髄o el objeto estando en modo Normal
- sin un mandato mover el cursor como se especifica en la lista de objetos.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 2.4: UNA EXCEPCI覰 AL 'MANDATO-OBJETO'
-
- ** Escriba dd para borrar una l韓ea entera. **
-
- Debido a la frecuencia con que se borran l韓eas enteras, los dise馻dores
- de Vim decidieron que ser韆 m醩 f醕il el escribir simplemente dos des en
- una fila para borrar una l韓ea.
-
- 1. Mueva el cursor a la segunda l韓ea de la lista de abajo.
- 2. Escriba dd para borrar la l韓ea.
- 3. Mu関ase ahora a la cuarta l韓ea.
- 4. Escriba 2dd (recuerde n鷐ero-mandato-objeto) para borrar las dos
- l韓eas.
-
- 1) Las rosas son rojas,
- 2) El barro es divertido,
- 3) El cielo es azul,
- 4) Yo tengo un coche,
- 5) Los relojes marcan la hora,
- 6) El azucar es dulce,
- 7) Y as eres tu.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 2.5: EL MANDATO DESHACER
-
-
- ** Pulse u para deshacer los 鷏timos mandatos,
- U para deshacer una l韓ea entera. **
-
- 1. Mueva el cursor a la l韓ea de abajo se馻lada con ---> y sit鷈lo bajo el
- primer error.
- 2. Pulse x para borrar el primer car醫er err髇eo.
- 3. Pulse ahora u para deshacer el 鷏timo mandato ejecutado.
- 4. Ahora corrija todos los errores de la l韓ea usando el mandato x.
- 5. Pulse ahora U may鷖cula para devolver la l韓ea a su estado original.
- 6. Pulse ahora u unas pocas veces para deshacer lo hecho por U y los
- mandatos previos.
- 7. Ahora pulse CTRL-R (mantenga pulsada la tecla CTRL y pulse R) unas
- pocas veces para volver a ejecutar los mandatos (deshacer lo deshecho).
-
----> Corrrija los errores dee esttta l韓ea y vuuelva a ponerlos coon deshacer.
-
- 8. Estos mandatos son muy 鷗iles. Ahora pase al resumen de la Lecci髇 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- RESUMEN DE LA LECCI覰 2
-
- 1. Para borrar desde el cursor hasta el final de una palabra pulse: dw
-
- 2. Para borrar desde el cursor hasta el final de una l韓ea pulse: d$
-
- 3. Para borrar una l韓ea enter pulse: dd
-
- 4. El formato de un mandato en modo Normal es:
-
- [n鷐ero] mandato objeto O mandato [n鷐ero] objeto
- donde:
- n鷐ero - es cu醤tas veces se ha de ejecutar el mandato
- mandato - es lo que hay que hacer, por ejemplo, d para borrar
- objeto - es sobre lo que el mandato va a operar, por ejemplo
- w (palabra), $ (hasta el final de la l韓ea), etc.
-
- 5. Para deshacer acciones previas pulse: u (u min鷖cula)
- Para deshacer todos los cambios de una l韓ea pulse: U (U may鷖cula)
- Para deshacer lo deshecho pulse: CTRL-R
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 3.1: EL MANDATO 玃UT (poner)
-
- ** Pulse p para poner lo 鷏timo que ha borrado despu閟 del cursor. **
-
- 1. Mueva el cursor al final de la lista de abajo.
-
- 2. Escriba dd para borrar la l韓ea y almacenarla en el buffer de Vim.
-
- 3. Mueva el cursor a la l韓ea que debe quedar por debajo de la
- l韓ea a mover.
-
- 4. Estando en mod Normal, pulse p para restituir la l韓ea borrada.
-
- 5. Repita los pasos 2 a 4 para poner todas las l韓eas en el orden correcto.
-
- d) 縋uedes aprenderla tu?
- b) Las violetas son azules,
- c) La inteligencia se aprende,
- a) Las rosas son rojas,
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 3.2: EL MANDATO 玆EPLACE (remplazar)
-
-
- ** Pulse r y un car醕ter para sustituir el car醕ter sobre el cursor. **
-
-
- 1. Mueva el cursor a la primera l韓ea de abajo se馻lada con --->.
-
- 2. Mueva el cursor para situarlo bajo el primer error.
-
- 3. Pulse r y el car醕ter que debe sustituir al err髇eo.
-
- 4. Repita los pasos 2 y 3 hasta que la primera l韓ea est corregida.
-
----> uendo esta l韓ea fue rscrita alguien pulso algunas teclas equibocadas!
----> uando esta l韓ea fue escrita alguien puls algunas teclas equivocadas!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 3.3: EL MANDATO 獵HANGE (cambiar)
-
-
- ** Para cambiar parte de una palabra o toda ella escriba cw . **
-
-
- 1. Mueva el cursor a la primera l韓ea de abajo se馻lada con --->.
-
- 2. Sit鷈 el cursor en la u de lubrs.
-
- 3. Escriba cw y corrija la palabra (en este caso, escriba '韓ea').
-
- 4. Pulse <ESC> y mueva el cursor al error siguiente (el primer car醕ter
- que deba cambiarse).
-
- 5. Repita los pasos 3 y 4 hasta que la primera frase sea igual a la segunda.
-
----> Esta lubrs tiene unas pocas pskavtad que corregir usem el mandato change.
----> Esta l韓ea tiene unas pocas palabras que corregir usando el mandato change.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 3.4: M罶 CAMBIOS USANDO c
-
- ** El mandato change se utiliza con los mismos objetos que delete. **
-
- 1. El mandato change funciona de la misma forma que delete. El formato es:
-
- [n鷐ero] c objeto O c [n鷐ero] objeto
-
- 2. Los objetos son tambi閙 los mismos, tales como w (palabra), $ (fin de
- la l韓ea), etc.
-
- 3. Mueva el cursor a la primera l韓ea de abajo se馻lada con --->.
-
- 4. Mueva el cursor al primer error.
-
- 5. Escriba c$ para hacer que el resto de la l韓ea sea como la segunda
- y pulse <ESC>.
-
----> El final de esta l韓ea necesita alguna ayuda para que sea como la segunda.
----> El final de esta l韓ea necesita ser corregido usando el mandato c$.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- RESUMEN DE LA LECCI覰 3
-
-
- 1. Para sustituir texto que ha sido borrado, pulse p . Esto Pone el texto
- borrado DESPU蒘 del cursor (si lo que se ha borrado es una l韓ea se
- situar sobre la l韓ea que est sobre el cursor).
-
- 2. Para sustituir el car醕ter bajo el cursor, pulse r y luego el
- car醕ter que sustituir al original.
-
- 3. El mandato change le permite cambiar el objeto especificado desde la
- posici髇 del cursor hasta el final del objeto; e.g. Pulse cw para
- cambiar desde el cursor hasta el final de la palabra, c$ para cambiar
- hasta el final de la l韓ea.
-
- 4. El formato para change es:
-
- [n鷐ero] c objeto O c [n鷐ero] objeto
-
- Pase ahora a la lecci髇 siguiente.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 4.1: SITUACI覰 EN EL FICHERO Y SU ESTADO
-
-
- ** Pulse CTRL-g para mostrar su situaci髇 en el fichero y su estado.
- Pulse MAYU-G para moverse a una determinada l韓ea del fichero. **
-
- Nota:  Lea esta lecci髇 entera antes de ejecutar alguno de los pasos!!
-
-
- 1. Mantenga pulsada la tecla Ctrl y pulse g . Aparece una l韓ea de estado
- al final de la pantalla con el nombre del fichero y la l韓ea en la que
- est situado. Recuerde el n鷐ero de la l韓ea para el Paso 3.
-
- 2. Pulse Mayu-G para ir al final del fichero.
-
- 3. Escriba el n鷐ero de la l韓ea en la que estaba y desp鷈s Mayu-G. Esto
- le volver a la l韓ea en la que estaba cuando puls Ctrl-g.
- (Cuando escriba los n鷐eros NO se mostrar醤 en la pantalla).
-
- 4. Si se siente confiado en poder hacer esto ejecute los pasos 1 a 3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 4.2: EL MANDATO 玈EARCH (buscar)
-
- ** Escriba / seguido de una frase para buscar la frase. **
-
- 1. En modo Normal pulse el car醕ter / . F韏ese que tanto el car醕ter /
- como el cursor aparecen en la 鷏tima l韓ea de la pantalla, lo mismo
- que el mandato : .
-
- 2. Escriba ahora errroor <INTRO>. Esta es la palabra que quiere buscar.
-
- 3. Para repetir la b鷖queda, simplemente pulse n .
- Para busacar la misma frase en la direcci髇 opuesta, pulse Mayu-N .
-
- 4. Si quiere buscar una frase en la direcci髇 opuesta (hacia arriba),
- utilice el mandato ? en lugar de / .
-
----> Cuando la b鷖queda alcanza el final del fichero continuar desde el
- principio.
-
- 玡rrroor no es la forma de deletrear error; errroor es un error.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 4.3: B赟QUEDA PARA COMPROBAR PAR蒒TESIS
-
- ** Pulse % para encontrar el par閚tesis correspondiente a ),] o } . **
-
-
- 1. Sit鷈 el cursor en cualquiera de los caracteres ), ] o } en la l韓ea de
- abajo se馻lada con --->.
-
- 2. Pulse ahora el car醕ter % .
-
- 3. El cursor deber韆 situarse en el par閚tesis (, corchete [ o llave {
- correspondiente.
-
- 4. Pulse % para mover de nuevo el cursor al par閚tesis, corchete o llave
- correspondiente.
-
----> Esto ( es una l韓ea de prueba con (, [, ], {, y } en ella. )).
-
-Nota: sto es muy 鷗il en la detecci髇 de errores en un programa con
- par閚tesis, corchetes o llaves disparejos.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 4.4: UNA FORMA DE CAMBIAR ERRORES
-
-
- ** Escriba :s/viejo/nuevo/g para sustituir 'viejo' por 'nuevo'. **
-
-
- 1. Mueva el cursor a la l韓ea de abajo se馻lada con --->.
-
- 2. Escriba :s/laas/las/ <INTRO> . Tenga en cuenta que este mandato cambia
- s髄o la primera aparici髇 en la l韓ea de la expresi髇 a cambiar.
-
----> Laas mejores 閜ocas para ver laas flores son laas primaveras.
-
- 4. Para cambiar todas las apariciones de una expresi髇 ente dos l韓eas
- escriba :#,#s/viejo/nuevo/g donde #,# son los n鷐eros de las dos
- l韓eas. Escriba :%s/viejo/nuevo/g para hacer los cambios en todo
- el fichero.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- RESUMEN DE LA LECCI覰 4
-
-
- 1. Ctrl-g muestra la posici髇 del cursor en el fichero y su estado.
- Mayu-G mueve el cursor al final del fichero. Un n鷐ero de l韓ea
- sewguido de Mayu-G mueve el cursor a la l韓ea con ese n鷐ero.
-
- 2. Pulsando / seguido de una frase busca la frase hacia ADELANTE.
- Pulsando ? seguido de una frase busca la frase hacia ATR罶.
- Despu閟 de una b鷖queda pulse n para encontrar la aparici髇
- siguiente en la misma direcci髇.
-
- 3. Pulsando % cuando el cursor esta sobre (,), [,], { o } localiza
- la pareja correspondiente.
-
- 4. Para cambiar viejo por nuevo en una l韓ea pulse :s/viejo/nuevo
- Para cambiar todos los viejo por nuevo en una l韓ea pulse :s/viejo/nuevo/g
- Para cambiar frases entre dos n鷐eros de l韓eas pulse :#,#s/viejo/nuevo/g
- Para cambiar viejo por nuevo en todo el fichero pulse :%s/viejo/nuevo/g
- Para pedir confirmaci髇 en cada caso a馻da 'c' :%s/viejo/nuevo/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 5.1: C覯O EJECUTAR UN MANDATO EXTERNO
-
-
- ** Escriba :! seguido de un mandato externo para ejecutar ese mandato. **
-
-
- 1. Escriba el conocido mandato : para situar el cursor al final de la
- pantalla. Esto le permitir introducir un mandato.
-
- 2. Ahora escriba el car醕ter ! (signo de admiraci髇). Esto le permitir
- ejecutar cualquier mandato del sistema.
-
- 3. Como ejemplo escriba ls despu閟 del ! y luego pulse <INTRO>. Esto
- le mostrar una lista de su directorio, igual que si estuviera en el
- s韒bolo del sistema. Si ls no funciona utilice !:dir .
-
---->Nota: De esta manera es posible ejecutar cualquier mandato externo.
-
---->Nota: Todos los mandatos : deben finalizarse pulsando <INTRO>.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 5.2: M罶 SOBRE GUARDAR FICHEROS
-
-
- ** Para guardar los cambios hechos en un fichero,
- escriba :w NOMBRE_DE_FICHERO. **
-
-
- 1. Escriba :!dir o :!ls para ver una lista de su directorio.
- Ya sabe que debe pulsar <INTRO> despu閟 de ello.
-
- 2. Elija un nombre de fichero que todav韆 no exista, como TEST.
-
- 3. Ahora escriba :w TEST (donde TEST es el nombre de fichero elegido).
-
- 4. Esta acci髇 guarda todo el fichero (Vim Tutor) bajo el nombre TEST.
- Para comprobarlo escriba :!dir de nuevo y vea su directorio.
-
----> Tenga en cuenta que si sale de Vim y entra de nuevo con el nombre de
- fichero TEST, el fichero ser韆 una copia exacta del tutor cuando lo
- ha guardado.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 5.3: UN MANDATO DE ESCRITURA SELECTIVO
-
- ** Para guardar parte del fuchero escriba :#,# NOMBRE_DEL_FICHERO **
-
-
- 1. Escriba de nuevo, una vez m醩, :!dir o :!ls para obtener una lista
- de su directorio y elija nombre de fichero adecuado, como TEST.
-
- 2. Mueva el cursor al principio de la pantalla y pulse Ctrl-g para saber
- el n鷐ero de la l韓ea correspondiente. ECUERDE ESTE N贛ERO!
-
- 3. Ahora mueva el cursor a la 鷏tima l韓ea de la pantalla y pulse Ctrl-g
- de nuevo. ECUERDE TAMBI蒒 ESTE N贛ERO!
-
- 4. Para guardar SOLAMENTE una parte de un fichero, escriba :#,# w TEST
- donde #,# son los n鷐eros que usted ha recordado (primera l韓ea,
- 鷏tima l韓ea) y TEST es su nombre de dichero.
-
- 5. De nuevo, vea que el fichero esta ah con :!dir pero NO lo borre.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 5.4: RECUPERANDO Y MEZCLANDO FICHEROS
-
- ** Para insertar el contenido de un fichero escriba :r NOMBRE_DEL_FICHERO **
-
- 1. Escriba :!dir para asegurarse de que su fichero TEST del ejercicio
- anterior est presente.
-
- 2. Situe el cursor al principio de esta pantalla.
-
-NOTA: Despu閟 de ejecutar el paso 3 se ver la Lecci髇 5.3. Luego mu関ase
- hacia ABAJO para ver esta lecci髇 de nuevo.
-
- 3. Ahora recupere el fichero TEST utilizando el mandato :r TEST donde
- TEST es el nombre del fichero.
-
-NOTA: El fichero recuperado se sit鷄 a partir de la posici髇 del cursor.
-
- 4. Para verificar que el fichero ha sido recuperado, mueva el cursor hacia
- arriba y vea que hay dos copias de la Lecci髇 5.3, la original y la
- versi髇 del fichero.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- RESUMEN DE LA LECCI覰 5
-
-
- 1. :!mandato ejecuta un mandato externo.
-
- Algunos ejemplos 鷗iles son:
- :!dir - muestra el contenido de un directorio.
- :!del NOMBRE_DE_FICHERO - borra el fichero NOMBRE_DE FICHERO.
-
- 2. :#,#w NOMBRE_DE _FICHERO guarda desde las l韓eas # hasta la # en el
- fichero NOMBRE_DE_FICHERO.
-
- 3. :r NOMBRE_DE _FICHERO recupera el fichero del disco NOMBRE_DE FICHERO
- y lo inserta en el fichero en curso a partir de la posici髇 del cursor.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 6.1: EL MANDATO 玂PEN (abrir)
-
-
- ** Pulse o para abrir una l韓ea debajo del cursor
- y situarle en modo Insert **
-
-
- 1. Mueva el cursor a la l韓ea de abajo se馻lada con --->.
-
- 2. Pulse o (min鷖cula) para abrir una l韓ea por DEBAJO del cursor
- y situarle en modo Insert.
-
- 3. Ahora copie la l韓ea se馻lada con ---> y pulse <ESC> para salir del
- modo Insert.
-
----> Luego de pulsar o el cursor se sit鷄 en la l韓ea abierta en modo Insert.
-
- 4. Para abrir una l韓ea por encima del cursor, simplemente pulse una O
- may鷖cula, en lugar de una o min鷖cula. Pruebe este en la l韓ea siguiente.
-Abra una l韓ea sobre 閟ta pulsando Mayu-O cuando el curso est en esta l韓ea.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 6.2: EL MANDATO 獳PPEND (a馻dir)
-
- ** Pulse a para insertar texto DESPU蒘 del cursor. **
-
-
- 1. Mueva el cursor al final de la primera l韓ea de abajo se馻lada con --->
- pulsando $ en modo Normal.
-
- 2. Escriba una a (min鷖cula) para a馻dir texto DESPU蒘 del car醕ter
- que est sobre el cursor. (A may鷖cula a馻de texto al final de la l韓ea).
-
-Nota: sto evita el pulsar i , el 鷏timo car醕ter, el texto a insertar,
- <ESC>, cursor a la derecha y, finalmente, x , s髄o para a馻dir algo
- al final de una l韓ea!
-
- 3. Complete ahora la primera l韓ea. N髏ese que append es exactamente lo
- mismo que modo Insert, excepto por el lugar donde se inserta el texto.
-
----> Esta l韓ea le permitir praticar
----> Esta l韓ea le permitir praticar el a馻dido de texto al final de una l韓ea.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 6.3: OTRA VERSI覰 DE 玆EPLACE (remplazar)
-
- ** Pulse una R may鷖cula para sustituir m醩 de un car醕ter. **
-
-
- 1. Mueva el cursor a la primera l韓ea de abajo se馻lada con --->.
-
- 2. Sit鷈 el cursor al comienzo de la primera palabra que sea diferente
- de las de la segunda l韓ea marcada con ---> (la palabra 'anterior').
-
- 3. Ahora pulse R y sustituya el resto del texto de la primera l韓ea
- escribiendo sobre el viejo texto para que la primera l韓ea sea igual
- que la primera.
-
----> Para hacer que esta l韓ea sea igual que la anterior use las teclas.
----> Para hacer que esta l韓ea sea igual que la siguiente escriba R y el texto.
-
- 4. N髏ese que cuando pulse <ESC> para salir, el texto no alterado permanece.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 6.4: FIJAR OPCIONES
-
- ** Fijar una opci髇 de forma que una b鷖queda o sustituci髇 ignore la caja **
- (Para el concepto de caja de una letra, v閍se la nota al final del fichero)
-
-
- 1. Busque 'ignorar' introduciendo:
- /ignorar
- Repita varias veces la b鷖que pulsando la tecla n
-
- 2. Fije la opci髇 'ic' (Ignorar la caja de la letra) escribiendo:
- :set ic
-
- 3. Ahora busque 'ignorar' de nuevo pulsando n
- Repita la b鷖queda varias veces m醩 pulsando la tecla n
-
- 4. Fije las opciones 'hlsearch' y 'insearch':
- :set hls is
-
- 5. Ahora introduzca la orden de b鷖queda otra vez, y vea qu pasa:
- /ignore
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- RESUMEN DE LA LECCI覰 6
-
-
- 1. Pulsando o abre una l韓ea por DEBAJO del cursor y sit鷄 el cursor en
- la l韓ea abierta en modo Insert.
- Pulsando una O may鷖cula se abre una l韓ea SOBRE la que est el cursor.
-
- 2. Pulse una a para insertar texto DESPU蒘 del car醕ter sobre el cursor.
- Pulsando una A may鷖cula a馻de autom醫icamente texto al final de la
- l韓ea.
-
- 3. Pulsando una R may鷖cula se entra en modo Replace hasta que, para salir,
- se pulse <ESC>.
-
- 4. Escribiendo :set xxx fija la opci髇 玿xx
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lecci髇 7: MANDATOS PARA LA AYUDA EN L蚇EA
-
- ** Utilice el sistema de ayuda en l韓ea **
-
-
- Vim dispone de un sistema de ayuda en l韓ea. Para activarlo, pruebe una
- de estas tres formas:
- - pulse la tecla <AYUDA> (si dispone de ella)
- - pulse la tecla <F1> (si dispone de ella)
- - escriba :help <INTRO>
-
- Escriba :q <INTRO> para cerrar la ventana de ayuda.
-
- Puede encontrar ayuda en casi cualquier tema a馻diendo un argumento al
- mandato :help mandato. Pruebe 閟tos:
-
- :help w <INTRO>
- :help c_<T <INTRO>
- :help insert-index <INTRO>
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Aqu concluye el tutor de Vim. Est pensado para dar una visi髇 breve del
- editor Vim, lo suficiente para permitirle usar el editor de forma bastante
- sencilla. Est muy lejos de estar completo pues Vim tiene much韘imos m醩
- mandatos.
-
- Para lecturas y estudios posteriores se recomienda el libro:
- Learning the Vi Editor - por Linda Lamb
- Editorial: O'Reilly & Associates Inc.
- Es un buen libro para llegar a saber casi todo lo que desee hacer con Vi.
- La sexta edici髇 incluye tambi閚 informaci髇 sobre Vim.
-
- Este tutorial ha sido escrito por Michael C. Pierce y Robert K. Ware,
- Colorado School of Mines utilizando ideas suministradas por Charles Smith,
- Colorado State University.
- E-mail: bware@mines.colorado.edu.
-
- Modificado para Vim por Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Traducido del ingl閟 por:
-
- Eduardo F. Amatria
- Correo electr髇ico: eferna1@platea.pntic.mec.es
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.es.utf-8 b/runtime/tutor/tutor.es.utf-8
new file mode 100644
index 000000000..749561936
--- /dev/null
+++ b/runtime/tutor/tutor.es.utf-8
@@ -0,0 +1,769 @@
+===============================================================================
+= B i e n v e n i d o a l t u t o r d e V I M - Versi贸n 1.4 =
+===============================================================================
+
+ Vim es un editor muy potente que dispone de muchos mandatos, demasiados
+ para ser explicados en un tutor como 茅ste. Este tutor est谩 dise帽ado
+ para describir suficientes mandatos para que usted sea capaz de
+ aprender f谩cilmente a usar Vim como un editor de prop贸sito general.
+
+ El tiempo necesario para completar el tutor es aproximadamente de 25-30
+ minutos, dependiendo de cuanto tiempo se dedique a la experimentaci贸n.
+
+ Los mandatos de estas lecciones modificar谩n el texto. Haga una copia de
+ este fichero para practicar (con 芦vimtutor禄 esto ya es una copia).
+
+ Es importante recordar que este tutor est谩 pensado para ense帽ar con
+ la pr谩ctica. Esto significa que es necesario ejecutar los mandatos
+ para aprenderlos adecuadamente. Si 煤nicamente se lee el texto, se
+ olvidar谩n los mandatos.
+
+ Ahora, aseg煤rese de que la tecla de bloqueo de may煤sculas no est谩
+ activada y pulse la tecla j lo suficiente para mover el cursor
+ de forma que la Lecci贸n 1.1 ocupe completamente la pantalla.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 1.1: MOVIMIENTOS DEL CURSOR
+
+ ** Para mover el cursor, pulse las teclas h,j,k,l de la forma que se indica. **
+ ^
+ k Indicaci贸n: La tecla h est谩 a la izquierda y mueve a la izquierda.
+ < h l > La tecla l est谩 a la derecha y mueve a la derecha.
+ j La tecla j parece una flecha que apunta hacia abajo.
+ v
+
+ 1. Mueva el cursor por la pantalla hasta que se sienta c贸modo con ello.
+
+ 2. Mantenga pulsada la tecla j hasta que se repita 芦autom谩gicamente禄.
+---> Ahora ya sabe como llegar a la lecci贸n siguiente.
+
+ 3. Utilizando la tecla abajo, vaya a la Lecci贸n 1.2.
+
+Nota: Si alguna vez no est谩 seguro sobre algo que ha tecleado, pulse <ESC>
+ para situarse en modo Normal. Luego vuelva a teclear la orden que deseaba.
+
+Nota: Las teclas de movimiento del cursor tambi茅n funcionan. Pero usando
+ hjkl podr谩 moverse mucho m谩s r谩pido una vez que se acostumbre a ello.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 1.2: ENTRANDO Y SALIENDO DE VIM
+
+ 隆隆 NOTA: Antes de ejecutar alguno de los pasos siguientes lea primero
+ la lecci贸n entera!!
+
+ 1. Pulse la tecla <ESC> (para asegurarse de que est谩 en modo Normal).
+
+ 2. Escriba: :q! <INTRO>
+
+---> Esto provoca la salida del editor SIN guardar ning煤n cambio que se haya
+ hecho. Si quiere guardar los cambios y salir escriba:
+ :wq <INTRO>
+
+ 3. Cuando vea el s铆mbolo del sistema, escriba el mandato que le trajo a este
+ tutor. 脡ste puede haber sido: vimtutor <INTRO>
+ Normalmente se usar铆a: vim tutor <INTRO>
+
+---> 'vim' significa entrar al editor, 'tutor' es el fichero a editar.
+
+ 4. Si ha memorizado estos pasos y se se siente con confianza, ejecute los
+ pasos 1 a 3 para salir y volver a entrar al editor. Despu茅s mueva el
+ cursor hasta la Lecci贸n 1.3.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 1.3: EDICI脫N DE TEXTO - BORRADO
+
+** Estando en modo Normal pulse x para borrar el car谩cter sobre el cursor. **j
+
+
+ 1. Mueva el cursor a la l铆nea de abajo se帽alada con --->.
+
+ 2. Para corregir los errores, mueva el cursor hasta que est茅 bajo el
+ car谩cter que va aser borrado.
+
+ 3. Pulse la tecla x para borrar el car谩cter sobrante.
+
+ 4. Repita los pasos 2 a 4 hasta que la frase sea la correcta.
+
+---> La vvaca salt贸贸 soobree laa luuuuna.
+
+ 5. Ahora que la l铆nea esta correcta, contin煤e con la Lecci贸n 1.4.
+
+
+NOTA: A medida que vaya avanzando en este tutor no intente memorizar,
+ aprenda practicando.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 1.4: EDICI脫N DE TEXTO - INSERCI脫N
+
+ ** Estando en modo Normal pulse i para insertar texto. **
+
+
+ 1. Mueva el cursor a la primera l铆nea de abajo se帽alada con --->.
+
+ 2. Para que la primera l铆nea se igual a la segunda mueva el cursor bajo el
+ primer car谩cter que sigue al texto que ha de ser insertado.
+
+ 3. Pulse i y escriba los caracteres a a帽adir.
+
+ 4. A medida que sea corregido cada error pulse <ESC> para volver al modo
+ Normal. Repita los pasos 2 a 4 para corregir la frase.
+
+---> Flta texto en esta .
+---> Falta algo de texto en esta l铆nea.
+
+ 5. Cuando se sienta c贸modo insertando texto pase al resumen que esta m谩s
+ abajo.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ RESUMEN DE LA LECCI脫N 1
+
+
+ 1. El cursor se mueve utilizamdo las teclas de las flechas o las teclas hjkl.
+ h (izquierda) j (abajo) k (arriba) l (derecha)
+
+ 2. Para acceder a Vim (desde el s铆mbolo del sistema %) escriba:
+ vin FILENAME <INTRO>
+
+ 3. Para salir de Vim escriba: <ESC> :q! <INTRO> para eliminar todos
+ los cambios.
+
+ 4. Para borrar un car谩cter sobre el cursor en modo Normal pulse: x
+
+ 5. Para insertar texto en la posici贸n del cursor estando en modo Normal:
+ pulse i escriba el texto pulse <ESC>
+
+NOTA: Pulsando <ESC> se vuelve al modo Normal o cancela un mandato no deseado
+ o incompleto.
+
+Ahora contin煤e con la Lecci贸n 2.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 2.1: MANDATOS PARA BORRAR
+
+
+ ** Escriba dw para borrar hasta el final de una palabra **
+
+
+ 1. Pulse <ESC> para asegurarse de que est谩 en el modo Normal.
+
+ 2. Mueva el cursor a la l铆nea de abajo se帽alada con --->.
+
+ 3. Mueva el cursor al comienzo de una palabra que desee borrar.
+
+ 4. Pulse dw para hacer que la palabra desaparezca.
+
+
+ NOTA: Las letras dw aparecer谩n en la 煤ltima l铆nea de la pantalla cuando
+ las escriba. Si escribe algo equivocado pulse <ESC> y comience de nuevo.
+
+
+---> Hay algunas palabras p谩salo bien que no pertenecen papel a esta frase.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 2.2: M脕S MANDATOS PARA BORRAR
+
+
+ ** Escriba d$ para borrar hasta el final de la l铆nea. **
+
+
+ 1. Pulse <ESC> para asegurarse de que est谩 en el modo Normal.
+
+ 2. Mueva el cursor a la l铆nea de abajo se帽alada con --->.
+
+ 3. Mueva el cursor al final de la l铆nea correcta (DESPU脡S del primer . ).
+
+ 4. Escriba d$ para borrar hasta el final de la l铆nea.
+
+---> Alguien ha escrito el final de esta l铆nea dos veces. esta l铆nea dos veces.
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 2.3: SOBRE MANDATOS Y OBJETOS
+
+
+ El formato del mandato de borrar d es como sigue:
+
+ [n煤mero] d objeto O d [n煤mero] objeto
+ donde:
+ n煤mero - es cu谩ntas veces se ha de ejecutar el mandato (opcional, defecto=1).
+ d - es el mandato para borrar.
+ objeto - es sobre lo que el mandato va a operar (lista, abajo).
+
+ Una lista corta de objetos:
+ w - desde el cursor hasta el final de la palabra, incluyendo el espacio.
+ e - desde el cursor hasta el final de la palabra, SIN incluir el espacio.
+ $ - desde el cursor hasta el final de la l铆nea.
+
+NOTE: Para los aventureros, pulsando s贸lo el objeto estando en modo Normal
+ sin un mandato mover谩 el cursor como se especifica en la lista de objetos.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 2.4: UNA EXCEPCI脫N AL 'MANDATO-OBJETO'
+
+ ** Escriba dd para borrar una l铆nea entera. **
+
+ Debido a la frecuencia con que se borran l铆neas enteras, los dise帽adores
+ de Vim decidieron que ser铆a m谩s f谩cil el escribir simplemente dos des en
+ una fila para borrar una l铆nea.
+
+ 1. Mueva el cursor a la segunda l铆nea de la lista de abajo.
+ 2. Escriba dd para borrar la l铆nea.
+ 3. Mu茅vase ahora a la cuarta l铆nea.
+ 4. Escriba 2dd (recuerde n煤mero-mandato-objeto) para borrar las dos
+ l铆neas.
+
+ 1) Las rosas son rojas,
+ 2) El barro es divertido,
+ 3) El cielo es azul,
+ 4) Yo tengo un coche,
+ 5) Los relojes marcan la hora,
+ 6) El azucar es dulce,
+ 7) Y as铆 eres tu.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 2.5: EL MANDATO DESHACER
+
+
+ ** Pulse u para deshacer los 煤ltimos mandatos,
+ U para deshacer una l铆nea entera. **
+
+ 1. Mueva el cursor a la l铆nea de abajo se帽alada con ---> y sit煤elo bajo el
+ primer error.
+ 2. Pulse x para borrar el primer car谩ter err贸neo.
+ 3. Pulse ahora u para deshacer el 煤ltimo mandato ejecutado.
+ 4. Ahora corrija todos los errores de la l铆nea usando el mandato x.
+ 5. Pulse ahora U may煤scula para devolver la l铆nea a su estado original.
+ 6. Pulse ahora u unas pocas veces para deshacer lo hecho por U y los
+ mandatos previos.
+ 7. Ahora pulse CTRL-R (mantenga pulsada la tecla CTRL y pulse R) unas
+ pocas veces para volver a ejecutar los mandatos (deshacer lo deshecho).
+
+---> Corrrija los errores dee esttta l铆nea y vuuelva a ponerlos coon deshacer.
+
+ 8. Estos mandatos son muy 煤tiles. Ahora pase al resumen de la Lecci贸n 2.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ RESUMEN DE LA LECCI脫N 2
+
+ 1. Para borrar desde el cursor hasta el final de una palabra pulse: dw
+
+ 2. Para borrar desde el cursor hasta el final de una l铆nea pulse: d$
+
+ 3. Para borrar una l铆nea enter pulse: dd
+
+ 4. El formato de un mandato en modo Normal es:
+
+ [n煤mero] mandato objeto O mandato [n煤mero] objeto
+ donde:
+ n煤mero - es cu谩ntas veces se ha de ejecutar el mandato
+ mandato - es lo que hay que hacer, por ejemplo, d para borrar
+ objeto - es sobre lo que el mandato va a operar, por ejemplo
+ w (palabra), $ (hasta el final de la l铆nea), etc.
+
+ 5. Para deshacer acciones previas pulse: u (u min煤scula)
+ Para deshacer todos los cambios de una l铆nea pulse: U (U may煤scula)
+ Para deshacer lo deshecho pulse: CTRL-R
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 3.1: EL MANDATO 芦PUT禄 (poner)
+
+ ** Pulse p para poner lo 煤ltimo que ha borrado despu茅s del cursor. **
+
+ 1. Mueva el cursor al final de la lista de abajo.
+
+ 2. Escriba dd para borrar la l铆nea y almacenarla en el buffer de Vim.
+
+ 3. Mueva el cursor a la l铆nea que debe quedar por debajo de la
+ l铆nea a mover.
+
+ 4. Estando en mod Normal, pulse p para restituir la l铆nea borrada.
+
+ 5. Repita los pasos 2 a 4 para poner todas las l铆neas en el orden correcto.
+
+ d) 驴Puedes aprenderla tu?
+ b) Las violetas son azules,
+ c) La inteligencia se aprende,
+ a) Las rosas son rojas,
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 3.2: EL MANDATO 芦REPLACE禄 (remplazar)
+
+
+ ** Pulse r y un car谩cter para sustituir el car谩cter sobre el cursor. **
+
+
+ 1. Mueva el cursor a la primera l铆nea de abajo se帽alada con --->.
+
+ 2. Mueva el cursor para situarlo bajo el primer error.
+
+ 3. Pulse r y el car谩cter que debe sustituir al err贸neo.
+
+ 4. Repita los pasos 2 y 3 hasta que la primera l铆nea est茅 corregida.
+
+---> 隆Cuendo esta l铆nea fue rscrita alguien pulso algunas teclas equibocadas!
+---> 隆Cuando esta l铆nea fue escrita alguien puls贸 algunas teclas equivocadas!
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 3.3: EL MANDATO 芦CHANGE禄 (cambiar)
+
+
+ ** Para cambiar parte de una palabra o toda ella escriba cw . **
+
+
+ 1. Mueva el cursor a la primera l铆nea de abajo se帽alada con --->.
+
+ 2. Sit煤e el cursor en la u de lubrs.
+
+ 3. Escriba cw y corrija la palabra (en este caso, escriba '铆nea').
+
+ 4. Pulse <ESC> y mueva el cursor al error siguiente (el primer car谩cter
+ que deba cambiarse).
+
+ 5. Repita los pasos 3 y 4 hasta que la primera frase sea igual a la segunda.
+
+---> Esta lubrs tiene unas pocas pskavtad que corregir usem el mandato change.
+---> Esta l铆nea tiene unas pocas palabras que corregir usando el mandato change.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 3.4: M脕S CAMBIOS USANDO c
+
+ ** El mandato change se utiliza con los mismos objetos que delete. **
+
+ 1. El mandato change funciona de la misma forma que delete. El formato es:
+
+ [n煤mero] c objeto O c [n煤mero] objeto
+
+ 2. Los objetos son tambi茅m los mismos, tales como w (palabra), $ (fin de
+ la l铆nea), etc.
+
+ 3. Mueva el cursor a la primera l铆nea de abajo se帽alada con --->.
+
+ 4. Mueva el cursor al primer error.
+
+ 5. Escriba c$ para hacer que el resto de la l铆nea sea como la segunda
+ y pulse <ESC>.
+
+---> El final de esta l铆nea necesita alguna ayuda para que sea como la segunda.
+---> El final de esta l铆nea necesita ser corregido usando el mandato c$.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ RESUMEN DE LA LECCI脫N 3
+
+
+ 1. Para sustituir texto que ha sido borrado, pulse p . Esto Pone el texto
+ borrado DESPU脡S del cursor (si lo que se ha borrado es una l铆nea se
+ situar谩 sobre la l铆nea que est谩 sobre el cursor).
+
+ 2. Para sustituir el car谩cter bajo el cursor, pulse r y luego el
+ car谩cter que sustituir谩 al original.
+
+ 3. El mandato change le permite cambiar el objeto especificado desde la
+ posici贸n del cursor hasta el final del objeto; e.g. Pulse cw para
+ cambiar desde el cursor hasta el final de la palabra, c$ para cambiar
+ hasta el final de la l铆nea.
+
+ 4. El formato para change es:
+
+ [n煤mero] c objeto O c [n煤mero] objeto
+
+ Pase ahora a la lecci贸n siguiente.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 4.1: SITUACI脫N EN EL FICHERO Y SU ESTADO
+
+
+ ** Pulse CTRL-g para mostrar su situaci贸n en el fichero y su estado.
+ Pulse MAYU-G para moverse a una determinada l铆nea del fichero. **
+
+ Nota: 隆隆Lea esta lecci贸n entera antes de ejecutar alguno de los pasos!!
+
+
+ 1. Mantenga pulsada la tecla Ctrl y pulse g . Aparece una l铆nea de estado
+ al final de la pantalla con el nombre del fichero y la l铆nea en la que
+ est谩 situado. Recuerde el n煤mero de la l铆nea para el Paso 3.
+
+ 2. Pulse Mayu-G para ir al final del fichero.
+
+ 3. Escriba el n煤mero de la l铆nea en la que estaba y desp煤es Mayu-G. Esto
+ le volver谩 a la l铆nea en la que estaba cuando puls贸 Ctrl-g.
+ (Cuando escriba los n煤meros NO se mostrar谩n en la pantalla).
+
+ 4. Si se siente confiado en poder hacer esto ejecute los pasos 1 a 3.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 4.2: EL MANDATO 芦SEARCH禄 (buscar)
+
+ ** Escriba / seguido de una frase para buscar la frase. **
+
+ 1. En modo Normal pulse el car谩cter / . F铆jese que tanto el car谩cter /
+ como el cursor aparecen en la 煤ltima l铆nea de la pantalla, lo mismo
+ que el mandato : .
+
+ 2. Escriba ahora errroor <INTRO>. Esta es la palabra que quiere buscar.
+
+ 3. Para repetir la b煤squeda, simplemente pulse n .
+ Para busacar la misma frase en la direcci贸n opuesta, pulse Mayu-N .
+
+ 4. Si quiere buscar una frase en la direcci贸n opuesta (hacia arriba),
+ utilice el mandato ? en lugar de / .
+
+---> Cuando la b煤squeda alcanza el final del fichero continuar谩 desde el
+ principio.
+
+ 芦errroor禄 no es la forma de deletrear error; errroor es un error.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 4.3: B脷SQUEDA PARA COMPROBAR PAR脡NTESIS
+
+ ** Pulse % para encontrar el par茅ntesis correspondiente a ),] o } . **
+
+
+ 1. Sit煤e el cursor en cualquiera de los caracteres ), ] o } en la l铆nea de
+ abajo se帽alada con --->.
+
+ 2. Pulse ahora el car谩cter % .
+
+ 3. El cursor deber铆a situarse en el par茅ntesis (, corchete [ o llave {
+ correspondiente.
+
+ 4. Pulse % para mover de nuevo el cursor al par茅ntesis, corchete o llave
+ correspondiente.
+
+---> Esto ( es una l铆nea de prueba con (, [, ], {, y } en ella. )).
+
+Nota: 隆Esto es muy 煤til en la detecci贸n de errores en un programa con
+ par茅ntesis, corchetes o llaves disparejos.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 4.4: UNA FORMA DE CAMBIAR ERRORES
+
+
+ ** Escriba :s/viejo/nuevo/g para sustituir 'viejo' por 'nuevo'. **
+
+
+ 1. Mueva el cursor a la l铆nea de abajo se帽alada con --->.
+
+ 2. Escriba :s/laas/las/ <INTRO> . Tenga en cuenta que este mandato cambia
+ s贸lo la primera aparici贸n en la l铆nea de la expresi贸n a cambiar.
+
+---> Laas mejores 茅pocas para ver laas flores son laas primaveras.
+
+ 4. Para cambiar todas las apariciones de una expresi贸n ente dos l铆neas
+ escriba :#,#s/viejo/nuevo/g donde #,# son los n煤meros de las dos
+ l铆neas. Escriba :%s/viejo/nuevo/g para hacer los cambios en todo
+ el fichero.
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ RESUMEN DE LA LECCI脫N 4
+
+
+ 1. Ctrl-g muestra la posici贸n del cursor en el fichero y su estado.
+ Mayu-G mueve el cursor al final del fichero. Un n煤mero de l铆nea
+ sewguido de Mayu-G mueve el cursor a la l铆nea con ese n煤mero.
+
+ 2. Pulsando / seguido de una frase busca la frase hacia ADELANTE.
+ Pulsando ? seguido de una frase busca la frase hacia ATR脕S.
+ Despu茅s de una b煤squeda pulse n para encontrar la aparici贸n
+ siguiente en la misma direcci贸n.
+
+ 3. Pulsando % cuando el cursor esta sobre (,), [,], { o } localiza
+ la pareja correspondiente.
+
+ 4. Para cambiar viejo por nuevo en una l铆nea pulse :s/viejo/nuevo
+ Para cambiar todos los viejo por nuevo en una l铆nea pulse :s/viejo/nuevo/g
+ Para cambiar frases entre dos n煤meros de l铆neas pulse :#,#s/viejo/nuevo/g
+ Para cambiar viejo por nuevo en todo el fichero pulse :%s/viejo/nuevo/g
+ Para pedir confirmaci贸n en cada caso a帽ada 'c' :%s/viejo/nuevo/gc
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 5.1: C脫MO EJECUTAR UN MANDATO EXTERNO
+
+
+ ** Escriba :! seguido de un mandato externo para ejecutar ese mandato. **
+
+
+ 1. Escriba el conocido mandato : para situar el cursor al final de la
+ pantalla. Esto le permitir谩 introducir un mandato.
+
+ 2. Ahora escriba el car谩cter ! (signo de admiraci贸n). Esto le permitir谩
+ ejecutar cualquier mandato del sistema.
+
+ 3. Como ejemplo escriba ls despu茅s del ! y luego pulse <INTRO>. Esto
+ le mostrar谩 una lista de su directorio, igual que si estuviera en el
+ s铆mbolo del sistema. Si ls no funciona utilice !:dir .
+
+--->Nota: De esta manera es posible ejecutar cualquier mandato externo.
+
+--->Nota: Todos los mandatos : deben finalizarse pulsando <INTRO>.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 5.2: M脕S SOBRE GUARDAR FICHEROS
+
+
+ ** Para guardar los cambios hechos en un fichero,
+ escriba :w NOMBRE_DE_FICHERO. **
+
+
+ 1. Escriba :!dir o :!ls para ver una lista de su directorio.
+ Ya sabe que debe pulsar <INTRO> despu茅s de ello.
+
+ 2. Elija un nombre de fichero que todav铆a no exista, como TEST.
+
+ 3. Ahora escriba :w TEST (donde TEST es el nombre de fichero elegido).
+
+ 4. Esta acci贸n guarda todo el fichero (Vim Tutor) bajo el nombre TEST.
+ Para comprobarlo escriba :!dir de nuevo y vea su directorio.
+
+---> Tenga en cuenta que si sale de Vim y entra de nuevo con el nombre de
+ fichero TEST, el fichero ser铆a una copia exacta del tutor cuando lo
+ ha guardado.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 5.3: UN MANDATO DE ESCRITURA SELECTIVO
+
+ ** Para guardar parte del fuchero escriba :#,# NOMBRE_DEL_FICHERO **
+
+
+ 1. Escriba de nuevo, una vez m谩s, :!dir o :!ls para obtener una lista
+ de su directorio y elija nombre de fichero adecuado, como TEST.
+
+ 2. Mueva el cursor al principio de la pantalla y pulse Ctrl-g para saber
+ el n煤mero de la l铆nea correspondiente. 隆RECUERDE ESTE N脷MERO!
+
+ 3. Ahora mueva el cursor a la 煤ltima l铆nea de la pantalla y pulse Ctrl-g
+ de nuevo. 隆RECUERDE TAMBI脡N ESTE N脷MERO!
+
+ 4. Para guardar SOLAMENTE una parte de un fichero, escriba :#,# w TEST
+ donde #,# son los n煤meros que usted ha recordado (primera l铆nea,
+ 煤ltima l铆nea) y TEST es su nombre de dichero.
+
+ 5. De nuevo, vea que el fichero esta ah铆 con :!dir pero NO lo borre.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 5.4: RECUPERANDO Y MEZCLANDO FICHEROS
+
+ ** Para insertar el contenido de un fichero escriba :r NOMBRE_DEL_FICHERO **
+
+ 1. Escriba :!dir para asegurarse de que su fichero TEST del ejercicio
+ anterior est谩 presente.
+
+ 2. Situe el cursor al principio de esta pantalla.
+
+NOTA: Despu茅s de ejecutar el paso 3 se ver谩 la Lecci贸n 5.3. Luego mu茅vase
+ hacia ABAJO para ver esta lecci贸n de nuevo.
+
+ 3. Ahora recupere el fichero TEST utilizando el mandato :r TEST donde
+ TEST es el nombre del fichero.
+
+NOTA: El fichero recuperado se sit煤a a partir de la posici贸n del cursor.
+
+ 4. Para verificar que el fichero ha sido recuperado, mueva el cursor hacia
+ arriba y vea que hay dos copias de la Lecci贸n 5.3, la original y la
+ versi贸n del fichero.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ RESUMEN DE LA LECCI脫N 5
+
+
+ 1. :!mandato ejecuta un mandato externo.
+
+ Algunos ejemplos 煤tiles son:
+ :!dir - muestra el contenido de un directorio.
+ :!del NOMBRE_DE_FICHERO - borra el fichero NOMBRE_DE FICHERO.
+
+ 2. :#,#w NOMBRE_DE _FICHERO guarda desde las l铆neas # hasta la # en el
+ fichero NOMBRE_DE_FICHERO.
+
+ 3. :r NOMBRE_DE _FICHERO recupera el fichero del disco NOMBRE_DE FICHERO
+ y lo inserta en el fichero en curso a partir de la posici贸n del cursor.
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 6.1: EL MANDATO 芦OPEN禄 (abrir)
+
+
+ ** Pulse o para abrir una l铆nea debajo del cursor
+ y situarle en modo Insert **
+
+
+ 1. Mueva el cursor a la l铆nea de abajo se帽alada con --->.
+
+ 2. Pulse o (min煤scula) para abrir una l铆nea por DEBAJO del cursor
+ y situarle en modo Insert.
+
+ 3. Ahora copie la l铆nea se帽alada con ---> y pulse <ESC> para salir del
+ modo Insert.
+
+---> Luego de pulsar o el cursor se sit煤a en la l铆nea abierta en modo Insert.
+
+ 4. Para abrir una l铆nea por encima del cursor, simplemente pulse una O
+ may煤scula, en lugar de una o min煤scula. Pruebe este en la l铆nea siguiente.
+Abra una l铆nea sobre 茅sta pulsando Mayu-O cuando el curso est谩 en esta l铆nea.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 6.2: EL MANDATO 芦APPEND禄 (a帽adir)
+
+ ** Pulse a para insertar texto DESPU脡S del cursor. **
+
+
+ 1. Mueva el cursor al final de la primera l铆nea de abajo se帽alada con --->
+ pulsando $ en modo Normal.
+
+ 2. Escriba una a (min煤scula) para a帽adir texto DESPU脡S del car谩cter
+ que est谩 sobre el cursor. (A may煤scula a帽ade texto al final de la l铆nea).
+
+Nota: 隆Esto evita el pulsar i , el 煤ltimo car谩cter, el texto a insertar,
+ <ESC>, cursor a la derecha y, finalmente, x , s贸lo para a帽adir algo
+ al final de una l铆nea!
+
+ 3. Complete ahora la primera l铆nea. N贸tese que append es exactamente lo
+ mismo que modo Insert, excepto por el lugar donde se inserta el texto.
+
+---> Esta l铆nea le permitir谩 praticar
+---> Esta l铆nea le permitir谩 praticar el a帽adido de texto al final de una l铆nea.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 6.3: OTRA VERSI脫N DE 芦REPLACE禄 (remplazar)
+
+ ** Pulse una R may煤scula para sustituir m谩s de un car谩cter. **
+
+
+ 1. Mueva el cursor a la primera l铆nea de abajo se帽alada con --->.
+
+ 2. Sit煤e el cursor al comienzo de la primera palabra que sea diferente
+ de las de la segunda l铆nea marcada con ---> (la palabra 'anterior').
+
+ 3. Ahora pulse R y sustituya el resto del texto de la primera l铆nea
+ escribiendo sobre el viejo texto para que la primera l铆nea sea igual
+ que la primera.
+
+---> Para hacer que esta l铆nea sea igual que la anterior use las teclas.
+---> Para hacer que esta l铆nea sea igual que la siguiente escriba R y el texto.
+
+ 4. N贸tese que cuando pulse <ESC> para salir, el texto no alterado permanece.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 6.4: FIJAR OPCIONES
+
+ ** Fijar una opci贸n de forma que una b煤squeda o sustituci贸n ignore la caja **
+ (Para el concepto de caja de una letra, v茅ase la nota al final del fichero)
+
+
+ 1. Busque 'ignorar' introduciendo:
+ /ignorar
+ Repita varias veces la b煤sque pulsando la tecla n
+
+ 2. Fije la opci贸n 'ic' (Ignorar la caja de la letra) escribiendo:
+ :set ic
+
+ 3. Ahora busque 'ignorar' de nuevo pulsando n
+ Repita la b煤squeda varias veces m谩s pulsando la tecla n
+
+ 4. Fije las opciones 'hlsearch' y 'insearch':
+ :set hls is
+
+ 5. Ahora introduzca la orden de b煤squeda otra vez, y vea qu茅 pasa:
+ /ignore
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ RESUMEN DE LA LECCI脫N 6
+
+
+ 1. Pulsando o abre una l铆nea por DEBAJO del cursor y sit煤a el cursor en
+ la l铆nea abierta en modo Insert.
+ Pulsando una O may煤scula se abre una l铆nea SOBRE la que est谩 el cursor.
+
+ 2. Pulse una a para insertar texto DESPU脡S del car谩cter sobre el cursor.
+ Pulsando una A may煤scula a帽ade autom谩ticamente texto al final de la
+ l铆nea.
+
+ 3. Pulsando una R may煤scula se entra en modo Replace hasta que, para salir,
+ se pulse <ESC>.
+
+ 4. Escribiendo 芦:set xxx禄 fija la opci贸n 芦xxx禄
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lecci贸n 7: MANDATOS PARA LA AYUDA EN L脥NEA
+
+ ** Utilice el sistema de ayuda en l铆nea **
+
+
+ Vim dispone de un sistema de ayuda en l铆nea. Para activarlo, pruebe una
+ de estas tres formas:
+ - pulse la tecla <AYUDA> (si dispone de ella)
+ - pulse la tecla <F1> (si dispone de ella)
+ - escriba :help <INTRO>
+
+ Escriba :q <INTRO> para cerrar la ventana de ayuda.
+
+ Puede encontrar ayuda en casi cualquier tema a帽adiendo un argumento al
+ mandato 芦:help禄 mandato. Pruebe 茅stos:
+
+ :help w <INTRO>
+ :help c_<T <INTRO>
+ :help insert-index <INTRO>
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ Aqu铆 concluye el tutor de Vim. Est谩 pensado para dar una visi贸n breve del
+ editor Vim, lo suficiente para permitirle usar el editor de forma bastante
+ sencilla. Est谩 muy lejos de estar completo pues Vim tiene much铆simos m谩s
+ mandatos.
+
+ Para lecturas y estudios posteriores se recomienda el libro:
+ Learning the Vi Editor - por Linda Lamb
+ Editorial: O'Reilly & Associates Inc.
+ Es un buen libro para llegar a saber casi todo lo que desee hacer con Vi.
+ La sexta edici贸n incluye tambi茅n informaci贸n sobre Vim.
+
+ Este tutorial ha sido escrito por Michael C. Pierce y Robert K. Ware,
+ Colorado School of Mines utilizando ideas suministradas por Charles Smith,
+ Colorado State University.
+ E-mail: bware@mines.colorado.edu.
+
+ Modificado para Vim por Bram Moolenaar.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ Traducido del ingl茅s por:
+
+ Eduardo F. Amatria
+ Correo electr贸nico: eferna1@platea.pntic.mec.es
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.fr b/runtime/tutor/tutor.fr
deleted file mode 100644
index bc566894b..000000000
--- a/runtime/tutor/tutor.fr
+++ /dev/null
@@ -1,809 +0,0 @@
-===============================================================================
-= B i e n v e n u e dans le T u t o r i e l de V I M - Version 1.5.fr.2 =
-===============================================================================
-
- Vim est un 閐iteur tr鑣 puissant qui a trop de commandes pour pouvoir
- toutes les expliquer dans un cours comme celui-ci, qui est con鐄 pour en
- d閏rire suffisamment afin de vous permettre d'utiliser simplement Vim.
-
- Le temps requis pour suivre ce cours est d'environ 25 30 minutes, selon
- le temps que vous passerez exp閞imenter. Les commandes utilis閑s dans
- les le鏾ns modifieront le texte. Faites une copie de ce fichier afin de
- vous entra頽er dessus (si vous avez lanc "vimtutor" ceci est d閖 une
- copie).
-
- Il est important de garder en t阾e que ce cours est con鐄 pour apprendre
- par la pratique. Cela signifie que vous devez ex閏uter les commandes
- pour les apprendre correctement. Si vous vous contentez de lire le
- texte, vous oublierez les commandes !
-
- Maintenant, v閞ifiez que votre clavier n'est PAS verouill en majuscules,
- et appuyez la touche j le nombre de fois suffisant pour que la le鏾n
- 1.1 remplisse compl鑤ement l'閏ran.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 1.1 : D蒔LACEMENT DU CURSEUR
-
-
- ** Pour d閜lacer le curseur, appuyez les touches h,j,k,l comme indiqu. **
- ^
- k Astuce: La touche h est gauche et d閜lace gauche.
- < h l > La touche l est droite et d閜lace droite.
- j La touche j ressemble une fl鑓he vers le bas.
- v
- 1. D閜lacez le curseur sur l'閏ran jusqu' vous sentir l'aise.
-
- 2. Maintenez la touche Bas (j) enfonc閑 jusqu' ce qu'elle se r閜鑤e.
----> Maintenant vous 阾es capable de vous d閜lacer jusqu' la le鏾n suivante.
-
- 3. En utilisant la touche Bas, allez la Le鏾n 1.2.
-
-Note: Si jamais vous doutez de ce que vous venez de taper, appuyez <蒫hap>
- pour revenir en mode Normal. Puis retapez la commande que vous vouliez.
-
-Note: Les touches fl閏h閑s devraient 間alement fonctionner. Mais en utilisant
- hjkl vous pourrez vous d閜lacer beaucoup plus rapidement, une fois que
- vous aurez pris l'habitude.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 1.2 : ENTR蒃 ET SORTIE DE VIM
-
-
- !! NOTE: Avant d'effectuer les 閠apes ci-dessous, lisez toute cette le鏾n !!
-
- 1. Appuyez la touche <蒫hap> (pour 阾re s鹯 d'阾re en mode Normal).
-
- 2. Tapez: :q! <Entr閑>
-
----> Ceci quitte l'閐iteur SANS sauver les changements que vous avez faits.
- Si vous voulez enregistrer les changements et sortir, tapez:
- :wq <Entr閑>
-
- 3. Lorsque l'invite du 'shell' vous sera pr閟ent閑, tapez la commande qui
- vous a amen dans ce tutoriel. Cela pourrait 阾re: vimtutor <Entr閑>
- Normalement, vous utiliseriez: vim tutor <Entr閑>
-
----> 'vim' lance l'閐iteur, 'tutor' est le fichier que vous souhaitez 閐iter.
-
- 4. Si vous avez m閙oris ces 閠apes et 阾es confiant, effectuez les 閠apes
- 1 3 pour sortir puis rentrer dans l'閐iteur. D閜lacez ensuite le
- curseur jusqu' la Le鏾n 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 1.3 : 蒁ITION DE TEXTE - EFFACEMENT
-
-
- ** En mode Normal, appuyez x pour effacer le caract鑢e sous le curseur. **
-
- 1. D閜lacez le curseur sur la ligne marqu閑 ---> ci-dessous.
-
- 2. Pour corriger les erreurs, d閜lacez le curseur jusqu' ce qu'il soit
- sur un caract鑢e effacer.
-
- 3. Appuyez la touche x pour effacer le caract鑢e redondant.
-
- 4. R閜閠ez les 閠apes 2 4 jusqu' ce que la phrase soit correcte.
-
----> La vvache saut殚 au-ddessus dde la luune.
-
- 5. Maintenant que la ligne est correcte, passez la le鏾n 1.4.
-
-NOTE: En avan鏰nt dans ce cours, n'essayez pas de m閙oriser, apprenez par
- la pratique.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 1.4 : 蒁ITION DE TEXTE - INSERTION
-
-
- ** En mode Normal, appuyez i pour ins閞er du texte. **
-
- 1. D閜lacez le curseur sur la premi鑢e ligne marqu閑 ---> ci-dessous.
-
- 2. Pour rendre la premi鑢e ligne identique la seconde, mettez le curseur
- sur le premier caract鑢e APR萐 l'endroit o ins閞er le texte.
-
- 3. Appuyez i et tapez les caract鑢es qui manquent.
-
- 4. Une fois qu'une erreur est corrig閑, appuyez <蒫hap> pour revenir en mode
- Normal. R閜閠ez les 閠apes 2 4 pour corriger la phrase.
-
----> Il mnqe caract鑢es cette .
----> Il manque des caract鑢es dans cette ligne.
-
- 5. Une fois que vous 阾es l'aise avec l'insertion de texte, allez au
- r閟um ci-dessous.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- R蒘UM DE LA LE荗N 1
-
- 1. Le curseur se d閜lace avec les touches fl閏h閑s ou les touches hjkl.
- h (gauche) j (bas) k (haut) l (droite)
-
- 2. Pour entrer dans Vim ( l'invite %) tapez: vim FICHIER <Entr閑>
-
- 3. Pour quitter Vim tapez: <蒫hap> :q! <Entr閑> pour perdre tous les
- changements.
- OU tapez: <蒫hap> :wq <Entr閑> pour enregistrer les
- changements.
-
- 4. Pour effacer un caract鑢e sous le curseur en mode Normal tapez: x
-
- 5. Pour ins閞er du texte au niveau du curseur en mode Normal tapez:
- i tapez le texte <蒫hap>
-
-NOTE: Appuyer <蒫hap> vous place en mode Normal ou annule une commande
- partiellement tap閑 dont vous ne voudriez plus.
-
-Passez maintenant la Le鏾n 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 2.1 : EFFACEMENTS
-
-
- ** Tapez dw pour effacer jusqu' la fin d'un mot. **
-
- 1. Appuyez <蒫hap> pour 阾re s鹯 d'阾re en mode Normal.
-
- 2. D閜lacez le curseur sur la ligne marqu閑 ---> ci-dessous.
-
- 3. Placez le curseur sur le d閎ut d'un mot qui a besoin d'阾re effac.
-
- 4. Tapez dw pour faire dispara顃re ce mot.
-
-NOTE: Les lettres dw appara顃ront sur la derni鑢e ligne de l'閏ran lors de
- votre frappe. Si vous avez mal tap quelque chose, appuyez <蒫hap> et
- recommencez.
-
----> Il y a quelques dr鬺e mots qui n'ont rien faire papier sur cette ligne.
-
- 5. R閜閠ez les 閠apes 3 et 4 jusqu' ce que la phrase soit correcte et allez
- la Le鏾n 2.2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 2.2 : PLUS D'EFFACEMENTS
-
-
- ** Tapez d$ pour effacer jusqu' la fin de la ligne. **
-
- 1. Appuyez <蒫hap> pour 阾re s鹯 d'阾re en mode Normal.
-
- 2. D閜lacez le curseur sur la ligne marqu閑 ---> ci-dessous.
-
- 3. D閜lacez le curseur jusqu' la fin correcte de la ligne
- (APR萐 le premier . ).
-
- 4. Tapez d$ pour effacer jusqu' la fin de la ligne.
-
----> Quelqu'un a tap la fin de cette ligne deux fois. cette ligne deux fois.
-
- 5. Allez la Le鏾n 2.3 pour comprendre ce qui se passe.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 2.3 : DES COMMANDES ET DES OBJETS
-
-
- Le format de la commande d'effacement d est le suivant:
-
- [nombre] d objet OU d [nombre] objet
- o:
- nombre - est combien de fois ex閏uter la commande (optionnel, d閒aut: 1).
- d - est la commande d'effacement.
- objet - est ce sur quoi la commande va op閞er (liste ci-dessous).
-
- Une courte liste d'objets:
- w - du curseur jusqu' la fin du mot, y compris l'espace qui suit.
- e - du curseur jusqu' la fin du mot, SANS l'espace qui suit.
- $ - du curseur jusqu' la fin de la ligne.
-
-NOTE: Pour les aventureux, le seul appui d' objet en mode Normal, sans
- commande, d閜lace le curseur comme indiqu dans la liste des objets.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 2.4 : UNE EXCEPTION 'COMMANDE-OBJET'
-
- ** Tapez dd pour effacer une ligne compl鑤e. **
-
- Vu le nombre de fois o l'on efface des lignes compl鑤es, les concepteurs
- de Vi ont d閏id qu'il serait plus facile de taper simplement deux d la
- suite pour effacer une ligne.
-
- 1. Placez le curseur sur la seconde ligne de la phrase ci-dessous.
- 2. Tapez dd pour effacer la ligne.
- 3. Maintenant allez la quatri鑝e ligne.
- 4. Tapez 2dd (rappelez-vous, nombre-commande-objet) pour effacer les
- deux lignes.
-
- 1) Les roses sont rouges,
- 2) La boue c'est dr鬺e,
- 3) Les violettes sont bleues,
- 4) J'ai une voiture,
- 5) Les horloges donnent l'heure,
- 6) Le sucre est doux
- 7) Tout comme vous.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 2.5 : L'ANNULATION
-
- ** Tapez u pour annuler les derni鑢es commandes. **
- ** Tapez U pour r閏up閞er toute une ligne. **
-
- 1. D閜lacez le curseur sur la ligne marqu閑 ---> ci-dessous et placez-le sur
- la premi鑢e erreur.
- 2. Tapez x pour effacer le premier caract鑢e redondant.
- 3. Puis tapez u pour annuler la derni鑢e commande ex閏ut閑.
- 4. Cette fois, corrigez toutes les erreurs de la ligne avec la commande x .
- 5. Puis tapez un U majuscule pour remettre la ligne dans son 閠at initial.
- 6. Puis tapez u deux-trois fois pour annuler le U et les commandes
- pr閏閐entes.
- 7. Maintenant tapez Ctrl-R (maintenez la touche Ctrl enfonc閑 pendant que
- vous appuyez sur R) deux-trois fois pour refaire les commandes (annuler
- les annulations).
-
----> Coorrigez les erreurs suur ccette ligne et reemettez-les avvec 'annuler'.
-
- 8. Ce sont des commandes tr鑣 utiles. Maintenant, allez au r閟um de la
- Le鏾n 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- R蒘UM DE LA LE荗N 2
-
-
- 1. Pour effacer du curseur jusqu' la fin d'un mot tapez: dw
-
- 2. Pour effacer du curseur jusqu' la fin d'une ligne tapez: d$
-
- 3. Pour effacer toute une ligne tapez: dd
-
- 4. Le format d'une commande en mode Normal est:
-
- [nombre] commande objet OU commande [nombre] objet
- o:
- nombre - est combien de fois r閜閠er la commande
- commande - est ce qu'il faut faire, par exemple d pour effacer
- objet - est ce sur quoi la commande devrait agir, par exemple w (mot),
- $ (jusqu' la fin de la ligne), etc.
-
- 5. Pour annuler des actions pr閏閐entes, tapez: u (u minuscule)
- Pour annuler tous les changements sur une ligne tapez: U (U majuscule)
- Pour annuler l'annulation tapez: Ctrl-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 3.1 : LE COLLAGE
-
-
- ** Tapez p pour placer apr鑣 le curseur ce qui vient d'阾re effac. **
-
- 1. Placez le curseur sur la premi鑢e ligne du "po鑝e" ci-dessous.
-
- 2. Tapez dd pour effacer la ligne et la placer dans le tampon de Vim.
-
- 3. D閜lacez le curseur sur la ligne qui PR蒀菵E l'endroit o vous voulez
- remettre la ligne effac閑.
-
- 4. En mode Normal, tapez p pour remettre la ligne.
-
- 5. R閜閠ez les 閠apes 2 4 pour mettre toutes les lignes dans le bon ordre.
-
- d) Et vous, qu'apprenez-vous ?
- b) Les violettes sont bleues,
- c) L'intelligence s'apprend,
- a) Les roses sont rouges,
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 3.2 : LE REMPLACEMENT
-
-
- ** Tapez r et un caract鑢e pour remplacer le caract鑢e sous le curseur. **
-
- 1. D閜lacez le curseur sur la premi鑢e ligne marqu閑 ---> ci-dessous.
-
- 2. Placez le curseur de mani鑢e ce qu'il surplombe la premi鑢e erreur.
-
- 3. Tapez r suivi du caract鑢e qui doit corriger l'erreur.
-
- 4. R閜閠ez les 閠apes 2 et 3 jusqu' ce que la premi鑢e ligne soit correcte.
-
----> Quand cette ligne a 閠 sauvie, quelqu'un a lait des faunes de frappe !
----> Quand cette ligne a 閠 saisie, quelqu'un a fait des fautes de frappe !
-
- 5. Maintenant, allez la Le鏾n 3.3.
-
-NOTE: N'oubliez pas que vous devriez apprendre par la pratique, pas par
- m閙orisation.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 3.3 : LE CHANGEMENT
-
-
- ** Pour changer tout ou partie d'un mot, tapez cw .**
-
- 1. D閜lacez le curseur sur la premi鑢e ligne marqu閑 ---> ci-dessous.
-
- 2. Placez le curseur sur le u de luhko.
-
- 3. Tapez cw et corrigez le mot (dans notre cas, tapez 'igne'.)
-
- 4. Appuyez <蒫hap> et placez-vous sur l'erreur suivante (le premier
- caract鑢e qui doit 阾re chang).
-
- 5. R閜閠ez les 閠apes 3 et 4 jusqu' ce que la premi鑢e phrase soit
- identique la seconde.
-
----> Cette luhko contient quelques myqa qui ont ricne d'阾re chantufip.
----> Cette ligne contient quelques mots qui ont besoin d'阾re chang閟.
-
-Notez que cw efface le mot et vous place ensuite en mode Insertion.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 3.4 : PLUS DE CHANGEMENTS AVEC c
-
-
- ** Le changement fonctionne avec les m阭es objets que l'effacement. **
-
- 1. Le changement fonctionne de la m阭e mani鑢e que l'effacement.
- Le format est:
-
- [nombre] c objet OU c [nombre] objet
-
- 2. Les objets sont 間alement les m阭es: w (mot), $ (fin de ligne), etc.
-
- 3. D閜lacez-vous la premi鑢e ligne marqu閑 ---> ci-dessous.
-
- 4. Placez le curseur sur la premi鑢e erreur.
-
- 5. Tapez c$ pour changer la fin de la ligne, rendez-l identique la
- seconde ligne, puis tapez <蒫hap>.
-
----> La fin de cette ligne doit 阾re rendue identique la seconde.
----> La fin de cette ligne doit 阾re corrig閑 avec la commande c$ .
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- R蒘UM DE LA LE荗N 3
-
-
- 1. Pour remettre du texte qui vient d'阾re effac, tapez p . Cela Place le
- texte effac APR萐 le curseur (si une ligne compl鑤e a 閠 effac閑, elle
- sera plac閑 sous la ligne du curseur).
-
- 2. Pour remplacer le caract鑢e sous le curseur, tapez r suivi du caract鑢e
- qui remplacera l'original.
-
- 3. Le changement vous permet de changer l'objet sp閏ifi, du curseur jusqu'
- la fin de l'objet. Par exemple, tapez cw pour changer du curseur
- jusqu' la fin du mot, c$ pour changer jusqu' la fin d'une ligne.
-
- 4. Le format pour le changement est:
-
- [nombre] c objet OU c [nombre] objet
-
-Passez maintenant la le鏾n suivante.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 4.1 : POSITION ET 蒚AT DU FICHIER
-
-
- ** Tapez Ctrl-G pour afficher votre position dans le fichier et son 閠at.
- Utilisez Maj-G pour vous rendre une ligne donn閑 du fichier. **
-
- Note: Lisez toute cette le鏾n avant d'effectuer l'une des 閠apes !
-
- 1. Maintenez enfonc閑 la touche Ctrl et appuyez sur G . Une ligne d'閠at
- va appara顃re en bas de l'閏ran avec le nom du fichier et le num閞o de la
- ligne o vous 阾es. Notez ce num閞o, il servira lors de l'閠ape 3.
-
- 2. Tapez G majuscule (Maj-G) pour vous rendre la fin du fichier.
-
- 3. Tapez le num閞o de la ligne o vous 閠iez suivi de Maj-G. Cela vous
- ram鑞era la ligne o vous 閠iez au d閜art.
- (Lorsque vous tapez les chiffres, ils n'apparaissent PAS l'閏ran).
-
- 4. Si vous vous sentez pr阾 faire ceci, effectuez les 閠apes 1 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 4.2 : LA RECHERCHE
-
-
- ** Tapez / suivi d'un texte pour rechercher ce texte. **
-
- 1. Tapez le caract鑢e / en mode Normal. Notez que celui-ci et le curseur
- apparaissent en bas de l'閏ran, comme lorsque l'on utilise : .
-
- 2. Puis tapez 'errreuur' <Entr閑>. C'est le mot que vous voulez rechercher.
-
- 3. Pour rechercher nouveau le m阭e texte, tapez simplement n .
- Pour rechercher le m阭e texte dans la direction oppos閑, tapez Maj-N .
-
- 4. Si vous voulez rechercher un texte vers le haut du fichier, utilisez ?
- la place de / .
-
----> erreur ne s'閏rit pas "errreuur"; errreuur est une erreur.
-
-Note: Quand la recherche atteint la fin du fichier, elle reprend au d閎ut.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 4.3 : RECHERCHE DES PARENTH萐ES CORRESPONDANTES
-
-
- ** Tapez % pour trouver des ), ] ou } correspondants. **
-
- 1. Placez le curseur sur l'un des (, [ ou { de la ligne marqu閑 --->
- ci-dessous.
-
- 2. Puis tapez le caract鑢e % .
-
- 3. Le curseur devrait se placer sur la parenth鑣e correspondante.
-
- 4. Tapez % pour replacer le curseur sur l'autre parenth鑣e.
-
----> Voici ( une ligne de test contenant des (, des [ ] et des { } )).
-
-Note: Cette fonctionnalit est tr鑣 utile lors du d閎ogage d'un programme qui
- contient des parenth鑣es d閟閝uilibr閑s !
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 4.4 : UNE MANI萊E DE CORRIGER LES ERREURS
-
-
- ** Tapez :s/ancien/nouveau/g pour remplacer 'ancien' par 'nouveau'. **
-
- 1. D閜lacez le curseur sur la ligne marqu閑 ---> ci-dessous.
-
- 2. Tapez :s/lee/le <Entr閑> . Notez que cette commande change seulement la
- premi鑢e occurence sur la ligne.
-
- 3. Puis tapez :s/lee/le/g qui ordonne de faire une substitution globale
- sur la ligne. Cela change toutes les occurences sur la ligne
-
----> lee meilleur moment pour regarder lees fleurs est pendant lee Printemps.
-
- 4. Pour changer toutes les occurences d'un texte, entre deux lignes,
- tapez :#,#s/ancien/nouveau/g o #,# sont les num閞os des deux lignes.
- Tapez :%s/ancien/nouveau/g pour changer chaque occurence dans tout
- le fichier.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- R蒘UM DE LA LE荗N 4
-
-
- 1. Ctrl-G affiche votre position dans le fichier et l'閠at de celui-ci.
- Maj-G vous place la fin du fichier. Un num閞o de ligne suivi de Maj-G
- vous place cette ligne.
-
- 2. Taper / suivi d'un texte recherche ce texte vers l'AVANT.
- Taper ? suivi d'un texte recherche ce texte vers l'ARRI萊E.
- Apr鑣 une recherche tapez n pour trouver l'occurence suivante dans la
- m阭e direction ou Maj-N pour rechercher dans la direction oppos閑.
-
- 3. Taper % lorsque le curseur est sur (, ), [, ], { ou } d閜lace
- celui-ci sur le caract鑢e correspondant.
-
- 4. Pour remplacer le premier aa par bb sur une ligne tapez :s/aa/bb
- Pour remplacer tous les aa par bb sur une ligne tapez :s/aa/bb/g
- Pour remplacer du texte entre deux num閞os de ligne tapez :#,#s/aa/bb/g
- Pour remplacer toutes les occurences dans le fichier tapez :%s/aa/bb/g
- Pour demander une confirmation chaque fois ajoutez 'c' :%s/aa/bb/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 5.1 : COMMENT EX蒀UTER UNE COMMANDE EXTERNE
-
-
- ** Tapez :! suivi d'une commande externe pour ex閏uter cette commande. **
-
- 1. Tapez le : familier pour mettre le curseur en bas de l'閏ran. Cela vous
- permet de saisir une commande.
-
- 2. Puis tapez un ! (point d'exclamation). Cela vous permet d'ex閏uter
- n'importe quelle commande valide pour votre interpr閠eur (shell).
-
- 3. Par exemple, tapez ls apr鑣 le ! et appuyez <Entr閑>. Ceci affichera
- la liste des fichiers du dossier courant, comme si vous aviez tap la
- commande l'invite du shell. Utilisez :!dir si :!ls ne marche pas.
-
-Note: Il est possible d'ex閏uter n'importe quelle commande externe de cette
- mani鑢e.
-
-Note: Toutes les commandes : doivent finir par la frappe de <Entr閑>.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 5.2 : PLUS DE D蒚AILS SUR L'ENREGISTREMENT DE FICHIERS
-
-
- ** Pour enregistrer les changements faits au fichier, tapez :w FICHIER . **
-
- 1. Tapez :!dir ou :!ls pour avoir la liste des fichiers du dossier
- courant. Vous savez d閖 qu'il faut appuyer <Entr閑> apr鑣 cela.
-
- 2. Choisissez un nom de fichier qui n'existe pas encore, par exemple TEST.
-
- 3. Puis tapez :w TEST (o TEST est le nom que vous avez choisi).
-
- 4. Cela sauvegarde tout le fichier (Tutoriel Vim) sous le nom TEST.
- Pour le v閞ifier, tapez :!dir pour revisualiser le contenu du dossier.
-
-Notez que si vous quittez Vim et y retournez avec le fichier TEST, celui-ci
-sera une copie exacte du cours au moment o vous l'avez sauv.
-
- 5. Maintenant, effacez le fichier en tapant (MS-DOS): :!del TEST
- ou (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 5.3 : UN ENREGISTREMENT S蒐ECTIF
-
-
- ** Pour enregistrer une portion de fichier, tapez :#,#w FICHIER **
-
- 1. Tapez nouveau :!dir ou :!ls pour visualiser le contenu du dossier
- courant et choisissez un nom de fichier, tel que TEST.
-
- 2. D閜lacez le curseur jusqu'en haut de cette page et tapez Ctrl-G pour
- conna顃re le num閞o de cette ligne. NOTEZ CE NUM蒖O !
-
- 3. Puis rendez-vous au bas de cette page et tapez nouveau Ctrl-G .
- NOTEZ 蒅ALEMENT CE NUM蒖O !
-
- 4. Pour enregistrer SEULEMENT une portion d'un fichier, tapez :#,#w TEST
- o #,# sont les deux num閞os que vous avez not閟 (haut,bas) et TEST est
- le nom du fichier.
-
- 5. Une fois encore, v閞ifiez la pr閟ence du fichier avec :!dir mais NE
- L'EFFACEZ PAS.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 5.4 : R蒀UP蒖ATION ET FUSION DE FICHIERS
-
-
- ** Pour ins閞er le contenu d'un fichier, tapez :r FICHIER **
-
- 1. Tapez :!dir pour v閞ifier que votre fichier TEST est encore l.
-
- 2. Placez le curseur en haut de cette page.
-
-NOTE: Apr鑣 avoir suivi l'閠ape 3 vous verrez l'閏ran la Le鏾n 5.3.
- D閜lacez-vous vers le bas jusqu' revenir cette le鏾n.
-
- 3. Maintenant r閏up閞ez votre fichier TEST en utilisant la commande :r TEST
- o TEST est le nom de votre fichier.
-
-NOTE: Le fichier que vous r閏up閞ez est plac l o se trouve le curseur.
-
- 4. Pour v閞ifier que le fichier a bien 閠 ins閞, remontez et v閞ifiez
- qu'il y a maintenant deux copies de la Le鏾n 5.3, l'originale et celle
- contenue dans le fichier.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- R蒘UM DE LA LE荗N 5
-
-
- 1. :!commande ex閏ute une commande externe.
-
- Quelques exemples pratiques:
- (MS-DOS) (Unix)
- :!dir :!ls affiche le contenu du dossier courant.
- :!del FICHIER :!rm FICHIER efface FICHIER.
-
- 2. :w FICHIER enregistre le fichier Vim courant sur le disque avec pour
- nom FICHIER.
-
- 3. :#,#w FICHIER enregistre les lignes # # dans le fichier FICHIER.
-
- 4. :r FICHIER r閏up鑢e le fichier FICHIER et l'ins鑢e dans le fichier
- courant partir de la position du curseur.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 6.1 : L'OUVERTURE
-
-
-** Tapez o pour ouvrir une ligne sous le curseur et y aller en Insertion. **
-
- 1. D閜lacez le curseur sur la ligne marqu閑 ---> ci-dessous.
-
- 2. Tapez o (minuscule) pour ouvrir une ligne SOUS le curseur et vous y
- placer en mode Insertion.
-
- 3. Puis recopiez la ligne marqu閑 ---> et appuyez sur <蒫hap> pour quitter
- le mode Insertion.
-
----> En tapant o le curseur se met sur la ligne ouverte, en mode Insertion.
-
- 4. Pour ouvrir une ligne au DESSUS du curseur, tapez simplement un O
- majuscule, plut魌 qu'un o minuscule. Faites un essai sur la ligne
- ci-dessous.
-Ouvrez une ligne ci-dessus en tapant MAJ-O lorsque le curseur est ici.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 6.2 : L'AJOUT
-
-
- ** Tapez a pour ins閞er du texte APR萐 le curseur. **
-
- 1. Placez le curseur la fin de la premi鑢e ligne marqu閑 ---> ci-dessous
- en tapant $ en mode Normal.
-
- 2. Tapez un a (minuscule) pour ajouter du texte APR萐 le caract鑢e situ
- sous le curseur. ( A majuscule ajoute du texte la fin de la ligne).
-
-Note: Ceci 関ite de taper i , le dernier caract鑢e, le texte ins閞er,
- <蒫hap>, curseur--droite, et finalement x , juste pour ajouter du
- texte la fin d'une ligne !
-
- 3. Maintenant, compl閠ez la premi鑢e ligne. Notez 間alement que l'ajout est
- identique au mode Insertion, hormis la position o le texte est ins閞.
-
----> Cette ligne vous permet de pratiquer
----> Cette ligne vous permet de pratiquer l'ajout de texte en fin de ligne.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 6.3 : UNE AUTRE VERSION DU REMPLACEMENT
-
-
- ** Tapez un R majuscule pour remplacer plus d'un caract鑢e. **
-
- 1. D閜lacez le curseur sur la premi鑢e ligne marqu閑 ---> ci-dessous.
-
- 2. Placez le curseur au d閎ut du premier mot qui diff鑢e de la seconde ligne
- marqu閑 ---> (le mot 'celle').
-
- 3. Puis tapez R et remplacez le reste du texte de la premi鑢e ligne en
- tapant par dessus celui-ci, de mani鑢e rendre la premi鑢e ligne
- identique la seconde.
-
----> Pour rendre cette ligne identique celle du dessous utilisez le clavier.
----> Pour rendre cette ligne identique la seconde, tapez R et la correction.
-
- 4. Notez que lorsque vous appuyez <蒫hap>, le texte qui n'a pas encore 閠
- remplac reste.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 6.4 : R蒅LAGE DES OPTIONS
-
-
- ** R間lons une option afin que la recherche et la substitution ignorent la
- casse des caract鑢es. **
-
- 1. Recherchez 'ignore' en tapant /ignore .
- R閜閠ez ceci plusieurs fois en utilisant la touche n .
-
- 2. Activez l'option 'ic' (Ignorer casse) en tapant :set ic .
-
- 3. Puis poursuivez votre recherche en utilisant n .
- R閜閠ez cette recherche plusieurs fois avec la touche n .
-
- 4. Activez les options 'hlsearch' et 'incsearch' avec :set hls is .
-
- 5. Puis recommencez une recherche, et faites bien attention ce qui se
- produit: /ignore .
-
- 6. Pour interrompre la mise en surbrillance des r閟ultats, tapez:
- :nohlsearch
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- R蒘UM DE LA LE荗N 6
-
-
- 1. Taper o ouvre une ligne SOUS le curseur et y place celui-ci en mode
- Insertion. Taper un O majuscule ouvre une ligne au DESSUS de la ligne
- o se trouve le curseur.
-
- 2. Tapez un a pour ins閞er du texte APR萐 le caract鑢e o se trouve le
- curseur. Taper un A majuscule ajoute du texte automatiquement la fin
- de la ligne.
-
- 3. Taper un R majuscule active le mode Remplacement jusqu' ce que la
- touche <蒫hap> soit appuy閑 pour en sortir.
-
- 4. Taper :set xxx active l'option 'xxx'.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 7 : ACC蒁ER L'AIDE EN LIGNE
-
- ** Utiliser le syst鑝e d'aide en ligne. **
-
- Vim a un syst鑝e complet d'aide en ligne. Pour y acc閐er, essayez l'une de
- ces trois m閠hodes:
- - appuyez la touche <Help> (si vous en avez une)
- - appuyez la touche <F1> (si vous en avez une)
- - tapez :help <Entr閑>
-
- Tapez :q <Entr閑> pour fermer la fen阾re d'aide.
-
- Vous pouvez acc閐er l'aide sur peu pr鑣 n'importe quel sujet en donnant
- des arguments la commande :help . Essayez par exemple (n'oubliez pas
- d'appuyer sur <Entr閑>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Le鏾n 8 : CR蒃R UN SCRIPT DE D蒑ARRAGE
-
- ** Activer les fonctionnalit閟 de Vim. **
-
- Vim a beaucoup plus de fonctionnalit閟 que Vi, mais la plupart de celles-ci
- sont d閟activ閑s par d閒aut. Pour commencer les utiliser, vous devez
- cr閑r un fichier "vimrc".
-
- 1. Commencez 閐iter le fichier "vimrc". Ceci d閜end de votre syst鑝e:
- :edit ~/.vimrc pour Unix
- :edit $VIM/_vimrc pour MS-Windows
-
- 2. Int間rez maintenant le texte du fichier "vimrc" d'exemple:
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Enregistrez le fichier avec:
- :write
-
- La prochaine fois que vous d閙arrerez Vim, le surlignage syntactique sera
- activ. Vous pouvez ajouter tous vos r間lages pr閒閞閟 dans ce fichier.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Ceci conclut le Tutoriel Vim. Le but 閠ait de vous donner un bref aper鐄 de
- l'閐iteur Vim, juste assez pour vous permettre d'utiliser l'閐iteur
- relativement facilement. Il est loin d'阾re complet, vu que Vim a beaucoup
- beaucoup plus de commandes. Un Manuel de l'utilisateur est disponible en
- anglais: :help user-manual .
-
- Pour continuer d閏ouvrir et apprendre Vim, il existe un livre traduit en
- fran鏰is. Il parle plus de Vi que de Vim, mais pourra vous 阾re utile.
- L'閐iteur Vi - Collection Pr閏is et concis - par Arnold Robbins
- 蒬iteur: O'Reilly France
- ISBN: 2-84177-102-4
-
- Deux livres en anglais sont 間alement mentionn閟 dans la version originale
- de ce tutoriel, dont un qui traite sp閏ifiquement de Vim. Merci de vous y
- r閒閞er si vous 阾es int閞ess.
-
- Ce tutoriel a 閠 閏rit par Michael C. Pierce et Robert K. Ware de l'蒫ole
- des Mines du Colorado et reprend des id閑s fournies par Charles Smith,
- Universt d'蓆at du Colorado. E-mail: bware@mines.colorado.edu.
-
- Modifi pour Vim par Bram Moolenar.
-
- Traduit en Fran鏰is par Adrien Beau, en avril 2001.
- E-mail: version.francaise@free.fr
- Last Change: 2003 May 29
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.gr.cp737 b/runtime/tutor/tutor.gr.cp737
deleted file mode 100644
index 69ceff11f..000000000
--- a/runtime/tutor/tutor.gr.cp737
+++ /dev/null
@@ -1,815 +0,0 @@
-===============================================================================
-= 槩 V I M T u t o r - 搿洣 1.5 =
-===============================================================================
-
- Vim 滃 猡槳 ゅ┊Κ ┈か帷珵 Е 猱湢 Еⅱ猹 湦⑩, п
- Еⅱ猹 殸  湧灇悌Μ  e 銡灘 妲嗒 槵.  銡灘
- ┊湜犪┇灐 殸  毃岑湢 牎槫Η灚牎 珷 湦⑩ Е 煒 
- ♂う  灘牐Η滃珳 滅ˇ  Vim  猡槫 殰° 悌灙 ┈か帷珵.
-
-  ЖΙ鈿殸 妞Κ Е 槯槧珳瀚槧 殸  ΒΑㄩ珳 珵 銡灘
- 滃 25-30 Й, 湧槰か槳 槯  ф│ 妞 煒 ウ涒瘻珳 殸
- 牗槪槴牘&绐.
-
- 帬 湦⑩ ┇ 熴珮 煒 ΗΗ悌Μ  澹湦. 優Μ悌珳 猡
- 槫毃槶 槵  槰疁濡 殸  湧槱煖瀚 (槫 ゃ珳 
- "Vimtutor" 槵 滃 銢 猡 槫毃槶).
-
- 勫 か牎  煬a┇ 娅 槵 銡灘 滃 Θ殬むb 猥
- 椹珳  洜涐湢 b┼ 珵 悌灙.  澶湢 娅 湢釢湯槧 
- 湣珳瀚 珷 湦⑩ 殸  珷 a煖珳 ┼┇. 洜槞釢湯 fう 
- 澹湦, 煒 珷 珳!
-
- 掗, 櫆櫂犩煖瀚 娅  Б恪 Shift-Lock 儎 滃 珵bう 
- ┇  Б恪 j 槰 ㄢ 殸  珮ゃ珳  洦Γ鈽 猥
- 椹珳  嬦煘 1.1  殰e Б悒嗒 珵 妞.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 1.1: 媱拃増寧寬 拵 儛帇剙
-
- ** 偁  ゃ珳  洦Γ鈽, ┇ 珮 Б恪 h,j,k,l 妲嗒 洔瀹珮. **
- ^
- k Hint: 挦 Б恪 h 滃 槰牘珳ㄡ   ┇' 槰牘珳ㄡ.
- < h l > 挦 Б恪 l 滃 洔   ┇ 洔.
- j 挦 Б恪 j &犪潨  櫆⑨ ЖΚ 珮 ♂.
- v
-
- 1. 嫓珮濠珳  洦Γ鈽 牃绋 ┇灓 妞 b  う犻煖珳 幛湯.
-
- 2. 墾槴悌珳 珵bう  ♂ Б恪 (j) b  湩槫槩灜煖.
----> 掗 モ珳 ч  珮煖瀚 ┇ 湩妫湦 a煘.
-
- 3. 暔灘牐Η椁珮  ♂ Б恪, 珮煖瀚 ┇ 嬦煘 1.2.
-
-憺遴: 槪瓲欋ⅱ湯 殸 ♂珷 Е 珳, ┇ <ESC> 殸  櫒湡滃珳
- ┇灓 墭う° 墭┇槱. 嫓 ┇ め 珵 湦€ Е 熲珳.
-
-憺遴: 挊 Б恪  洦Γ鈽 煒 Ж猝湢 湩濠灙  洣滅Μ. ⅱ  珮 hjkl
- 煒 'Θ滃珳  煖瀚 Е㈢ 毃灇Θ娅湪, f 珮 ┈熷珳.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 1.2: 嫃垖帉拃 墍 亗垖帉拃 憭帉 VIM
-
- !! 憜媱垪憜: 彣牑 湣珳⑩珳 ♂Е牔 槯 珮 欍珮, 洜槞岍珳 姊  a煘!!
-
- 1. 彉┇  Б恪 <ESC> (殸  滃┇ ╁殾 ┇灓 墭う° 墭┇槱).
-
- 2. 彚灐Β悌珳: :q! <ENTER>.
-
---->  湧猕疁珮 槯  ┈か帷珵 晽悎  ╅ 妲湭 槩氣 猱湯 ♂.
- 熲珳  ╅珳 珷 槩氣   湧猕煖珳 Б灐Β悌珳:
- :wq <ENTER>
-
- 3. 瞰槫 洔瀚 珵 ЖΛéс  ︾, Б灐Β悌珳 珵 湦€  珵 Η﹀
- '恪槴  槵 珵 銡灘. 嫥Θ滃  滃: vimtutor <ENTER>
- 墭う♂ 煒 灘牐Η︾珳: vim tutor <ENTER>
-
----> 'vim' 澶湢 湢氞氥 ┇Δ ┈か帷珵 vim, 'tutor' 滃  槰疁濡 Е
- 熲ⅵ  洜Θ熼│.
-
- 4. 猱湯 槯Γ&绌湢 槵 珮 欍珮  猱湯 槵Е鍩灘, 湣珳⑩┇
- 珮 欍珮 1 忄 3 殸  櫄滃珳   '滃珳 め ┇Δ ┈か帷珵. 嫓
- 珮ゃ┇  洦Γ鈽 ♂ ┇ 嬦煘 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 1.3: 儓帎嚄憜 墑垕剬帗 - 儓倫攩
-
- ** 瞟 滃┇ ┇灓 墭う° 墭┇槱 ┇ x 殸  洜槡ㄡ瘻珳 
- 畼~悒 ♂ 槯  洦Γ鈽. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 ♂ 毃槪c 犩b  --->.
-
- 2. 偁  洜Θ熼珳 珮 ⑨煘, 濠珳  洦Γ鈽 b  滃 пむ 槯
-  畼~悒 Е 煒 洜槡瓬.
-
- 3. 彉┇  Б恪 x 殸  洜槡ㄡ瘻珳  槫湩牊纾灚 畼~悒.
-
- 4. 劎槫槩釞湯 珮 欍珮 2 b 4 b Ж娅槱  滃 ┼┇.
-
----> The ccow jumpedd ovverr thhe mooon.
-
- 5. 掗 Е 毃槪c 滃 ┼┇, 殬澶珳 ┇ 嬦煘 1.4.
-
-憜媱垪憜: 墭熼 洜槴ㄢ疁珳 槵 珵 銡灘, ЖΙ熴┇  
- 槯Γ&鐪珳, 煒澶湯  珵 悌.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 1.4: 儓帎嚄憜 墑垕剬帗 - 弨悇媮帄
-
- ** 瞟 滃┇  墭う° 墭┇槱 ┇ i 殸  幄珳 澹湦. **
-
- 1. 嫓珮濠珳  洦Γ鈽 b 珵 Ж楂 毃槪c ♂ 犩b  --->.
-
- 2. 偁  ♂珳 珵 Ж楂 毃槪c 鍥牁  珵 洔绔湪, 珮濠珳 
- 洦Γ鈽 пむ ┇Δ Ж楂 畼~悒 媱拃 槯 妲Μ 煒 煖  澹湦.
-
- 3. 彉┇  i  Б灐Β悌珳 珷 槯槰樺珵珳 ЖΙ熴.
-
- 4. 墭熼 洜Θ熼珳 ♂煖 ⑨煢 ┇ <ESC> 殸  湩牘獐湯 ┇灓
- 墭う° 墭┇槱. 劎槫槩釞湯 珮 欍珮 2 b 4 殸  洜Θ熼珳
- 珵 Ж娅槱.
-
----> There is text misng this .
----> There is some text missing from this line.
-
- 5. 瞰槫 滃┇ 幛湯  珵 Β 牐猡Μ 珮煖瀚 ┇灓
- ♂ ㄥ癁.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 1 弰悎妴枂
-
-
- 1. 洦Γ鈽 瀚槧 灘牐Η椁珮 滃珳 珮 Б恪 洦Γ鈽 珮 hjkl.
- h (槰牘) j (♂) k (пむ) l (洔)
-
- 2. 偁  '滃珳 ┇Δ Vim (槯 珵 ЖΛéс %) 毃岑珳: vim 悤剤 <ENTER>
-
- 3. 偁  櫄滃珳 毃岑珳: <ESC> :q! <ENTER> 殸 槯妯癁  槩氶.
- 毃岑珳: <ESC> :wq <ENTER> 殸 槯恪湰  槩氶.
-
- 4. 偁  洜槡ㄡ瘻珳 猡槫 畼~悒 ♂ 槯  洦Γ鈽 
- 墭う° 墭┇槱 ┇: x
-
- 5. 偁  湢┽殰珳 澹湦 ┇Δ 洦Γ鈽 姗 滃┇  墭う° 墭┇槱 毃岑珳:
- i Б灐Β悌珳  澹湦 <ESC>
-
-憜媱垪憜: 彉か槳 <ESC> 煒 Е煖珵煖瀚 ┇灓 墭う° 墭┇槱 煒
- 槨椹湯 e 槫湩牊纾灚  ¢ ΒΑㄠb 湦€.
-
-掗 ┈┇   嬦煘 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 2.1: 剬拵妱 儓倫攩
-
- ** 偍岑珳 dw 殸  洜槡ㄡ瘻珳 b  ⅵ e槳 ⑩. **
-
- 1. 彉┇ <ESC> 殸  櫆櫂犩煖瀚 娅 滃┇ ┇灓 墭う° 墭┇槱.
-
- 2. 嫓珮濠珳  洦Γ鈽 ┇灓 ♂ 毃槪c 犩b  --->.
-
- 3. 彏殬澶湯  洦Γ鈽 ┇灓 槰 珵 ⑩ Е Ж猝湢  洜槡瓬.
-
- 4. 偍岑珳 dw 殸  ♂珳 珵 ⑩  湧槶槫牘珳.
-
-憜媱垪憜: 挊 毃幔珮 dw 煒 湥瓨┇︾ ┇灓 珳樺 毃槪c 珵 妞灙 姗
- 珮 Б灐Β滃珳. 毃岑槴 ♂珷 ⑨煢, ┇ <ESC> 
- ゃ┇ 槯 珵 槰.
-
----> There are a some words fun that don't belong paper in this sentence.
-
- 5. 劎槫槩釞湯 珮 欍珮 3  4 b Ж娅槱  滃 ┼┇ 
- 殬澶湯 ┇ 嬦煘 2.2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 2.2: 弰悎憫帓剱剳 剬拵妱 儓倫攩
-
- ** 彚灐Β悌珳 d$ 殸  洜槡ㄡ瘻珳 b  ⅵ 珵 毃槪c. **
-
- 1. 彉┇ <ESC> 殸  櫆櫂犩煖瀚 娅 滃┇ ┇灓 墭う° 墭┇槱.
-
- 2. 嫓珮濠珳  洦Γ鈽 ┇灓 ♂ 毃槪c 犩b  --->.
-
- 3. 嫓珮濠珳  洦Γ鈽 ┇ ⅵ 珵 ┼┇悛 毃槪c (媱拃 珵 Ж楂 . ).
-
- 4. 彉┇ d$ 殸  洜槡ㄡ瘻珳 b  ⅵ 珵 毃槪c.
-
----> Somebody typed the end of this line twice. end of this line twice.
-
- 5. 彏殬澶湯 ┇ 嬦煘 2.3 殸  珮⑨櫆珳 珷 ┈樺.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 2.3: 弰悎 剬拵姉 墍 寬垑剤媱寳
-
-
- &ō 珵 湦€ 洜槡 d 滃 嗒 湧悛:
-
- [槰牊f猐 d 槫珷澹湦 d [槰牊f猐 槫珷澹湦
- 瞌Μ:
- 槰牊f - ф ㄢ 煒 湣珳┇滃 湦€ (Ж牗湯牎, 湧' Θ牘&=1).
- d - 湦€ 珵 洜槡.
- 槫珷澹湦 - пむ  珷 煒 牜Μ悌湢 湦€ (♂ ㈠┇).
-
- 嬪 〃 ㈠┇ 槯 槫珷澹湦:
- w - 槯  洦Γ鈽 b  ⅵ 珵 ⑩, 幛Δ珮  洜岍珵.
- e - 槯  洦Γ鈽 b  ⅵ 珵 ⑩, 晽悎  洜岍珵.
- $ - 槯  洦Γ鈽 b  ⅵ 珵 毃槪c.
-
-憜媱垪憜: 偁  Е 珵 р珳牁, か槳 槯㈤  槫珷澹湦 姗
- 滃┇ ┇灓 墭う° 墭┇槱 ㄥ ♂Е牁 湦€ 煒 珮ゃ珳
-  洦Γ鈽 妲嗒 煢ㄥ潨珮 ┇灓 ㈠┇ 槫珷牐猡啶.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 2.4: 媹 剭垚剳 憭唽 '剬拵妴-寬垑剤媱寧'
-
- ** 彚灐Β悌珳 dd 殸  洜槡ㄡ瘻珳 姊 珵 毃槪c. **
-
- 劌槧槳 珵 ┈娅灚槳 珵 洜槡 Β妗 毃槪c,  ┊湜牁┇猹
-  Vim 槯Ν岍牘槫 娅 煒 惬槫 湰ˇ㈡珳é  毃岘湯 槯㈤ 涚 d ┇
- 牗 殸  洜槡ㄡ瘻珳 e 毃槪c.
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇ 洔绔湪 毃槪c 珵 ♂ 岍灙.
- 2. 偍岑珳 dd 殸  洜槡ㄡ瘻珳 珵 毃槪c.
- 3. 掗 珮煖瀚 ┇灓 珮ǐ 毃槪c.
- 4. 偍岑珳 2dd (煬煖瀚 槰牊f-湦€-槫珷澹湦) 殸 
- 洜槡ㄡ瘻珳 涚 毃槪b.
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 2.5: 剬拵妴 寑垚剳啈
-
- ** 彉┇ u 殸  槫槧ㄢ珳 珷 珳樺湭 湦⑩,
- U 殸  洜Θ熼珳 姊 珵 毃槪c. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 ♂ 毃槪c 犩b  ---> 
- Е煖┇  пむ ┇ Ж楂 ⑨煢.
- 2. 彉┇ x 殸  洜槡ㄡ瘻珳  Ж楂 槫湩牊纾灚 畼~悒.
- 3. 掗 ┇ u 殸  槫槧ㄢ珳 珵 珳樺 湣珳猡 湦€.
- 4.  珵 ㄡ 洜Θ熼┇ 姊 珮 ⑨煘 ┇ 毃槪c 灘牐Η椁珮 珵 湦€ x.
- 5. 掗 ┇ 猡 瓨濡 U 殸  湩牘獐湯 珵 毃槪c ┇灓 槰疇°
- 珵 ┇槱.
- 6. 掗 ┇ u ♀ ㄢ 殸  槫槧ㄢ珳 珵 U 
- Ж殾纾湦湭 湦⑩.
- 7. 掗 ┇ CTRL-R (〃槴椁珮 珵bう  Б恪 CTRL 熼 珳  R)
- ♀ ㄢ 殸  湩槫槶猕湯 珷 湦⑩ (槫樺  槫槧ㄢ啶).
-
----> Fiix the errors oon thhis line and reeplace them witth undo.
-
- 8. 猹 滃 Е㈢ 悌牐湭 湦⑩. 掗 殬澶湯 ┇灓
- 彍ㄥ癁  嫎熴 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 2 弰悎妴枂
-
-
- 1. 偁  洜槡ㄡ瘻珳 槯  洦Γ鈽 b  ⅵ ⑩ 毃岑珳: dw
-
- 2. 偁  洜槡ㄡ瘻珳 槯  洦Γ鈽 b  ⅵ 毃槪c 毃岑珳: d$
-
- 3. 偁  洜槡ㄡ瘻珳 Β妗 珵 毃槪c 毃岑珳: dd
-
- 4. &ō 殸 e 湦€ ┇灓 墭う° 墭┇槱 滃:
-
- [槰牊f猐 湦€ 槫珷澹湦 湦€ [槰牊f猐 槫珷澹湦
- 妲Μ:
- 槰牊f - ф ㄢ  湩槫槩灜煖 湦€
- 湦€ - 珷  氬, 妲嗒 d 殸 洜槡
- 槫珷澹湦 - пむ  珷  湦湪氥 湦€, 妲嗒 w (⑩),
- $ (ⅵ 珵 毃槪c), ~.
-
- 5. 偁  槫槧ㄢ珳 Ж殾纾湦湭 湦猕殰牅, ┇: u (濇 u)
- 偁  槫槧ㄢ珳 姊湭 珷 槩氣 ┇ 毃槪c, ┇: U (瓨濡 U)
- 偁  槫槧ㄢ珳 珷 槫槧ㄢ牚, ┇: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 3.1: 剬拵妴 拵弾噭拞憜
-
-
- ** 彉┇ p 殸  Е煖珳 珵 珳樺 洜槡   洦Γ鈽. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 Ж楂 毃槪c 珵 ♂ Γ釠槳.
-
- 2. 彉┇ dd 殸  洜槡ㄡ瘻珳 珵 毃槪c   珵 槯灐滅珳 
- ЖΙ啜牑 ¥悖  Vim.
-
- 3. 嫓珮濠珳  洦Γ鈽 ┇ 毃槪c 弨寳 槯 湣滃 Е 煒 Ж猝湢  п湢
- 洜槡#猡 毃槪c.
-
- 4. 瞟 滃┇  墭う° 墭┇槱, ┇ p 殸  欋珳 珵 毃槪c.
-
- 5. 劎槫槩釞湯 珮 欍珮 2 忄 4 殸  欋珳 姊湭 珷 毃槪b ┇
- ┼┇ 牗.
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 3.2: 剬拵妴 寬垑拃憭憜
-
-
- ** 彉┇ r  畼~悒 殸  槩⑨珳 槵 Е 滃
- ♂ 槯  洦Γ鈽. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 Ж楂 毃槪c ♂ 犩b  --->.
-
- 2. 嫓珮濠珳  洦Γ鈽 猥 椹珳  滃 пむ ┇ Ж楂 ⑨煢.
-
- 3. 彉┇ r    畼~悒 Η﹀Κ 洜Θ熼  ⑨煢.
-
- 4. 劎槫槩釞湯 珮 欍珮 2  3 b  滃 ┼┇ Ж楂 毃槪c.
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. 掗 殬澶湯 ┇ 嬦煘 3.2.
-
-憜媱垪憜: 寴 煬a┇ 娅 Ж猝湢  煒澶湯  珵 悌,  娈 
- 珵 槯Γf.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 3.3: 剬拵妴 妸倖
-
- ** 偁  槩⑨珳 悖 姊 珵 ⑩, ┇ cw . **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 Ж楂 毃槪c ♂ 犩b  --->.
-
- 2. 挦Е煖┇  洦Γ鈽 пむ ┇ u 珵 ⑩ lubw.
-
- 3. 彉┇ cw  珵 ┼┇ ⑩ (┇灓 ㄥЙ喋 槵, 毃岑珳 'ine'.)
-
- 4. 彉┇ <ESC>  殬澶湯 ┇ 湩妫湦 ⑨煢 (┇Δ Ж楂
- 畼~悒 ЖΚ 槩氥).
-
- 5. 劎槫槩釞湯 珮 欍珮 3  4 b牚 娅Μ Ж楂 Ж娅槱  滃
- 鍥牁  珵 洔绔湪.
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-彉珵濠珳 娅 cw 娈 fう 槫珷煚┇釡 珵 ⑩, 槩⑨  湢┽殰
-湩濠灙  Β.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 3.4: 弰悎憫帓剱剳 妸倓 媱 c
-
-
- ** 湦€ 槩氥 灘牐Η滃珮  珮 鍥牁 槫珷澹湦 珵 洜槡. **
-
-
- 1. 湦€ 槩氥 洣滅湢   鍥牔 妲 妲嗒 洜槡. &ō 滃:
-
- [槰牊f猐 c 槫珷澹湦 c [槰牊f猐 槫珷澹湦
-
- 2. 挊 槫珷澹湦 滃 п 珮 鍥牁, 妲嗒 w (⑩), $ (ⅵ 毃槪c), ~.
-
- 3. 嫓珮煖瀚 ┇灓 Ж楂 毃槪c ♂ 犩b  --->.
-
- 4. 嫓珮濠珳  洦Γ鈽 ┇ Ж楂 ⑨煢.
-
- 5. 偍岑珳 c$ 殸  ♂珳  姊Е 珵 毃槪c 鍥牔  珵 洔绔湪
-  ┇ <ESC>.
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 3 弰悎妴枂
-
-
- 1. 偁  Е煖珳 澹湦 Е f 猱湢 洜槡瓬, ┇ p .
-  Е煖珳  洜槡#猡 澹湦 媱拃  洦Γ鈽 (槫 洜槡ㄡ灐
- 毃槪c 煒 п湢  ┇ 毃槪c ♂ 槯  洦Γ鈽.
-
- 2. 偁  槫珷珮┇悌湯  畼~悒 ♂ 槯  洦Γ鈽, ┇ r
-    畼~悒 Е 煒 槫珷珮┇悌湢  槰疇℃.
-
- 3. 湦€ 槩氥  湩牜ㄢ  槩⑨珳  煢猡 槫珷澹湦
- 槯  洦Γ鈽 b  ⅵ  槫珷澹湦. .. 毃岑珳 cw 殸 
- 槩⑨珳 槯  洦Γ鈽 b  ⅵ 珵 ⑩, c$ 殸  槩⑨珳
- b  ⅵ 毃槪c.
-
- 4. &ō 殸 珵 槩氥 滃:
-
- [槰牊f猐 c 槫珷澹湦 c [槰牊f猐 槫珷澹湦
-
-掗 ┈┇   湩妫湦 a煘.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 4.1: 噭憜 墍 墍拃憭憜 悤剤帗
-
-
- ** 彉┇ CTRL-g 殸  湥瓨┇滃 熲  ┇ 槰疁濡  ┇槱 .
- 彉┇ SHIFT-G 殸  п珳  e 毃槪c ┇ 槰疁濡. **
-
- 憺遴: 儬槞岍珳 Β妗é  a煘 Ж牑 湣珳⑩珳 ♂Е牔 槯 珮 欍珮!!
-
- 1. 墾槴悌珳 珵bう  Б恪 Ctrl  ┇ g . 嬪 毃槪c ┇槱灙
- 煒 湥瓨┇滃 ┇ ♂ bé 珵 ㈠洏   妞Γ 槰疁濡  珵
- 毃槪c Е 滃┇. 嚞煖瀚  槰牊f 毃槪c 殸  併 3.
-
- 2. 彉┇ shift-G 殸  珮煖瀚 ┇ ⅵ  槰疁濡.
-
- 3. 彉┇  槰牊f 珵 毃槪c Е 悌槱珮   shift-G.  煒
-  湩牘獐湢 ┇ 毃槪c Е 悌槱珮 Ж牑 珳 殸 Ж楂 ㄡ Ctrl-g.
- (瞰槫 Б灐Β滃珳  槰牊&绐, 儎 煒 湥瓨ゅ潶か槧 ┇灓 妞).
-
- 4. う犻煖珳 ╁殾Κ 殸 槵, 湣珳⑩┇ 珮 欍珮 1 忄 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 4.2: 剬拵妴 寑厗拞憜
-
-
- ** 彉┇ / 槨ΒΜ煢纾湦 槯 珵 岍 Е 湯. **
-
- 1. 憸 墭う° 墭┇槱 ┇  畼~悒 / . 彉珵ㄣ┇ 娅 槵 
- 洦Γ鈽 湥瓨ゅ潶か槧 ┇ ♂ bé 珵 妞灙 妲嗒  珵 湦€ : .
-
- 2. 掗 毃岑珳 'errroor' <ENTER>.  滃 ⑩ Е 熲珳  珳.
-
- 3. 偁  珳 め 殸 珵 鍥牁 岍, ┇ 槯㈤ n .
- 偁  珳 珵 鍥牁 岍 ┇灓 槫煖珵 珳鐭, ┇ Shift-N .
-
- 4. 熲珳  珳 殸 e 岍 ЖΚ 珮 у┼, 灘牐Η悌珳 珵 湦€ ? 槫 珵 / .
-
----> 瞰槫 槫槤惬灘 岍湢 ┇ ⅵ  槰疁濡 煒 ┈ 槯 珵 槰.
-
- "errroor" is not the way to spell error; errroor is an error.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 4.3: 創悇憜 拃垚垁憭棇 弨悇寚剳剹
-
-
- ** 彉┇ % 殸  櫒滃珳 珵 槫┇疄 ), ], } . **
-
- 1. 挦Е煖┇  洦Γ鈽  ♂Е牁 (, [, { ┇灓 ♂ 毃槪c
- 犩b  --->.
-
- 2. 掗 ┇  畼~悒 % .
-
- 3. 洦Γ鈽 煒 Ж猝湢  滃 ┇灓 槫┇疄 ㄢ湬 槡$.
-
- 4. 彉┇ % 殸  珮ゃ珳  洦Γ鈽 у┼ ┇灓 Ж楂 槡$
- ( 潨瑲槰牔).
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-憜媱垪憜:  滃 Е㈢ 悌牐 ┇灓 槯Ι瓨ⅲ岖喋 湦妾 Жㄡ#槴Κ
-   珮牗牁┇猹 猢湢!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 4.4: 剬 拹帍帒 倛 妸倖 妧嚄
-
-
- ** 偍岑珳 :s/old/new/g 殸  槩⑨珳  'new'   'old'. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 ♂ 毃槪c 犩b  --->.
-
- 2. 偍岑珳 :s/thee/the <ENTER> . 憺犻┇ 娅 槵 湦€ 槩⑨潨 fう
- 珵 Ж楂 湥 ┇ 毃槪c.
-
- 3. 掗 毃岑珳 :s/thee/the/g 湦う椁珮 殰° 槫珷┇槱 ┇
- 毃槪c.  槩⑨潨 姊湭 珷 湥瓨ゅ牚 湩 珵 毃槪c.
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 偁  槩⑨珳 ♂煖 湥 e槳 ┈ΒΙ湢ㄡ 珮ョ 涚 毃槪i,
- 毃岑珳 :#,#s/old/new/g 妲Μ #,#  槰牊&  涚 毃槪i.
- 偍岑珳 :%s/old/new/g 殸  槩⑨珳 ♂煖 湥  姊  槰疁濡.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 4 弰悎妴枂
-
-
- 1. 挦 Ctrl-g 湥瓨ゅ潨 珵 熲  ┇ 槰疁濡  珵 ┇槱 .
- 挦 Shift-G 殬澶湢 ┇ ⅵ  槰疁濡. 毪槳 槰牊f 毃槪c
- 槨ΒΜ煢纾湦Κ 槯 Shift-G 殬澶湢  湣滃 珵 毃槪c.
-
- 2. 偍岘Δ珮 / 槨ΒΜ煢纾湦 槯 e 岍 湢 ЖΚ 珮 嫃悗憭 殸
- 珵 岍. 偍岘Δ珮 ? 槨ΒΜ煢纾湦 槯 e 岍 湢 ЖΚ 珮 張憲
- 殸 珵 岍. 嫓 槯 e 槫槤惬灘 ┇ n 殸  櫒滃珳 珵
- 湩妫湦 湥 ЖΚ 珵 鍥牁 珳鐭 Shift-N 殸  珳
- ЖΚ 珵 槫煖珵 珳鐭.
-
- 3. 彉か槳 % 姗 洦Γ鈽 滃 пむ  e (,),[,],{, } 湦у潨
-  槫┇ 珮濞  潨瑲槰牔.
-
- 4. 偁 槫珷┇槱  new  Ж楂Μ old ┇ 毃槪c 毃岑珳 :s/old/new
- 偁 槫珷┇槱  new 姊啶  'old' ┇ 毃槪c 毃岑珳 :s/old/new/g
- 偁 槫珷┇槱 岍溹 珮ョ 涚 # 毃槪i 毃岑珳 :#,#s/old/new/g
- 偁 槫珷┇槱 姊啶  湥瓨ゅ啶 ┇ 槰疁濡 毃岑珳 :%s/old/new/g
- 偁 湪楂灘 湩牂湙樺喋灙 ♂煖 ㄡ ЖΙ熲┇ 猡 'c' "%s/old/new/gc
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 5.1: 彈 剦拕姉 媹 剭棐剱垑 剬拵妴
-
-
-** 偍岑珳 :! 槨ΒΜ煢纾湦 槯 e 湧喃湪牎 湦€ 殸  珵 湣珳⑩珳. **
-
- 1. 彉┇ 珵 鍢 湦€ : 殸  熲珳  洦Γ鈽 ┇ ♂ bé
- 珵 妞灙.   湩牜ㄢ  涢珳 e 湦€.
-
- 2. 掗 ┇  ! (煒槱珷℃).   湩牜ㄢ  湣珳⑩珳
- Η槢悃Λ 湧喃湪牎 湦€  ︾.
-
- 3. 憳 ㄡ洔牃 毃岑珳 ls  槯  !  ┇ <ENTER>.  煒
-  湥瓨ゅ e ㈠┇  珮㈡殾 , 槨欓   悌槱珮 ┇灓
- ЖΛéс  ︾. 灘牐Η悌珳 :!dir 槫  ls 洔 洣滅湢.
-
----> 憺遴: 勫 洭  湣珳⑩珳 Η槢悃Λ 湧喃湪牎 湦€
-  槵  妲.
-
----> 憺遴: 睥湭  湦⑩ : Ж猝湢  珳ǎ槴鍧Δ珮 か槳  <ENTER>.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 5.2: 弰悎憫帓剱 弰悎 剛倫攩 悤剤棇
-
-
- ** 偁  ╅珳 珷 槩⑨殰 Е ♂珳 ┇ 槰疁濡, 毃岑珳 :w 悤剤. **
-
- 1. 偍岑珳 :!dir :!ls 殸  п珳 e ㈠┇  珮㈡殾 .
- 鞗 モ珳 娅 Ж猝湢  珳 <ENTER>  槯 槵.
-
- 2. 儬槩猊珳 猡 妞Γ 槰疁濡 Е 洔 屺疁 槨妫, 妲嗒  TEST.
-
- 3. 掗 毃岑珳: :w TEST (妲Μ TEST 滃  妞Γ 槰疁濡 Е 洜槩猊槴).
-
- 4.  ╅潨 姊  槰疁濡 (vim Tutor)   妞Γ TEST. 偁  
- 湩槩灍滅珳, 毃岑珳 め :!dir 殸  洔瀚  ⅵ氭 .
-
----> 憺犻┇ 娅 槫 櫄樺珳 槯  Vim  '樺珳 め   妞Γ
- 槰疁濡 TEST,  槰疁濡 煒 惬槫 槨欌 槫毃槶  tutor 娅槫  ╅珳.
-
- 5. 掗 洜槡ㄡ  槰疁濡 毃岘Δ珮 (MS-DOS): :!del TEST
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 5.3: 剰垔剦拡墕 剬拵妴 剛倫攩
-
-
- ** 偁  ╅珳 悖  槰疁濡, 毃岑珳 :#,# w 悤剤 **
-
- 1. 辎  ㄡ, 毃岑珳 :!dir :!ls 殸  п珳 e ㈠┇ 槯 
- ⅵ氭   洜槩猊珳 猡 ⅱ灑 妞Γ 槰疁濡 妲嗒  TEST.
-
- 2. 嫓珮濠珳  洦Γ鈽 ┇ пむ bé 槵 珵 ㈠洏  ┇
- Ctrl-g 殸  櫒滃珳  槰牊f 槵 珵 毃槪c.
- 寑 嚀媭憭 搾帉 拵 悎噵!
-
- 3. 掗 殬澶湯 ┇ ♂ bé 珵 ㈠洏  ┇ Ctrl-g め.
- 寑 嚀媭憭 墍 搾帉 拵 悎噵!
-
- 4. 偁  ╅珳 嫀寧 猡 悖  槰疁濡, 毃岑珳 :#,# w TEST
- 妲Μ #,#  涚 槰牊& Е 槯Γ&绌槴 (пむ,♂)  TEST 
- 妞Γ  槰疁濡 .
-
- 5. 崢め, 洔瀚 娅  槰疁濡 滃 湣滃  珵 :!dir 槩⑨ 媶  洜槡ㄡ瘻珳.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 5.4: 寑墥棇拃 墍 剬棇帉拃 悤剤
-
-
- ** 偁  湢┽殰珳 珮 湲妫湦 湦妾 槰疁濡, 毃岑珳 :r 悤剤 **
-
- 1. 偍岑珳 :!dir 殸  櫆櫂犩煖瀚 娅  TEST 屺疁 槯 Ж牑.
-
- 2. 挦Е煖┇  洦Γ鈽 ┇ пむ bé 珵 ㈠洏.
-
-憜媱垪憜:  湣珳⑩珳  併 3 煒 洔瀚  嬦煘 5.3.
- 嫓 煖瀚 墍挆 め ЖΚ  a煘 槵.
-
- 3. 掗 槫槨┇  槰疁濡  TEST 灘牐Η椁珮 珵 湦€ :r TEST
- 妲Μ TEST 滃  妞Γ  槰疁濡.
-
-憜媱垪憜: 挦 槰疁濡 Е 槫槨珳 Е煖珳瀚槧 らか槳 湣滃 Е 櫒濠珮
- 洦Γ鈽.
-
- 4. 偁  湩槩灍滅珳 娅  槰疁濡 槫槨煘, у┼  洦Γ鈽 
- 珵ㄣ┇ 娅 屺  涚 槫毃槶  嫎熴 5.3, 
- 槰疇℃  狻洣  槰疁濡.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 5 弰悎妴枂
-
-
- 1. :!湦€ 湣珳 e 湧喃湪牎 湦€.
-
- 嫓♂ 悌牐 洔鍤珮 滃 (MS-DOS):
- :!dir - 湥 ㈠┇槳 湦妾 珮㈡殾.
- :!del 悤剤 - 洜槡ㄡ瓬  悤剤.
-
- 2. :w 悤剤 毃岘湢  猱啶 槰疁濡  Vim ┇ 涘  妞Γ 悤剤.
-
- 3. :#,#w 悤剤 ╅潨 珷 毃槪b 槯 # b # ┇ 悤剤.
-
- 4. :r 悤剤 槫槨珳  槰疁濡 涘Μ 悤剤   幄 b
- ┇ 猱Δ 槰疁濡  槯 珵 熲  洦Γ鈽.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 6.1: 剬拵妴 寧垈媭拵
-
-
- ** 彉┇ o 殸  槫﹀珳 e 毃槪c ♂ 槯  洦Γ鈽  
- 櫒湡滃珳  墭┇槱 墱牐猡Μ. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 ♂ 毃槪c 犩b  --->.
-
- 2. 彉┇ o (濇) 殸  槫﹀珳 e 毃槪c 墍挆 槯  洦Γ鈽  
- 櫒湡滃珳  墭┇槱 墱牐猡Μ.
-
- 3. 掗 槫珷毃岑珳 珵 犩b  ---> 毃槪c  ┇ <ESC> 殸 
- 櫄滃珳 槯 珵 墭┇槱 墱牐猡Μ.
-
----> After typing o the cursor is placed on the open line in Insert mode.
-
- 4. 偁  槫﹀珳 e 毃槪c 弨寳 槯  洦Γ鈽, ┇ 槯⑨ 猡 瓨濡
- O, 槫 殸 猡 濇 o. 儲a┇  ┇灓 ♂ 毃槪c.
-う鍤湯 毃槪c пむ 槯 槵 か槳 Shift-O 姗 洦Γ鈽 滃 ┇ 毃槪c
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 6.2: 剬拵妴 彁帒噯墕
-
- ** 彉┇ a 殸  湢┽殰珳 澹湦 媱拃  洦Γ鈽. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇ ⅵ 珵 Ж楂灙 毃槪c ♂
- 犩b  ---> か槳 $ ┇灓 墭う° 墭┇槱.
-
- 2. 彉┇ 猡 a (濇) 殸  ЖΙ熲珳 澹湦 媱拃 槯  畼~悒
- Е 滃 ♂ 槯  洦Γ鈽. (挦 瓨濡 A ЖΙ熲珳 ┇ ⅵ
- 珵 毃槪c).
-
-憺遴:  槯Ν滅殰  п珵  i ,  珳樺 畼~悒, 
- 澹湦 珵 湢氞氥, <ESC>, 洦Γ鈽-洔,  ⅵ, x, fう 
- fう 殸  ЖΙ熲珳 ┇ ⅵ 珵 毃槪c!
-
- 3. 懍'ㄩ┇  珵 Ж楂 毃槪c. 憺犻┇ 湩濠灙 娅 ЖΙ熴 滃
- 槨欓 鍥牁 ┇灓 墭┇槱 墱牐猡Μ  珵 墭┇槱 劆氞氥, 湣
- 槯 珵 熲 Е 湢┽殰珮  澹湦.
-
----> This line will allow you to practice
----> This line will allow you to practice appending text to the end of a line.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 6.3: 妸 剦儙憜 拞 寬垑拃憭憜
-
-
- ** 彉┇ 瓨濡 R 殸  槩⑨珳 ┅娅湪Μ 槯 猡槫 畼~悒湭. **
-
- 1. 嫓珮濠珳  洦Γ鈽 ┇灓 Ж楂 毃槪c ♂ 犩b  --->.
-
- 2. 挦Е煖┇  洦Γ鈽 ┇灓 槰 珵 Ж楂灙 ⑩ Е 滃 洜槶Θ湯牎
- 槯 珵 洔绔湪 毃槪c 犩b  ---> ( ⑩ 'last').
-
- 3. 彉┇  R  槩⑨カ  姊Е  牐猡Μ ┇灓 Ж楂 毃槪c
- 毃岘Δ珮 пむ 槯   澹湦 椹珳  ♂珳 珵 Ж楂 毃槪c 鍥牁
-  珵 洔绔湪.
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. 憺犻┇ 娅 娅槫 珳 <ESC> 殸  櫄滃珳, b Η悃Λ
- 槫槩ⅵ遴 澹湦.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 嬦煘 6.4: 悡噵垜 剰垔巶啈
-
-
- ** 惉煟濠珳 e 湩牏 猥 椹珳 槫槤惬灘 槫珷┇槱  槡う滃
- 珵 洜槶Θ 濋-瓨遴 **
-
- 1. 栣カ 殸 'ignore' 湢┽殾か槳:
- /ignore
- 懍┇ 槰 ㄢ か槳  Б恪 n.
-
- 2. 団┇ 珵 湩牏 'ic' (Ignore case) 毃岘Δ珮:
- :set ic
-
- 3. 栣カ  め 殸 'ignore' か槳: n
- 懍┇ 珵 槫槤惬灘 ♀ 槨妫 ㄢ か槳  Б恪 n
-
- 4. 団┇ 珷 湩牏猹 'hlsearch'  'incsearch':
- :set hls is
-
- 5. 劆┽殰珳  め 珵 湦€ 槫槤惬灘灙,  洔瀚 珷 ┈樺
- /ignore
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 6 弰悎妴枂
-
-
- 1. 彉か槳 o 槫﹀殰 e 毃槪c 墍挆 槯  洦Γ鈽  Е煖珳 
- 洦Γ鈽 ┇灓 槫 毃槪c  墭┇槱 墱牐猡Μ.
-
- 2. 彉┇ a 殸  湢┽殰珳 澹湦 媱拃  畼~悒 ┇Δ Η﹀ 滃
- 洦Γ鈽. 彉か槳 瓨濡 A 槵珮 ЖΙ熲珳 澹湦 ┇ ⅵ
- 珵 毃槪c.
-
- 3. 彉か槳 瓨濡 R 湢┾ó湯槧 ┇灓 墭┇槥 か牎槴岍珮 b 
- 珵煖  <ESC>   湧猗煖.
-
- 4. 偍岘Δ珮 ":set xxx" ì煟鍧湢 珵 湩牏 "xxx".
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 7: ON-LINE 剬拵妱 亷唶剤
-
-
- ** 暔灘牐Η悌珳  on-line ╃┇灒 櫐銦湢槳 **
-
- Vim 猱湢 猡 湣珷℃ on-line ╃┇灒 櫐銦湢槳. 偁  ゃ,
- 洣a┇ ♂Е牔 槯 珮 鍢:
- - ┇  Б恪 <HELP> (槫 猱湯 ♂Е牔)
- - ┇  Б恪 <F1> (槫 猱湯 ♂Е牔)
- - 毃岑珳 :help <ENTER>
-
- 偍岑珳 :q <ENTER> 殸  、滃珳  ㄡ煬é 珵 櫐銦湢槳.
-
- 嫥Θ滃珳  櫒滃珳 櫐銦湢 пむ  ♂煖 槫珷澹湦, 涘うか槳 e ㄡ
- ┇灓 湦€ ":help". 儲a┇ 槵 ( 岖  珳 <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 媭噯媭 8: 儐媹帗悅啈拕 剬 SCRIPT 剦増寙憜
-
- ** 劋湪殾Е犮┇ 畼~灗牘珷♂  Vim **
-
- Vim 猱湢 Еⅱ ┅娅湪 畼~灗牘珷♂ 槯' ,珷 Vi, 槩⑨ 珮
- ┅娅湪 滃 槰疇♂ 槯湦湪殾Е牉b. 偁  槰珳  灘牐Η滃珳
- ┅娅湪 畼~灗牘珷♂ Ж猝湢  犪珳 猡 槰疁濡 "vimrc".
-
- 1. ó濠珳 洜Θ熼うか槳  槰疁濡 "vimrc", 槵 湧槰珮 槯  ╃┇灒 :
- :edit ~/.vimrc 殸 Unix
- :edit $VIM/_vimrc 殸 MS-Windows
-
- 2. 掗 湢┽殰珳  澹湦 洔鍤 殸 槰疁濡 "vimrc":
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 偍岑珳  槰疁濡  珵:
- :write
-
- 挒 湩妫湦 ㄡ Е 煒 ゃ珳  Vim 煒 灘牐Η悌湢 珷
- ╃か槬灙. 嫥Θ滃珳  ЖΙ熲珳 姊湭 珷 ЖΛ牐椋湦湭 湩牏猹 ' 槵
-  槰疁濡 "vimrc".
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 剾 ΒΑㄩ珮  Vim Tutor. 憽Η妾  惬槫  涢 e ╃かΓ
- ㄥ癁  ┈か帷珵 Vim, 岙牘  椹珳   湩牜ㄢ瘻 
- 灘牐Η悌湯  ┈か帷珵 槰 滅ˇ. р疁 Е㈢ 槯 e
- ΒΑㄠb é鍢 熼 Vim 猱湢 п Еⅱ猹 湦⑩. 儬槞岍珳
-   湚疁牗鍥牔 悌灙:
- ":help user-manual".
-
- 偁 牜猕 洜釞槱  ⑩珵, ┈┇悚湯槧 槵  櫊櫌濡:
- Vim - Vi Improved - by Steve Oualline
- Publisher: New Riders
- 挦 Ж楂 櫊櫌濡 Б悒嗒 槶牅ㄠbう ┇Δ Vim.
- 垱牁瀚湪 悌牐 殸 槰Μ.
- 摟屺 Еⅱ 洔鍤珮  湢℃.
- 儨瀚 珵 http://iccf-holland.org/click5.html
-
-   櫊櫌濡 滃 娅湪  ┅娅湪 殸  Vi ㄡ 殸  Vim,
- 槩⑨ 湩濠灙 ┈┇椋湦:
- Learning the Vi Editor - by Linda Lamb
- Publisher: O'Reilly & Associates Inc.
- 勫 猡 ㈡ 櫊櫌濡 殸  a煖珳 ┊湜妞 珮 пか Е 熲珳
-  ♂珳   Vi.
- 狻珵 狻洣 猱湢 槨妫 Б灗ΝΘ鍦 殸  Vim.
-
-  銡灘 毃岘珵 槯  Michael C. Pierce  Robert K. Ware,
- Colorado School of Mines 灘牐Η椁珮 牄鉁 槯  Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- 彣Ι槰&氥 殸  Vim 槯  Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.gr.utf-8 b/runtime/tutor/tutor.gr.utf-8
deleted file mode 100644
index b6c08e15f..000000000
--- a/runtime/tutor/tutor.gr.utf-8
+++ /dev/null
@@ -1,815 +0,0 @@
-===============================================================================
-= 螝 伪位 蠅 蟽 萎 蟻 胃 伪 蟿 蔚 蟽 蟿 慰 V I M T u t o r - 螆魏未慰蟽畏 1.5 =
-===============================================================================
-
- 螣 Vim 蔚委谓伪喂 苇谓伪蟼 蟺伪谓委蟽蠂蠀蟻慰蟼 蟽蠀谓蟿维魏蟿畏蟼 蟺慰蠀 苇蠂蔚喂 蟺慰位位苇蟼 蔚谓蟿慰位苇蟼, 蟺维蟻伪
- 蟺慰位位苇蟼 纬喂伪 谓伪 蔚尉畏纬萎蟽慰蠀渭蔚 蟽蔚 渭委伪 蟺蔚蟻喂萎纬畏蟽畏 蠈蟺蠅蟼 伪蠀蟿萎. 螒蠀蟿萎 畏 蟺蔚蟻喂萎纬畏蟽畏
- 蟽蠂蔚未喂维蟽蟿畏魏蔚 纬喂伪 谓伪 蟺蔚蟻喂纬蟻维蠄蔚喂 喂魏伪谓慰蟺慰喂畏蟿喂魏维 蟿喂蟼 蔚谓蟿慰位苇蟼 蟺慰蠀 胃伪 蟽伪蟼
- 魏维谓慰蠀谓 谓伪 蠂蟻畏蟽喂渭慰蟺慰喂蔚委蟿蔚 蔚蠉魏慰位伪 蟿慰谓 Vim 蟽伪谓 苇谓伪谓 纬蔚谓喂魏萎蟼 蠂蟻萎蟽畏蟼 蟽蠀谓蟿维魏蟿畏.
-
- 螣 魏伪蟿维 蟺蟻慰蟽苇纬纬喂蟽畏 蠂蟻蠈谓慰蟼 蟺慰蠀 伪蟺伪喂蟿蔚委蟿伪喂 纬喂伪 谓伪 慰位慰魏位畏蟻蠋蟽蔚蟿蔚 蟿畏谓 蟺蔚蟻喂萎纬畏蟽畏
- 蔚委谓伪喂 25-30 位蔚蟺蟿维, 蔚尉伪蟻蟿蠋谓蟿伪蟼 伪蟺蠈 蟿慰 蟺蠈蟽慰 蠂蟻蠈谓慰 胃伪 尉慰未苇蠄蔚蟿蔚 纬喂伪
- 蟺蔚喂蟻伪渭伪蟿喂蟽渭慰蠉蟼.
-
- 螣喂 蔚谓蟿慰位苇蟼 蟽蟿伪 渭伪胃萎渭伪蟿伪 胃伪 蟿蟻慰蟺慰蟺慰喂萎蟽慰蠀谓 蟿慰 魏蔚委渭蔚谓慰. 螖畏渭喂慰蠀蟻纬萎蟽蟿蔚 苇谓伪
- 伪谓蟿委纬蟻伪蠁慰 伪蠀蟿慰蠉 蟿慰蠀 伪蟻蠂蔚委慰蠀 纬喂伪 谓伪 蔚尉伪蟽魏畏胃蔚委蟿蔚 (伪谓 尉蔚魏喂谓萎蟽伪蟿蔚 蟿慰
- "Vimtutor" 伪蠀蟿蠈 蔚委谓伪喂 萎未畏 苇谓伪 伪谓蟿委纬蟻伪蠁慰).
-
- 螘委谓伪喂 蟽畏渭伪谓蟿喂魏蠈 谓伪 胃蠀渭维蟽蟿蔚 蠈蟿喂 伪蠀蟿萎 畏 蟺蔚蟻喂萎纬畏蟽畏 蔚委谓伪喂 慰蟻纬伪谓蠅渭苇谓畏 苇蟿蟽喂
- 蠋蟽蟿蔚 谓伪 未喂未维蟽魏蔚喂 渭苇蟽蠅 蟿畏蟼 蠂蟻萎蟽畏蟼. 螒蠀蟿蠈 蟽畏渭伪委谓蔚喂 蠈蟿喂 蠂蟻蔚喂维味蔚蟿伪喂 谓伪
- 蔚魏蟿蔚位蔚委蟿蔚 蟿喂蟼 蔚谓蟿慰位苇蟼 纬喂伪 谓伪 蟿喂蟼 渭维胃蔚蟿蔚 蟽蠅蟽蟿维. 螒谓 未喂伪尾维味蔚蟿蔚 渭蠈谓慰 蟿慰
- 魏蔚委渭蔚谓慰, 胃伪 蟿喂蟼 尉蔚蠂维蟽蔚蟿蔚!
-
- 韦蠋蟻伪, 尾蔚尾伪喂蠅胃蔚委蟿蔚 蠈蟿喂 蟿慰 蟺位萎魏蟿蟻慰 Shift-Lock 螖螘螡 蔚委谓伪喂 蟺伪蟿畏渭苇谓慰 魏伪喂
- 蟺伪蟿萎蟽蟿蔚 蟿慰 蟺位萎魏蟿蟻慰 j 伪蟻魏蔚蟿苇蟼 蠁慰蟻苇蟼 纬喂伪 谓伪 渭蔚蟿伪魏喂谓萎蟽蔚蟿蔚 蟿慰谓 未蟻慰渭苇伪 苇蟿蟽喂
- 蠋蟽蟿蔚 蟿慰 螠维胃畏渭伪 1.1 谓伪 纬蔚渭委蟽蔚喂 蟺位萎蟻蠅蟼 蟿畏谓 慰胃蠈谓畏.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 1.1: 螠螘韦螒螝螜螡螣螡韦螒危 韦螣螡 螖巍螣螠螘螒
-
- ** 螕喂伪 谓伪 魏喂谓萎蟽蔚蟿蔚 蟿慰谓 未蟻慰渭苇伪, 蟺伪蟿萎蟽蟿蔚 蟿伪 蟺位萎魏蟿蟻伪 h,j,k,l 蠈蟺蠅蟼 未蔚委蠂谓蔚蟿伪喂. **
- ^
- k Hint: 韦慰 蟺位萎魏蟿蟻慰 h 蔚委谓伪喂 伪蟻喂蟽蟿蔚蟻维 魏伪喂 魏喂谓蔚委 蟽蟿' 伪蟻喂蟽蟿蔚蟻维.
- < h l > 韦慰 蟺位萎魏蟿蟻慰 l 蔚委谓伪喂 未蔚尉喂维 魏伪喂 魏喂谓蔚委 蟽蟿伪 未蔚尉喂维.
- j 韦慰 蟺位萎魏蟿蟻慰 j 渭慰喂维味蔚喂 渭蔚 尾蔚位维魏喂 蟺蟻慰蟼 蟿伪 魏维蟿蠅.
- v
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟿蟻喂纬蠉蟻蠅 蟽蟿畏谓 慰胃蠈谓畏 渭苇蠂蟻喂 谓伪 谓慰喂蠋胃蔚蟿蔚 维谓蔚蟿伪.
-
- 2. 螝蟻伪蟿萎蟽蟿蔚 蟺伪蟿畏渭苇谓慰 蟿慰 魏维蟿蠅 蟺位萎魏蟿蟻慰 (j) 渭苇蠂蟻喂 谓伪 蔚蟺伪谓伪位畏蠁胃蔚委.
----> 韦蠋蟻伪 尉苇蟻蔚蟿蔚 蟺蠋蟼 谓伪 渭蔚蟿伪魏喂谓畏胃蔚委蟿蔚 蟽蟿慰 蔚蟺蠈渭蔚谓慰 渭维胃畏渭伪.
-
- 3. 围蟻畏蟽喂渭慰蟺慰喂蠋谓蟿伪蟼 蟿慰 魏维蟿蠅 蟺位萎魏蟿蟻慰, 渭蔚蟿伪魏喂谓畏胃蔚委蟿蔚 蟽蟿慰 螠维胃畏渭伪 1.2.
-
-危畏渭蔚委蠅蟽畏: 螒谓 伪渭蠁喂尾维位位蔚蟿蔚 纬喂伪 魏维蟿喂 蟺慰蠀 蟺伪蟿萎蟽伪蟿蔚, 蟺伪蟿萎蟽蟿蔚 <ESC> 纬喂伪 谓伪 尾蟻蔚胃蔚委蟿蔚
- 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏. 螠蔚蟿维 蟺伪蟿萎蟽蟿蔚 尉伪谓维 蟿畏谓 蔚谓蟿慰位萎 蟺慰蠀 胃苇位伪蟿蔚.
-
-危畏渭蔚委蠅蟽畏: 韦伪 蟺位萎魏蟿蟻伪 蟿慰蠀 未蟻慰渭苇伪 胃伪 蟺蟻苇蟺蔚喂 蔚蟺委蟽畏蟼 谓伪 未慰蠀位蔚蠉慰蠀谓. 螒位位维 渭蔚 蟿伪 hjkl
- 胃伪 渭蟺慰蟻蔚委蟿蔚 谓伪 魏喂谓畏胃蔚委蟿蔚 蟺慰位蠉 纬蟻畏纬慰蟻蠈蟿蔚蟻伪, 渭蠈位喂蟼 蟿伪 蟽蠀谓畏胃委蟽蔚蟿蔚.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 1.2: 螠螤螒螜螡螣螡韦螒危 螝螒螜 螔螕螒螜螡螣螡韦螒危 危韦螣螡 VIM
-
- !! 危螚螠螘螜惟危螚: 螤蟻喂谓 蔚魏蟿蔚位苇蟽蔚蟿蔚 魏维蟺慰喂慰 伪蟺蠈 蟿伪 尾萎渭伪蟿伪, 未喂伪尾维蟽蟿蔚 蠈位慰 蟿慰 渭维胃畏渭伪!!
-
- 1. 螤伪蟿萎蟽蟿蔚 蟿慰 蟺位萎魏蟿蟻慰 <ESC> (纬喂伪 谓伪 蔚委蟽蟿蔚 蟽委纬慰蠀蟻伪 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏).
-
- 2. 螤位畏魏蟿蟻慰位慰纬萎蟽蟿蔚: :q! <ENTER>.
-
----> 螒蠀蟿蠈 蔚尉苇蟻蠂蔚蟿伪喂 伪蟺蠈 蟿慰谓 蟽蠀谓蟿维魏蟿畏 围惟巍螜危 谓伪 蟽蠋蟽蔚喂 蠈蟺慰喂蔚蟼 伪位位伪纬苇蟼 苇蠂蔚蟿蔚 魏维谓蔚喂.
- 螒谓 胃苇位蔚蟿蔚 谓伪 蟽蠋蟽蔚蟿蔚 蟿喂蟼 伪位位伪纬苇蟼 魏伪喂 谓伪 蔚尉苇蟻胃蔚蟿蔚 蟺位畏魏蟿蟻慰位慰纬萎蟽蟿蔚:
- :wq <ENTER>
-
- 3. 螌蟿伪谓 未蔚委蟿蔚 蟿畏谓 蟺蟻慰蟿蟻慰蟺萎 蟿慰蠀 蠁位慰喂慰蠉, 蟺位畏魏蟿蟻慰位慰纬萎蟽蟿蔚 蟿畏谓 蔚谓蟿慰位萎 渭蔚 蟿畏谓 慰蟺慰委伪
- 渭蟺萎魏伪蟿蔚 蟽蔚 伪蠀蟿萎谓 蟿畏谓 蟺蔚蟻喂萎纬畏蟽畏. 螠蟺慰蟻蔚委 谓伪 蔚委谓伪喂: vimtutor <ENTER>
- 螝伪谓慰谓喂魏维 胃伪 蠂蟻畏蟽喂渭慰蟺慰喂慰蠉蟽伪蟿蔚: vim tutor <ENTER>
-
----> 'vim' 蟽畏渭伪委谓蔚喂 蔚喂蟽伪纬蠅纬萎 蟽蟿慰谓 蟽蠀谓蟿维魏蟿畏 vim, 'tutor' 蔚委谓伪喂 蟿慰 伪蟻蠂蔚委慰 蟺慰蠀
- 胃苇位慰蠀渭蔚 谓伪 未喂慰蟻胃蠋蟽慰蠀渭蔚.
-
- 4. 螒谓 苇蠂蔚蟿蔚 伪蟺慰渭谓畏渭慰谓蔚蠉蟽蔚喂 伪蠀蟿维 蟿伪 尾萎渭伪蟿伪 魏伪喂 苇蠂蔚蟿蔚 伪蠀蟿慰蟺蔚蟺慰委胃畏蟽畏, 蔚魏蟿蔚位苇蟽蟿蔚
- 蟿伪 尾萎渭伪蟿伪 1 苇蠅蟼 3 纬喂伪 谓伪 尾纬蔚委蟿蔚 魏伪喂 谓伪 渭蟺蔚委蟿蔚 尉伪谓维 蟽蟿慰谓 蟽蠀谓蟿维魏蟿畏. 螠蔚蟿维
- 渭蔚蟿伪魏喂谓萎蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 魏维蟿蠅 蟽蟿慰 螠维胃畏渭伪 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 1.3: 螖螜螣巍螛惟危螚 螝螘螜螠螘螡螣违 - 螖螜螒螕巍螒桅螚
-
- ** 螌蟽慰 蔚委蟽蟿蔚 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 蟺伪蟿萎蟽蟿蔚 x 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 蟿慰谓
- 蠂伪蟻伪魏蟿萎蟻伪 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 螕喂伪 谓伪 未喂慰蟻胃蠋蟽蔚蟿蔚 蟿伪 位维胃畏, 魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 谓伪 蔚委谓伪喂 蟺维谓蠅 伪蟺蠈
- 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 蟺慰蠀 胃伪 未喂伪纬蟻伪蠁蔚委.
-
- 3. 螤伪蟿萎蟽蟿蔚 蟿慰 蟺位萎魏蟿蟻慰 x 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 蟿慰谓 伪谓蔚蟺喂胃蠉渭畏蟿慰 蠂伪蟻伪魏蟿萎蟻伪.
-
- 4. 螘蟺伪谓伪位维尾蔚蟿蔚 蟿伪 尾萎渭伪蟿伪 2 渭苇蠂蟻喂 4 渭苇蠂蟻喂 畏 蟺蟻蠈蟿伪蟽畏 谓伪 蔚委谓伪喂 蟽蠅蟽蟿萎.
-
----> The ccow jumpedd ovverr thhe mooon.
-
- 5. 韦蠋蟻伪 蟺慰蠀 畏 纬蟻伪渭渭萎 蔚委谓伪喂 蟽蠅蟽蟿萎, 蟺畏纬伪委谓蟿蔚 蟽蟿慰 螠维胃畏渭伪 1.4.
-
-危螚螠螘螜惟危螚: 螝伪胃蠋蟼 未喂伪蟿蟻苇蠂蔚蟿蔚 伪蠀蟿萎谓 蟿畏谓 蟺蔚蟻喂萎纬畏蟽畏, 蟺蟻慰蟽蟺伪胃萎蟽蟿蔚 谓伪 渭畏谓
- 伪蟺慰渭谓畏渭慰谓蔚蠉蔚蟿蔚, 渭伪胃伪委谓蔚蟿蔚 渭蔚 蟿畏 蠂蟻萎蟽畏.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 1.4: 螖螜螣巍螛惟危螚 螝螘螜螠螘螡螣违 - 螤螒巍螘螠螔螣螞螚
-
- ** 螌蟽慰 蔚委蟽蟿蔚 蟽蔚 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 蟺伪蟿萎蟽蟿蔚 i 纬喂伪 谓伪 蟺伪蟻蔚渭尾维位位蔚蟿蔚 魏蔚委渭蔚谓慰. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 蟺伪蟻伪魏维蟿蠅 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 螕喂伪 谓伪 魏维谓蔚蟿蔚 蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 委未喂伪 渭蔚 蟿畏谓 未蔚蠉蟿蔚蟻畏, 渭蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓
- 未蟻慰渭苇伪 蟺维谓蠅 蟽蟿慰谓 蟺蟻蠋蟿慰 蠂伪蟻伪魏蟿萎蟻伪 螠螘韦螒 伪蟺蠈 蠈蟺慰蠀 胃伪 蟺伪蟻蔚渭尾位畏胃蔚委 蟿慰 魏蔚委渭蔚谓慰.
-
- 3. 螤伪蟿萎蟽蟿蔚 蟿慰 i 魏伪喂 蟺位畏魏蟿蟻慰位慰纬萎蟽蟿蔚 蟿喂蟼 伪蟺伪蟻伪委蟿畏蟿蔚蟼 蟺蟻慰蟽胃萎魏蔚蟼.
-
- 4. 螝伪胃蠋蟼 未喂慰蟻胃蠋谓蔚蟿蔚 魏维胃蔚 位维胃慰蟼 蟺伪蟿萎蟽蟿蔚 <ESC> 纬喂伪 谓伪 蔚蟺喂蟽蟿蟻苇蠄蔚蟿蔚 蟽蟿畏谓
- 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏. 螘蟺伪谓伪位维尾蔚蟿蔚 蟿伪 尾萎渭伪蟿伪 2 渭苇蠂蟻喂 4 纬喂伪 谓伪 未喂慰蟻胃蠋蟽蔚蟿蔚
- 蟿畏谓 蟺蟻蠈蟿伪蟽畏.
-
----> There is text misng this .
----> There is some text missing from this line.
-
- 5. 螌蟿伪谓 蔚委蟽蟿蔚 维谓蔚蟿慰喂 渭蔚 蟿畏谓 蟺伪蟻蔚渭尾慰位萎 魏蔚喂渭苇谓慰蠀 渭蔚蟿伪魏喂谓畏胃蔚委蟿蔚 蟽蟿畏谓
- 蟺伪蟻伪魏维蟿蠅 蟺蔚蟻委位畏蠄畏.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 1 螤螘巍螜螞螚唯螚
-
-
- 1. 螣 未蟻慰渭苇伪蟼 魏喂谓蔚委蟿伪喂 蠂蟻畏蟽喂渭慰蟺慰喂蠋谓蟿伪蟼 蔚委蟿蔚 蟿伪 蟺位萎魏蟿蟻伪 未蟻慰渭苇伪 萎 蟿伪 hjkl.
- h (伪蟻喂蟽蟿苇蟻伪) j (魏维蟿蠅) k (蟺维谓蠅) l (未蔚尉喂维)
-
- 2. 螕喂伪 谓伪 渭蟺蔚委蟿蔚 蟽蟿慰谓 Vim (伪蟺蠈 蟿畏谓 蟺蟻慰蟿蟻慰蟺萎 %) 纬蟻维蠄蟿蔚: vim 螒巍围螘螜螣 <ENTER>
-
- 3. 螕喂伪 谓伪 尾纬蔚委蟿蔚 纬蟻维蠄蟿蔚: <ESC> :q! <ENTER> 纬喂伪 伪蟺蠈蟻蟻喂蠄畏 蟿蠅谓 伪位位伪纬蠋谓.
- 螇 纬蟻维蠄蟿蔚: <ESC> :wq <ENTER> 纬喂伪 伪蟺慰胃萎魏蔚蠀蟽畏 蟿蠅谓 伪位位伪纬蠋谓.
-
- 4. 螕喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 苇谓伪谓 蠂伪蟻伪魏蟿萎蟻伪 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 蟽蔚
- 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 蟺伪蟿萎蟽蟿蔚: x
-
- 5. 螕喂伪 谓伪 蔚喂蟽维纬蔚蟿蔚 魏蔚委渭蔚谓慰 蟽蟿慰谓 未蟻慰渭苇伪 蠈蟽慰 蔚委蟽蟿蔚 蟽蔚 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 纬蟻维蠄蟿蔚:
- i 蟺位畏魏蟿蟻慰位慰纬萎蟽蟿蔚 蟿慰 魏蔚委渭蔚谓慰 <ESC>
-
-危螚螠螘螜惟危螚: 螤伪蟿蠋谓蟿伪蟼 <ESC> 胃伪 蟿慰蟺慰胃蔚蟿畏胃蔚委蟿蔚 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 萎 胃伪
- 伪魏蠀蟻蠋蟽蔚蟿蔚 渭委伪 伪谓蔚蟺喂胃蠉渭畏蟿畏 魏伪喂 渭蔚蟻喂魏蠋蟼 慰位慰魏位畏蟻蠅渭苇谓畏 蔚谓蟿慰位萎.
-
-韦蠋蟻伪 蟽蠀谓蔚蠂委蟽蟿蔚 渭蔚 蟿慰 螠维胃畏渭伪 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 2.1: 螘螡韦螣螞螘危 螖螜螒螕巍螒桅螚危
-
- ** 螕蟻维蠄蟿蔚 dw 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 渭委伪蟼 位苇尉畏蟼. **
-
- 1. 螤伪蟿萎蟽蟿蔚 <ESC> 纬喂伪 谓伪 尾蔚尾伪喂蠅胃蔚委蟿蔚 蠈蟿喂 蔚委蟽蟿蔚 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏.
-
- 2. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 3. 螤畏纬伪委谓蔚蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 伪蟻蠂萎 蟿畏蟼 位苇尉畏蟼 蟺慰蠀 蟺蟻苇蟺蔚喂 谓伪 未喂伪纬蟻伪蠁蔚委.
-
- 4. 螕蟻维蠄蟿蔚 dw 纬喂伪 谓伪 魏维谓蔚蟿蔚 蟿畏谓 位苇尉畏 谓伪 蔚尉伪蠁伪谓喂蟽蟿蔚委.
-
-危螚螠螘螜惟危螚: 韦伪 纬蟻维渭渭伪蟿伪 dw 胃伪 蔚渭蠁伪谓喂蟽蟿慰蠉谓 蟽蟿畏谓 蟿蔚位蔚蠀蟿伪委伪 纬蟻伪渭渭萎 蟿畏蟼 慰胃蠈谓畏蟼 蠈蟽慰
- 蟿伪 蟺位畏魏蟿蟻慰位慰纬蔚委蟿蔚. 螒谓 纬蟻维蠄伪蟿蔚 魏维蟿喂 位维胃慰蟼, 蟺伪蟿萎蟽蟿蔚 <ESC> 魏伪喂
- 尉蔚魏喂谓萎蟽蟿蔚 伪蟺蠈 蟿畏谓 伪蟻蠂萎.
-
----> There are a some words fun that don't belong paper in this sentence.
-
- 5. 螘蟺伪谓伪位维尾蔚蟿蔚 蟿伪 尾萎渭伪蟿伪 3 魏伪喂 4 渭苇蠂蟻喂 畏 蟺蟻蠈蟿伪蟽畏 谓伪 蔚委谓伪喂 蟽蠅蟽蟿萎 魏伪喂
- 蟺畏纬伪委谓蔚蟿蔚 蟽蟿慰 螠维胃畏渭伪 2.2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 2.2: 螤螘巍螜危危螣韦螘巍螘危 螘螡韦螣螞螘危 螖螜螒螕巍螒桅螚危
-
- ** 螤位畏魏蟿蟻慰位慰纬萎蟽蟿蔚 d$ 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿畏蟼 纬蟻伪渭渭萎蟼. **
-
- 1. 螤伪蟿萎蟽蟿蔚 <ESC> 纬喂伪 谓伪 尾蔚尾伪喂蠅胃蔚委蟿蔚 蠈蟿喂 蔚委蟽蟿蔚 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏.
-
- 2. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 3. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿慰 蟿苇位慰蟼 蟿畏蟼 蟽蠅蟽蟿萎蟼 纬蟻伪渭渭萎蟼 (螠螘韦螒 蟿畏谓 蟺蟻蠋蟿畏 . ).
-
- 4. 螤伪蟿萎蟽蟿蔚 d$ 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿畏蟼 纬蟻伪渭渭萎蟼.
-
----> Somebody typed the end of this line twice. end of this line twice.
-
- 5. 螤畏纬伪委谓蔚蟿蔚 蟽蟿慰 螠维胃畏渭伪 2.3 纬喂伪 谓伪 魏伪蟿伪位维尾蔚蟿蔚 蟿喂 蟽蠀渭尾伪委谓蔚喂.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 2.3: 螤螘巍螜 螘螡韦螣螞惟螡 螝螒螜 螒螡韦螜螝螘螜螠螘螡惟螡
-
-
-螚 渭慰蟻蠁萎 蟿畏蟼 蔚谓蟿慰位萎蟼 未喂伪纬蟻伪蠁萎蟼 d 蔚委谓伪喂 蠅蟼 蔚尉萎蟼:
-
- [伪蟻喂胃渭蠈蟼] d 伪谓蟿喂魏蔚委渭蔚谓慰 螇 d [伪蟻喂胃渭蠈蟼] 伪谓蟿喂魏蔚委渭蔚谓慰
- 螌蟺慰蠀:
- 伪蟻喂胃渭蠈蟼 - 蟺蠈蟽蔚蟼 蠁慰蟻苇蟼 胃伪 蔚魏蟿蔚位蔚蟽蟿蔚委 畏 蔚谓蟿慰位萎 (蟺蟻慰伪喂蟻蔚蟿喂魏蠈, 蔚尉' 慰蟻喂蟽渭慰蠉=1).
- d - 畏 蔚谓蟿慰位萎 蟿畏蟼 未喂伪纬蟻伪蠁萎蟼.
- 伪谓蟿喂魏蔚委渭蔚谓慰 - 蟺维谓蠅 蟽蔚 蟿喂 胃伪 位蔚喂蟿慰蠀蟻纬萎蟽蔚喂 畏 蔚谓蟿慰位萎 (蟺伪蟻伪魏维蟿蠅 位委蟽蟿伪).
-
- 螠委伪 渭喂魏蟻萎 位委蟽蟿伪 伪蟺蠈 伪谓蟿喂魏蔚委渭蔚谓伪:
- w - 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿畏蟼 位苇尉畏蟼, 蟺蔚蟻喂位伪渭尾维谓慰谓蟿伪蟼 蟿慰 未喂维蟽蟿畏渭伪.
- e - 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿畏蟼 位苇尉畏蟼, 围惟巍螜危 蟿慰 未喂维蟽蟿畏渭伪.
- $ - 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿畏蟼 纬蟻伪渭渭萎蟼.
-
-危螚螠螘螜惟危螚: 螕喂伪 蟿慰蠀蟼 蟿蠉蟺慰蠀蟼 蟿畏蟼 蟺蔚蟻喂蟺苇蟿蔚喂伪蟼, 蟺伪蟿蠋谓蟿伪蟼 伪蟺位蠋蟼 蟿慰 伪谓蟿喂魏蔚委渭蔚谓慰 蠈蟽慰
- 蔚委蟽蟿蔚 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 蠂蠅蟻委蟼 魏维蟺慰喂伪 蔚谓蟿慰位萎 胃伪 渭蔚蟿伪魏喂谓萎蟽蔚蟿蔚
- 蟿慰谓 未蟻慰渭苇伪 蠈蟺蠅蟼 魏伪胃慰蟻委味蔚蟿伪喂 蟽蟿畏谓 位委蟽蟿伪 伪谓蟿喂魏蔚喂渭苇谓蠅谓.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 2.4: 螠螜螒 螘螢螒螜巍螘危螚 危韦螚螡 '螘螡韦螣螞螚-螒螡韦螜螝螘螜螠螘螡螣'
-
- ** 螤位畏魏蟿蟻慰位慰纬萎蟽蟿蔚 dd 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 蠈位畏 蟿畏 纬蟻伪渭渭萎. **
-
- 螘尉伪喂蟿委伪蟼 蟿畏蟼 蟽蠀蠂谓蠈蟿畏蟿伪蟼 蟿畏蟼 未喂伪纬蟻伪蠁萎蟼 慰位蠈魏位畏蟻畏蟼 纬蟻伪渭渭萎蟼, 慰喂 蟽蠂蔚未喂伪蟽蟿苇蟼
- 蟿慰蠀 Vim 伪蟺慰蠁维蟽喂蟽伪谓 蠈蟿喂 胃伪 萎蟿伪谓 蔚蠀魏慰位蠈蟿蔚蟻慰 谓伪 纬蟻维蠁蔚蟿蔚 伪蟺位蠋蟼 未蠉慰 d 蟽蟿畏
- 蟽蔚喂蟻维 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 渭委伪 纬蟻伪渭渭萎.
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏 未蔚蠉蟿蔚蟻畏 纬蟻伪渭渭萎 蟿畏蟼 蟺伪蟻伪魏维蟿蠅 蠁蟻维蟽畏蟼.
- 2. 螕蟻维蠄蟿蔚 dd 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 蟿畏 纬蟻伪渭渭萎.
- 3. 韦蠋蟻伪 渭蔚蟿伪魏喂谓畏胃蔚委蟿蔚 蟽蟿畏谓 蟿苇蟿伪蟻蟿畏 纬蟻伪渭渭萎.
- 4. 螕蟻维蠄蟿蔚 2dd (胃蠀渭畏胃蔚委蟿蔚 伪蟻喂胃渭蠈蟼-蔚谓蟿慰位萎-伪谓蟿喂魏蔚委渭蔚谓慰) 纬喂伪 谓伪
- 未喂伪纬蟻维蠄蔚蟿蔚 未蠉慰 纬蟻伪渭渭苇蟼.
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 2.5: 螚 螘螡韦螣螞螚 螒螡螒螜巍螘危螚危
-
- ** 螤伪蟿萎蟽蟿蔚 u 纬喂伪 谓伪 伪谓伪喂蟻苇蟽蔚蟿蔚 蟿喂蟼 蟿蔚位蔚蠀蟿伪委蔚蟼 蔚谓蟿慰位苇蟼,
- U 纬喂伪 谓伪 未喂慰蟻胃蠋蟽蔚蟿蔚 蠈位畏 蟿畏 纬蟻伪渭渭萎. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 ---> 魏伪喂
- 蟿慰蟺慰胃蔚蟿萎蟽蟿蔚 蟿慰谓 蟺维谓蠅 蟽蟿慰 蟺蟻蠋蟿慰 位维胃慰蟼.
- 2. 螤伪蟿萎蟽蟿蔚 x 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 蟿慰谓 蟺蟻蠋蟿慰 伪谓蔚蟺喂胃蠉渭畏蟿慰 蠂伪蟻伪魏蟿萎蟻伪.
- 3. 韦蠋蟻伪 蟺伪蟿萎蟽蟿蔚 u 纬喂伪 谓伪 伪谓伪喂蟻苇蟽蔚蟿蔚 蟿畏谓 蟿蔚位蔚蠀蟿伪委伪 蔚魏蟿蔚位蔚蟽渭苇谓畏 蔚谓蟿慰位萎.
- 4. 螒蠀蟿萎 蟿畏 蠁慰蟻维 未喂慰蟻胃蠋蟽蟿蔚 蠈位伪 蟿伪 位维胃畏 蟽蟿畏 纬蟻伪渭渭萎 蠂蟻畏蟽喂渭慰蟺慰喂蠋谓蟿伪蟼 蟿畏谓 蔚谓蟿慰位萎 x.
- 5. 韦蠋蟻伪 蟺伪蟿萎蟽蟿蔚 苇谓伪 魏蔚蠁伪位伪委慰 U 纬喂伪 谓伪 蔚蟺喂蟽蟿蟻苇蠄蔚蟿蔚 蟿畏 纬蟻伪渭渭萎 蟽蟿畏谓 伪蟻蠂喂魏萎
- 蟿畏蟼 魏伪蟿维蟽蟿伪蟽畏.
- 6. 韦蠋蟻伪 蟺伪蟿萎蟽蟿蔚 u 渭蔚蟻喂魏苇蟼 蠁慰蟻苇蟼 纬喂伪 谓伪 伪谓伪喂蟻苇蟽蔚蟿蔚 蟿畏谓 U 魏伪喂
- 蟺蟻慰畏纬慰蠉渭蔚谓蔚蟼 蔚谓蟿慰位苇蟼.
- 7. 韦蠋蟻伪 蟺伪蟿萎蟽蟿蔚 CTRL-R (魏蟻伪蟿蠋谓蟿伪蟼 蟺伪蟿畏渭苇谓慰 蟿慰 蟺位萎魏蟿蟻慰 CTRL 魏伪胃蠋蟼 蟺伪蟿维蟿蔚 蟿慰 R)
- 渭蔚蟻喂魏苇蟼 蠁慰蟻苇蟼 纬喂伪 谓伪 蔚蟺伪谓伪蠁苇蟻蔚蟿蔚 蟿喂蟼 蔚谓蟿慰位苇蟼 (伪谓伪委蟻蔚蟽畏 蟿蠅谓 伪谓伪喂蟻苇蟽蔚蠅谓).
-
----> Fiix the errors oon thhis line and reeplace them witth undo.
-
- 8. 螒蠀蟿苇蟼 蔚委谓伪喂 蟺慰位蠉 蠂蟻萎蟽喂渭蔚蟼 蔚谓蟿慰位苇蟼. 韦蠋蟻伪 蟺畏纬伪委谓蔚蟿蔚 蟽蟿畏谓
- 螤蔚蟻委位畏蠄畏 蟿慰蠀 螠伪胃萎渭伪蟿慰蟼 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 2 螤螘巍螜螞螚唯螚
-
-
- 1. 螕喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 位苇尉畏蟼 纬蟻维蠄蟿蔚: dw
-
- 2. 螕喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 纬蟻伪渭渭萎蟼 纬蟻维蠄蟿蔚: d$
-
- 3. 螕喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 慰位蠈魏位畏蟻畏 蟿畏 纬蟻伪渭渭萎 纬蟻维蠄蟿蔚: dd
-
- 4. 螚 渭慰蟻蠁萎 纬喂伪 渭委伪 蔚谓蟿慰位萎 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 蔚委谓伪喂:
-
- [伪蟻喂胃渭蠈蟼] 蔚谓蟿慰位萎 伪谓蟿喂魏蔚委渭蔚谓慰 螇 蔚谓蟿慰位萎 [伪蟻喂胃渭蠈蟼] 伪谓蟿喂魏蔚委渭蔚谓慰
- 蠈蟺慰蠀:
- 伪蟻喂胃渭蠈蟼 - 蟺蠈蟽蔚蟼 蠁慰蟻苇蟼 谓伪 蔚蟺伪谓伪位畏蠁胃蔚委 畏 蔚谓蟿慰位萎
- 蔚谓蟿慰位萎 - 蟿喂 谓伪 纬委谓蔚喂, 蠈蟺蠅蟼 畏 d 纬喂伪 未喂伪纬蟻伪蠁萎
- 伪谓蟿喂魏蔚委渭蔚谓慰 - 蟺维谓蠅 蟽蔚 蟿喂 谓伪 蔚谓蔚蟻纬萎蟽蔚喂 畏 蔚谓蟿慰位萎, 蠈蟺蠅蟼 w (位苇尉畏),
- $ (蟿苇位慰蟼 蟿畏蟼 纬蟻伪渭渭萎蟼), 魏蟿位.
-
- 5. 螕喂伪 谓伪 伪谓伪喂蟻苇蟽蔚蟿蔚 蟺蟻慰畏纬慰蠉渭蔚谓蔚蟼 蔚谓苇蟻纬蔚喂蔚蟼, 蟺伪蟿萎蟽蟿蔚: u (蟺蔚味蠈 u)
- 螕喂伪 谓伪 伪谓伪喂蟻苇蟽蔚蟿蔚 蠈位蔚蟼 蟿喂蟼 伪位位伪纬苇蟼 蟽蟿畏 纬蟻伪渭渭萎, 蟺伪蟿萎蟽蟿蔚: U (魏蔚蠁伪位伪委慰 U)
- 螕喂伪 谓伪 伪谓伪喂蟻苇蟽蔚蟿蔚 蟿喂蟼 伪谓伪喂蟻苇蟽蔚喂蟼, 蟺伪蟿萎蟽蟿蔚: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 3.1: 螚 螘螡韦螣螞螚 韦螣螤螣螛螘韦螚危螚危
-
-
- ** 螤伪蟿萎蟽蟿蔚 p 纬喂伪 谓伪 蟿慰蟺慰胃蔚蟿萎蟽蔚蟿蔚 蟿畏谓 蟿蔚位蔚蠀蟿伪委伪 未喂伪纬蟻伪蠁萎 渭蔚蟿维 蟿慰谓 未蟻慰渭苇伪. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 蟿畏蟼 蟺伪蟻伪魏维蟿蠅 慰渭维未伪蟼.
-
- 2. 螤伪蟿萎蟽蟿蔚 dd 纬喂伪 谓伪 未喂伪纬蟻维蠄蔚蟿蔚 蟿畏 纬蟻伪渭渭萎 魏伪喂 谓伪 蟿畏谓 伪蟺慰胃畏魏蔚蠉蟽蔚蟿蔚 蟽蔚
- 蟺蟻慰蟽蠅蟻喂谓萎 渭谓萎渭畏 蟿慰蠀 Vim.
-
- 3. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏 纬蟻伪渭渭萎 螤螒螡惟 伪蟺蠈 蔚魏蔚委 蟺慰蠀 胃伪 蟺蟻苇蟺蔚喂 谓伪 蟺维蔚喂
- 畏 未喂伪纬蟻伪渭渭苇谓畏 纬蟻伪渭渭萎.
-
- 4. 螌蟽慰 蔚委蟽蟿蔚 蟽蔚 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏, 蟺伪蟿萎蟽蟿蔚 p 纬喂伪 谓伪 尾维位蔚蟿蔚 蟿畏 纬蟻伪渭渭萎.
-
- 5. 螘蟺伪谓伪位维尾蔚蟿蔚 蟿伪 尾萎渭伪蟿伪 2 苇蠅蟼 4 纬喂伪 谓伪 尾维位蔚蟿蔚 蠈位蔚蟼 蟿喂蟼 纬蟻伪渭渭苇蟼 蟽蟿畏
- 蟽蠅蟽蟿萎 蟽蔚喂蟻维.
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 3.2: 螚 螘螡韦螣螞螚 螒螡韦螜螝螒韦螒危韦螒危螚危
-
-
- ** 螤伪蟿萎蟽蟿蔚 r 魏伪喂 蠂伪蟻伪魏蟿萎蟻伪 纬喂伪 谓伪 伪位位维尉蔚蟿蔚 伪蠀蟿蠈谓 蟺慰蠀 蔚委谓伪喂
- 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 蟺伪蟻伪魏维蟿蠅 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 苇蟿蟽喂 蠋蟽蟿蔚 谓伪 蔚委谓伪喂 蟺维谓蠅 蟽蟿慰 蟺蟻蠋蟿慰 位维胃慰蟼.
-
- 3. 螤伪蟿萎蟽蟿蔚 r 魏伪喂 渭蔚蟿维 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 慰 慰蟺慰委慰蟼 未喂慰蟻胃蠋谓蔚喂 蟿慰 位维胃慰蟼.
-
- 4. 螘蟺伪谓伪位维尾蔚蟿蔚 蟿伪 尾萎渭伪蟿伪 2 魏伪喂 3 渭苇蠂蟻喂 谓伪 蔚委谓伪喂 蟽蠅蟽蟿萎 畏 蟺蟻蠋蟿畏 纬蟻伪渭渭萎.
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. 韦蠋蟻伪 蟺畏纬伪委谓蔚蟿蔚 蟽蟿慰 螠维胃畏渭伪 3.2.
-
-危螚螠螘螜惟危螚: 螡伪 胃蠀渭维蟽蟿蔚 蠈蟿喂 蟺蟻苇蟺蔚喂 谓伪 渭伪胃伪委谓蔚蟿蔚 渭蔚 蟿畏 蠂蟻萎蟽畏, 魏伪喂 蠈蠂喂 渭蔚
- 蟿畏谓 伪蟺慰渭谓畏渭蠈谓蔚蠀蟽畏.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 3.3: 螚 螘螡韦螣螞螚 螒螞螞螒螕螚危
-
- ** 螕喂伪 谓伪 伪位位维尉蔚蟿蔚 蟿渭萎渭伪 萎 蠈位畏 蟿畏 位苇尉畏, 蟺伪蟿萎蟽蟿蔚 cw . **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 蟺伪蟻伪魏维蟿蠅 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 韦慰蟺慰胃蔚蟿萎蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟺维谓蠅 蟽蟿慰 u 蟿畏蟼 位苇尉畏蟼 lubw.
-
- 3. 螤伪蟿萎蟽蟿蔚 cw 魏伪喂 蟿畏 蟽蠅蟽蟿萎 位苇尉畏 (蟽蟿畏谓 蟺蔚蟻委蟺蟿蠅蟽畏 伪蠀蟿萎, 纬蟻维蠄蟿蔚 'ine'.)
-
- 4. 螤伪蟿萎蟽蟿蔚 <ESC> 魏伪喂 蟺畏纬伪委谓蔚蟿蔚 蟽蟿慰 蔚蟺蠈渭蔚谓慰 位维胃慰蟼 (蟽蟿慰谓 蟺蟻蠋蟿慰
- 蠂伪蟻伪魏蟿萎蟻伪 蟺蟻慰蟼 伪位位伪纬萎).
-
- 5. 螘蟺伪谓伪位维尾蔚蟿蔚 蟿伪 尾萎渭伪蟿伪 3 魏伪喂 4 渭苇蠂蟻喂蟼 蠈蟿慰蠀 畏 蟺蟻蠋蟿畏 蟺蟻蠈蟿伪蟽畏 谓伪 蔚委谓伪喂
- 委未喂伪 渭蔚 蟿畏 未蔚蠉蟿蔚蟻畏.
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-螤伪蟻伪蟿畏蟻蔚委蟽蟿蔚 蠈蟿喂 畏 cw 蠈蠂喂 渭蠈谓慰 伪谓蟿喂魏伪胃喂蟽蟿维蔚喂 蟿畏 位苇尉畏, 伪位位维 蟽伪蟼 蔚喂蟽维纬蔚喂
-蔚蟺委蟽畏蟼 蟽蔚 蟺伪蟻蔚渭尾慰位萎.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 3.4: 螤螘巍螜危危螣韦螘巍螘危 螒螞螞螒螕螘危 螠螘 c
-
-
- ** 螚 蔚谓蟿慰位萎 伪位位伪纬萎蟼 蠂蟻畏蟽喂渭慰蟺慰喂蔚委蟿伪喂 渭蔚 蟿伪 委未喂伪 伪谓蟿喂魏蔚委渭蔚谓伪 蟿畏蟼 未喂伪纬蟻伪蠁萎蟼. **
-
-
- 1. 螚 蔚谓蟿慰位萎 伪位位伪纬萎蟼 未慰蠀位蔚蠉蔚喂 渭蔚 蟿慰谓 委未喂慰 蟿蟻蠈蟺慰 蠈蟺蠅蟼 畏 未喂伪纬蟻伪蠁萎. 螚 渭慰蟻蠁萎 蔚委谓伪喂:
-
- [伪蟻喂胃渭蠈蟼] c 伪谓蟿喂魏蔚委渭蔚谓慰 螇 c [伪蟻喂胃渭蠈蟼] 伪谓蟿喂魏蔚委渭蔚谓慰
-
- 2. 韦伪 伪谓蟿喂魏蔚委渭蔚谓伪 蔚委谓伪喂 蟺维位喂 蟿伪 委未喂伪, 蠈蟺蠅蟼 w (位苇尉畏), $ (蟿苇位慰蟼 纬蟻伪渭渭萎蟼), 魏蟿位.
-
- 3. 螠蔚蟿伪魏喂谓畏胃蔚委蟿蔚 蟽蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 蟺伪蟻伪魏维蟿蠅 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 4. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿慰 蟺蟻蠋蟿慰 位维胃慰蟼.
-
- 5. 螕蟻维蠄蟿蔚 c$ 纬喂伪 谓伪 魏维谓蔚蟿蔚 蟿慰 蠀蟺蠈位慰喂蟺慰 蟿畏蟼 纬蟻伪渭渭萎蟼 委未喂慰 渭蔚 蟿畏 未蔚蠉蟿蔚蟻畏
- 魏伪喂 蟺伪蟿萎蟽蟿蔚 <ESC>.
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 3 螤螘巍螜螞螚唯螚
-
-
- 1. 螕喂伪 谓伪 蟿慰蟺慰胃蔚蟿萎蟽蔚蟿蔚 魏蔚委渭蔚谓慰 蟺慰蠀 渭蠈位喂蟼 苇蠂蔚喂 未喂伪纬蟻伪蠁蔚委, 蟺伪蟿萎蟽蟿蔚 p .
- 螒蠀蟿蠈 蟿慰蟺慰胃蔚蟿蔚委 蟿慰 未喂伪纬蟻伪渭渭苇谓慰 魏蔚委渭蔚谓慰 螠螘韦螒 蟿慰谓 未蟻慰渭苇伪 (伪谓 未喂伪纬蟻维蠁蟿畏魏蔚
- 纬蟻伪渭渭萎 胃伪 蟺维蔚喂 渭蔚蟿维 蟽蟿畏 纬蟻伪渭渭萎 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪.
-
- 2. 螕喂伪 谓伪 伪谓蟿喂魏伪蟿伪蟽蟿萎蟽蔚蟿蔚 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪, 蟺伪蟿萎蟽蟿蔚 r
- 魏伪喂 渭蔚蟿维 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 蟺慰蠀 胃伪 伪谓蟿喂魏伪蟿伪蟽蟿萎蟽蔚喂 蟿慰谓 伪蟻蠂喂魏蠈.
-
- 3. 螚 蔚谓蟿慰位萎 伪位位伪纬萎蟼 蟽伪蟼 蔚蟺喂蟿蟻苇蟺蔚喂 谓伪 伪位位维尉蔚蟿蔚 蟿慰 魏伪胃慰蟻喂蟽渭苇谓慰 伪谓蟿喂魏蔚委渭蔚谓慰
- 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿慰蠀 伪谓蟿喂魏蔚委渭蔚谓慰. 螤.蠂. 纬蟻维蠄蟿蔚 cw 纬喂伪 谓伪
- 伪位位维尉蔚蟿蔚 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 蟿畏蟼 位苇尉畏蟼, c$ 纬喂伪 谓伪 伪位位维尉蔚蟿蔚
- 渭苇蠂蟻喂 蟿慰 蟿苇位慰蟼 纬蟻伪渭渭萎蟼.
-
- 4. 螚 渭慰蟻蠁萎 纬喂伪 蟿畏谓 伪位位伪纬萎 蔚委谓伪喂:
-
- [伪蟻喂胃渭蠈蟼] c 伪谓蟿喂魏蔚委渭蔚谓慰 螇 c [伪蟻喂胃渭蠈蟼] 伪谓蟿喂魏蔚委渭蔚谓慰
-
-韦蠋蟻伪 蟽蠀谓蔚蠂委蟽蟿蔚 渭蔚 蟿慰 蔚蟺蠈渭蔚谓慰 渭维胃畏渭伪.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 4.1: 螛螘危螚 螝螒螜 螝螒韦螒危韦螒危螚 螒巍围螘螜螣违
-
-
- ** 螤伪蟿萎蟽蟿蔚 CTRL-g 纬喂伪 谓伪 蔚渭蠁伪谓喂蟽蟿蔚委 畏 胃苇蟽畏 蟽伪蟼 蟽蟿慰 伪蟻蠂蔚委慰 魏伪喂 畏 魏伪蟿维蟽蟿伪蟽萎 蟿慰蠀.
- 螤伪蟿萎蟽蟿蔚 SHIFT-G 纬喂伪 谓伪 蟺维蟿蔚 蟽蔚 渭委伪 纬蟻伪渭渭萎 蟽蟿慰 伪蟻蠂蔚委慰. **
-
- 危畏渭蔚委蠅蟽畏: 螖喂伪尾维蟽蟿蔚 慰位蠈魏位畏蟻慰 蟿慰 渭维胃畏渭伪 蟺蟻喂谓 蔚魏蟿蔚位苇蟽蔚蟿蔚 魏维蟺慰喂慰 伪蟺蠈 蟿伪 尾萎渭伪蟿伪!!
-
- 1. 螝蟻伪蟿萎蟽蟿蔚 蟺伪蟿畏渭苇谓慰 蟿慰 蟺位萎魏蟿蟻慰 Ctrl 魏伪喂 蟺伪蟿萎蟽蟿蔚 g . 螠委伪 纬蟻伪渭渭萎 魏伪蟿维蟽蟿伪蟽畏蟼
- 胃伪 蔚渭蠁伪谓喂蟽蟿蔚委 蟽蟿慰 魏维蟿蠅 渭苇蟻慰蟼 蟿畏蟼 蟽蔚位委未伪蟼 渭蔚 蟿慰 蠈谓慰渭伪 伪蟻蠂蔚委慰蠀 魏伪喂 蟿畏
- 纬蟻伪渭渭萎 蟺慰蠀 蔚委蟽蟿蔚. 螛蠀渭畏胃蔚委蟿蔚 蟿慰谓 伪蟻喂胃渭蠈 纬蟻伪渭渭萎蟼 纬喂伪 蟿慰 螔萎渭伪 3.
-
- 2. 螤伪蟿萎蟽蟿蔚 shift-G 纬喂伪 谓伪 渭蔚蟿伪魏喂谓畏胃蔚委蟿蔚 蟽蟿慰 蟿苇位慰蟼 蟿慰蠀 伪蟻蠂蔚委慰蠀.
-
- 3. 螤伪蟿萎蟽蟿蔚 蟿慰谓 伪蟻喂胃渭蠈 蟿畏蟼 纬蟻伪渭渭萎蟼 蟺慰蠀 萎蟽伪蟽蟿伪谓 魏伪喂 渭蔚蟿维 shift-G. 螒蠀蟿蠈 胃伪
- 蟽伪蟼 蔚蟺喂蟽蟿蟻苇蠄蔚喂 蟽蟿畏 纬蟻伪渭渭萎 蟺慰蠀 萎蟽伪蟽蟿伪谓 蟺蟻喂谓 蟺伪蟿萎蟽蔚蟿蔚 纬喂伪 蟺蟻蠋蟿畏 蠁慰蟻维 Ctrl-g.
- (螌蟿伪谓 蟺位畏魏蟿蟻慰位慰纬蔚委蟿蔚 蟿慰蠀蟼 伪蟻喂胃渭慰蠉蟼, 螖螘螡 胃伪 蔚渭蠁伪谓委味慰谓蟿伪喂 蟽蟿畏谓 慰胃蠈谓畏).
-
- 4. 螒谓 谓慰喂蠋胃蔚蟿蔚 蟽委纬慰蠀蟻慰蟼 纬喂伪 伪蠀蟿蠈, 蔚魏蟿蔚位苇蟽蟿蔚 蟿伪 尾萎渭伪蟿伪 1 苇蠅蟼 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 4.2: 螚 螘螡韦螣螞螚 螒螡螒螙螚韦螚危螚危
-
-
- ** 螤伪蟿萎蟽蟿蔚 / 伪魏慰位慰蠀胃慰蠉渭蔚谓慰 伪蟺蠈 蟿畏 蠁蟻维蟽畏 蟺慰蠀 蠄维蠂谓蔚蟿蔚. **
-
- 1. 危蔚 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏 蟺伪蟿萎蟽蟿蔚 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 / . 螤伪蟻伪蟿畏蟻萎蟽蟿蔚 蠈蟿喂 伪蠀蟿蠈蟼 魏伪喂
- 慰 未蟻慰渭苇伪蟼 蔚渭蠁伪谓委味慰谓蟿伪喂 蟽蟿慰 魏维蟿蠅 渭苇蟻慰蟼 蟿畏蟼 慰胃蠈谓畏蟼 蠈蟺蠅蟼 渭蔚 蟿畏谓 蔚谓蟿慰位萎 : .
-
- 2. 韦蠋蟻伪 纬蟻维蠄蟿蔚 'errroor' <ENTER>. 螒蠀蟿萎 蔚委谓伪喂 畏 位苇尉畏 蟺慰蠀 胃苇位蔚蟿蔚 谓伪 蠄维尉蔚蟿蔚.
-
- 3. 螕喂伪 谓伪 蠄维尉蔚蟿蔚 尉伪谓维 纬喂伪 蟿畏谓 委未喂伪 蠁蟻维蟽畏, 蟺伪蟿萎蟽蟿蔚 伪蟺位蠋蟼 n .
- 螕喂伪 谓伪 蠄维尉蔚蟿蔚 蟿畏谓 委未喂伪 蠁蟻维蟽畏 蟽蟿畏谓 伪谓蟿委胃蔚蟿畏 魏伪蟿蔚蠉胃蠀谓蟽畏, 蟺伪蟿萎蟽蟿蔚 Shift-N .
-
- 4. 螒谓 胃苇位蔚蟿蔚 谓伪 蠄维尉蔚蟿蔚 纬喂伪 渭委伪 蠁蟻维蟽畏 蟺蟻慰蟼 蟿伪 蟺委蟽蠅, 蠂蟻畏蟽喂渭慰蟺慰喂萎蟽蟿蔚 蟿畏谓 蔚谓蟿慰位萎 ? 伪谓蟿委 蟿畏蟼 / .
-
----> 螌蟿伪谓 畏 伪谓伪味萎蟿畏蟽畏 蠁蟿维蟽蔚喂 蟽蟿慰 蟿苇位慰蟼 蟿慰蠀 伪蟻蠂蔚委慰蠀 胃伪 蟽蠀谓蔚蠂委蟽蔚喂 伪蟺蠈 蟿畏谓 伪蟻蠂萎.
-
- "errroor" is not the way to spell error; errroor is an error.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 4.3: 螘违巍螘危螚 韦螒螜巍螜螒危韦惟螡 螤螒巍螘螡螛螘危螘惟螡
-
-
- ** 螤伪蟿萎蟽蟿蔚 % 纬喂伪 谓伪 尾蟻蔚委蟿蔚 蟿畏谓 伪谓蟿委蟽蟿慰喂蠂畏 ), ], 萎 } . **
-
- 1. 韦慰蟺慰胃蔚蟿萎蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蔚 魏维蟺慰喂伪 (, [, 萎 { 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎
- 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 韦蠋蟻伪 蟺伪蟿萎蟽蟿蔚 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 % .
-
- 3. 螣 未蟻慰渭苇伪蟼 胃伪 蟺蟻苇蟺蔚喂 谓伪 蔚委谓伪喂 蟽蟿畏谓 伪谓蟿委蟽蟿慰喂蠂畏 蟺伪蟻苇谓胃蔚蟽畏 萎 伪纬魏蠉位畏.
-
- 4. 螤伪蟿萎蟽蟿蔚 % 纬喂伪 谓伪 渭蔚蟿伪魏喂谓萎蟽蔚蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟺委蟽蠅 蟽蟿畏谓 蟺蟻蠋蟿畏 伪纬魏蠉位畏
- (蟿慰蠀 味蔚蠀纬伪蟻喂慰蠉).
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-危螚螠螘螜惟危螚: 螒蠀蟿蠈 蔚委谓伪喂 蟺慰位蠉 蠂蟻萎蟽喂渭慰 蟽蟿畏谓 伪蟺慰蟽蠁伪位渭维蟿蠅蟽畏 蔚谓蠈蟼 蟺蟻慰纬蟻维渭渭伪蟿慰蟼
- 渭蔚 渭畏 蟿伪喂蟻喂伪蟽蟿苇蟼 蟺伪蟻蔚谓胃苇蟽蔚喂蟼!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 4.4: 螘螡螒危 韦巍螣螤螣危 螕螜螒 螒螞螞螒螕螚 螞螒螛惟螡
-
-
- ** 螕蟻维蠄蟿蔚 :s/old/new/g 纬喂伪 谓伪 伪位位维尉蔚蟿蔚 蟿慰 'new' 渭蔚 蟿慰 'old'. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 螕蟻维蠄蟿蔚 :s/thee/the <ENTER> . 危畏渭蔚喂蠋蟽蟿蔚 蠈蟿喂 伪蠀蟿萎 畏 蔚谓蟿慰位萎 伪位位维味蔚喂 渭蠈谓慰
- 蟿畏谓 蟺蟻蠋蟿畏 蔚渭蠁维谓喂蟽畏 蟽蟿畏 纬蟻伪渭渭萎.
-
- 3. 韦蠋蟻伪 纬蟻维蠄蟿蔚 :s/thee/the/g 蔚谓谓慰蠋谓蟿伪蟼 纬蔚谓喂魏萎 伪谓蟿喂魏伪蟿维蟽蟿伪蟽畏 蟽蟿畏
- 纬蟻伪渭渭萎. 螒蠀蟿蠈 伪位位维味蔚喂 蠈位蔚蟼 蟿喂蟼 蔚渭蠁伪谓委蟽蔚喂蟼 蔚蟺委 蟿畏蟼 纬蟻伪渭渭萎蟼.
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 螕喂伪 谓伪 伪位位维尉蔚蟿蔚 魏维胃蔚 蔚渭蠁维谓喂蟽畏 渭委伪蟼 蟽蠀渭尾慰位慰蟽蔚喂蟻维蟼 渭蔚蟿伪尉蠉 未蠉慰 纬蟻伪渭渭蠋谓,
- 纬蟻维蠄蟿蔚 :#,#s/old/new/g 蠈蟺慰蠀 #,# 慰喂 伪蟻喂胃渭慰委 蟿蠅谓 未蠉慰 纬蟻伪渭渭蠋谓.
- 螕蟻维蠄蟿蔚 :%s/old/new/g 纬喂伪 谓伪 伪位位维尉蔚蟿蔚 魏维胃蔚 蔚渭蠁维谓喂蟽畏 蟽蔚 蠈位慰 蟿慰 伪蟻蠂蔚委慰.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 4 螤螘巍螜螞螚唯螚
-
-
- 1. 韦慰 Ctrl-g 蔚渭蠁伪谓委味蔚喂 蟿畏 胃苇蟽畏 蟽伪蟼 蟽蟿慰 伪蟻蠂蔚委慰 魏伪喂 蟿畏谓 魏伪蟿维蟽蟿伪蟽萎 蟿慰蠀.
- 韦慰 Shift-G 蟺畏纬伪委谓蔚喂 蟽蟿慰 蟿苇位慰蟼 蟿慰蠀 伪蟻蠂蔚委慰蠀. 螆谓伪蟼 伪蟻喂胃渭蠈蟼 纬蟻伪渭渭萎蟼
- 伪魏慰位慰蠀胃慰蠉渭蔚谓慰蟼 伪蟺蠈 Shift-G 蟺畏纬伪委谓蔚喂 蟽蔚 蔚魏蔚委谓畏 蟿畏 纬蟻伪渭渭萎.
-
- 2. 螕蟻维蠁慰谓蟿伪蟼 / 伪魏慰位慰蠀胃慰蠉渭蔚谓慰 伪蟺蠈 渭委伪 蠁蟻维蟽畏 蠄维蠂谓蔚喂 蟺蟻慰蟼 蟿伪 螠螤巍螣危韦螒 纬喂伪
- 蟿畏 蠁蟻维蟽畏. 螕蟻维蠁慰谓蟿伪蟼 ? 伪魏慰位慰蠀胃慰蠉渭蔚谓慰 伪蟺蠈 渭委伪 蠁蟻维蟽畏 蠄维蠂谓蔚喂 蟺蟻慰蟼 蟿伪 螤螜危惟
- 纬喂伪 蟿畏 蠁蟻维蟽畏. 螠蔚蟿维 伪蟺蠈 渭委伪 伪谓伪味萎蟿畏蟽畏 蟺伪蟿萎蟽蟿蔚 n 纬喂伪 谓伪 尾蟻蔚委蟿蔚 蟿畏谓
- 蔚蟺蠈渭蔚谓畏 蔚渭蠁维谓喂蟽畏 蟺蟻慰蟼 蟿畏谓 委未喂伪 魏伪蟿蔚蠉胃蠀谓蟽畏 萎 Shift-N 纬喂伪 谓伪 蠄维尉蔚蟿蔚
- 蟺蟻慰蟼 蟿畏谓 伪谓蟿委胃蔚蟿畏 魏伪蟿蔚蠉胃蠀谓蟽畏.
-
- 3. 螤伪蟿蠋谓蟿伪蟼 % 蠈蟽慰 慰 未蟻慰渭苇伪蟼 蔚委谓伪喂 蟺维谓蠅 蟽蔚 渭委伪 (,),[,],{, 萎 } 蔚谓蟿慰蟺委味蔚喂
- 蟿慰 伪谓蟿委蟽蟿慰喂蠂慰 蟿伪委蟻喂 蟿慰蠀 味蔚蠀纬伪蟻喂慰蠉.
-
- 4. 螕喂伪 伪谓蟿喂魏伪蟿维蟽蟿伪蟽畏 渭蔚 new 蟿慰蠀 蟺蟻蠋蟿慰蠀 old 蟽蟿畏 纬蟻伪渭渭萎 纬蟻维蠄蟿蔚 :s/old/new
- 螕喂伪 伪谓蟿喂魏伪蟿维蟽蟿伪蟽畏 渭蔚 new 蠈位蠅谓 蟿蠅谓 'old' 蟽蟿畏 纬蟻伪渭渭萎 纬蟻维蠄蟿蔚 :s/old/new/g
- 螕喂伪 伪谓蟿喂魏伪蟿维蟽蟿伪蟽畏 蠁蟻维蟽蔚蠅谓 渭蔚蟿伪尉蠉 未蠉慰 # 纬蟻伪渭渭蠋谓 纬蟻维蠄蟿蔚 :#,#s/old/new/g
- 螕喂伪 伪谓蟿喂魏伪蟿维蟽蟿伪蟽畏 蠈位蠅谓 蟿蠅谓 蔚渭蠁伪谓委蟽蔚蠅谓 蟽蟿慰 伪蟻蠂蔚委慰 纬蟻维蠄蟿蔚 :%s/old/new/g
- 螕喂伪 蔚蟻蠋蟿畏蟽畏 蔚蟺喂尾蔚尾伪委蠅蟽畏蟼 魏维胃蔚 蠁慰蟻维 蟺蟻慰蟽胃苇蟽蟿蔚 苇谓伪 'c' "%s/old/new/gc
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 5.1: 螤惟危 螘螝韦螘螞惟 螠螜螒 螘螢惟韦螘巍螜螝螚 螘螡韦螣螞螚
-
-
-** 螕蟻维蠄蟿蔚 :! 伪魏慰位慰蠀胃慰蠉渭蔚谓慰 伪蟺蠈 渭委伪 蔚尉蠅蟿蔚蟻喂魏萎 蔚谓蟿慰位萎 纬喂伪 谓伪 蟿畏谓 蔚魏蟿蔚位苇蟽蔚蟿蔚. **
-
- 1. 螤伪蟿萎蟽蟿蔚 蟿畏谓 慰喂魏蔚委伪 蔚谓蟿慰位萎 : 纬喂伪 谓伪 胃苇蟽蔚蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿慰 魏维蟿蠅 渭苇蟻慰蟼
- 蟿畏蟼 慰胃蠈谓畏蟼. 螒蠀蟿蠈 蟽伪蟼 蔚蟺喂蟿蟻苇蟺蔚喂 谓伪 未蠋蟽蔚蟿蔚 渭委伪 蔚谓蟿慰位萎.
-
- 2. 韦蠋蟻伪 蟺伪蟿萎蟽蟿蔚 蟿慰 ! (胃伪蠀渭伪蟽蟿喂魏蠈). 螒蠀蟿蠈 蟽伪蟼 蔚蟺喂蟿蟻苇蟺蔚喂 谓伪 蔚魏蟿蔚位苇蟽蔚蟿蔚
- 慰蟺慰喂伪未萎蟺慰蟿蔚 蔚尉蠅蟿蔚蟻喂魏萎 蔚谓蟿慰位萎 蟿慰蠀 蠁位慰喂慰蠉.
-
- 3. 危伪谓 蟺伪蟻维未蔚喂纬渭伪 纬蟻维蠄蟿蔚 ls 渭蔚蟿维 伪蟺蠈 蟿慰 ! 魏伪喂 蟺伪蟿萎蟽蟿蔚 <ENTER>. 螒蠀蟿蠈 胃伪
- 蟽伪蟼 蔚渭蠁伪谓委蟽蔚喂 渭委伪 位委蟽蟿伪 蟿慰蠀 魏伪蟿伪位蠈纬慰蠀 蟽伪蟼, 伪魏蟻喂尾蠋蟼 蟽伪谓 谓伪 萎蟽伪蟽蟿伪谓 蟽蟿畏谓
- 蟺蟻慰蟿蟻慰蟺萎 蟿慰蠀 蠁位慰喂慰蠉. 螇 蠂蟻畏蟽喂渭慰蟺慰喂萎蟽蟿蔚 :!dir 伪谓 蟿慰 ls 未蔚谓 未慰蠀位蔚蠉蔚喂.
-
----> 危畏渭蔚委蠅蟽畏: 螘委谓伪喂 未蠀谓伪蟿蠈谓 谓伪 蔚魏蟿蔚位苇蟽蔚蟿蔚 慰蟺慰喂伪未萎蟺慰蟿蔚 蔚尉蠅蟿蔚蟻喂魏萎 蔚谓蟿慰位萎
- 渭蔚 伪蠀蟿蠈谓 蟿慰谓 蟿蟻蠈蟺慰.
-
----> 危畏渭蔚委蠅蟽畏: 螌位蔚蟼 慰喂 蔚谓蟿慰位苇蟼 : 蟺蟻苇蟺蔚喂 谓伪 蟿蔚蟻渭伪蟿委味慰谓蟿伪喂 蟺伪蟿蠋谓蟿伪蟼 蟿慰 <ENTER>.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 5.2: 螤螘巍螜危危螣韦螘巍螒 螤螘巍螜 螘螕螕巍螒桅螚危 螒巍围螘螜惟螡
-
-
- ** 螕喂伪 谓伪 蟽蠋蟽蔚蟿蔚 蟿喂蟼 伪位位维纬蔚蟼 蟺慰蠀 魏维谓伪蟿蔚 蟽蟿慰 伪蟻蠂蔚委慰, 纬蟻维蠄蟿蔚 :w 螒巍围螘螜螣. **
-
- 1. 螕蟻维蠄蟿蔚 :!dir 萎 :!ls 纬喂伪 谓伪 蟺维蟻蔚蟿蔚 渭委伪 位委蟽蟿伪 蟿慰蠀 魏伪蟿伪位蠈纬慰蠀 蟽伪蟼.
- 螇未畏 尉苇蟻蔚蟿蔚 蠈蟿喂 蟺蟻苇蟺蔚喂 谓伪 蟺伪蟿萎蟽蔚蟿蔚 <ENTER> 渭蔚蟿维 伪蟺蠈 伪蠀蟿蠈.
-
- 2. 螖喂伪位苇尉蟿蔚 苇谓伪 蠈谓慰渭伪 伪蟻蠂蔚委慰蠀 蟺慰蠀 未蔚谓 蠀蟺维蟻蠂蔚喂 伪魏蠈渭伪, 蠈蟺蠅蟼 蟿慰 TEST.
-
- 3. 韦蠋蟻伪 纬蟻维蠄蟿蔚: :w TEST (蠈蟺慰蠀 TEST 蔚委谓伪喂 蟿慰 蠈谓慰渭伪 伪蟻蠂蔚委慰蠀 蟺慰蠀 未喂伪位苇尉伪蟿蔚).
-
- 4. 螒蠀蟿蠈 蟽蠋味蔚喂 蠈位慰 蟿慰 伪蟻蠂蔚委慰 (vim Tutor) 渭蔚 蟿慰 蠈谓慰渭伪 TEST. 螕喂伪 谓伪 蟿慰
- 蔚蟺伪位畏胃蔚蠉蟽蔚蟿蔚, 纬蟻维蠄蟿蔚 尉伪谓维 :!dir 纬喂伪 谓伪 未蔚委蟿蔚 蟿慰谓 魏伪蟿维位慰纬蠈 蟽伪蟼.
-
----> 危畏渭蔚喂蠋蟽蟿蔚 蠈蟿喂 伪谓 尾纬伪委谓伪蟿蔚 伪蟺蠈 蟿慰谓 Vim 魏伪喂 渭蟺伪委谓伪蟿蔚 尉伪谓维 渭蔚 蟿慰 蠈谓慰渭伪
- 伪蟻蠂蔚委慰蠀 TEST, 蟿慰 伪蟻蠂蔚委慰 胃伪 萎蟿伪谓 伪魏蟻喂尾苇蟼 伪谓蟿委纬蟻伪蠁慰 蟿慰蠀 tutor 蠈蟿伪谓 蟿慰 蟽蠋蟽伪蟿蔚.
-
- 5. 韦蠋蟻伪 未喂伪纬蟻维蠄蟿蔚 蟿慰 伪蟻蠂蔚委慰 纬蟻维蠁慰谓蟿伪蟼 (MS-DOS): :!del TEST
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 5.3: 螘螤螜螞螘螝韦螜螝螚 螘螡韦螣螞螚 螘螕螕巍螒桅螚危
-
-
- ** 螕喂伪 谓伪 蟽蠋蟽蔚蟿蔚 蟿渭萎渭伪 蟿慰蠀 伪蟻蠂蔚委慰蠀, 纬蟻维蠄蟿蔚 :#,# w 螒巍围螘螜螣 **
-
- 1. 螁位位畏 渭喂伪 蠁慰蟻维, 纬蟻维蠄蟿蔚 :!dir 萎 :!ls 纬喂伪 谓伪 蟺维蟻蔚蟿蔚 渭委伪 位委蟽蟿伪 伪蟺蠈 蟿慰谓
- 魏伪蟿维位慰纬蠈 蟽伪蟼 魏伪喂 未喂伪位苇尉蟿蔚 苇谓伪 魏伪蟿维位位畏位慰 蠈谓慰渭伪 伪蟻蠂蔚委慰蠀 蠈蟺蠅蟼 蟿慰 TEST.
-
- 2. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿慰 蟺维谓蠅 渭苇蟻慰蟼 伪蠀蟿萎蟼 蟿畏蟼 蟽蔚位委未伪蟼 魏伪喂 蟺伪蟿萎蟽蟿蔚
- Ctrl-g 纬喂伪 谓伪 尾蟻蔚委蟿蔚 蟿慰谓 伪蟻喂胃渭蠈 伪蠀蟿萎蟼 蟿畏蟼 纬蟻伪渭渭萎蟼.
- 螡螒 螛违螠螒危韦螘 螒违韦螣螡 韦螣螡 螒巍螜螛螠螣!
-
- 3. 韦蠋蟻伪 蟺畏纬伪委谓蔚蟿蔚 蟽蟿慰 魏维蟿蠅 渭苇蟻慰蟼 蟿畏蟼 蟽蔚位委未伪蟼 魏伪喂 蟺伪蟿萎蟽蟿蔚 Ctrl-g 尉伪谓维.
- 螡螒 螛违螠螒危韦螘 螝螒螜 螒违韦螣螡 韦螣螡 螒巍螜螛螠螣!
-
- 4. 螕喂伪 谓伪 蟽蠋蟽蔚蟿蔚 螠螣螡螣 苇谓伪 蟿渭萎渭伪 蟽蔚 伪蟻蠂蔚委慰, 纬蟻维蠄蟿蔚 :#,# w TEST
- 蠈蟺慰蠀 #,# 慰喂 未蠉慰 伪蟻喂胃渭慰委 蟺慰蠀 伪蟺慰渭谓畏渭慰谓蔚蠉蟽伪蟿蔚 (蟺维谓蠅,魏维蟿蠅) 魏伪喂 TEST 蟿慰
- 蠈谓慰渭伪 蟿慰蠀 伪蟻蠂蔚委慰蠀 蟽伪蟼.
-
- 5. 螢伪谓维, 未蔚委蟿蔚 蠈蟿喂 蟿慰 伪蟻蠂蔚委慰 蔚委谓伪喂 蔚魏蔚委 渭蔚 蟿畏谓 :!dir 伪位位维 螠螚螡 蟿慰 未喂伪纬蟻维蠄蔚蟿蔚.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 5.4: 螒螡螒螝韦惟螡韦螒危 螝螒螜 螘螡惟螡螣螡韦螒危 螒巍围螘螜螒
-
-
- ** 螕喂伪 谓伪 蔚喂蟽维纬蔚蟿蔚 蟿伪 蟺蔚蟻喂蔚蠂蠈渭蔚谓伪 蔚谓蠈蟼 伪蟻蠂蔚委慰蠀, 纬蟻维蠄蟿蔚 :r 螒巍围螘螜螣 **
-
- 1. 螕蟻维蠄蟿蔚 :!dir 纬喂伪 谓伪 尾蔚尾伪喂蠅胃蔚委蟿蔚 蠈蟿喂 蟿慰 TEST 蠀蟺维蟻蠂蔚喂 伪蟺蠈 蟺蟻喂谓.
-
- 2. 韦慰蟺慰胃蔚蟿萎蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿慰 蟺维谓蠅 渭苇蟻慰蟼 蟿畏蟼 蟽蔚位委未伪蟼.
-
-危螚螠螘螜惟危螚: 螒蠁蠈蟿慰蠀 蔚魏蟿蔚位苇蟽蔚蟿蔚 蟿慰 螔萎渭伪 3 胃伪 未蔚委蟿蔚 蟿慰 螠维胃畏渭伪 5.3.
- 螠蔚蟿维 魏喂谓畏胃蔚委蟿蔚 螝螒韦惟 尉伪谓维 蟺蟻慰蟼 蟿慰 渭维胃畏渭伪 伪蠀蟿蠈.
-
- 3. 韦蠋蟻伪 伪谓伪魏蟿萎蟽蟿蔚 蟿慰 伪蟻蠂蔚委慰 蟽伪蟼 TEST 蠂蟻畏蟽喂渭慰蟺慰喂蠋谓蟿伪蟼 蟿畏谓 蔚谓蟿慰位萎 :r TEST
- 蠈蟺慰蠀 TEST 蔚委谓伪喂 蟿慰 蠈谓慰渭伪 蟿慰蠀 伪蟻蠂蔚委慰蠀.
-
-危螚螠螘螜惟危螚: 韦慰 伪蟻蠂蔚委慰 蟺慰蠀 伪谓伪魏蟿维蟿蔚 蟿慰蟺慰胃蔚蟿蔚委蟿伪喂 尉蔚魏喂谓蠋谓蟿伪蟼 蔚魏蔚委 蟺慰蠀 尾蟻委蟽魏蔚蟿伪喂
- 慰 未蟻慰渭苇伪蟼.
-
- 4. 螕喂伪 谓伪 蔚蟺伪位畏胃蔚蠉蟽蔚蟿蔚 蠈蟿喂 蟿慰 伪蟻蠂蔚委慰 伪谓伪魏蟿萎胃畏魏蔚, 蟺委蟽蠅 蟿慰谓 未蟻慰渭苇伪 魏伪喂
- 蟺伪蟻伪蟿畏蟻萎蟽蟿蔚 蠈蟿喂 蠀蟺维蟻蠂慰蠀谓 蟿蠋蟻伪 未蠉慰 伪谓蟿委纬蟻伪蠁伪 蟿慰蠀 螠伪胃萎渭伪蟿慰蟼 5.3, 蟿慰
- 伪蟻蠂喂魏蠈 魏伪喂 畏 苇魏未慰蟽畏 蟿慰蠀 伪蟻蠂蔚委慰蠀.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 5 螤螘巍螜螞螚唯螚
-
-
- 1. :!蔚谓蟿慰位萎 蔚魏蟿蔚位蔚委 渭委伪 蔚尉蠅蟿蔚蟻喂魏萎 蔚谓蟿慰位萎.
-
- 螠蔚蟻喂魏维 蠂蟻萎蟽喂渭伪 蟺伪蟻伪未蔚委纬渭伪蟿伪 蔚委谓伪喂 (MS-DOS):
- :!dir - 蔚渭蠁维谓喂蟽畏 位委蟽蟿伪蟼 蔚谓蠈蟼 魏伪蟿伪位蠈纬慰蠀.
- :!del 螒巍围螘螜螣 - 未喂伪纬蟻维蠁蔚喂 蟿慰 螒巍围螘螜螣.
-
- 2. :w 螒巍围螘螜螣 纬蟻维蠁蔚喂 蟿慰 蟿蟻苇蠂蠅谓 伪蟻蠂蔚委慰 蟿慰蠀 Vim 蟽蟿慰 未委蟽魏慰 渭蔚 蠈谓慰渭伪 螒巍围螘螜螣.
-
- 3. :#,#w 螒巍围螘螜螣 蟽蠋味蔚喂 蟿喂蟼 纬蟻伪渭渭苇蟼 伪蟺蠈 # 渭苇蠂蟻喂 # 蟽蟿慰 螒巍围螘螜螣.
-
- 4. :r 螒巍围螘螜螣 伪谓伪魏蟿蔚委 蟿慰 伪蟻蠂蔚委慰 未委蟽魏慰蠀 螒巍围螘螜螣 魏伪喂 蟿慰 蟺伪蟻蔚渭尾维位位蔚喂 渭苇蟽伪
- 蟽蟿慰 蟿蟻苇蠂慰谓 伪蟻蠂蔚委慰 渭蔚蟿维 伪蟺蠈 蟿畏 胃苇蟽畏 蟿慰蠀 未蟻慰渭苇伪.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 6.1: 螚 螘螡韦螣螞螚 螒螡螣螜螕螠螒韦螣危
-
-
- ** 螤伪蟿萎蟽蟿蔚 o 纬喂伪 谓伪 伪谓慰委尉蔚蟿蔚 渭委伪 纬蟻伪渭渭萎 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 魏伪喂 谓伪
- 尾蟻蔚胃蔚委蟿蔚 蟽蔚 螝伪蟿维蟽蟿伪蟽畏 螝蔚喂渭苇谓慰蠀. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 螤伪蟿萎蟽蟿蔚 o (蟺蔚味蠈) 纬喂伪 谓伪 伪谓慰委尉蔚蟿蔚 渭委伪 纬蟻伪渭渭萎 螝螒韦惟 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 魏伪喂 谓伪
- 尾蟻蔚胃蔚委蟿蔚 蟽蔚 螝伪蟿维蟽蟿伪蟽畏 螝蔚喂渭苇谓慰蠀.
-
- 3. 韦蠋蟻伪 伪谓蟿喂纬蟻维蠄蟿蔚 蟿畏 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 ---> 纬蟻伪渭渭萎 魏伪喂 蟺伪蟿萎蟽蟿蔚 <ESC> 纬喂伪 谓伪
- 尾纬蔚委蟿蔚 伪蟺蠈 蟿畏谓 螝伪蟿维蟽蟿伪蟽畏 螝蔚喂渭苇谓慰蠀.
-
----> After typing o the cursor is placed on the open line in Insert mode.
-
- 4. 螕喂伪 谓伪 伪谓慰委尉蔚蟿蔚 渭委伪 纬蟻伪渭渭萎 螤螒螡惟 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪, 蟺伪蟿萎蟽蟿蔚 伪蟺位维 苇谓伪 魏蔚蠁伪位伪委慰
- O, 伪谓蟿委 纬喂伪 苇谓伪 蟺蔚味蠈 o. 螖慰魏喂渭维蟽蟿蔚 蟿慰 蟽蟿畏谓 蟺伪蟻伪魏维蟿蠅 纬蟻伪渭渭萎.
-螒谓慰委纬蔚蟿蔚 纬蟻伪渭渭萎 蟺维谓蠅 伪蟺蠈 伪蠀蟿萎谓 蟺伪蟿蠋谓蟿伪蟼 Shift-O 蠈蟽慰 慰 未蟻慰渭苇伪蟼 蔚委谓伪喂 蟽蟿畏 纬蟻伪渭渭萎
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 6.2: 螚 螘螡韦螣螞螚 螤巍螣危螛螚螝螚危
-
- ** 螤伪蟿萎蟽蟿蔚 a 纬喂伪 谓伪 蔚喂蟽维纬蔚蟿蔚 魏蔚委渭蔚谓慰 螠螘韦螒 蟿慰谓 未蟻慰渭苇伪. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿慰 蟿苇位慰蟼 蟿畏蟼 蟺蟻蠋蟿畏蟼 纬蟻伪渭渭萎蟼 蟺伪蟻伪魏维蟿蠅
- 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 ---> 蟺伪蟿蠋谓蟿伪蟼 $ 蟽蟿畏谓 螝伪谓慰谓喂魏萎 螝伪蟿维蟽蟿伪蟽畏.
-
- 2. 螤伪蟿萎蟽蟿蔚 苇谓伪 a (蟺蔚味蠈) 纬喂伪 谓伪 蟺蟻慰蟽胃苇蟽蔚蟿蔚 魏蔚委渭蔚谓慰 螠螘韦螒 伪蟺蠈 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪
- 蟺慰蠀 蔚委谓伪喂 魏维蟿蠅 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪. (韦慰 魏蔚蠁伪位伪委慰 A 蟺蟻慰蟽胃苇蟿蔚喂 蟽蟿慰 蟿苇位慰蟼
- 蟿畏蟼 纬蟻伪渭渭萎蟼).
-
-危畏渭蔚委蠅蟽畏: 螒蠀蟿蠈 伪蟺慰蠁蔚蠉纬蔚喂 蟿慰 蟺维蟿畏渭伪 蟿慰蠀 i , 蟿慰谓 蟿蔚位蔚蠀蟿伪委慰 蠂伪蟻伪魏蟿萎蟻伪, 蟿慰
- 魏蔚委渭蔚谓慰 蟿畏蟼 蔚喂蟽伪纬蠅纬萎蟼, <ESC>, 未蟻慰渭苇伪-未蔚尉喂维, 魏伪喂 蟿苇位慰蟼, x, 渭蠈谓慰 魏伪喂
- 渭蠈谓慰 纬喂伪 谓伪 蟺蟻慰蟽胃苇蟽蔚蟿蔚 蟽蟿慰 蟿苇位慰蟼 蟿畏蟼 纬蟻伪渭渭萎蟼!
-
- 3. 危蠀渭蟺位畏蟻蠋蟽蟿蔚 蟿蠋蟻伪 蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎. 危畏渭蔚喂蠋蟽蟿蔚 蔚蟺委蟽畏蟼 蠈蟿喂 畏 蟺蟻慰蟽胃萎魏畏 蔚委谓伪喂
- 伪魏蟻喂尾蠋蟼 委未喂伪 蟽蟿畏谓 螝伪蟿维蟽蟿伪蟽畏 螝蔚喂渭苇谓慰蠀 渭蔚 蟿畏谓 螝伪蟿维蟽蟿伪蟽畏 螘喂蟽伪纬蠅纬萎蟼, 蔚魏蟿蠈蟼
- 伪蟺蠈 蟿畏 胃苇蟽畏 蟺慰蠀 蔚喂蟽维纬蔚蟿伪喂 蟿慰 魏蔚委渭蔚谓慰.
-
----> This line will allow you to practice
----> This line will allow you to practice appending text to the end of a line.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 6.3: 螒螞螞螚 螘螝螖螣危螚 韦螚危 螒螡韦螜螝螒韦螒危韦螒危螚危
-
-
- ** 螤伪蟿萎蟽蟿蔚 魏蔚蠁伪位伪委慰 R 纬喂伪 谓伪 伪位位维尉蔚蟿蔚 蟺蔚蟻喂蟽蟽蠈蟿蔚蟻慰蠀蟼 伪蟺蠈 苇谓伪谓 蠂伪蟻伪魏蟿萎蟻蔚蟼. **
-
- 1. 螠蔚蟿伪魏喂谓蔚委蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 蟺伪蟻伪魏维蟿蠅 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 --->.
-
- 2. 韦慰蟺慰胃蔚蟿萎蟽蟿蔚 蟿慰谓 未蟻慰渭苇伪 蟽蟿畏谓 伪蟻蠂萎 蟿畏蟼 蟺蟻蠋蟿畏蟼 位苇尉畏蟼 蟺慰蠀 蔚委谓伪喂 未喂伪蠁慰蟻蔚蟿喂魏萎
- 伪蟺蠈 蟿畏 未蔚蠉蟿蔚蟻畏 纬蟻伪渭渭萎 蟽畏渭蔚喂蠅渭苇谓畏 渭蔚 ---> (畏 位苇尉畏 'last').
-
- 3. 螤伪蟿萎蟽蟿蔚 蟿蠋蟻伪 R 魏伪喂 伪位位维尉蟿蔚 蟿慰 蠀蟺蠈位慰喂蟺慰 蟿慰蠀 魏蔚喂渭苇谓慰蠀 蟽蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎
- 纬蟻维蠁慰谓蟿伪蟼 蟺维谓蠅 伪蟺蠈 蟿慰 蟺伪位喂蠈 魏蔚委渭蔚谓慰 蠋蟽蟿蔚 谓伪 魏维谓蔚蟿蔚 蟿畏谓 蟺蟻蠋蟿畏 纬蟻伪渭渭萎 委未喂伪
- 渭蔚 蟿畏 未蔚蠉蟿蔚蟻畏.
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. 危畏渭蔚喂蠋蟽蟿蔚 蠈蟿喂 蠈蟿伪谓 蟺伪蟿维蟿蔚 <ESC> 纬喂伪 谓伪 尾纬蔚委蟿蔚, 蟺伪蟻伪渭苇谓蔚喂 慰蟺慰喂慰未萎蟺慰蟿蔚
- 伪谓伪位位慰委蠅蟿慰 魏蔚委渭蔚谓慰.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠维胃畏渭伪 6.4: 巍违螛螠螜危螚 螘螤螜螞螣螕螚危
-
-
- ** 巍蠀胃渭委蟽蟿蔚 渭委伪 蔚蟺喂位慰纬萎 苇蟿蟽喂 蠋蟽蟿蔚 畏 伪谓伪味萎蟿畏蟽畏 萎 畏 伪谓蟿喂魏伪蟿维蟽蟿伪蟽畏 谓伪 伪纬谓慰蔚委
- 蟿畏 未喂伪蠁慰蟻维 蟺蔚味蠋谓-魏蔚蠁伪位伪委蠅谓 **
-
- 1. 唯维尉蟿蔚 纬喂伪 'ignore' 蔚喂蟽维纬慰谓蟿伪蟼:
- /ignore
- 危蠀谓蔚蠂委蟽蟿蔚 伪蟻魏蔚蟿苇蟼 蠁慰蟻苇蟼 蟺伪蟿蠋谓蟿伪蟼 蟿慰 蟺位萎魏蟿蟻慰 n.
-
- 2. 螛苇蟽蟿蔚 蟿畏谓 蔚蟺喂位慰纬萎 'ic' (Ignore case) 纬蟻维蠁慰谓蟿伪蟼:
- :set ic
-
- 3. 唯维尉蟿蔚 蟿蠋蟻伪 尉伪谓维 纬喂伪 'ignore' 蟺伪蟿蠋谓蟿伪蟼: n
- 危蠀谓蔚蠂委蟽蟿蔚 蟿畏谓 伪谓伪味萎蟿畏蟽畏 渭蔚蟻喂魏苇蟼 伪魏蠈渭伪 蠁慰蟻苇蟼 蟺伪蟿蠋谓蟿伪蟼 蟿慰 蟺位萎魏蟿蟻慰 n
-
- 4. 螛苇蟽蟿蔚 蟿喂蟼 蔚蟺喂位慰纬苇蟼 'hlsearch' 魏伪喂 'incsearch':
- :set hls is
-
- 5. 螘喂蟽维纬蔚蟿蔚 蟿蠋蟻伪 尉伪谓维 蟿畏谓 蔚谓蟿慰位萎 伪谓伪味萎蟿畏蟽畏蟼, 魏伪喂 未蔚委蟿蔚 蟿喂 蟽蠀渭尾伪委谓蔚喂
- /ignore
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 6 螤螘巍螜螞螚唯螚
-
-
- 1. 螤伪蟿蠋谓蟿伪蟼 o 伪谓慰委纬蔚喂 渭委伪 纬蟻伪渭渭萎 螝螒韦惟 伪蟺蠈 蟿慰谓 未蟻慰渭苇伪 魏伪喂 蟿慰蟺慰胃蔚蟿蔚委 蟿慰谓
- 未蟻慰渭苇伪 蟽蟿畏谓 伪谓慰喂蠂蟿萎 纬蟻伪渭渭萎 蟽蔚 螝伪蟿维蟽蟿伪蟽畏 螝蔚喂渭苇谓慰蠀.
-
- 2. 螤伪蟿萎蟽蟿蔚 a 纬喂伪 谓伪 蔚喂蟽维纬蔚蟿蔚 魏蔚委渭蔚谓慰 螠螘韦螒 蟿慰谓 蠂伪蟻伪魏蟿萎蟻伪 蟽蟿慰谓 慰蟺慰委慰 蔚委谓伪喂
- 慰 未蟻慰渭苇伪蟼. 螤伪蟿蠋谓蟿伪蟼 魏蔚蠁伪位伪委慰 A 伪蠀蟿蠈渭伪蟿伪 蟺蟻慰蟽胃苇蟿蔚喂 魏蔚委渭蔚谓慰 蟽蟿慰 蟿苇位慰蟼
- 蟿畏蟼 纬蟻伪渭渭萎蟼.
-
- 3. 螤伪蟿蠋谓蟿伪蟼 魏蔚蠁伪位伪委慰 R 蔚喂蟽苇蟻蠂蔚蟿伪喂 蟽蟿畏谓 螝伪蟿维蟽蟿伪畏 螒谓蟿喂魏伪蟿维蟽蟿伪蟽畏蟼 渭苇蠂蟻喂 谓伪
- 蟺伪蟿畏胃蔚委 蟿慰 <ESC> 魏伪喂 谓伪 蔚尉苇位胃蔚喂.
-
- 4. 螕蟻维蠁慰谓蟿伪蟼 ":set xxx" 蟻蠀胃渭委味蔚喂 蟿畏谓 蔚蟺喂位慰纬萎 "xxx".
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 7: ON-LINE 螘螡韦螣螞螘危 螔螣螚螛螘螜螒危
-
-
- ** 围蟻畏蟽喂渭慰蟺慰喂萎蟽蟿蔚 蟿慰 on-line 蟽蠉蟽蟿畏渭伪 尾慰萎胃蔚喂伪蟼 **
-
- 螣 Vim 苇蠂蔚喂 苇谓伪 蟺蔚蟻喂蔚魏蟿喂魏蠈 on-line 蟽蠉蟽蟿畏渭伪 尾慰萎胃蔚喂伪蟼. 螕喂伪 谓伪 尉蔚魏喂谓萎蟽蔚喂,
- 未慰魏喂渭维蟽蟿蔚 魏维蟺慰喂慰 伪蟺蠈 蟿伪 蟿蟻委伪:
- - 蟺伪蟿萎蟽蟿蔚 蟿慰 蟺位萎魏蟿蟻慰 <HELP> (伪谓 苇蠂蔚蟿蔚 魏维蟺慰喂慰)
- - 蟺伪蟿萎蟽蟿蔚 蟿慰 蟺位萎魏蟿蟻慰 <F1> (伪谓 苇蠂蔚蟿蔚 魏维蟺慰喂慰)
- - 纬蟻维蠄蟿蔚 :help <ENTER>
-
- 螕蟻维蠄蟿蔚 :q <ENTER> 纬喂伪 谓伪 魏位蔚委蟽蔚蟿蔚 蟿慰 蟺伪蟻维胃蠀蟻慰 蟿畏蟼 尾慰萎胃蔚喂伪蟼.
-
- 螠蟺慰蟻蔚委蟿蔚 谓伪 尾蟻蔚委蟿蔚 尾慰萎胃蔚喂伪 蟺维谓蠅 蟽蔚 魏维胃蔚 伪谓蟿喂魏蔚委渭蔚谓慰, 未委谓慰谓蟿伪蟼 渭委伪 蟺伪蟻维渭蔚蟿蟻慰
- 蟽蟿畏谓 蔚谓蟿慰位萎 ":help". 螖慰魏喂渭维蟽蟿蔚 伪蠀蟿维 (渭畏谓 尉蔚蠂谓维蟿蔚 谓伪 蟺伪蟿维蟿蔚 <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 螠螒螛螚螠螒 8: 螖螚螠螜螣违巍螕螚危韦螘 螘螡螒 SCRIPT 螘螝螝螜螡螚危螚危
-
- ** 螘谓蔚蟻纬慰蟺慰喂萎蟽蟿蔚 蠂伪蟻伪魏蟿畏蟻喂蟽蟿喂魏维 蟿慰蠀 Vim **
-
- 螣 Vim 苇蠂蔚喂 蟺慰位位维 蟺蔚蟻喂蟽蟽蠈蟿蔚蟻伪 蠂伪蟻伪魏蟿畏蟻喂蟽蟿喂魏维 伪蟺' 蠈,蟿喂 慰 Vi, 伪位位维 蟿伪
- 蟺蔚蟻喂蟽蟽蠈蟿蔚蟻伪 蔚委谓伪喂 伪蟻蠂喂魏维 伪蟺蔚谓蔚蟻纬慰蟺慰喂畏渭苇谓伪. 螕喂伪 谓伪 伪蟻蠂委蟽蔚蟿蔚 谓伪 蠂蟻畏蟽喂渭慰蟺慰喂蔚委蟿蔚
- 蟺蔚蟻喂蟽蟽蠈蟿蔚蟻伪 蠂伪蟻伪魏蟿畏蟻喂蟽蟿喂魏维 蟺蟻苇蟺蔚喂 谓伪 蠁蟿喂维尉蔚蟿蔚 苇谓伪 伪蟻蠂蔚委慰 "vimrc".
-
- 1. 螒蟻蠂委蟽蟿蔚 未喂慰蟻胃蠋谓慰谓蟿伪蟼 蟿慰 伪蟻蠂蔚委慰 "vimrc", 伪蠀蟿蠈 蔚尉伪蟻蟿维蟿伪喂 伪蟺蠈 蟿慰 蟽蠉蟽蟿畏渭维 蟽伪蟼:
- :edit ~/.vimrc 纬喂伪 Unix
- :edit $VIM/_vimrc 纬喂伪 MS-Windows
-
- 2. 韦蠋蟻伪 蔚喂蟽维纬蔚蟿蔚 蟿慰 魏蔚委渭蔚谓慰 蟺伪蟻伪未蔚委纬渭伪蟿慰蟼 纬喂伪 伪蟻蠂蔚委慰 "vimrc":
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 螕蟻维蠄蟿蔚 蟿慰 伪蟻蠂蔚委慰 渭蔚 蟿畏谓:
- :write
-
- 韦畏谓 蔚蟺蠈渭蔚谓畏 蠁慰蟻维 蟺慰蠀 胃伪 尉蔚魏喂谓萎蟽蔚蟿蔚 蟿慰谓 Vim 胃伪 蠂蟻畏蟽喂渭慰蟺慰喂萎蟽蔚喂 蠁蠅蟿喂蟽渭蠈
- 蟽蠉谓蟿伪尉畏蟼. 螠蟺慰蟻蔚委蟿蔚 谓伪 蟺蟻慰蟽胃苇蟽蔚蟿蔚 蠈位蔚蟼 蟿喂蟼 蟺蟻慰蟿喂渭蠋渭蔚谓蔚蟼 蔚蟺喂位慰纬苇蟼 蟽' 伪蠀蟿蠈
- 蟿慰 伪蟻蠂蔚委慰 "vimrc".
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 螘未蠋 慰位慰魏位畏蟻蠋谓蔚蟿伪喂 蟿慰 Vim Tutor. 危魏慰蟺蠈蟼 蟿慰蠀 萎蟿伪谓 谓伪 未蠋蟽蔚喂 渭委伪 蟽蠉谓蟿慰渭畏
- 蟺蔚蟻委位畏蠄畏 蟿慰蠀 蟽蠀谓蟿维魏蟿畏 Vim, 蟿慰蠀位维蠂喂蟽蟿慰谓 蟿蠈蟽畏 蠋蟽蟿蔚 谓伪 蟽伪蟼 蔚蟺喂蟿蟻苇蠄蔚喂 谓伪
- 蠂蟻畏蟽喂渭慰蟺慰喂萎蟽蔚蟿蔚 蟿慰谓 蟽蠀谓蟿维魏蟿畏 伪蟻魏蔚蟿维 蔚蠉魏慰位伪. 螒蟺苇蠂蔚喂 蟺慰位蠉 伪蟺蠈 渭委伪
- 慰位慰魏位畏蟻蠅渭苇谓畏 蟺伪蟻慰蠀蟽委伪蟽畏 魏伪胃蠋蟼 慰 Vim 苇蠂蔚喂 蟺维蟻伪 蟺慰位位苇蟼 蔚谓蟿慰位苇蟼. 螖喂伪尾维蟽蟿蔚
- 魏伪蟿蠈蟺喂谓 蟿慰 蔚纬蠂蔚喂蟻委未喂慰 蠂蟻萎蟽畏蟼:
- ":help user-manual".
-
- 螕喂伪 蟺蔚蟻伪喂蟿苇蟻蠅 未喂维尾伪蟽渭伪 魏伪喂 渭蔚位苇蟿畏, 蟽蠀蟽蟿萎谓蔚蟿伪喂 伪蠀蟿蠈 蟿慰 尾喂尾位委慰:
- Vim - Vi Improved - by Steve Oualline
- Publisher: New Riders
- 韦慰 蟺蟻蠋蟿慰 尾喂尾位委慰 蟺位萎蟻蠅蟼 伪蠁喂蔚蟻蠅渭苇谓慰 蟽蟿慰谓 Vim.
- 螜未喂伪委蟿蔚蟻伪 蠂蟻萎蟽喂渭慰 纬喂伪 伪蟻蠂维蟻喂慰蠀蟼.
- 违蟺维蟻蠂慰蠀谓 蟺慰位位维 蟺伪蟻伪未蔚委纬渭伪蟿伪 魏伪喂 蔚喂魏蠈谓蔚蟼.
- 螖蔚委蟿蔚 蟿畏谓 http://iccf-holland.org/click5.html
-
- 螒蠀蟿蠈 蟿慰 尾喂尾位委慰 蔚委谓伪喂 蟺伪位喂蠈蟿蔚蟻慰 魏伪喂 蟺蔚蟻喂蟽蟽蠈蟿蔚蟻慰 纬喂伪 蟿慰谓 Vi 蟺伪蟻维 纬喂伪 蟿慰谓 Vim,
- 伪位位维 蔚蟺委蟽畏蟼 蟽蠀谓喂蟽蟿蠋渭蔚谓慰:
- Learning the Vi Editor - by Linda Lamb
- Publisher: O'Reilly & Associates Inc.
- 螘委谓伪喂 苇谓伪 魏伪位蠈 尾喂尾位委慰 纬喂伪 谓伪 渭维胃蔚蟿蔚 蟽蠂蔚未蠈谓 蟿伪 蟺维谓蟿伪 蟺慰蠀 胃苇位蔚蟿蔚
- 谓伪 魏维谓蔚蟿蔚 渭蔚 蟿慰谓 Vi.
- 螚 苇魏蟿畏 苇魏未慰蟽畏 蟺蔚蟻喂苇蠂蔚喂 伪魏蠈渭伪 蟺位畏蟻慰蠁慰蟻委蔚蟼 纬喂伪 蟿慰谓 Vim.
-
- 螒蠀蟿萎 畏 蟺蔚蟻喂萎纬畏蟽畏 纬蟻维蠁蟿畏魏蔚 伪蟺蠈 蟿慰蠀蟼 Michael C. Pierce 魏伪喂 Robert K. Ware,
- Colorado School of Mines 蠂蟻畏蟽喂渭慰蟺慰喂蠋谓蟿伪蟼 喂未苇蔚蟼 伪蟺蠈 蟿慰谓 Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- 螤蟻慰蟽伪蟻渭慰纬萎 纬喂伪 蟿慰谓 Vim 伪蟺蠈 蟿慰谓 Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.hr.utf-8 b/runtime/tutor/tutor.hr.utf-8
new file mode 100644
index 000000000..396bdfeb1
--- /dev/null
+++ b/runtime/tutor/tutor.hr.utf-8
@@ -0,0 +1,972 @@
+===============================================================================
+= D o b r o d o 拧 l i u VIM p r i r u 膷 n i k - Verzija 1.7 =
+===============================================================================
+
+ Vim je vrlo mo膰an editor koji ima mnogo naredbi, previ拧e da bi ih
+ se svih ovdje spomenulo. Namjena priru膷nika je objasniti dovoljno
+ naredbi kako bi po膷etnici znatno lak拧e koristili ovaj svestran editor.
+
+ Pribli啪no vrijeme potrebno za uspje拧an zavr拧etak priru膷nika je oko
+ 30 minuta a ovisi o tome koliko 膰e te vremena odvojiti za vje啪banje.
+
+ UPOZORENJE:
+ Naredbe u ovom priru膷niku 膰e promijeniti ovaj tekst.
+ Napravite kopiju ove datoteke kako bi ste na istoj vje啪bali
+ (ako ste pokrenuli "vimtutor" ovo je ve膰 kopija).
+
+ Vrlo je va啪no primijetiti da je ovaj priru膷nik namijenjen za vje啪banje.
+ Preciznije, morate izvr拧iti naredbe u Vim-u kako bi ste iste nau膷ili
+ pravilno koristiti. Ako samo 膷itate tekst, zaboraviti 膰e te naredbe!
+
+ Ako je CapsLock uklju膷en ISKLJU膶ITE ga. Pritiskajte tipku j kako
+ bi pomakli kursor sve dok Lekcija 1.1 ne ispuni ekran.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1.1: POMICANJE KURSORA
+
+
+ ** Za pomicanje kursora, pritisnite h,j,k,l tipke kako je prikazano **
+ ^
+ k Savjet: h tipka je lijevo i pomi膷e kursor lijevo.
+ < h l > l tipka je desno i pomi膷e kursor desno.
+ j j izgleda kao strelica usmjerena dolje.
+ v
+ 1. Pomi膷ite kursor po ekranu dok se ne naviknete na kori拧tenje.
+
+ 2. Dr啪ite tipku (j) pritisnutom.
+ Sada znate kako do膰i do sljede膰e lekcije.
+
+ 3. Koriste膰i tipku j prije膽ite na sljede膰u lekciju 1.2.
+
+NAPOMENA: Ako niste sigurni 拧to ste zapravo pritisnuli uvijek koristite
+ tipku <ESC> kako bi pre拧li u Normal mod i onda poku拧ajte ponovno.
+
+NAPOMENA: Kursorske tipke rade isto. Kori拧tenje hjkl tipaka je znatno
+ br啪e, nakon 拧to se jednom naviknete na njihovo kori拧tenje. Stvarno!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1.2: IZLAZ IZ VIM-a
+
+
+ !! UPOZORENJE: Prije izvo膽enja bilo kojeg koraka,
+ pro膷itajte cijelu lekciju!!
+
+ 1. Pritisnite <ESC> tipku (Vim je sada u Normal modu).
+
+ 2. Otipkajte: :q! <ENTER>.
+ Izlaz iz editora, GUBE se sve napravljene promjene.
+
+ 3. Kada se pojavi ljuska, utipkajte naredbu koja je pokrenula
+ ovaj priru膷nik: vimtutor <ENTER>
+
+ 4. Ako ste upamtili ove korake, izvr拧ite ih redom od 1 do 3
+ kako bi ponovno pokrenuli editor.
+
+NAPOMENA: :q! <ENTER> poni拧tava sve promjene koje ste napravili.
+ U sljede膰im lekcijama nau膷it 膰e te kako promjene sa膷uvati.
+
+ 5. Pomaknite kursor na Lekciju 1.3.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1.3: PROMJENA TEKSTA - BRISANJE
+
+
+ ** Pritisnite x za brisanje znaka pod kursorom. **
+
+ 1. Pomaknite kursor na liniju ozna膷enu s --->.
+
+ 2. Kako bi ste ispravili pogre拧ke, pomi膷ite kursor dok se
+ ne bude nalazio na slovu kojeg trebate izbrisati.
+
+ 3. Pritisnite tipku x kako bi uklonili ne啪eljeno slovo.
+
+ 4. Ponovite korake od 2 do 4 dok ne ispravite sve pogre拧ke.
+
+---> KKKravaa jee pressko膷ila mmjeseccc.
+
+ 5. Nakon 拧to ispravite liniju, prije膽ite na lekciju 1.4.
+
+NAPOMENA: Koriste膰i ovaj priru膷nik ne poku拧avajte pamtiti
+ ve膰 u膷ite primjenom.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1.4: PROMJENA TEKSTA - UBACIVANJE
+
+
+ ** Pritisnite i za ubacivanje teksta ispred kursora. **
+
+ 1. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+
+ 2. Kako bi napravili prvu liniju istovjetnoj drugoj, pomaknite
+ kursor na prvi znak POSLIJE kojeg 膰e te utipkati potreban tekst.
+
+ 3. Pritisnite i te utipkajte potrebne nadopune.
+
+ 4. Nakon 拧to ispravite pogre拧ku pritisnite <ESC> kako bi vratili Vim
+ u Normal mod. Ponovite korake od 2 do 4 kako bi ispravili sve pogre拧ke.
+
+---> Nedje no teka od v lin.
+---> Nedostaje ne拧to teksta od ove linije.
+
+ 5. Prije膽ite na sljede膰u lekciju.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1.5: PROMJENA TEKSTA - DODAVANJE
+
+
+ ** Pritisnite A za dodavanje teksta. **
+
+ 1. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+ Nije va啪no na kojem se slovu nalazi kursor na toj liniji.
+
+ 2. Pritisnite A i napravite potrebne promjene.
+
+ 3. Nakon 拧to ste dodali tekst, pritisnite <ESC>
+ za povratak u Normal mod.
+
+ 4. Pomaknite kursor na drugu liniju ozna膷enu s --->
+ i ponovite korake 2 i 3 dok ne popravite tekst.
+
+---> Ima ne拧to teksta koji nedostaje n
+ Ima ne拧to teksta koji nedostaje na ovoj liniji.
+---> Ima ne拧to teksta koji ne
+ Ima ne拧to teksta koji nedostaje ba拧 ovdje.
+
+ 5. Prije膽ite na lekciju 1.6.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1.6: PROMJENA DATOTEKE
+
+
+ ** Koristite :wq za spremanje teksta i napu拧tanje Vim-a. **
+
+ !! UPOZORENJE: Prije izvr拧avanja bilo kojeg koraka, pro膷itajte lekciju!!
+
+ 1. Iza膽ite iz programa kao sto ste napravili u lekciji 1.2: :q!
+
+ 2. Iz ljuske utipkajte sljede膰u naredbu: vim tutor <ENTER>
+ 'vim' je naredba pokretanja Vim editora, 'tutor' je ime datoteke koju
+ 啪elite ure膽ivati. Koristite datoteku koju imate ovlasti mijenjati.
+
+ 3. Ubacite i izbri拧ite tekst kao 拧to ste to napravili u lekcijama prije.
+
+ 4. Sa膷uvajte promjenjeni tekst i iza膽ite iz Vim-a: :wq <ENTER>
+
+ 5. Ponovno pokrenite vimtutor i nastavite 膷itati sa啪etak koji sljedi.
+
+ 6. Nakon sto pro膷itate gornje korake i u potpunosti ih razumijete:
+ izvr拧ite ih.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 1 SA沤ETAK
+
+
+ 1. Kursor se pomi膷e strelicama ili pomo膰u hjkl tipaka.
+ h (lijevo) j (dolje) k (gore) l (desno)
+
+ 2. Pokretanje Vim-a iz ljuske: vim IME_DATOTEKE <ENTER>
+
+ 3. Izlaz: <ESC> :q! <ENTER> sve promjene su izgubljene.
+ ILI: <ESC> :wq <ENTER> promjene su sa膷uvane.
+
+ 4. Brisanje znaka na kojem se nalazi kursor: x
+
+ 5. Ubacivanja ili dodavanje teksta:
+ i utipkajte tekst <ESC> unos ispred kursora
+ A utipkajte tekst <ESC> dodavanje na kraju linije
+
+NAPOMENA: Tipkanjem tipke <ESC> prebacuje Vim u Normal mod i
+ prekida ne啪eljenu ili djelomi膷no zavr拧enu naredbu.
+
+Nastavite 膷itati Lekciju 2.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.1: NAREDBE BRISANJA
+
+
+ ** Tipkajte dw za brisanje rije膷i. **
+
+ 1. Pritisnite <ESC> kako bi bili sigurni da je Vim u Normal modu.
+
+ 2. Pomaknite kursor na liniju ozna膷enu s --->.
+
+ 3. Pomaknite kursor na po膷etak rije膷i koju treba izbrisati.
+
+ 4. Otipkajte dw kako bi uklonili rije膷.
+
+NAPOMENA: Vim 膰e prikazati slovo d na zadnjoj liniji kad ga otipkate.
+ Vim 膷eka da otipkate w . Ako je prikazano neko drugo slovo,
+ krivo ste otipkali; pritisnite <ESC> i poku拧ajte ponovno.
+
+---> Neke rije膷i smije拧no ne pripadaju na papir ovoj re膷enici.
+
+ 5. Ponovite korake 3 i 4 dok ne ispravite re膷enicu;
+ prije膽ite na Lekciju 2.2.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.2: JO艩 BRISANJA
+
+
+ ** Otipkajte d$ za brisanje znakova do kraja linije. **
+
+ 1. Pritisnite <ESC> kako bi bili
+ sigurni da je Vim u Normal modu.
+
+ 2. Pomaknite kursor na liniju ozna膷enu s --->.
+
+ 3. Pomaknite kursor do kraja ispravne re膷enice
+ (POSLJE prve . ).
+
+ 4. Otipkajte d$
+ kako bi izbrisali sve znakove do kraja linije.
+
+---> Netko je utipkao kraj ove linije dvaput. kraj ove linije dvaput.
+
+ 5. Prije膽ite na Lekciju 2.3 za bolje obja拧njenje.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.3: UKRATKO O OPERATORIMA I POKRETIMA
+
+
+ Mnogo naredbi koje mijenjaju tekst se sastoje od operatora i pokreta.
+ Oblik naredbe brisanja sa d operatorom je sljede膰i:
+
+ d pokret
+
+ Pri 膷emu je:
+ d - operator brisanja.
+ pokret - ono na 膷emu 膰e se operacija izvr拧avati (navedeno u nastavku).
+
+ Kratka lista pokreta:
+ w - sve do po膷etka sljede膰e rije膷i, NE UKLJU膶UJU膯I prvo slovo.
+ e - sve do kraja trenuta膷ne rije膷i, UKLJU膶UJU膯I zadnje slovo.
+ $ - sve do kraje linije, UKLJU膶UJU膯I zadnje slovo.
+
+ Tipkanjem de 膰e se brisati od kursora do kraja rije膷i.
+
+NAPOMENA: Pritiskaju膰i samo pokrete dok ste u Normal modu bez operatora 膰e
+ pomicati kursor kao 拧to je navedeno.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.4: KORI艩TENJE BROJANJA ZA POKRETE
+
+
+ ** Tipkanjem nekog broja prije pokreta, pokret se izvr拧ava toliko puta. **
+
+ 1. Pomaknite kursor na liniju ozna膷enu s --->.
+
+ 2. Otipkajte 2w da pomaknete kursor dvije rije膷i naprijed.
+
+ 3. Otipkajte 3e da pomaknete kursor na kraj tre膰e rije膷i naprijed.
+
+ 4. Otipkajte 0 (nulu) da pomaknete kursor na po膷etak linije.
+
+ 5. Ponovite korake 2 i 3 s nekim drugim brojevima.
+
+---> Re膷enica sa rije膷ima po kojoj mo啪ete pomicati kursor.
+
+ 6. Prije膽ite na Lekciju 2.5.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.5: KORI艩TENJE BROJANJA ZA VE膯E BRISANJE
+
+
+ ** Tipkanje broja N s operatorom ponavlja ga N-puta. **
+
+ U kombinaciji operatora brisanja i pokreta spomenutih iznad
+ ubacujete broj prije pokreta kako bi izbrisali vi拧e znakova:
+
+ d broj pokret
+
+ 1. Pomaknite kursor na prvo slovo u rije膷i sa VELIKIM SLOVIMA
+ ozna膷enu s --->.
+
+ 2. Otipkajte 2dw da izbri拧ete dvije rije膷i sa VELIKIM SLOVIMA
+
+ 3. Ponovite korake 1 i 2 sa razli膷itim brojevima da izbri拧ete
+ uzastopne rije膷i sa VELIKIM SLOVIMA sa samo jednom naredbom.
+
+---> ova ABC膶膯 D膼E linija FGHI JK LMN OP rije膷i je RS艩 TUVZ沤 popravljena.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.6: OPERIRANJE NAD LINIJAMA
+
+
+ ** Otipkajte dd za brisanje cijele linije. **
+
+ Zbog u膷estalosti brisanja cijelih linija, dizajneri Vi-a su odlu膷ili da
+ je lak拧e brisati linije tipkanjem d dvaput.
+
+ 1. Pomaknite kursor na drugu liniju u donjoj kitici.
+ 2. Otipkajte dd kako bi izbrisali liniju.
+ 3. Pomaknite kursor na 膷etvrtu liniju.
+ 4. Otipkajte 2dd kako bi izbrisali dvije linije.
+
+---> 1) Ru啪e su crvene,
+---> 2) Pla啪a je super,
+---> 3) Ljubice su plave,
+---> 4) Imam auto,
+---> 5) Satovi ukazuju vrijeme,
+---> 6) 艩e膰er je sladak
+---> 7) Kao i ti.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2.7: NAREDBA PONI艩TENJA
+
+
+ ** Pritisnite u za poni拧tenje zadnje naredbe, U za cijelu liniju. **
+
+ 1. Pomaknite kursor na liniju ozna膷enu s ---> i postavite kursor na prvu
+ pogre拧ku.
+ 2. Otipkajte x kako bi izbrisali prvi ne啪eljeni znak.
+ 3. Otipkajte u kako bi poni拧tili zadnju izvr拧enu naredbu.
+ 4. Ovaj put ispravite sve pogre拧ke na liniji koriste膰i x naredbu.
+ 5. Sada utipkajte veliko U kako bi poni拧tili sve promjene
+ na liniji, vra膰aju膰i je u prija拧nje stanje.
+ 6. Sada utipkajte u nekoliko puta kako bi poni拧tili U
+ i prija拧nje naredbe.
+ 7. Sada utipkajte CTRL-R (dr啪e膰i CTRL tipku pritisnutom dok
+ ne pritisnete R) nekoliko puta kako bi vratili promjene
+ (poni拧tili poni拧tenja).
+
+---> Poopravite pogre拧ke nna ovvoj liniji ii pooni拧titeee ih.
+
+ 8. Vrlo korisne naredbe. Prije膽ite na sa啪etak Lekcije 2.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 2 SA沤ETAK
+
+
+ 1. Brisanje od kursora do sljede膰e rije膷i: dw
+ 2. Brisanje od kursora do kraja linije: d$
+ 3. Brisanje cijele linije: dd
+
+ 4. Za ponavljanje pokreta prethodite mu broj: 2w
+ 5. Oblik naredbe mijenjanja:
+ operator [broj] pokret
+ gdje je:
+ operator - 拧to napraviti, npr. d za brisanje
+ [broj] - neobavezan broj ponavljanja pokreta
+ pokret - kretanje po tekstu po kojem se operira,
+ kao 拧to je: w (rije膷), $ (kraj linije), itd.
+
+ 6. Postavljanje kursora na po膷etak linije: 0
+
+ 7. Za poni拧tenje prethodnih promjena, pritisnite: u (malo u)
+ Za poni拧tenje svih promjena na liniji, pritisnite: U (veliko U)
+ Za vra膰anja promjena, utipkajte: CTRL-R
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 3.1: NAREDBA POSTAVI
+
+
+ ** p za unos prethodno izbrisanog teksta iza kursora. **
+
+ 1. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+
+ 2. Otipkajte dd kako bi izbrisali liniju i spremili je u Vim registar.
+
+ 3. Pomaknite kursor na liniju c), IZNAD linije koju trebate unijeti.
+
+ 4. Otipkajte p kako bi postavili liniju ispod kursora.
+
+ 5. Ponovite korake 2 do 4 kako bi postavili sve linije u pravilnom
+ rasporedu.
+
+---> d) Mo啪e拧 li i ti nau膷iti?
+---> b) Ljubice su plave,
+---> c) Inteligencija je nau膷ena,
+---> a) Ru啪e su crvene,
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 3.2: NAREDBA PROMJENE
+
+
+ ** Otipkajte rx za zamjenu slova ispod kursora sa slovom x . **
+
+ 1. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+
+ 2. Pomaknite kursor tako da se nalazi na prvoj pogre拧ci.
+
+ 3. Otipkajte r i nakon toga ispravan znak na tom mjestu.
+
+ 4. Ponovite korake 2 i 3 sve dok prva
+ linije ne bude istovjetna drugoj.
+
+---> Kede ju ovu limija tupjana, natko je protuskao kruve tupke!
+---> Kada je ova linija tipkana, netko je pritiskao krive tipke!
+
+ 5. Prije膽ite na Lekciju 3.2.
+
+NAPOMENA: Prisjetite da trebate u膷iti vje啪banjem, ne pam膰enjem.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 3.3: OPERATOR MIJENJANJA
+
+
+ ** Za mijenjanje do kraja rije膷i, istipkajte ce . **
+
+ 1. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+
+ 2. Postavite kursor na a u lackmb.
+
+ 3. Otipkajte ce i ispravite rije膷 (u ovom slu膷aju otipkajte inija ).
+
+ 4. Pritisnite <ESC> i pomaknite kursor na sljede膰i znak
+ kojeg je potrebno ispraviti.
+
+ 5. Ponovite korake 3 i 4 sve dok prva re膷enica ne postane istovjetna
+ drugoj.
+
+---> Ova lackmb ima nekoliko rjlcah koje trfcb mijdmlfsz.
+---> Ova linija ima nekoliko rije膷i koje treba mijenjati.
+
+Primijetite da ce bri拧e rije膷 i postavlja Vim u Insert mod.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 3.4: JO艩 MIJENJANJA KORI艩TENJEM c
+
+
+ ** Naredba mijenjanja se koristi sa istim pokretima kao i brisanje. **
+
+ 1. Operator mijenjanja se koristi na isti na膷in kao i operator brisanja:
+
+ c [broj] pokret
+
+ 2. Pokreti su isti, npr: w (rije膷) i $ (kraj linije).
+
+ 3. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+
+ 4. Pomaknite kursor na prvu pogre拧ku.
+
+ 5. Otipkajte c$ i utipkajte ostatak linije tako da bude istovjetna
+ drugoj te pritisnite <ESC>.
+
+---> Kraj ove linije treba pomo膰 tako da izgleda kao linija ispod.
+---> Kraj ove linije treba ispraviti kori拧tenjem c$ naredbe.
+
+NAPOMENA: Mo啪ete koristiti Backspace za ispravljanje gre拧aka.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 3 SA沤ETAK
+
+
+ 1. Za postavljanje teksta koji je upravo izbrisan, pritisnite p . Ovo
+ postavlja tekst IZA kursora (ako je pak linija izbrisana tekst se
+ postavlja na liniju ispod kursora).
+
+ 2. Za promjenu znaka na kojem se nalazi kursor, pritisnite r i nakon toga
+ 啪eljeni znak.
+
+ 3. Operator mijenjanja dozvoljava promjenu teksta od kursora do pozicije do
+ koje dovede pokret. tj. Otipkajte ce za mijenjanje od kursora do kraja
+ rije膷i, c$ za mijenjanje od kursora do kraja linije.
+
+ 4. Oblik naredbe mijenjanja:
+
+ c [broj] pokret
+
+Prije膽ite na sljede膰u lekciju.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 4.1: POZICIJA KURSORA I STATUS DATOTEKE
+
+ ** CTRL-G za prikaz pozicije kursora u datoteci i status datoteke.
+ Pritisnite G za pomicanje kursora na neku liniju u datoteci. **
+
+NAPOMENA: Pro膷itajte cijelu lekciju prije izvr拧enja bilo kojeg koraka!!
+
+ 1. Dr啪ite Ctrl tipku pritisnutom i pritisnite g . Ukratko: CTRL-G.
+ Vim 膰e ispisati poruku na dnu ekrana sa imenom datoteke i pozicijom
+ kursora u datoteci. Zapamtite broj linije za 3. korak.
+
+NAPOMENA: Mo啪ete vidjeti poziciju kursora u donjem desnom kutu ako
+ je postavka 'ruler' aktivirana (obja拧njeno u 6. lekciji).
+
+ 2. Pritisnite G za pomicanje kursora na kraj datoteke.
+ Otipkajte gg za pomicanje kursora na po膷etak datoteke.
+
+ 3. Otipkajte broj linije na kojoj ste bili maloprije i zatim G . Kursor
+ 膰e se vratiti na liniju na kojoj se nalazio kada ste otipkali CTRL-G.
+
+ 4. Ako ste spremni, izvr拧ite korake od 1 do 3.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 4.2: NAREDBE TRA沤ENJA
+
+ ** Otipkajte / i nakon toga izraz kojeg 啪elite tra啪iti. **
+
+ 1. U Normal modu otipkajte / znak. Primijetite da se znak
+ pojavio zajedno sa kursorom na dnu ekrana kao kod : naredbe.
+
+ 2. Sada otipkajte 'grrrre拧ka' <ENTER>. To je rije膷 koju zapravo tra啪ite.
+
+ 3. Za ponovno tra啪enje istog izraza, otipkajte n .
+ Za tra啪enje istog izraza ali u suprotnom smjeru, otipkajte N .
+
+ 4. Za tra啪enje izraza unatrag, koristite ? umjesto / .
+
+ 5. Za povratak na prethodnu poziciju koristite CTRL-O (dr啪ite Ctrl
+ pritisnutim dok ne pritisnete tipku o). Ponavljajte sve dok se ne
+ vratite na po膷etak. CTRL-I sli膷no kao CTRL-O ali u suprotnom smjeru.
+
+---> "pogrrrre拧ka" je pogre拧no; umjesto pogrrrre拧ka treba stajati pogre拧ka.
+
+NAPOMENA: Ako se tra啪enjem do膽e do kraja datoteke nastavit 膰e se od njenog
+ po膷etka osim ako je postavka 'wrapscan' deaktivirana.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 4.3: TRA沤ENJE PRIPADAJU膯E ZAGRADE
+
+
+ ** Otipkajte % za pronalazak pripadaju膰e ), ] ili } . **
+
+ 1. Postavite kursor na bilo koju od ( , [ ili {
+ otvorenih zagrada u liniji ozna膷enoj s --->.
+
+ 2. Otipkajte znak % .
+
+ 3. Kursor 膰e se pomaknuti na pripadaju膰u zatvorenu zagradu.
+
+ 4. Otipkajte % kako bi pomakli kursor na drugu pripadaju膰u zagradu.
+
+ 5. Pomaknite kursor na neku od (,),[,],{ ili } i ponovite % naredbu.
+
+---> Linija ( testiranja obi膷nih ( [ uglatih ] i { viti膷astih } zagrada.))
+
+
+NAPOMENA: Vrlo korisno u ispravljanju koda sa nepripadaju膰im zagradama!
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 4.4: NAREDBE ZAMIJENE
+
+
+ ** Otipkajte :s/staro/novo/g da zamijenite 'staro' za 'novo'. **
+
+ 1. Pomaknite kursor na liniju ozna膷enu s --->.
+
+ 2. Otipkajte :s/cvr膰膷/cvr膷 <ENTER> . Primjetite da ova naredba zamjenjuje
+ samo prvi "cvr膰膷" u liniji.
+
+ 3. Otipkajte :s/cvr膰膷/cvr膷/g . Dodavanje g stavke zna膷i da 膰e se naredba
+ izvr拧iti na cijeloj liniji, zamjenjivanjem svih "cvr膰膷" u liniji.
+
+---> i cvr膰膷i cvr膰膷i cvr膰膷ak na 膷voru crne smr膷e.
+
+ 4. Za zamjenu svih izraza u rasponu dviju linija,
+ otipkajte :#,#s/staro/novo/g #,# su brojevi linije datoteke na kojima
+ te izme膽u njih 膰e se izvr拧iti zamjena.
+ Otipkajte :%s/staro/novo/g za zamjenu svih izraza u cijeloj datoteci.
+ Otipkajte :%s/staro/novo/gc za pronalazak svakog izraza u datoteci i
+ potvrdu zamjene.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 4 SA沤ETAK
+
+
+ 1. CTRL-G prikazuje poziciju kursora u datoteci i status datoteke.
+ G postavlja kursor na zadnju liniju datoteke.
+ broj G postavlja kursor na broj liniju.
+ gg postavlja kursor na prvu liniju.
+
+ 2. Tipkanje / sa izrazom tra啪i UNAPRIJED taj izraz.
+ Tipkanje ? sa izrazom tra啪i UNATRAG taj izraz.
+ Nakon naredbe tra啪enja koristite n za pronalazak izraza u istom
+ smjeru, i N za pronalazak istog izraza ali u suprotnom smjeru.
+ CTRL-O vra膰a kursor na prethodnu poziciju, CTRL-I na sljede膰u poziciju.
+
+ 3. Tipkanje % dok je kursor na zagradi pomi膷e ga na pripadaju膰u zagradu.
+
+ 4. Za zamjenu prvog izraza staro za izraz novo :s/staro/novo
+ Za zamjenu svih izraza staro na cijeloj liniji :s/staro/novo/g
+ Za zamjenu svih izraza staro u rasponu linija #,# :#,#s/staro/novo/g
+ Za zamjenu u cijeloj datoteci :%s/staro/novo/g
+ Za potvrdu svake zamjene dodajte 'c' :%s/staro/novo/gc
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 5.1: IZVR艩AVANJE VANJSKIH NAREDBI
+
+
+ ** Otipkajte :! sa vanjskom naredbom koju 啪elite izvr拧iti. **
+
+ 1. Otipkajte poznatu naredbu : kako bi kursor premjestili na dno
+ ekrana. Time omogu膰avate unos naredbe u naredbenoj liniji.
+
+ 2. Otipkajte znak ! (uskli膷nik). Tako omogu膰avate
+ izvr拧avanje naredbe vanjske ljuske.
+
+ 3. Kao primjer otipkajte ls nakon ! te pritisnite <ENTER>.
+ Ovo 膰e prikazati sadr啪aj direktorija, kao da ste u ljusci.
+ Koristite :!dir ako :!ls ne radi.
+
+NAPOMENA: Mogu膰e je izvr拧avati bilo koju vanjsku naredbu na ovaj na膷in,
+ zajedno sa njenim argumentima.
+
+NAPOMENA: Sve : naredbe se izvr拧avaju nakon 拧to pritisnete <ENTER>
+ U daljnjem tekstu to ne膰e uvijek biti napomenuto.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 5.2: VI艩E O SPREMANJU DATOTEKA
+
+ ** Za spremanje promjena, otipkajte :w IME_DATOTEKE. **
+
+ 1. Otipkajte :!dir ili :!ls za pregled direktorija.
+ Ve膰 znate da morate pritisnuti <ENTER> na kraju tipkanja.
+
+ 2. Izaberite ime datoteke koja jo拧 ne postoji, npr. TEST.
+
+ 3. Otipkajte: :w TEST (gdje je TEST ime koje ste prethodno odabrali.)
+
+ 4. Time 膰e te spremiti cijelu datoteku (Vim Tutor) pod imenom TEST.
+ Za provjeru, otipkajte ponovno :!dir ili :!ls
+ za pregled direktorija.
+
+NAPOMENA: Ako bi napustili Vim i ponovno ga pokrenuli sa vim TEST ,
+ datoteka bi bila potpuna kopija ove datoteke u trenutku
+ kada ste je spremili.
+
+ 5. Izbri拧ite datoteku tako da otipkate (MS-DOS): :!del TEST
+ ili (Unix): :!rm TEST
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 5.3: SPREMANJE OZNA膶ENOG TEKSTA
+
+
+ ** Kako bi spremili dio datoteke, otipkajte v pokret :w IME_DATOTEKE **
+
+ 1. Pomaknite kursor na ovu liniju.
+
+ 2. Pritisnite v i pomaknite kursor pet linija ispod ove.
+ Primijetite promjenu, ozna膷eni tekst se razlikuje od obi膷nog.
+
+ 3. Pritisnite : znak. Na dnu ekrana pojavit 膰e se :'<,'> .
+
+ 4. Otipkajte w TEST , pritom je TEST ime datoteke koja jo拧 ne postoji.
+ Provjerite da zaista pi拧e :'<,'>w TEST
+ prije nego 拧to pritisnite <ENTER>.
+
+ 5. Vim 膰e spremiti ozna膷eni tekst u TEST. Provjerite sa :!dir ili !ls .
+ Nemojte je jo拧 brisati! Koristiti 膰e te je u sljede膰oj lekciji.
+
+NAPOMENA: Tipka v zapo膷inje Vizualno ozna膷avanje. Mo啪ete pomicati kursor
+ unaokolo kako bi mijenjali veli膷inu ozna膷enog teksta. Mo啪ete
+ koristiti i operatore. Npr, d 膰e izbrisati ozna膷eni tekst.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 5.4: U膶ITAVANJE DATOTEKA
+
+
+ ** Za ubacivanje sadr啪aja datoteke, otipkajte :r IME_DATOTEKE **
+
+ 1. Postavite kursor iznad ove linije.
+
+NAPOMENA: Nakon 拧to izvr拧ite 2. korak vidjeti 膰e te tekst iz Lekcije 5.3.
+ Stoga pomaknite kursor DOLJE kako bi ponovno vidjeli ovu lekciju.
+
+ 2. U膷itajte va拧u TEST datoteku koriste膰i naredbu :r TEST
+ gdje je TEST ime datoteke koju ste koristili u prethodnoj lekciji.
+ Sadr啪aj u膷itane datoteke je uba膷en liniju ispod kursora.
+
+ 3. Kako bi provjerili da je datoteka u膷itana, vratite kursor unatrag i
+ primijetite dvije kopije Lekcije 5.3, originalnu i onu iz datoteke.
+
+NAPOMENA: Mo啪ete tako膽er u膷itati ispis vanjske naredbe. Npr, :r !ls
+ 膰e u膷itati ispis ls naredbe i postaviti ispis liniju ispod
+ kursora.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 5 SA沤ETAK
+
+
+ 1. :!naredba izvr拧ava vanjsku naredbu.
+
+ Korisni primjeri:
+ (MS-DOS) (Unix)
+ :!dir :!ls - pregled direktorija.
+ :!del DATOTEKA :!rm DATOTEKA - bri拧e datoteku DATOTEKA.
+
+ 2. :w DATOTEKA zapisuje trenuta膷nu datoteku na disk sa imenom DATOTEKA.
+
+ 3. v pokret :w IME_DATOTEKE sprema vizualno ozna膷ene linije u
+ datoteku IME_DATOTEKE.
+
+ 4. :r IME_DATOTEKE u膷itava datoteku IME_DATOTEKE sa diska i stavlja
+ njen sadr啪aj liniju ispod kursora.
+
+ 5. :r !dir u膷itava ispis naredbe dir i postavlja sadr啪aj ispisa liniju
+ ispod kursora.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 6.1: NAREDBA OTVORI
+
+
+ ** Pritisnite o kako bi otvorili liniju ispod kursora
+ i pre拧li u Insert mod. **
+
+ 1. Pomaknite kursor na sljede膰u liniju ozna膷enu s --->.
+
+ 2. Otipkajte malo o kako bi otvorili novu liniju ISPOD kursora
+ i pre拧li u Insert mod.
+
+ 3. Otipkajte ne拧to teksta i nakon toga pritisnite <ESC>
+ kako bi napustili Insert mod.
+
+---> Nakon 拧to pritisnete o kursor 膰e pre膰i u novu liniju u Insert mod.
+
+ 4. Za otvaranje linije IZNAD kursora, otipkajte umjesto malog o veliko O ,
+ Poku拧ajte na donjoj liniji ozna膷enoj s --->.
+
+---> Otvorite liniju iznad ove - otipkajte O dok je kursor na ovoj liniji.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 6.2: NAREDBA DODAJ
+
+
+ ** Otipkajte a za dodavanje teksta IZA kursora. **
+
+ 1. Pomaknite kursor na po膷etak sljede膰e linije ozna膷ene s --->.
+
+ 2. Tipkajte e dok se kursor ne nalazi na kraju li .
+
+ 3. Otipkajte a (malo) kako bi dodali tekst IZA kursora.
+
+ 4. Dopunite rije膷 kao 拧to je na liniji ispod.
+ Pritisnite <ESC> za izlaz iz Insert moda.
+
+ 5. Sa e prije膽ite na sljede膰u nepotpunu rije膷 i ponovite korake 3 i 4.
+
+---> Ova li omogu膰ava vje dodav teksta nekoj liniji.
+---> Ova linija omogu膰ava vje啪banje dodavanja teksta nekoj liniji.
+
+NAPOMENA: Sa i, a, i A prelazite u isti Insert mod, jedina
+ razlika je u poziciji od koje 膰e se tekst ubacivati.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 6.3: DRUGI NA膶IN MIJENJANJA
+
+
+ ** Otipkajte veliko R kako bi zamijelili vi拧e od jednog znaka. **
+
+ 1. Pomaknite kursor na prvu sljede膰u liniju ozna膷enu s --->.
+ Pomaknite kursor na po膷etak prvog xxx .
+
+ 2. Pritisnite R i otipkajte broj koji je liniju ispod,
+ tako da zamijeni xxx .
+
+ 3. Pritisnite <ESC> za izlaz iz Replace moda.
+ Primijetite da je ostatak linije ostao nepromjenjen.
+
+ 5. Ponovite korake kako bi zamijenili preostali xxx.
+
+---> Zbrajanje: 123 plus xxx je xxx.
+---> Zbrajanje: 123 plus 456 je 579.
+
+NAPOMENA: Replace mod je kao Insert mod, ali sa bitnom razlikom,
+ svaki otipkani znak bri拧e ve膰 postoje膰i.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 6.4: KOPIRANJE I LIJEPLJENJE TEKSTA
+
+
+ ** Koristite y operator za kopiranje a p za lijepljenje teksta. **
+
+ 1. Pomaknite kursor na liniju s ---> i postavite kursor nakon "a)".
+
+ 2. Pokrenite Visual mod sa v i pomaknite kursor sve do ispred "prva".
+
+ 3. Pritisnite y kako bi kopirali ozna膷eni tekst.
+
+ 4. Pomaknite kursor do kraja sljede膰e linije: j$
+
+ 5. Pritisnite p kako bi zalijepili tekst. Onda utipkajte: druga <ESC> .
+
+ 6. Koristite Visual mod kako bi ozna膷ili " linija.", kopirajte: y , kursor
+ postavite na kraj sljede膰e linije: j$ i ondje zalijepite tekst: p .
+
+---> a) ovo je prva linija.
+ b)
+
+NAPOMENA: mo啪ete koristiti y kao operator; yw kopira jednu rije膷.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 6.5: MIJENJANJE POSTAVKI
+
+
+ ** Postavka: naredbe tra啪enja i zamijene ne razlikuju VELIKA i mala slova **
+
+ 1. Potra啪ite 'razlika' tipkanjem: /razlika <ENTER>
+ Nekoliko puta ponovite pritiskanjem n .
+
+ 2. Aktivirajte 'ic' (Ignore case) postavku: :set ic
+
+ 3. Ponovno potra啪ite 'razlika' tipkanjem n
+ Primijetite da su sada i RAZLIKA i Razlika prona膽eni.
+
+ 4. Aktivirajte 'hlsearch' i 'incsearch' postavke: :set hls is
+
+ 5. Otipkajte naredbu tra啪enja i primijetite razlike: /razlika <ENTER>
+
+ 6. Za deaktiviranje ic postavke koristite: :set noic
+
+NAPOMENA: Za neozna膷avanje prona膽enih izraza otipkajte: :nohlsearch
+NAPOMENA: Bez razlikovanja velikih i malih slova u samo jednoj naredbi
+ koristite \c u izrazu: /razlika\c <ENTER>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 6 SA沤ETAK
+
+ 1. Pritisnite o za otvaranje linije ISPOD kursora i prelazak u Insert mod.
+ Pritisnite O za otvaranje linije IZNAD kursora.
+
+ 2. Pritisnite a za unos teksta IZA kursora.
+ Pritisnite A za unos teksta na kraju linije.
+
+ 3. Naredba e pomi膷e kursor na kraj rije膷i.
+
+ 4. Operator y kopira tekst, p ga lijepi.
+
+ 5. Tipkanjem velikog R Vim prelazi u Replace mod dok ne pritisnete <ESC> .
+
+ 6. Tipkanjem ":set xxx" aktivira postavku "xxx". Neke postavke su:
+ 'ic' 'ignorecase' ne razlikuje velika/mala slova pri tra啪enju
+ 'is' 'incsearch' tra啪i nedovr拧ene izraze
+ 'hls' 'hlsearch' ozna膷i sve prona膽ene izraze
+ Mo啪ete koristite dugo ili kratko ime postavke.
+
+ 7. Prethodite "no" imenu postavke za deaktiviranje iste: :set noic
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 7.1: DOBIVANJE POMO膯I
+
+
+ ** Koristite on-line sustav pomo膰i **
+
+ Vim ima detaljan on-line sustav pomo膰i.
+ Za po膷etak, poku拧ajte jedno od sljede膰eg:
+ - pritisnite <HELP> tipku (ako je va拧a tipkovnica ima)
+ - pritisnite <F1> tipku (ako je va拧a tipkovnica ima)
+ - utipkajte :help <ENTER>
+
+ Pro膷itajte tekst u prozoru pomo膰i kako bi ste se znali slu啪iti istom.
+ Tipkanjem CTRL-W CTRL-W prelazite iz jednog prozora u drugi.
+ Otipkajte :q <ENTER> kako bi zatvorili prozor pomo膰i.
+
+ Prona膰i 膰e te pomo膰 o bilo kojoj temi, tako da dodate upit samoj
+ ":help" naredbi. Poku拧ajte (ne zaboravite pritisnuti <ENTER>):
+
+ :help w
+ :help c_CTRL-D
+ :help insert-index
+ :help user-manual
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 7.2: PRAVLJENJE SKRIPTE
+
+
+ ** Aktivirajte Vim mogu膰nosti **
+
+ Vim ima mnogo vi拧e alata od Vi-ja, ali ve膰ina njih nije aktivirana.
+ Kako bi mogli koristiti vi拧e mogu膰nosti napravite "vimrc" datoteku.
+
+ 1. Uredite "vimrc" datoteku. Ovo ovisi o va拧em sistemu:
+ :e ~/.vimrc za Unix
+ :e $VIM/_vimrc za MS-Windows
+
+ 2. Sada u膷itajte primjer sadr啪aja "vimrc" datoteke:
+ :r $VIMRUNTIME/vimrc_example.vim
+
+ 3. Sa膷uvajte datoteku sa:
+ :w
+
+ Sljede膰eg puta kada pokrenete Vim, bojanje sintakse teksta biti 膰e
+ aktivirano. Sve va拧e postavke mo啪ete dodati u "vimrc" datoteku.
+ Za vi拧e informacija otipkajte :help vimrc-intro
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 7.3: AUTOMATSKO DOVR艩AVANJE
+
+
+ ** Dovr拧avanje iz naredbene linije pomo膰u CTRL-D i <TAB> **
+
+ 1. Provjerite da Vim nije u Vi modu: :set nocp
+
+ 2. Pogledajte koje datoteke postoje u direktoriju: :!ls or :!dir
+
+ 3. Otipkajte po膷etak naredbe: :e
+
+ 4. Tipkajte CTRL-D i prikazati 膰e se lista naredbi koje zapo膷inju sa "e".
+
+ 5. Pritisnite <TAB> i Vim 膰e dopuniti unos u naredbu ":edit".
+
+ 6. Dodajte razmak i po膷etak datoteke: :edit FIL
+
+ 7. Pritisnite <TAB>. Vim 膰e nadopuniti ime datoteke (ako je jedinstveno).
+
+NAPOMENA: Mogu膰e je dopuniti mnoge naredbe. Koristite CTRL-D i <TAB>.
+ Naro膷ito je korisno za :help naredbe.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lekcija 7 SA沤ETAK
+
+
+ 1. Otipkajte :help ili pritisnite <F1> ili <Help> za pomo膰.
+
+ 2. Otipkajte :help naredba kako bi dobili pomo膰 za naredba .
+
+ 3. Otipkajte CTRL-W CTRL-W za prelazak u drugi prozor
+
+ 4. Otipkajte :q kako bi zatvorili prozor pomo膰i
+
+ 5. Napravite vimrc skriptu za podizanje kako bi u nju spremali
+ va拧e omiljene postavke.
+
+ 6. Kada tipkate naredbu koja zapo膷inje sa :
+ pritisnite CTRL-D kako bi vidjeli mogu膰e valjane vrijednosti.
+ Pritisnite <TAB> kako bi odabrali jednu od njih.
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Kraj. Cilj priru膷nika je da poka啪e kratak pregled Vim editora, tek toliko
+ da omogu膰i njegovo kori拧tenje. Priru膷nik nije potpun jer Vim ima mnogo vi拧e
+ naredbi. Za vi拧e informacija: ":help user-manual".
+
+ Za 膷itanje i kori拧tenje, preporu膷amo:
+ Vim - Vi Improved - by Steve Oualline
+ Izdava膷: New Riders
+ Prva knjiga potpuno posve膰ena Vim-u. Vrlo korisna za po膷etnike.
+ Sa mnogo primjera i slika.
+ Posjetite http://iccf-holland.org/click5.html
+
+ Sljede膰a knjiga je ne拧to starija i vi拧e o Vi-u nego o Vim-u, preporu膷amo:
+ Learning the Vi Editor - by Linda Lamb
+ Izdava膷: O'Reilly & Associates Inc.
+ Solidna knjiga, mo啪ete saznati skoro sve 拧to mo啪ete napraviti
+ u Vi-u. 艩esto izdanje ima ne拧to informacija i o Vim-u.
+
+ Ovaj priru膷nik su napisali: Michael C. Pierce i Robert K. Ware,
+ Colorado School of Mines koriste膰i ideje Charles Smith,
+ Colorado State University. E-po拧ta: bware@mines.colorado.edu.
+
+ Naknadne promjene napravio je Bram Moolenaar.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ Preveo na hrvatski: Paul B. Mahol <onemda@gmail.com>
+ Preinaka 1.42, Lipanj 2008
+
+
diff --git a/runtime/tutor/tutor.hu b/runtime/tutor/tutor.hu
deleted file mode 100644
index 84e6bd421..000000000
--- a/runtime/tutor/tutor.hu
+++ /dev/null
@@ -1,823 +0,0 @@
-===============================================================================
-= d v z l j k a V I M T u t o r b a n - 1.5-鰏 verzi ===
-===============================================================================
-
- A Vim egy nagyon hat閗ony szerkeszt, amelnyek rengeteg utas韙醩a
- van, t鷏 sok, hogy egy ilyen oktat骲an (tutorban), mint az itteni
- mindet elmagyar醶zuk. Ez az oktat arra t鰎ekszik, hogy annyit
- elmagyar醶zon, amennyi el間, hogy k鰊nyed閚 haszn醠juk a Vim-et, az
- 醠tal醤os c閘 sz鰒egszerkeszt鮰.
-
- A feladatok megold醩醜oz 25-30 perc sz黭s間es att髄 f黦g鮡n,
- mennyit t鰈t黱k a kis閞letez閟sel.
-
- A leck閎en szerepl utas韙醩ok m骴os韙ani fogj醟 a sz鰒egek.
- K閟z韙sen m醩olatot err鮨 a f醞lr髄, ha gyakorolni akar.
- (Ha "vimtutor"-ral ind韙otta, akkor ez m醨 egy m醩olat.)
-
- Fontos meg閞teni, hogy ez az oktat cselekedve tan韙tat.
- Ez azt jelenti, hogy 謓nek aj醤lott v間rehajtania az utas韙醩okat,
- hogy megfelel鮡n megtanulja azokat. Ha csak olvassa, elfelejti!
-
- Most bizonyosodjon, meg, hogy a Caps-Lock gombja NINCS lenyomva, 閟
- Nyomja meg megfelel sz醡鷖zor a j gombot, hogy az 1.1-es
- lecke teljesen a k閜erny鮪 legyen!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.1. lecke: A KURZOR MOZGAT罶A
-
-
- ** A kurzor mozgat醩醜oz nyomja meg a h,j,k,l gombokat az al醔bi szerint. **
- ^
- k Tipp: A h billenty van balra, 閟 balra mozgat
- < h l > A l billenty van jobbra, 閟 jobbra mozgat
- j A j billenty olyan, mint egy lefele ny韑
- v
- 1. Mozgassa a kurzort k鰎be az ablakban, am韌 hozz nem szokik!
-
- 2. Tartsa lenyomva a lefel閠 (j), akkor ism閠l鮠ik!
----> Most tudja, hogyan mehet a k鰒etkez leck閞e.
-
- 3. A lefel fomb haszn醠at醰al menjen a 1.2. leck閞e!
-
-Megj: Ha nem biztos benne, mit nyomott meg, nyomja meg az <ESC>-et, hogy
- norm醠 m骴ba ker黮j鰊, 閟 ism閠elje meg a parancsot!
-
-Megj: A kurzor gomboknak is m鹝鰀ni黭 kell, de a hjkl haszn醠at醰al
- sokkal gyorsabban tud, mozogni, ha hozz醩zokik.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.2. lecke: BE 蒘 KIL蒔蒘 A VIMB誏
-
-
- !! MEGJ: Miel鮰t v間rehajtja az al醔bi l閜閟eket, olvassa v間ig a leck閠 !!
-
- 1. Nyomja meg az <ESC> gombot (hogy biztosan norm醠 m骴ban legyen).
-
- 2. 蛂ja: :q! <ENTER>.
-
----> Ezzel kil閜 a szerkeszt鮞鮨 a v醠toz醩ok MENT蒘E N蒐K躄.
- Ha menteni szeretn a v醠toz醩okat 閟 kil閜ni, 韗ja:
- :wq <ENTER>
-
- 3. Amikor a shell promptot l醫ja, 韗ja be a parancsot, amely ebbe a
- tutorba hozza:
- Ez val髎z韓鹟eg: vimtutor <ENTER>
- Norm醠is esetben ezt 韗n: vim tutor.hu <ENTER>
-
----> 'vim' jelenti a vimbe bel閜閟t, 'tutor.hu' a f醞l, amit szerkeszteni k韛醤.
-
- 4. Ha megjegyezte a l閜閟eket 閟 biztos mag醔an, hajtsa v間re a l閜閟eket
- 1-t鮨 3-ig, hogy kil閜jen 閟 visszat閞jen a szerkeszt鮞e. Azut醤
- menjen az 1.3. leck閞e.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.3. lecke: SZ諺EG SZERKESZT蒘E - T諶L蒘
-
-
-** Norm醠 m骴ban nyomjon x-et, hogy a kurzor alatti karaktert t鰎鰈je. **
-
- 1. Mozgassa a kurzort a ---> kezdet sorra!
-
- 2. A hib醟 kijav韙醩醜oz mozgassa a kurzort am韌 a t鰎lend karakter
- f鰈 nem 閞.
-
- 3. Nyomja meg az x gombot, hogy t鰎鰈je a nemk韛醤t karaktert.
-
- 4. Ism閠elje a 2, 3, 4-es l閜閟eket, hogy kijav韙sa a mondatot.
-
----> 照szi 閖jjell izziik aa galaggonya rruuh醞a.
-
- 5. Ha a sor helyes, ugorjon a 1.4. leck閞e.
-
-MEGJ: A tanul醩 sor醤 ne memoriz醠ni pr骲醠jon, hanem haszn醠at sor醤 tanuljon.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.4. lecke: SZ諺EG SZERKESZT蒘E - BESZ赗罶
-
-
- ** Norm醠 m骴ban i megnyom醩醰al lehet beilleszteni. **
-
- 1. Az al醔bi els ---> kezdet sorra menjen.
-
- 2. Ahhoz, hogy az els鮰 azonoss tegye a m醩odikkal, mozgassa a kurzort
- az els karakterre, amely UT罭 sz鰒eget kell besz鷕ni.
-
- 3. Nyomjon i-t 閟 韗ja be a megfelel sz鰒eget.
-
- 4. Amikor mindent be韗t, nyomjon <ESC>-et, hogy Norm醠 m骴ba visszat閞jen.
- Ism閠elje a 2 閟 4 k鰖鰐ti l閜閟eket, hogy kijav韙sa a mondatot.
-
----> Az 醫hat so髄 hizik p醨 閟z.
----> Az itt l醫hat sorb髄 hi醤yzik p醨 r閟z.
-
- 5. Ha m醨 begyakorolta a besz鷕醩t, menjen az al醔bi 鰏szefoglal髍a.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1. LECKE 諷SZEFOGLAL覬A
-
-
- 1. A kurzort vagy a nyilakkal vagy a hjkl gombokkal mozgathatja.
- h (balra) j (le) k (fel) l (jobbra)
-
- 2. A Vimbe (a $ promptt髄) 韌y l閜het be: vim FILENAME <ENTER>
-
- 3. A Vimb鮨 韌y l閜het ki: <ESC> :q! <ENTER> a v醠toztat醩ok eldob醩醰al.
- vagy 韌y: <ESC> :wq <ENTER> a v醠toz醩ok ment閟関el.
-
- 4. A kurzor alatti karakter t鰎l閟e norm醠 m骴ban: x
-
- 5. Sz鰒eg besz鷕醩a a kurzor ut醤 norm醠 m骴ban:
- i g閜elje be a sz鰒eget <ESC>
-
-MEGJ: Az <ESC> megnyom醩a norm醠 m骴ba viszi, vagy megszak韙 egy nem befejezett
- r閟zben befejezett parancsot.
-
-Most folytassuk a 2. leck関el!
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.1. lecke: T諶L UTAS蚑罶OK
-
-
- ** dw t鰎鰈 a sz v間閕g. **
-
- 1. Nyomjon <ESC>-et, hogy megbizonyosodjon, hogy norm醠 m骴ban van!
-
- 2. Mozgassa a kurzort a ---> kezdet sorra!
-
- 3. Mozgassa a kurzort arra annak a sz髇ak az elej閞e, amit t鰎鰈ni szeretne.
- T鰎鰈je az 醠latokat a mondatb髄.
-
- 4. A sz t鰎l閟閔ez 韗ja: dw
-
- MEGJ: Ha rosszul kezdte az utas韙醩t csak nyomjon <ESC> gombot
- a megszak韙醩醜oz.
-
----> P醨 sz kutya nem uhu illik pingvin a mondatba teh閚.
-
- 5. Ism閠elje a 3 閟 4 k鰖鰐ti utas韙醩okat am韌 kell 閟 ugorjon a 2.2 leck閞e!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.2. lecke: M蒅 T諦B T諶L UTAS蚑罶
-
-
- ** d$ be韗醩醰al a sor v間閕g t鰎鰈het. **
-
- 1. Nyomjon <ESC>-et, hogy megbizonyosodjon, hogy norm醠 m骴ban van!
-
- 2. Mozgassa a kurzort a ---> kezdet sorra!
-
- 3. Mozgassa a kurzort a helyes sor v間閞e (az els . UT罭)!
-
- 4. d$ beg閜el閟関elt鰎鰈je a sor v間閠!
-
----> Valaki a sor v間閠 k閠szer g閜elte be. k閠szer g閜elte be.
-
-
- 5. Menjen a 2.3. leck閞e, hogy meg閞tse mi t鰎t閚t!
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.3. lecke: UTAS蚑罶OKR覮 蒘 OBJEKTUMOKR覮
-
-
- A d (delete=t鰎l閟) utas韙醩 form醞a a k鰒etkez:
-
- [sz醡] d objektum VAGY d [sz醡] objektum
- Ahol:
- sz醡 - h醤yszor hajt骴jon v間re a parancs (elhagyhat, alap閞t閗=1).
- d - a t鰎l閟 (delete) utas韙醩.
- objektum - amin a parancsnak teljes黮nie kell (al醔b list醶va).
-
- Objektumok r鰒id list醞a:
- w - a kurzort髄 a sz v間閕g, bele閞tve a sz髃鰖t.
- e - a kurzort髄 a sz v間閕g, NEM bele閞tve a sz髃鰖t.
- $ - a kurzort髄 a sor v間閕g.
-
-MEGJ: V醠lalkoz骲bak kedv殚rt, csup醤 az objektum beg閜el閟関el parancs n閘k黮
- a kurzor oda ker黮, amit az objektumlista megad.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.4. lecke: EGY KIV蒚EL A 'PARANCSOBJEKTUM' AL覮
-
-
- ** dd be韗醩醰al t鰎鰈heti az eg閟z sort. **
-
- A teljes sor t鰎l閟閚ek gyakoris醙a miatt a Vi tervez鮥 elhat醨ozt醟,
- hogy k鰊nyebb lenne csup醤 a d-t k閠szer megnyomni, hogy egy sort t鰎鰈j黱k.
-
- 1. Mozgassa a kurzort az al醔bi kifejez閟ek m醩odik sor醨a!
- 2. dd beg閜el閟関el t鰎鰈je a sort!
- 3. Menjen a 4. (eredetileg 5.) sorra!
- 4. 2dd (ugyeb醨 sz醡-utas韙醩-objektum) beg閜el閟関el t鰎鰈j鰊 k閠 sort!
-
- 1) Alv szegek a j間hideg homokban,
- 2) - kezdi a k鰈t -
- 3) Plak醫mag醤yban 醶 閖jelek.
- 4) Pingvinek ne f閘jetek,
- 5) T醰olr髄 egy vaku villant,
- 6) 蒰ve hagytad a folyos髇 a villanyt.
- 7) Ma ontj醟 v閞emet.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.5. lecke: A VISSZAVON罶 (UNDO) PARANCS
-
-
-** u g閜el閟関el visszavonhat az utols parancs, U az eg閟z sort helyre醠l韙ja. **
-
- 1. Menj黱k az al醔bi ---> kezdet sor els hib醞醨a!
- 2. x lenyom醩醰al t鰎鰈je az els felesleges karaktert!
- 3. u megnyom醩醰al vonja vissza az utols髇ak v間rehajtott utas韙醩t!
- 4. M醩odj醨a jav韙son ki minden hib醫 a sorben az x utas韙醩sal!
- 5. Most nagy U -val 醠l韙sa vissza a sor eredeti 醠lapot醫!
- 6. Nyomja meg az u gombot p醨szor, hogy az U 閟 sz el鮶 utas韙醩okat
- vissza醠l韙sa!
- 7. CTRL-R (CTRL gomb lenyom醩a mellett 黶s鰊 R-t) p醨szor csin醠ja 鷍ra a
- visszavont parancsokat (redo)!
-
----> Jav眄tsd a hhib醟aat ebbben a sooorban majd 醠l韙sa visszaaa az eredetit.
-
- 8. Ezek nagyon hasznos parancsok. Most ugarjon a 2. lecke 鰏szefoglal骿醨a.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2. LECKE 諷SZEFOGLAL覬A
-
-
- 1. T鰎l閟 a kurzort髄 a sz v間閕g: dw
-
- 2. T鰎l閟 a kurzort髄 a sz v間閕g: d$
-
- 3. Eg閟z sor t鰎l閟e: dd
-
- 4. Egy utas韙醩 alakja norm醠 m骴ban:
-
- [sz醡] utas韙醩 objektum VAGY utas韙醩 [sz醡] objektum
- ahol:
- sz醡 - h醤yszor ism閠elj黭 a parancsot
- utas韙醩 - mit tegy黱k, pl. d a t鰎l閟kor
- objektum - mire hasson az utas韙醩, p閘d醬l w (sz=word),
- $ (a sor v間閕g), stb.
-
- 5. Az el鮶 tett visszavon醩a (undo): u (kis u)
- A sor 鰏szes v醠toz醩醤ak visszavon醩a: U (nagy U)
- Visszavon醩ok visszavon醩a: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.1. lecke: A PUT PARANCS
-
-
- ** p le黷閟関el az utols髇ak t鰎鰈tet a kurzor ut醤 illeszhetj黭. **
-
- 1. Mozgassuk a kurzort az al醔bi sorok els sor醨a.
-
- 2. dd le黷閟関el t鰎鰈j黭 a sort 閟 elt閞ol骴ik a Vim puffer閎en.
-
- 3. Mozgassuk a kurzort AF諰 a sor f鰈, ahov mozgatni szeretn閚k a
- t鰎鰈t sort.
-
- 4. Norm醠 m骴ban 韗junk p bet鹴 a t鰎鰈t sor beilleszt閟閔ez.
-
- 5. Folytassuk a 2-4. utas韙醩okkal hogy a helyes sorrendet kapjuk.
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.2. lecke: A REPLACE PARANCS
-
-
-** r 閟 a karakterek le黷閟関el a kurzor alatti karaktert megv醠toztatjuk. **
-
- 1. Mozgassuk a kurzort az els ---> kezdet sorra!
-
- 2. Mozgassuk a kurzort az els hiba f鰈!
-
- 3. r majd a k韛醤t karakter le黷閟関el v醠toztassuk meg a hib醩at!
-
- 4. A 2. 閟 3. l閜閟ekkel jav韙suk az 鰏szes hib醫!
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. Menj黱k a 3.2. leck閞e!
-
-MEGJ: Eml閗ezzen, hogy nem memoriz醠醩sal, hanem gyakorl醩sal tanuljon.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.3. lecke: A CHANGE PARANCS
-
-
- ** A sz egy r閟z閚ek megv醠toztat醩醜oz 韗juk: cw . **
-
- 1. Mozgassuk a kurzort az els ---> kezdet sorra!
-
- 2. Vigye a kurzort a Ezen sz z bet鹙e f鰈!
-
- 3. cw 閟 a helyes sz髍閟z (itt 'bben') be韗醩醰al jav韙sa a sz髏!
-
- 4. <ESC> lenyom醩a ut醤 a k鰒etkez hib醨a ugorjon (az els cser閘end
- karakterre)!
-
- 5. A 3. 閟 4. l閜閟ek ism閠l閟関el az els mondatot tegye a m醩odikkal
- azonoss!
-
----> Ezen a sorrrrr p醨 sz髍a meg kell v醠tozzanak a change utask韗閟.
----> Ebben a sorban p醨 sz髏 meg kell v醠toztatni a change utas韙醩sal.
-
-Vegy黭 閟zre, hogy a cw nem csak a sz髏 韗ja 醫, hanem besz鷕
-(insert) m骴ba v醠t.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.4. lecke: T諦BF蒐E V罫TOZTAT罶 c-VEL
-
-
- ** A c utas韙醩 haszn醠hat ugyanazokkal az objektumokkal mint a t鰎l閟 **
-
- 1. A change utas韙醩 a t鰎l閟sel azonosan viselkedik. A forma:
-
- [sz醡] c objektum OR c [sz醡] objektum
-
- 2. Az objektumok is azonosak, pl. w (sz), $ (sorv間), stb.
-
- 3. Mozgassuk a kurzort az els ---> kezdet sorra!
-
- 4. Menj黱k az els hib醨a!
-
- 5. c$ beg閜el閟関el a sorv間eket tegy黭 azonoss 閟 nyomjunk <ESC>-et!
-
----> Ennek a sornak a v間e kiigaz韙醩ra szorul, hogy megegyezzen a m醩odikkal.
----> Ennek a sornak a v間e a c$ paranccsal v醠toztathat meg.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3. LECKE 諷SZEFOGLAL覬A
-
-
- 1. A m醨 t鰎鰈t sort beilleszt閟閔ez nyomjunk p-t. Ez a t鰎鰈t sz鰒eget
- a kurzor UT罭 helyezi (ha sor ker黮t t鰎l閟re, a kurzor allatti sorba).
-
- 2. A kurzor alatti karakter 醫韗醩醜oz az r-et 閟 azt a karaktert
- nyomjuk, amellyel az eredetit fel黮 szeretn閚k 韗ni.
-
- 3. A v醠toztat醩 (c) utas韙醩 a karaktert鮨 az objektum v間閕g
- v醠toztatja meg az objektumot. P閘d醬l a cw a kurzort髄 a sz v間閕g,
- a c$ a sor v間閕g.
-
- 4. A v醠toztat醩 form醫uma:
-
- [sz醡] c objektum VAGY c [sz醡] objektum
-
-Ugorjunk a k鰒etkez leck閞e!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.1. lecke: HELY 蒘 F罦L罫LAPOT
-
-
- ** CTRL-g megnyom醩醰al megn閦hetj黭 a hely黱ket a f醞lban 閟 a f醞l 醠lapot醫.
- SHIFT-G le黷閟関el a f醞l adott sor醨a ugorhatunk. **
-
- Megj: Olvassuk el az eg閟z leck閠 a l閜閟ek v間rehajt醩a el鮰t!!
-
- 1. Tartsuk nyomva a Ctrl gombot 閟 nyomjunk g-t. Az 醠lapotsor
- megjelenik a lap alj醤 a f醞ln関vel 閟 az aktu醠is sor sorsz醡醰al.
- Jegyezz黭 meg a sorsz醡ot a 3. l閜閟hez!
-
- 2. Nyomjunk Shift-G-t a lap alj醨a ugr醩hoz!
-
- 3. 躶s黭 be az eredeti sor sz醡醫, majd 黶s黱k shift-G-t! Ezzel
- visszajutunk az eredeti sorra ahol Ctrl-g-t nyomtunk.
- (A be韗t sz醡 NEM fog megjelenni a k閜erny鮪.)
-
- 4. Ha megjegyezte a feladatot, hajtsa v間re az 1-3. l閜閟eket!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.2. lecke: A SEARCH PARANCS
-
-
- ** / majd a k韛醤t kifejez閟 be韗醩醰al kereshetj黭 meg a kifejez閟t. **
-
- 1. Norm醠 m骴ban 黶s黱k / karaktert! Ez 閟 a kurzor megjelenik
- a k閜erny alj醤, ahogy a : utas韙醩 is.
-
- 2. 蛂juk be: 'hiibaa' <ENTER>! Ez az a sz amit keres黱k.
-
- 3. A kifejez閟 鷍abb keres閟閔ez 黶s黭 le egyszer鹐n: n .
- A kifejez閟 ellenkez ir醤yban t鰎t閚 keres閟閔ez ezt 黶s黭 be: Shift-N .
-
- 4. Ha visszafel szeretne keresni, akkor ? kell a ! helyett.
-
----> "hiibaa" nem a helyes m骴ja a hiba le韗醩醤ak; a hiibaa egy hiba.
-
-Megj: Ha a keres閟 el閞i a f醞l v間閠, akkor az elej閚 kezdi.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.3. lecke: Z罵覬ELEK P罵J罭AK KERES蒘E
-
-
- ** % le黷閟関el megtal醠juk a ),], vagy } p醨j醫. **
-
- 1. Helyezze a kurzort valamelyik (, [, vagy { z醨骿elre a ---> kezdet
- sorban!
-
- 2. 躶s鰊 % karaktert!
-
- 3. A kurzor a z醨骿el p醨j醨a fog ugrani.
-
- 4. % le黷閟関el visszaugrik az eredeti z醨骿elre.
-
----> Ez ( egy tesztsor (-ekkel, [-ekkel ] 閟 {-ekkel } a sorban. ))
-
-Megj: Ez nagyon hasznos, ha olyan programot debugolunk, amelyben a
- z醨骿elek nem p醨osak!
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.4. lecke: A HIB罧 KIJAV蚑罶罭AK EGY M覦JA
-
-
- ** :s/鷍/r間i/g beg閜el閟関el az '鷍'-ra cser閘j黭 a 'r間i'-t. **
-
- 1. Menj黱k a ---> kezdet sorra!
-
- 2. 蛂juk be: :s/eggy/egy <ENTER> . Ekkor csak az els v醠tozik meg a
- sorban.
-
- 3. Most ezt 韗juk: :s/eggy/egg/g amely glob醠isan helyettes韙
- a sorban.
- Ez a sorban minden el鮢ordul醩t helyettes韙.
-
----> eggy hegy meggy, szembe j鰊 eggy m醩ik heggy.
-
- 4. K閠 sor k鰖鰐t a karaktersor minden el鮢ordul醩醤ak helyettes韙閟e:
- :#,#s/r間i/鷍/g ahol #,# a k閠 sor sorsz醡a.
- :%s/r間i/鷍/g a f醞lbeli 鰏szes el鮢ordul醩 helyettes韙閟e.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4. LECKE 諷SZEFOGLAL覬A
-
-
- 1. Ctrl-g ki韗ja az kurzor hely閠 a f醞lban 閟 a f醞l 醠lapot醫.
- Shift-G a f醞l v間閞e megy, gg az elej閞e. Egy sz醡 ut醤
- Shift-G az adott sz醡 sorra ugrik.
-
- 2. / ut醤 egy kifejez閟 EL誖EFELE keresi a kifejez閟t.
- 2. ? ut醤 egy kifejez閟 VISSZAFELE keresi a kifejez閟t.
- Egy keres閟 ut醤 az n a k鰒etkez el鮢ordul醩t keresi azonos ir醤yban
- Shift-N az ellenkez ir醤yban keres.
-
- 3. % beg閜el閟関el, ha (,),[,],{, vagy } karakteren vagyunk a z醨骿el
- p醨j醨a ugrik.
-
- 4. az els r間i helyettes韙閟e 鷍jal a sorban :s/r間i/鷍
- az 鰏szes r間i helyettes韙閟e 鷍jal a sorban :s/r間i/鷍/g
- k閠 sor k鰖鰐ti kifejez閟ekre :#,#s/r間i/鷍/g
- # hely閚 az aktu醠is sor (.) 閟 az utols ($) is 醠lhat :.,$/r間i/鷍/g
- A f醞lbeli 鰏szes el鮢ordul醩 helyettes韙閟e :%s/r間i/鷍/g
- Mindenkori meger鮯韙閟re v醨 'c' hat醩醨a :%s/r間i/鷍/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.1. lecke: K躄S PARANCS V蒅REHAJT罶A
-
-
- ** :! ut醤 k黮s parancsot 韗va v間rehajt骴ik a parancs. **
-
- 1. 蛂juk be az ismer鮯 : parancsot, hogy a kurzort a k閜erny alj醨a
- helyezz黭. Ez lehet鮲 teszi egy parancs be韗醩醫.
-
- 2. ! (felki醠t骿el) be韗醩醰al tegy黭 lehet鮲 k黮s h閖 (shell)-parancs
- v間rehajt醩醫.
-
- 3. 蛂junk p閘d醬l ls parancsot a ! ut醤 majd 黶s黱k <ENTER>-t. Ez ki
- fogja list醶ni a k鰊yvt醨unkat ugyan鷊y, mintha a shell promptn醠
- lenn閚k. Vagy 韗ja ezt :!dir ha az ls nem m鹝鰀ik.
-
-Megj: Ilym骴on b醨mely k黮s utas韙醩 v間rehajthat.
-
-Megj: Minden : parancs ut醤 <ENTER>-t kell 黷ni.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.2. lecke: B誚EBBEN A F罦LOK 蚏罶罵覮
-
-
- ** A f醞lok v醠toz醩ait 韌y 韗hatjuk ki :w F罦LN蒝. **
-
- 1. :!dir vagy :!ls be韗醩醰al list醶zuk a k鰊yvt醨unkat!
- 謓 m醨 tudja, hogy <ENTER>-t kell 黷nie ut醤a.
-
- 2. V醠asszon egy f醞lnevet, amely m間 nem l閠ezik pl. TESZT!
-
- 3. 蛂ja: :w TESZT (ahol TESZT a v醠asztott f醞ln関)!
-
- 4. Ez elmenti a teljes f醞lt (a Vim Tutort) TESZT n関en.
- Ellen鮮z閟k閜p 韗juk ism閠 :!dir hogy l醩suk a k鰊yvt醨at!
- (Felfel gombbal : ut醤 az el鮶 utas韙醩ok visszahozhat骯k.)
-
-Megj: Ha 謓 kil閜ne a Vimb鮨 閟 閟 visszat閞ne a TESZT f醞ln関vel, akkor a
- f醞l a tutor ment閟kori pontos m醩olata lenne.
-
- 5. T醰ol韙sa el a f醞lt (MS-DOS): :!del TESZT
- vagy (Unix): :!rm TESZT
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.3. lecke: EGY KIV罫ASZTOTT R蒘Z KI蚏罶A
-
-
- ** A f醞l egy r閟z閚ek ki韗醩醜oz 韗ja :#,# w F罦LN蒝 **
-
- 1. :!dir vagy :!ls be韗醩醰al list醶za a k鰊yvt醨at, 閟 v醠asszon egy
- megfelel f醞lnevet, pl. TESZT.
-
- 2. Mozgassa a kurzort ennek az oldalnak a tetej閞e, 閟 nyomjon
- Ctrl-g-t, hogy megtudja a sorsz醡ot. JEGYEZZE MEG A SZ罬OT!
-
- 3. Most menjen a lap alj醨a, 閟 黶se be ism閠: Ctrl-g. EZT A SZ罬OT
- IS JEGYEZZE MEG!
-
- 4. Ha csak ezt a r閟z閠 szeretn menteni a f醞lnak, 韗ja :#,# w TESZT
- ahol #,# a k閠 sorsz醡, amit megjegyzett, TESZT az 謓 f醞lneve.
-
- 5. Ism閠 n閦ze meg, hogy a f醞l ott van (:!dir) de NE t鰎鰈je.
-
- 6. Vimben l閠ezik egy m醩ik lehet鮯間: nyomja meg a Shift-V gombp醨t
- az els menteni k韛醤t soron, majd menjen le az utols髍a, ezut醤
- 韗ja :w TESZT2 Ekkor a TESZT2 f醞lba ker黮 a kijel鰈t r閟z.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.4. lecke: RETRIEVING AND MERGING FILES
-
-
- ** Egy f醞l tartalm醤ak beilleszt閟閔ez 韗ja :r F罦LN蒝 **
-
- 1. :!dir be韗醩醰al n閦ze meg, hogy az 謓 TESZT f醞lja l閠ezik m間.
-
- 2. Helyezze a kurzort ennek az oldalnak a tetej閞e.
-
-MEGJ: A 3. l閜閟 ut醤 az 5.3. leck閠 fogja l醫ni. Azut醤 LEFEL indulva
- keresse meg ism閠 ezt a leck閠.
-
- 3. Most sz鷕ja be a TESZT nev f醞lt a :r TESZT paranccsal, ahol
- TESZT az 謓 f醞lj閚ak a neve.
-
-MEGJ: A f醞l, amit beillesztett a kurzora alatt helyezkedik el.
-
- 4. Hogy ellen鮮izz黭, hogy a f醞lt t閚yleg beillsztett黭, menjen
- vissza, 閟 n閦ze meg, hogy k閠szer szerepel az 5.3. lecke! Az eredeti
- mellett a f醞lb髄 bem醩olt is ott van.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5. LECKE 諷SZEFOGLAL覬A
-
-
- 1. :!parancs v間rehajt egy k黮s utas韙醩t.
-
- P醨 hasznos p閘da:
- (MS-DOS) (Unix)
- :!dir :!ls - k鰊yvt醨lista ki韗醩a.
- :!del F罦LN蒝 :!rm F罦LN蒝 - F罦LN蒝 nev f醞l t鰎l閟e.
-
- 2. :w F罦LN蒝 ki韗ja a jelenlegi Vim-f醞lt a lemezre F罦N蒝 n関en.
-
- 3. :#,#w F罦LN蒝 ki韗ja a k閠 sorsz醡 (#) k鰖鰐ti sorokat F罦LN蒝-be
- M醩ik lehet鮯間, hogy a kezd鮯orn醠 Ctrl-v-t nyom lemegy az utols
- sorra, majd ezt 黷i be :w F罦LN蒝
-
- 4. :r F罦LN蒝 beolvassa a F罦LN蒝 f醞lt 閟 behelyezi a jelenlegi f醞lba
- a kurzorpozici ut醤i sorba.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.1. lecke: A OPEN PARANCS
-
-
-** o be韗醩醰al nyithat egy 鷍 sort a kurzor alatt 閟 v醠that besz鷕 m骴ba **
-
- 1. Mozgassuk a kurzort a ---> kezdet sorra.
-
- 2. o (kicsi) be韗醩醰al nyisson egy sort a kurzor ALATT! Ekkor
- automatikusan besz鷕 (insert) m骴ba ker黮.
-
- 3. M醩olja le a ---> jel sort 閟 <ESC> megnyom醩醰al l閜jen ki
- a besz鷕 m骴b髄.
-
----> Az o lenyom醩a ut醤 a kurzor a k鰒etkez sor elej閚 醠l besz鷕 m骴ban.
-
- 4. A kurzor FELETTI for megnyit醩醜oz egyzser鹐n a nagy O bet鹴 韗jon
-kicsi helyett. Pr骲醠ja ki a k鰒etkez soron!
-Nyisson egy 鷍 sort efelett Shift-O megnyom醩醰al, mialatt a kurzor
-ezen a soron 醠l.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.2. lecke: AZ APPEND PARANCS
-
-
- ** a lenyom醩醰al a kuror UT罭 sz鷕hatunk sz鰒eget. **
-
- 1. Mozgassuk a kurzort a k鰒etkez ---> kezdet sor v間閞e 鷊y,
- hogy norm醠 m骴ban $ 韗 be.
-
- 2. a (kicsi) le黷閟関el sz鰒eget sz鷕hat be AM鯣 a karakter m鰃,
- amelyen a kurzor 醠l.
- (A nagy A az eg閟z sor v間閞e 韗ja a sz鰒eget.)
-
-Megj: A Vimben a sor legv間閞e is lehet 醠lni, azonba ez el鮠j閎en
- a Vi-ban nem lehets間es, ez閞t abban az a n閘k黮 el間 k鰎黮m閚yes
- a sor v間閔ez sz鰒eget 韗ni.
-
- 3. Eg閟z韙se ki az els sort. Vegye 閟zre, hogy az a utas韙醩 (append)
- teljesen egyezik az i-vel (insert) csup醤 a besz鷕t sz鰒eg helye
- k黮鰊b鰖ik.
-
----> Ez a sor lehet鮲 teszi 謓nek, hogy gyakorolja
----> Ez a sor lehet鮲 teszi 謓nek, hogy gyakorolja a sor v間閞e beilleszt閟t.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.3. lecke: AZ 罷蚏罶 M罶IK V罫TOZATA
-
-
- ** Nagy R be韗醩醰al 韗hat fel黮 t鯾b mint egy karaktert. **
-
- 1. Mozgassuk a kurzort az els ---> kezdet sorra!
-
- 2. Place the cursor at the beginning of the first word that is different
- from the second line marked ---> (the word 'last').
-
- 3. Now type R and replace the remainder of the text on the first line by
- typing over the old text to make the first line the same as the second.
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. Note that when you press <ESC> to exit, any unaltered text remains.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.4. lecke: BE罫L蚑罶OK
-
-** 羖l韙suk be, hogy a keres閟 閟 a helyettes韙閟 ne f黦gj鰊 kis/NAGYbet鹝t鮨 **
-
- 1. Keress黭 meg az 'ignore'-t az be韗va:
- /ignore
- Ezt ism閠elj黭 t鯾bsz鰎 az n billenty鹶el
-
- 2. 羖l韙suk be az 'ic' (Ignore case) lehet鮯間et 韌y:
- :set ic
-
- 3. Most keress黱k ism閠 az 'ignore'-ra n-nel
- Ism閠elj黭 meg t鯾bsz鰎 a keres閟t: n
-
- 4. 羖l韙suk be a 'hlsearch' 閟 'incsearch' lehet鮯間eket:
- :set hls is
-
- 5. Most ism閠 韗juk be a keres鮬arancsot, 閟 l醩suk mi t鰎t閚ik:
- /ignore
-
- 6. A kiemel閟t sz黱tess黭 meg al醔bi utas韙醩ok egyik関el:
- :set nohls vagy :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6. LECKE 諷SZEFOGLAL覬A
-
-
- 1. Typing o opens a line BELOW the cursor and places the cursor on the open
- line in Insert mode.
- Typing a capital O opens the line ABOVE the line the cursor is on.
-
- 2. Type an a to insert text AFTER the character the cursor is on.
- Typing a capital A automatically appends text to the end of the line.
-
- 3. Typing a capital R enters Replace mode until <ESC> is pressed to exit.
-
- 4. Typing ":set xxx" sets the option "xxx"
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 7. lecke: ON-LINE HELP PARANCSOK
-
-
- ** Az online s鷊髍endszer haszn醠ata **
-
- A Vim r閟zletes s鷊髒al rendelkezik. Indul醩hoz a k鰒etkez鮧 egyik閠
- tegye:
- - nyomja meg a <HELP> gombot (ha van ilyen)
- - nyomja meg az <F1> gombot (ha van ilyen)
- - 韗ja be: :help <ENTER>
-
- :q <ENTER> be韗醩醰al z醨hatja be a s鷊骯blakot.
-
- Majdnem minden t閙ak鰎r鮨 tal醠hat s鷊髏, argumentum megad醩醰al
- ":help" utas韙醩 . Pr骲醠ja az al醔biakat ki (<ENTER>-t ne felejts黭):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 8. lecke: IND蚑覵ZKRIPT 蚏罶A
-
- ** A Vim lehet鮯間einek be醠l韙醩a **
-
- A Vim rengeteg lehet鮯間gel rendelkezik a Vi-hoz k閜est, de a legt鯾b
- alapb髄 el閞hetetlen. Ahhoz, hogy alapb髄 t鯾b lehet鮯間黱k legyen k閟z韙en黱k
- kell egy "vimrc" f醞lt.
-
- 1. Kezdj黭 el szerkeszteni a "vimrc" f醞lt, ennek m骴ja:
- :edit ~/.vimrc Unixon, Linuxon
- :edit $VIM/_vimrc MS-Windowson
-
- 2. Most sz鷕juk be a p閘da "vimrc" f醞l sz鰒eg閠:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 蛂juk ki a f醞lt:
-
- :write
-
- Legk鰖elebb a Vim szintaxiskiemel閟sel indul.
- Hozz醓dhatja kedvenc be醠l韙醩ait ehhez a "vimrc" f醞lhoz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Itt v間z鮠ik a Vim oktat, melynek a sz醤d閗a egy r鰒id 醫tekint閟 a
- Vimr鮨, amely el間 ahhoz, hogy el間 k鰊nyed閚 kezelj黭 a szerkeszt鮰.
- T醰ol van a teljess間t鮨, mivel a Vimnek sz醡talan tov醔bi utas韙醩a
- van. Ezut醤 a felhaszn醠骾 k閦ik鰊yvet 閞demes elolvasni az angolul
- tud髃nak: ":help user-manual". (egyel鮮e nem tud magyarul)
-
- Tov醔bi magyar olvasnival髃 閞het鮡k el az al醔bi oldalr髄.
- http://ubuntu.hu/index.php?title=Vim
-
- For further reading and studying, this book is recommended:
- Vim - Vi Improved - by Steve Oualline
- Publisher: New Riders
- The first book completely dedicated to Vim. Especially useful for beginners.
- There are many examples and pictures.
- See http://iccf-holland.org/click5.html
-
- This book is older and more about Vi than Vim, but also recommended:
- Learning the Vi Editor - by Linda Lamb
- Publisher: O'Reilly & Associates Inc.
- It is a good book to get to know almost anything you want to do with Vi.
- The sixth edition also includes information on Vim.
-
- This tutorial was written by Michael C. Pierce and Robert K. Ware,
- Colorado School of Mines using ideas supplied by Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
diff --git a/runtime/tutor/tutor.hu.utf-8 b/runtime/tutor/tutor.hu.utf-8
deleted file mode 100644
index b64155ff7..000000000
--- a/runtime/tutor/tutor.hu.utf-8
+++ /dev/null
@@ -1,823 +0,0 @@
-===============================================================================
-= 脺 d v 枚 z 枚 l j 眉 k a V I M T u t o r b a n - 1.5-枚s verzi贸 ===
-===============================================================================
-
- A Vim egy nagyon hat茅kony szerkeszt艖, amelnyek rengeteg utas铆t谩sa
- van, t煤l sok, hogy egy ilyen oktat贸ban (tutorban), mint az itteni
- mindet elmagyar谩zzuk. Ez az oktat贸 arra t枚rekszik, hogy annyit
- elmagyar谩zzon, amennyi el茅g, hogy k枚nnyed茅n haszn谩ljuk a Vim-et, az
- 谩ltal谩nos c茅l煤 sz枚vegszerkeszt艖t.
-
- A feladatok megold谩s谩hoz 25-30 perc sz眉ks茅ges att贸l f眉gg艖en,
- mennyit t枚lt眉nk a kis茅rletez茅ssel.
-
- A leck茅ben szerepl艖 utas铆t谩sok m贸dos铆tani fogj谩k a sz枚vegek.
- K茅sz铆tsen m谩solatot err艖l a f谩jlr贸l, ha gyakorolni akar.
- (Ha "vimtutor"-ral ind铆totta, akkor ez m谩r egy m谩solat.)
-
- Fontos meg茅rteni, hogy ez az oktat贸 cselekedve tan铆ttat.
- Ez azt jelenti, hogy 脰nnek aj谩nlott v茅grehajtania az utas铆t谩sokat,
- hogy megfelel艖en megtanulja azokat. Ha csak olvassa, elfelejti!
-
- Most bizonyosodjon, meg, hogy a Caps-Lock gombja NINCS lenyomva, 茅s
- Nyomja meg megfelel艖 sz谩m煤szor a j gombot, hogy az 1.1-es
- lecke teljesen a k茅perny艖n legyen!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.1. lecke: A KURZOR MOZGAT脕SA
-
-
- ** A kurzor mozgat谩s谩hoz nyomja meg a h,j,k,l gombokat az al谩bbi szerint. **
- ^
- k Tipp: A h billenty疟 van balra, 茅s balra mozgat
- < h l > A l billenty疟 van jobbra, 茅s jobbra mozgat
- j A j billenty疟 olyan, mint egy lefele ny铆l
- v
- 1. Mozgassa a kurzort k枚rbe az ablakban, am铆g hozz谩 nem szokik!
-
- 2. Tartsa lenyomva a lefel茅t (j), akkor ism茅tl艖dik!
----> Most tudja, hogyan mehet a k枚vetkez艖 leck茅re.
-
- 3. A lefel茅 fomb haszn谩lat谩val menjen a 1.2. leck茅re!
-
-Megj: Ha nem biztos benne, mit nyomott meg, nyomja meg az <ESC>-et, hogy
- norm谩l m贸dba ker眉lj枚n, 茅s ism茅telje meg a parancsot!
-
-Megj: A kurzor gomboknak is m疟k枚dni眉k kell, de a hjkl haszn谩lat谩val
- sokkal gyorsabban tud, mozogni, ha hozz谩szokik.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.2. lecke: BE 脡S KIL脡P脡S A VIMB艕L
-
-
- !! MEGJ: Miel艖tt v茅grehajtja az al谩bbi l茅p茅seket, olvassa v茅gig a leck茅t !!
-
- 1. Nyomja meg az <ESC> gombot (hogy biztosan norm谩l m贸dban legyen).
-
- 2. 脥rja: :q! <ENTER>.
-
----> Ezzel kil茅p a szerkeszt艖b艖l a v谩ltoz谩sok MENT脡SE N脡LK脺L.
- Ha menteni szeretn茅 a v谩ltoz谩sokat 茅s kil茅pni, 铆rja:
- :wq <ENTER>
-
- 3. Amikor a shell promptot l谩tja, 铆rja be a parancsot, amely ebbe a
- tutorba hozza:
- Ez val贸sz铆n疟leg: vimtutor <ENTER>
- Norm谩lis esetben ezt 铆rn谩: vim tutor.hu <ENTER>
-
----> 'vim' jelenti a vimbe bel茅p茅st, 'tutor.hu' a f谩jl, amit szerkeszteni k铆v谩n.
-
- 4. Ha megjegyezte a l茅p茅seket 茅s biztos mag谩ban, hajtsa v茅gre a l茅p茅seket
- 1-t艖l 3-ig, hogy kil茅pjen 茅s visszat茅rjen a szerkeszt艖be. Azut谩n
- menjen az 1.3. leck茅re.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.3. lecke: SZ脰VEG SZERKESZT脡SE - T脰RL脡S
-
-
-** Norm谩l m贸dban nyomjon x-et, hogy a kurzor alatti karaktert t枚r枚lje. **
-
- 1. Mozgassa a kurzort a ---> kezdet疟 sorra!
-
- 2. A hib谩k kijav铆t谩s谩hoz mozgassa a kurzort am铆g a t枚rlend艖 karakter
- f枚l茅 nem 茅r.
-
- 3. Nyomja meg az x gombot, hogy t枚r枚lje a nemk铆v谩nt karaktert.
-
- 4. Ism茅telje a 2, 3, 4-es l茅p茅seket, hogy kijav铆tsa a mondatot.
-
----> 艕艕szi 茅jjjell izziik aa galaggonya rruuh谩ja.
-
- 5. Ha a sor helyes, ugorjon a 1.4. leck茅re.
-
-MEGJ: A tanul谩s sor谩n ne memoriz谩lni pr贸b谩ljon, hanem haszn谩lat sor谩n tanuljon.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1.4. lecke: SZ脰VEG SZERKESZT脡SE - BESZ脷R脕S
-
-
- ** Norm谩l m贸dban i megnyom谩s谩val lehet beilleszteni. **
-
- 1. Az al谩bbi els艖 ---> kezdet疟 sorra menjen.
-
- 2. Ahhoz, hogy az els艖t azonoss谩 tegye a m谩sodikkal, mozgassa a kurzort
- az els艖 karakterre, amely UT脕N sz枚veget kell besz煤rni.
-
- 3. Nyomjon i-t 茅s 铆rja be a megfelel艖 sz枚veget.
-
- 4. Amikor mindent be铆rt, nyomjon <ESC>-et, hogy Norm谩l m贸dba visszat茅rjen.
- Ism茅telje a 2 茅s 4 k枚z枚tti l茅p茅seket, hogy kijav铆tsa a mondatot.
-
----> Az 谩that贸 so贸l hizik p谩r 茅sz.
----> Az itt l谩that贸 sorb贸l hi谩nyzik p谩r r茅sz.
-
- 5. Ha m谩r begyakorolta a besz煤r谩st, menjen az al谩bbi 枚sszefoglal贸ra.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1. LECKE 脰SSZEFOGLAL脫JA
-
-
- 1. A kurzort vagy a nyilakkal vagy a hjkl gombokkal mozgathatja.
- h (balra) j (le) k (fel) l (jobbra)
-
- 2. A Vimbe (a $ promptt贸l) 铆gy l茅phet be: vim FILENAME <ENTER>
-
- 3. A Vimb艖l 铆gy l茅phet ki: <ESC> :q! <ENTER> a v谩ltoztat谩sok eldob谩s谩val.
- vagy 铆gy: <ESC> :wq <ENTER> a v谩ltoz谩sok ment茅s茅vel.
-
- 4. A kurzor alatti karakter t枚rl茅se norm谩l m贸dban: x
-
- 5. Sz枚veg besz煤r谩sa a kurzor ut谩n norm谩l m贸dban:
- i g茅pelje be a sz枚veget <ESC>
-
-MEGJ: Az <ESC> megnyom谩sa norm谩l m贸dba viszi, vagy megszak铆t egy nem befejezett
- r茅szben befejezett parancsot.
-
-Most folytassuk a 2. leck茅vel!
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.1. lecke: T脰RL艕 UTAS脥T脕SOK
-
-
- ** dw t枚r枚l a sz贸 v茅g茅ig. **
-
- 1. Nyomjon <ESC>-et, hogy megbizonyosodjon, hogy norm谩l m贸dban van!
-
- 2. Mozgassa a kurzort a ---> kezdet疟 sorra!
-
- 3. Mozgassa a kurzort arra annak a sz贸nak az elej茅re, amit t枚r枚lni szeretne.
- T枚r枚lje az 谩llatokat a mondatb贸l.
-
- 4. A sz贸 t枚rl茅s茅hez 铆rja: dw
-
- MEGJ: Ha rosszul kezdte az utas铆t谩st csak nyomjon <ESC> gombot
- a megszak铆t谩s谩hoz.
-
----> P谩r sz贸 kutya nem uhu illik pingvin a mondatba teh茅n.
-
- 5. Ism茅telje a 3 茅s 4 k枚z枚tti utas铆t谩sokat am铆g kell 茅s ugorjon a 2.2 leck茅re!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.2. lecke: M脡G T脰BB T脰RL艕 UTAS脥T脕S
-
-
- ** d$ be铆r谩s谩val a sor v茅g茅ig t枚r枚lhet. **
-
- 1. Nyomjon <ESC>-et, hogy megbizonyosodjon, hogy norm谩l m贸dban van!
-
- 2. Mozgassa a kurzort a ---> kezdet疟 sorra!
-
- 3. Mozgassa a kurzort a helyes sor v茅g茅re (az els艖 . UT脕N)!
-
- 4. d$ beg茅pel茅s茅velt枚r枚lje a sor v茅g茅t!
-
----> Valaki a sor v茅g茅t k茅tszer g茅pelte be. k茅tszer g茅pelte be.
-
-
- 5. Menjen a 2.3. leck茅re, hogy meg茅rtse mi t枚rt茅nt!
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.3. lecke: UTAS脥T脕SOKR脫L 脡S OBJEKTUMOKR脫L
-
-
- A d (delete=t枚rl茅s) utas铆t谩s form谩ja a k枚vetkez艖:
-
- [sz谩m] d objektum VAGY d [sz谩m] objektum
- Ahol:
- sz谩m - h谩nyszor hajt贸djon v茅gre a parancs (elhagyhat贸, alap茅rt茅k=1).
- d - a t枚rl茅s (delete) utas铆t谩s.
- objektum - amin a parancsnak teljes眉lnie kell (al谩bb list谩zva).
-
- Objektumok r枚vid list谩ja:
- w - a kurzort贸l a sz贸 v茅g茅ig, bele茅rtve a sz贸k枚zt.
- e - a kurzort贸l a sz贸 v茅g茅ig, NEM bele茅rtve a sz贸k枚zt.
- $ - a kurzort贸l a sor v茅g茅ig.
-
-MEGJ: V谩llalkoz贸bbak kedv茅茅rt, csup谩n az objektum beg茅pel茅s茅vel parancs n茅lk眉l
- a kurzor oda ker眉l, amit az objektumlista megad.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.4. lecke: EGY KIV脡TEL A 'PARANCSOBJEKTUM' AL脫L
-
-
- ** dd be铆r谩s谩val t枚r枚lheti az eg茅sz sort. **
-
- A teljes sor t枚rl茅s茅nek gyakoris谩ga miatt a Vi tervez艖i elhat谩rozt谩k,
- hogy k枚nnyebb lenne csup谩n a d-t k茅tszer megnyomni, hogy egy sort t枚r枚lj眉nk.
-
- 1. Mozgassa a kurzort az al谩bbi kifejez茅sek m谩sodik sor谩ra!
- 2. dd beg茅pel茅s茅vel t枚r枚lje a sort!
- 3. Menjen a 4. (eredetileg 5.) sorra!
- 4. 2dd (ugyeb谩r sz谩m-utas铆t谩s-objektum) beg茅pel茅s茅vel t枚r枚lj枚n k茅t sort!
-
- 1) Alv贸 szegek a j茅ghideg homokban,
- 2) - kezdi a k枚lt艖 -
- 3) Plak谩tmag谩nyban 谩z贸 茅jjelek.
- 4) Pingvinek ne f茅ljetek,
- 5) T谩volr贸l egy vaku villant,
- 6) 脡gve hagytad a folyos贸n a villanyt.
- 7) Ma ontj谩k v茅remet.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2.5. lecke: A VISSZAVON脕S (UNDO) PARANCS
-
-
-** u g茅pel茅s茅vel visszavonhat贸 az utols贸 parancs, U az eg茅sz sort helyre谩ll铆tja. **
-
- 1. Menj眉nk az al谩bbi ---> kezdet疟 sor els艖 hib谩j谩ra!
- 2. x lenyom谩s谩val t枚r枚lje az els艖 felesleges karaktert!
- 3. u megnyom谩s谩val vonja vissza az utols贸nak v茅grehajtott utas铆t谩st!
- 4. M谩sodj谩ra jav铆tson ki minden hib谩t a sorben az x utas铆t谩ssal!
- 5. Most nagy U -val 谩ll铆tsa vissza a sor eredeti 谩llapot谩t!
- 6. Nyomja meg az u gombot p谩rszor, hogy az U 茅s sz el艖z艖 utas铆t谩sokat
- vissza谩ll铆tsa!
- 7. CTRL-R (CTRL gomb lenyom谩sa mellett 眉ss枚n R-t) p谩rszor csin谩lja 煤jra a
- visszavont parancsokat (redo)!
-
----> Jav铆铆tsd a hhib谩kaat ebbben a sooorban majd 谩ll铆tsa visszaaa az eredetit.
-
- 8. Ezek nagyon hasznos parancsok. Most ugarjon a 2. lecke 枚sszefoglal贸j谩ra.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 2. LECKE 脰SSZEFOGLAL脫JA
-
-
- 1. T枚rl茅s a kurzort贸l a sz贸 v茅g茅ig: dw
-
- 2. T枚rl茅s a kurzort贸l a sz贸 v茅g茅ig: d$
-
- 3. Eg茅sz sor t枚rl茅se: dd
-
- 4. Egy utas铆t谩s alakja norm谩l m贸dban:
-
- [sz谩m] utas铆t谩s objektum VAGY utas铆t谩s [sz谩m] objektum
- ahol:
- sz谩m - h谩nyszor ism茅telj眉k a parancsot
- utas铆t谩s - mit tegy眉nk, pl. d a t枚rl茅skor
- objektum - mire hasson az utas铆t谩s, p茅ld谩ul w (sz贸=word),
- $ (a sor v茅g茅ig), stb.
-
- 5. Az el艖z艖 tett visszavon谩sa (undo): u (kis u)
- A sor 枚sszes v谩ltoz谩s谩nak visszavon谩sa: U (nagy U)
- Visszavon谩sok visszavon谩sa: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.1. lecke: A PUT PARANCS
-
-
- ** p le眉t茅s茅vel az utols贸nak t枚r枚ltet a kurzor ut谩n illeszhetj眉k. **
-
- 1. Mozgassuk a kurzort az al谩bbi sorok els艖 sor谩ra.
-
- 2. dd le眉t茅s茅vel t枚r枚lj眉k a sort 茅s elt茅rol贸dik a Vim puffer茅ben.
-
- 3. Mozgassuk a kurzort AF脰L脡 a sor f枚l茅, ahov谩 mozgatni szeretn茅nk a
- t枚r枚lt sort.
-
- 4. Norm谩l m贸dban 铆rjunk p bet疟t a t枚r枚lt sor beilleszt茅s茅hez.
-
- 5. Folytassuk a 2-4. utas铆t谩sokkal hogy a helyes sorrendet kapjuk.
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.2. lecke: A REPLACE PARANCS
-
-
-** r 茅s a karakterek le眉t茅s茅vel a kurzor alatti karaktert megv谩ltoztatjuk. **
-
- 1. Mozgassuk a kurzort az els艖 ---> kezdet疟 sorra!
-
- 2. Mozgassuk a kurzort az els艖 hiba f枚l茅!
-
- 3. r majd a k铆v谩nt karakter le眉t茅s茅vel v谩ltoztassuk meg a hib谩sat!
-
- 4. A 2. 茅s 3. l茅p茅sekkel jav铆tsuk az 枚sszes hib谩t!
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. Menj眉nk a 3.2. leck茅re!
-
-MEGJ: Eml茅kezzen, hogy nem memoriz谩l谩ssal, hanem gyakorl谩ssal tanuljon.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.3. lecke: A CHANGE PARANCS
-
-
- ** A sz贸 egy r茅sz茅nek megv谩ltoztat谩s谩hoz 铆rjuk: cw . **
-
- 1. Mozgassuk a kurzort az els艖 ---> kezdet疟 sorra!
-
- 2. Vigye a kurzort a Ezen sz贸 z bet疟je f枚l茅!
-
- 3. cw 茅s a helyes sz贸r茅sz (itt 'bben') be铆r谩s谩val jav铆tsa a sz贸t!
-
- 4. <ESC> lenyom谩sa ut谩n a k枚vetkez艖 hib谩ra ugorjon (az els艖 cser茅lend艖
- karakterre)!
-
- 5. A 3. 茅s 4. l茅p茅sek ism茅tl茅s茅vel az els艖 mondatot tegye a m谩sodikkal
- azonoss谩!
-
----> Ezen a sorrrrr p谩r sz贸ra meg kell v谩ltozzanak a change utask铆r茅s艖.
----> Ebben a sorban p谩r sz贸t meg kell v谩ltoztatni a change utas铆t谩ssal.
-
-Vegy眉k 茅szre, hogy a cw nem csak a sz贸t 铆rja 谩t, hanem besz煤r贸
-(insert) m贸dba v谩lt.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3.4. lecke: T脰BBF脡LE V脕LTOZTAT脕S c-VEL
-
-
- ** A c utas铆t谩s haszn谩lhat贸 ugyanazokkal az objektumokkal mint a t枚rl茅s **
-
- 1. A change utas铆t谩s a t枚rl茅ssel azonosan viselkedik. A forma:
-
- [sz谩m] c objektum OR c [sz谩m] objektum
-
- 2. Az objektumok is azonosak, pl. w (sz贸), $ (sorv茅g), stb.
-
- 3. Mozgassuk a kurzort az els艖 ---> kezdet疟 sorra!
-
- 4. Menj眉nk az els艖 hib谩ra!
-
- 5. c$ beg茅pel茅s茅vel a sorv茅geket tegy眉k azonoss谩 茅s nyomjunk <ESC>-et!
-
----> Ennek a sornak a v茅ge kiigaz铆t谩sra szorul, hogy megegyezzen a m谩sodikkal.
----> Ennek a sornak a v茅ge a c$ paranccsal v谩ltoztathat贸 meg.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3. LECKE 脰SSZEFOGLAL脫JA
-
-
- 1. A m谩r t枚r枚lt sort beilleszt茅s茅hez nyomjunk p-t. Ez a t枚r枚lt sz枚veget
- a kurzor UT脕N helyezi (ha sor ker眉lt t枚rl茅sre, a kurzor allatti sorba).
-
- 2. A kurzor alatti karakter 谩t铆r谩s谩hoz az r-et 茅s azt a karaktert
- nyomjuk, amellyel az eredetit fel眉l szeretn茅nk 铆rni.
-
- 3. A v谩ltoztat谩s (c) utas铆t谩s a karaktert艖l az objektum v茅g茅ig
- v谩ltoztatja meg az objektumot. P茅ld谩ul a cw a kurzort贸l a sz贸 v茅g茅ig,
- a c$ a sor v茅g茅ig.
-
- 4. A v谩ltoztat谩s form谩tuma:
-
- [sz谩m] c objektum VAGY c [sz谩m] objektum
-
-Ugorjunk a k枚vetkez艖 leck茅re!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.1. lecke: HELY 脡S F脕JL脕LLAPOT
-
-
- ** CTRL-g megnyom谩s谩val megn茅zhetj眉k a hely眉nket a f谩jlban 茅s a f谩jl 谩llapot谩t.
- SHIFT-G le眉t茅s茅vel a f谩jl adott sor谩ra ugorhatunk. **
-
- Megj: Olvassuk el az eg茅sz leck茅t a l茅p茅sek v茅grehajt谩sa el艖tt!!
-
- 1. Tartsuk nyomva a Ctrl gombot 茅s nyomjunk g-t. Az 谩llapotsor
- megjelenik a lap alj谩n a f谩jln茅vvel 茅s az aktu谩lis sor sorsz谩m谩val.
- Jegyezz眉k meg a sorsz谩mot a 3. l茅p茅shez!
-
- 2. Nyomjunk Shift-G-t a lap alj谩ra ugr谩shoz!
-
- 3. 脺ss眉k be az eredeti sor sz谩m谩t, majd 眉ss眉nk shift-G-t! Ezzel
- visszajutunk az eredeti sorra ahol Ctrl-g-t nyomtunk.
- (A be铆rt sz谩m NEM fog megjelenni a k茅perny艖n.)
-
- 4. Ha megjegyezte a feladatot, hajtsa v茅gre az 1-3. l茅p茅seket!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.2. lecke: A SEARCH PARANCS
-
-
- ** / majd a k铆v谩nt kifejez茅s be铆r谩s谩val kereshetj眉k meg a kifejez茅st. **
-
- 1. Norm谩l m贸dban 眉ss眉nk / karaktert! Ez 茅s a kurzor megjelenik
- a k茅perny艖 alj谩n, ahogy a : utas铆t谩s is.
-
- 2. 脥rjuk be: 'hiibaa' <ENTER>! Ez az a sz贸 amit keres眉nk.
-
- 3. A kifejez茅s 煤jabb keres茅s茅hez 眉ss眉k le egyszer疟en: n .
- A kifejez茅s ellenkez艖 ir谩nyban t枚rt茅n艖 keres茅s茅hez ezt 眉ss眉k be: Shift-N .
-
- 4. Ha visszafel茅 szeretne keresni, akkor ? kell a ! helyett.
-
----> "hiibaa" nem a helyes m贸dja a hiba le铆r谩s谩nak; a hiibaa egy hiba.
-
-Megj: Ha a keres茅s el茅ri a f谩jl v茅g茅t, akkor az elej茅n kezdi.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.3. lecke: Z脕R脫JELEK P脕RJ脕NAK KERES脡SE
-
-
- ** % le眉t茅s茅vel megtal谩ljuk a ),], vagy } p谩rj谩t. **
-
- 1. Helyezze a kurzort valamelyik (, [, vagy { z谩r贸jelre a ---> kezdet疟
- sorban!
-
- 2. 脺ss枚n % karaktert!
-
- 3. A kurzor a z谩r贸jel p谩rj谩ra fog ugrani.
-
- 4. % le眉t茅s茅vel visszaugrik az eredeti z谩r贸jelre.
-
----> Ez ( egy tesztsor (-ekkel, [-ekkel ] 茅s {-ekkel } a sorban. ))
-
-Megj: Ez nagyon hasznos, ha olyan programot debugolunk, amelyben a
- z谩r贸jelek nem p谩rosak!
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4.4. lecke: A HIB脕K KIJAV脥T脕S脕NAK EGY M脫DJA
-
-
- ** :s/煤j/r茅gi/g beg茅pel茅s茅vel az '煤j'-ra cser茅lj眉k a 'r茅gi'-t. **
-
- 1. Menj眉nk a ---> kezdet疟 sorra!
-
- 2. 脥rjuk be: :s/eggy/egy <ENTER> . Ekkor csak az els艖 v谩ltozik meg a
- sorban.
-
- 3. Most ezt 铆rjuk: :s/eggy/egg/g amely glob谩lisan helyettes铆t
- a sorban.
- Ez a sorban minden el艖fordul谩st helyettes铆t.
-
----> eggy hegy meggy, szembe j枚n eggy m谩sik heggy.
-
- 4. K茅t sor k枚z枚tt a karaktersor minden el艖fordul谩s谩nak helyettes铆t茅se:
- :#,#s/r茅gi/煤j/g ahol #,# a k茅t sor sorsz谩ma.
- :%s/r茅gi/煤j/g a f谩jlbeli 枚sszes el艖fordul谩s helyettes铆t茅se.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 4. LECKE 脰SSZEFOGLAL脫JA
-
-
- 1. Ctrl-g ki铆rja az kurzor hely茅t a f谩jlban 茅s a f谩jl 谩llapot谩t.
- Shift-G a f谩jl v茅g茅re megy, gg az elej茅re. Egy sz谩m ut谩n
- Shift-G az adott sz谩m煤 sorra ugrik.
-
- 2. / ut谩n egy kifejez茅s EL艕REFELE keresi a kifejez茅st.
- 2. ? ut谩n egy kifejez茅s VISSZAFELE keresi a kifejez茅st.
- Egy keres茅s ut谩n az n a k枚vetkez艖 el艖fordul谩st keresi azonos ir谩nyban
- Shift-N az ellenkez艖 ir谩nyban keres.
-
- 3. % beg茅pel茅s茅vel, ha (,),[,],{, vagy } karakteren vagyunk a z谩r贸jel
- p谩rj谩ra ugrik.
-
- 4. az els艖 r茅gi helyettes铆t茅se 煤jjal a sorban :s/r茅gi/煤j
- az 枚sszes r茅gi helyettes铆t茅se 煤jjal a sorban :s/r茅gi/煤j/g
- k茅t sor k枚z枚tti kifejez茅sekre :#,#s/r茅gi/煤j/g
- # hely茅n az aktu谩lis sor (.) 茅s az utols贸 ($) is 谩llhat :.,$/r茅gi/煤j/g
- A f谩jlbeli 枚sszes el艖fordul谩s helyettes铆t茅se :%s/r茅gi/煤j/g
- Mindenkori meger艖s铆t茅sre v谩r 'c' hat谩s谩ra :%s/r茅gi/煤j/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.1. lecke: K脺LS艕 PARANCS V脡GREHAJT脕SA
-
-
- ** :! ut谩n k眉ls艖 parancsot 铆rva v茅grehajt贸dik a parancs. **
-
- 1. 脥rjuk be az ismer艖s : parancsot, hogy a kurzort a k茅perny艖 alj谩ra
- helyezz眉k. Ez lehet艖v茅 teszi egy parancs be铆r谩s谩t.
-
- 2. ! (felki谩lt贸jel) be铆r谩s谩val tegy眉k lehet艖v茅 k眉ls艖 h茅j (shell)-parancs
- v茅grehajt谩s谩t.
-
- 3. 脥rjunk p茅ld谩ul ls parancsot a ! ut谩n majd 眉ss眉nk <ENTER>-t. Ez ki
- fogja list谩zni a k枚nyvt谩runkat ugyan煤gy, mintha a shell promptn谩l
- lenn茅nk. Vagy 铆rja ezt :!dir ha az ls nem m疟k枚dik.
-
-Megj: Ilym贸don b谩rmely k眉ls艖 utas铆t谩s v茅grehajthat贸.
-
-Megj: Minden : parancs ut谩n <ENTER>-t kell 眉tni.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.2. lecke: B艕VEBBEN A F脕JLOK 脥R脕S脕R脫L
-
-
- ** A f谩jlok v谩ltoz谩sait 铆gy 铆rhatjuk ki :w F脕JLN脡V. **
-
- 1. :!dir vagy :!ls be铆r谩s谩val list谩zzuk a k枚nyvt谩runkat!
- 脰n m谩r tudja, hogy <ENTER>-t kell 眉tnie ut谩na.
-
- 2. V谩lasszon egy f谩jlnevet, amely m茅g nem l茅tezik pl. TESZT!
-
- 3. 脥rja: :w TESZT (ahol TESZT a v谩lasztott f谩jln茅v)!
-
- 4. Ez elmenti a teljes f谩jlt (a Vim Tutort) TESZT n茅ven.
- Ellen艖rz茅sk茅pp 铆rjuk ism茅t :!dir hogy l谩ssuk a k枚nyvt谩rat!
- (Felfel茅 gombbal : ut谩n az el艖z艖 utas铆t谩sok visszahozhat贸ak.)
-
-Megj: Ha 脰n kil茅pne a Vimb艖l 茅s 茅s visszat茅rne a TESZT f谩jln茅vvel, akkor a
- f谩jl a tutor ment茅skori pontos m谩solata lenne.
-
- 5. T谩vol铆tsa el a f谩jlt (MS-DOS): :!del TESZT
- vagy (Unix): :!rm TESZT
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.3. lecke: EGY KIV脕LASZTOTT R脡SZ KI脥R脕SA
-
-
- ** A f谩jl egy r茅sz茅nek ki铆r谩s谩hoz 铆rja :#,# w F脕JLN脡V **
-
- 1. :!dir vagy :!ls be铆r谩s谩val list谩zza a k枚nyvt谩rat, 茅s v谩lasszon egy
- megfelel艖 f谩jlnevet, pl. TESZT.
-
- 2. Mozgassa a kurzort ennek az oldalnak a tetej茅re, 茅s nyomjon
- Ctrl-g-t, hogy megtudja a sorsz谩mot. JEGYEZZE MEG A SZ脕MOT!
-
- 3. Most menjen a lap alj谩ra, 茅s 眉sse be ism茅t: Ctrl-g. EZT A SZ脕MOT
- IS JEGYEZZE MEG!
-
- 4. Ha csak ezt a r茅sz茅t szeretn茅 menteni a f谩jlnak, 铆rja :#,# w TESZT
- ahol #,# a k茅t sorsz谩m, amit megjegyzett, TESZT az 脰n f谩jlneve.
-
- 5. Ism茅t n茅zze meg, hogy a f谩jl ott van (:!dir) de NE t枚r枚lje.
-
- 6. Vimben l茅tezik egy m谩sik lehet艖s茅g: nyomja meg a Shift-V gombp谩rt
- az els艖 menteni k铆v谩nt soron, majd menjen le az utols贸ra, ezut谩n
- 铆rja :w TESZT2 Ekkor a TESZT2 f谩jlba ker眉l a kijel枚lt r茅sz.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5.4. lecke: RETRIEVING AND MERGING FILES
-
-
- ** Egy f谩jl tartalm谩nak beilleszt茅s茅hez 铆rja :r F脕JLN脡V **
-
- 1. :!dir be铆r谩s谩val n茅zze meg, hogy az 脰n TESZT f谩jlja l茅tezik m茅g.
-
- 2. Helyezze a kurzort ennek az oldalnak a tetej茅re.
-
-MEGJ: A 3. l茅p茅s ut谩n az 5.3. leck茅t fogja l谩tni. Azut谩n LEFEL脡 indulva
- keresse meg ism茅t ezt a leck茅t.
-
- 3. Most sz煤rja be a TESZT nev疟 f谩jlt a :r TESZT paranccsal, ahol
- TESZT az 脰n f谩jlj茅nak a neve.
-
-MEGJ: A f谩jl, amit beillesztett a kurzora alatt helyezkedik el.
-
- 4. Hogy ellen艖rizz眉k, hogy a f谩jlt t茅nyleg beillsztett眉k, menjen
- vissza, 茅s n茅zze meg, hogy k茅tszer szerepel az 5.3. lecke! Az eredeti
- mellett a f谩jlb贸l bem谩solt is ott van.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 5. LECKE 脰SSZEFOGLAL脫JA
-
-
- 1. :!parancs v茅grehajt egy k眉ls艖 utas铆t谩st.
-
- P谩r hasznos p茅lda:
- (MS-DOS) (Unix)
- :!dir :!ls - k枚nyvt谩rlista ki铆r谩sa.
- :!del F脕JLN脡V :!rm F脕JLN脡V - F脕JLN脡V nev疟 f谩jl t枚rl茅se.
-
- 2. :w F脕JLN脡V ki铆rja a jelenlegi Vim-f谩jlt a lemezre F脕JN脡V n茅ven.
-
- 3. :#,#w F脕JLN脡V ki铆rja a k茅t sorsz谩m (#) k枚z枚tti sorokat F脕JLN脡V-be
- M谩sik lehet艖s茅g, hogy a kezd艖sorn谩l Ctrl-v-t nyom lemegy az utols贸
- sorra, majd ezt 眉ti be :w F脕JLN脡V
-
- 4. :r F脕JLN脡V beolvassa a F脕JLN脡V f谩jlt 茅s behelyezi a jelenlegi f谩jlba
- a kurzorpozici贸 ut谩ni sorba.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.1. lecke: A OPEN PARANCS
-
-
-** o be铆r谩s谩val nyithat egy 煤j sort a kurzor alatt 茅s v谩lthat besz煤r贸 m贸dba **
-
- 1. Mozgassuk a kurzort a ---> kezdet疟 sorra.
-
- 2. o (kicsi) be铆r谩s谩val nyisson egy sort a kurzor ALATT! Ekkor
- automatikusan besz煤r贸 (insert) m贸dba ker眉l.
-
- 3. M谩solja le a ---> jel疟 sort 茅s <ESC> megnyom谩s谩val l茅pjen ki
- a besz煤r贸 m贸db贸l.
-
----> Az o lenyom谩sa ut谩n a kurzor a k枚vetkez艖 sor elej茅n 谩ll besz煤r贸 m贸dban.
-
- 4. A kurzor FELETTI for megnyit谩s谩hoz egyzser疟en a nagy O bet疟t 铆rjon
-kicsi helyett. Pr贸b谩lja ki a k枚vetkez艖 soron!
-Nyisson egy 煤j sort efelett Shift-O megnyom谩s谩val, mialatt a kurzor
-ezen a soron 谩ll.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.2. lecke: AZ APPEND PARANCS
-
-
- ** a lenyom谩s谩val a kuror UT脕N sz煤rhatunk sz枚veget. **
-
- 1. Mozgassuk a kurzort a k枚vetkez艖 ---> kezdet疟 sor v茅g茅re 煤gy,
- hogy norm谩l m贸dban $ 铆r be.
-
- 2. a (kicsi) le眉t茅s茅vel sz枚veget sz煤rhat be AM枚G脡 a karakter m枚g茅,
- amelyen a kurzor 谩ll.
- (A nagy A az eg茅sz sor v茅g茅re 铆rja a sz枚veget.)
-
-Megj: A Vimben a sor legv茅g茅re is lehet 谩llni, azonba ez el艖dj茅ben
- a Vi-ban nem lehets茅ges, ez茅rt abban az a n茅lk眉l el茅g k枚r眉lm茅nyes
- a sor v茅g茅hez sz枚veget 铆rni.
-
- 3. Eg茅sz铆tse ki az els艖 sort. Vegye 茅szre, hogy az a utas铆t谩s (append)
- teljesen egyezik az i-vel (insert) csup谩n a besz煤rt sz枚veg helye
- k眉l枚nb枚zik.
-
----> Ez a sor lehet艖v茅 teszi 脰nnek, hogy gyakorolja
----> Ez a sor lehet艖v茅 teszi 脰nnek, hogy gyakorolja a sor v茅g茅re beilleszt茅st.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.3. lecke: AZ 脕T脥R脕S M脕SIK V脕LTOZATA
-
-
- ** Nagy R be铆r谩s谩val 铆rhat fel眉l t枚bb mint egy karaktert. **
-
- 1. Mozgassuk a kurzort az els艖 ---> kezdet疟 sorra!
-
- 2. Place the cursor at the beginning of the first word that is different
- from the second line marked ---> (the word 'last').
-
- 3. Now type R and replace the remainder of the text on the first line by
- typing over the old text to make the first line the same as the second.
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. Note that when you press <ESC> to exit, any unaltered text remains.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6.4. lecke: BE脕LL脥T脕SOK
-
-** 脕ll铆tsuk be, hogy a keres茅s 茅s a helyettes铆t茅s ne f眉ggj枚n kis/NAGYbet疟kt艖l **
-
- 1. Keress眉k meg az 'ignore'-t az be铆rva:
- /ignore
- Ezt ism茅telj眉k t枚bbsz枚r az n billenty疟vel
-
- 2. 脕ll铆tsuk be az 'ic' (Ignore case) lehet艖s茅get 铆gy:
- :set ic
-
- 3. Most keress眉nk ism茅t az 'ignore'-ra n-nel
- Ism茅telj眉k meg t枚bbsz枚r a keres茅st: n
-
- 4. 脕ll铆tsuk be a 'hlsearch' 茅s 'incsearch' lehet艖s茅geket:
- :set hls is
-
- 5. Most ism茅t 铆rjuk be a keres艖parancsot, 茅s l谩ssuk mi t枚rt茅nik:
- /ignore
-
- 6. A kiemel茅st sz眉ntess眉k meg al谩bbi utas铆t谩sok egyik茅vel:
- :set nohls vagy :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 6. LECKE 脰SSZEFOGLAL脫JA
-
-
- 1. Typing o opens a line BELOW the cursor and places the cursor on the open
- line in Insert mode.
- Typing a capital O opens the line ABOVE the line the cursor is on.
-
- 2. Type an a to insert text AFTER the character the cursor is on.
- Typing a capital A automatically appends text to the end of the line.
-
- 3. Typing a capital R enters Replace mode until <ESC> is pressed to exit.
-
- 4. Typing ":set xxx" sets the option "xxx"
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 7. lecke: ON-LINE HELP PARANCSOK
-
-
- ** Az online s煤g贸rendszer haszn谩lata **
-
- A Vim r茅szletes s煤g贸val rendelkezik. Indul谩shoz a k枚vetkez艖k egyik茅t
- tegye:
- - nyomja meg a <HELP> gombot (ha van ilyen)
- - nyomja meg az <F1> gombot (ha van ilyen)
- - 铆rja be: :help <ENTER>
-
- :q <ENTER> be铆r谩s谩val z谩rhatja be a s煤g贸ablakot.
-
- Majdnem minden t茅mak枚rr艖l tal谩lhat s煤g贸t, argumentum megad谩s谩val
- ":help" utas铆t谩s . Pr贸b谩lja az al谩bbiakat ki (<ENTER>-t ne felejts眉k):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 8. lecke: IND脥T脫SZKRIPT 脥R脕SA
-
- ** A Vim lehet艖s茅geinek be谩ll铆t谩sa **
-
- A Vim rengeteg lehet艖s茅ggel rendelkezik a Vi-hoz k茅pest, de a legt枚bb
- alapb贸l el茅rhetetlen. Ahhoz, hogy alapb贸l t枚bb lehet艖s茅g眉nk legyen k茅sz铆ten眉nk
- kell egy "vimrc" f谩jlt.
-
- 1. Kezdj眉k el szerkeszteni a "vimrc" f谩jlt, ennek m贸dja:
- :edit ~/.vimrc Unixon, Linuxon
- :edit $VIM/_vimrc MS-Windowson
-
- 2. Most sz煤rjuk be a p茅lda "vimrc" f谩jl sz枚veg茅t:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 脥rjuk ki a f谩jlt:
-
- :write
-
- Legk枚zelebb a Vim szintaxiskiemel茅ssel indul.
- Hozz谩adhatja kedvenc be谩ll铆t谩sait ehhez a "vimrc" f谩jlhoz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Itt v茅gz艖dik a Vim oktat贸, melynek a sz谩nd茅ka egy r枚vid 谩ttekint茅s a
- Vimr艖l, amely el茅g ahhoz, hogy el茅g k枚nnyed茅n kezelj眉k a szerkeszt艖t.
- T谩vol van a teljess茅gt艖l, mivel a Vimnek sz谩mtalan tov谩bbi utas铆t谩sa
- van. Ezut谩n a felhaszn谩l贸i k茅zik枚nyvet 茅rdemes elolvasni az angolul
- tud贸knak: ":help user-manual". (egyel艖re nem tud magyarul)
-
- Tov谩bbi magyar olvasnival贸k 茅rhet艖ek el az al谩bbi oldalr贸l.
- http://ubuntu.hu/index.php?title=Vim
-
- For further reading and studying, this book is recommended:
- Vim - Vi Improved - by Steve Oualline
- Publisher: New Riders
- The first book completely dedicated to Vim. Especially useful for beginners.
- There are many examples and pictures.
- See http://iccf-holland.org/click5.html
-
- This book is older and more about Vi than Vim, but also recommended:
- Learning the Vi Editor - by Linda Lamb
- Publisher: O'Reilly & Associates Inc.
- It is a good book to get to know almost anything you want to do with Vi.
- The sixth edition also includes information on Vim.
-
- This tutorial was written by Michael C. Pierce and Robert K. Ware,
- Colorado School of Mines using ideas supplied by Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
diff --git a/runtime/tutor/tutor.info b/runtime/tutor/tutor.info
deleted file mode 100644
index dccf4be6f..000000000
--- a/runtime/tutor/tutor.info
+++ /dev/null
Binary files differ
diff --git a/runtime/tutor/tutor.it b/runtime/tutor/tutor.it
deleted file mode 100644
index b1f6798d0..000000000
--- a/runtime/tutor/tutor.it
+++ /dev/null
@@ -1,967 +0,0 @@
-===============================================================================
-= Benvenuto alla G u i d a all'Editor V I M - Versione 1.7 =
-===============================================================================
-
- Vim un Editor molto potente ed ha parecchi comandi, troppi per
- spiegarli tutti in una guida come questa. Questa guida serve a
- descrivere quei comandi che ti permettono di usare facilmente
- Vim come Editor di uso generale.
-
- Il tempo necessario per completare la guida circa 25-30 minuti,
- a seconda di quanto tempo dedichi alla sperimentazione.
-
- ATTENZIONE!
- I comandi nelle lezioni modificano questo testo. Fai una copia di questo
- file per esercitarti (se hai usato "vimtutor", stai gi usando una copia).
-
- E' importante non scordare che questa guida vuole insegnare tramite
- l'uso. Questo vuol dire che devi eseguire i comandi per impararli
- davvero. Se leggi il testo e basta, dimenticherai presto i comandi!
-
- Adesso, assicurati che il tasto BLOCCA-MAIUSCOLO non sia schiacciato
- e premi il tasto j tanto da muovere il cursore fino a che la
- Lezione 1.1 riempia completamente lo schermo.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1.1: MOVIMENTI DEL CURSORE
-
-
- ** Per muovere il cursore, premi i tasti h,j,k,l come indicato. **
- ^
- k NOTA: Il tasto h a sinistra e muove a sinistra.
- < h l > Il tasto l a destra e muove a destra.
- j Il tasto j ricorda una freccia in gi.
- v
- 1. Muovi il cursore sullo schermo finch non ti senti a tuo agio.
-
- 2. Tieni schiacciato il tasto "gi" (j) finch non si ripete il movimento.
- Adesso sai come arrivare fino alla lezione seguente.
-
- 3. Usando il tasto "gi" spostati alla Lezione 1.2.
-
-NOTA: Quando non sei sicuro del tasto che hai premuto, premi <ESC> per andare
- in Modalit Normale [Normal Mode]. Poi ri-immetti il comando che volevi.
-
-NOTA: I tasti con le frecce fanno lo stesso servizio. Ma usando hjkl riesci
- a muoverti molto pi rapidamente, dopo che ci si abitua. Davvero!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1.2: USCIRE DA VIM
-
-
- !! NOTA: Prima di eseguire quanto richiesto, leggi la Lezione per intero!!
-
- 1. Premi il tasto <ESC> (per assicurarti di essere in Modalit Normale).
-
- 2. Batti: :q! <INVIO>.
- Cos esci dall'Editor SCARTANDO qualsiasi modifica fatta.
-
- 3. Quando vedi il PROMPT della Shell, batti il comando con cui sei arrivato
- qui. Sarebbe: vimtutor <INVIO>
-
- 4. Se hai memorizzato questi comandi e ti senti pronto, esegui i passi
- da 1 a 3 per uscire e rientrare nell'Editor.
-
-NOTA: :q! <INVIO> SCARTA qualsiasi modifica fatta. In una delle prossime
- lezioni imparerai come salvare un file che hai modificato.
-
- 5. Muovi in gi il cursore per passare alla lezione 1.3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1.3: MODIFICA DI TESTI - CANCELLAZIONE
-
-
- ** Premere x per cancellare il carattere sotto al cursore **
-
- 1. Muovi il cursore alla linea pi sotto, indicata da --->.
-
- 2. Per correggere errori, muovi il cursore fino a posizionarlo sopra il
- carattere da cancellare.
-
- 3. Premi il tasto x per cancellare il carattere sbagliato.
-
- 4. Ripeti i passi da 2 a 4 finch la frase corretta.
-
----> La mmucca salt蝌 finnoo allaa lunnna.
-
- 5. Ora che la linea corretta, vai alla Lezione 1.4
-
-NOTA: Mentre segui questa guida, non cercare di imparare a memoria,
- ma impara facendo pratica.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1.4: MODIFICA DI TESTI - INSERIMENTO
-
-
- ** Premere i per inserire testo. **
-
- 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
-
- 2. Per rendere la prima linea uguale alla seconda, muovi il cursore sopra
- il primo carattere DOPO la posizione in cui il testo va inserito.
-
- 3. Premi i e batti le aggiunte opportune.
-
- 4. Quando un errore corretto, premi <ESC> per tornare in Modalit Normale.
- Ripeti i passi da 2 a 4 fino a completare la correzione della frase.
-
----> C'era del tsto mncnt questa .
----> C'era del testo mancante da questa linea.
-
- 5. Quando sei a tuo agio nell'inserimento di testo vai alla lezione 1.5.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1.5: MODIFICA DI TESTI - AGGIUNTA
-
-
- ** Premere A per aggiungere testo a fine linea. **
-
- 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
- Non importa dove posizionato il cursore sulla linea stessa.
-
- 2. Batti A e inserisci le necessarie aggiunte.
-
- 3. Alla fine della aggiunta premi <ESC> per tornare in modalit Normale.
-
- 4. Muovi il cursore alla seconda linea indicata ---> e ripeti
- i passi 2 e 3 per correggere questa frase.
-
----> C' del testo che manca da qu
- C' del testo che manca da questa linea.
----> C' anche del testo che ma
- C' anche del testo che manca qui.
-
- 5. Quando sei a tuo agio nell'aggiunta di testo vai alla lezione 1.6.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1.6: MODIFICARE UN FILE
-
-
- ** Usare :wq per salvare un file e uscire. **
-
- !! NOTA: Prima di eseguire quanto richiesto, leggi la Lezione per intero!!
-
- 1. Esci da Vim come hai fatto nella lezione 1.2: :q!
-
- 2. Quando vedi il PROMPT della Shell, batti il comando: vim tutor <INVIO>
- 'vim' il comando per richiamare Vim, 'tutor' il nome del file che
- desideri modificare. Usa un file che possa essere modificato.
-
- 3. Inserisci e cancella testo come hai imparato nelle lezioni precedenti.
-
- 4. Salva il file ed esci da Vim con: :wq <INVIO>
-
- 5. Rientra in vimtutor e scendi al sommario che segue.
-
- 6. Dopo aver letto i passi qui sopra ed averli compresi: eseguili.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 1 SOMMARIO
-
-
- 1. Il cursore si muove usando i tasti con le frecce o i tasti hjkl.
- h (sinistra) j (gi) k (su) l (destra)
-
- 2. Per eseguire Vim dal PROMPT della Shell batti: vim NOMEFILE <INVIO>
-
- 3. Per uscire da Vim batti: <ESC> :q! <INVIO> per uscire senza salvare.
- oppure batti: <ESC> :wq <INVIO> per uscire salvando modifiche.
-
- 4. Per cancellare il carattere sotto al cursore batti: x
-
- 5. Per inserire testo subito prima del cursore batti:
- i batti testo inserito <ESC> inserisci prima del cursore
- A batti testo aggiunto <ESC> aggiungi a fine linea
-
-NOTA: premendo <ESC> ritornerai in Modalit Normale o annullerai
- un comando errato che puoi aver inserito in parte.
-
-Ora continua con la Lezione 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.1: COMANDI DI CANCELLAZIONE
-
-
- ** Batti dw per cancellare una parola. **
-
- 1. Premi <ESC> per accertarti di essere in Modalit Normale.
-
- 2. Muovi il cursore fino alla linea qui sotto, indicata da --->.
-
- 3. Muovi il cursore all'inizio di una parola che vuoi cancellare.
-
- 4. Batti dw per cancellare la parola.
-
-NOTA: La lettera d sar visibile sull'ultima linea dello schermo mentre la
- batti. Vim attende che tu batta w . Se vedi una lettera diversa
- da d hai battuto qualcosa di sbagliato; premi <ESC> e ricomincia.
-
----> Ci sono le alcune parole gioia che non c'entrano carta in questa frase.
-
- 5. Ripeti i passi 3 e 4 finch la frase corretta, poi vai alla Lezione 2.2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.2: ALTRI COMANDI DI CANCELLAZIONE
-
-
- ** Batti d$ per cancellare fino a fine linea. **
-
- 1. Premi <ESC> per accertarti di essere in Modalit Normale.
-
- 2. Muovi il cursore fino alla linea qui sotto, indicata da --->.
-
- 3. Muovi il cursore alla fine della linea corretta (DOPO il primo . ).
-
- 4. Batti d$ per cancellare fino a fine linea.
-
----> Qualcuno ha battuto la fine di questa linea due volte. linea due volte.
-
-
- 5. Vai alla Lezione 2.3 per capire il funzionamento di questo comando.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.3: OPERATORI E MOVIMENTI
-
-
- Molti comandi di modifica testi consistono in un operatore e un movimento.
- Il formato del comando di cancellazione con l'operatore d il seguente:
-
- d movimento
-
- Dove:
- d - l'operatore di cancellazione
- movimento - indica dove l'operatore va applicato (lista qui sotto).
-
- Breve lista di movimenti:
- w - fino a inizio della parola seguente, ESCLUSO il suo primo carattere.
- e - alla fine della parola corrente, COMPRESO il suo ultimo carattere.
- $ - dal cursore fino a fine linea, COMPRESO l'ultimo carattere della linea.
-
- Quindi se batti de cancelli dal cursore fino a fine parola.
-
-NOTA: Se batti solo il movimento mentre sei in Modalit Normale, senza
- nessun operatore, il cursore si muover come specificato.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.4: USO DI UN CONTATORE PER UN MOVIMENTO
-
-
- ** Se batti un numero prima di un movimento, lo ripeti altrettante volte. **
-
- 1. Muovi il cursore fino all'inizio della linea qui sotto, indicata da --->.
-
- 2. Batti 2w per spostare il cursore due parole pi avanti.
-
- 3. Batti 3e per spostare il cursore alla fine della terza parola seguente.
-
- 4. Batti 0 (zero) per posizionarti all'inizio della linea.
-
- 5. Ripeti i passi 2 e 3 usando numeri differenti.
-
----> Questa solo una linea con parole all'interno della quale puoi muoverti.
-
- 6. Vai alla Lezione 2.5.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.5: USO DI UN CONTATORE PER CANCELLARE DI PIU'
-
-
- ** Se batti un numero prima di un movimento, lo ripeti altrettante volte. **
-
- Nella combinazione dell'operatore cancella e di un movimento, descritto prima,
- inserite un contatore prima del movimento per cancellare di pi:
- d numero movimento
-
- 1. Muovi il cursore alla prima parola MAIUSCOLA nella riga indicata da --->.
-
- 2. Batti d2w per cancellare le due parole MAIUSCOLE
-
- 3. Ripeti i passi 1 e 2 con un contatore diverso per cancellare la parole
- MAIUSCOLE consecutive con un solo comando
-
----> questa ABC DE linea FGHI JK LMN OP di parole Q RS TUV ora ripulita.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.6: LAVORARE SU LINEE INTERE
-
- ** Batti dd per cancellare un'intera linea. **
-
- Per la frequenza con cui capita di cancellare linee intere, chi ha
- disegnato Vi ha deciso che sarebbe stato pi semplice battere
- due d consecutive per cancellare una linea.
-
- 1. Muovi il cursore alla linea 2) nella frase qui sotto.
- 2. Batti dd per cancellare la linea.
- 3. Ora spostati alla linea 4).
- 4. Batti 2dd per cancellare due linee.
-
----> 1) Le rose sono rosse,
----> 2) Il fango divertente,
----> 3) Le viole sono blu,
----> 4) Io ho un'automobile,
----> 5) Gli orologi segnano il tempo,
----> 6) Lo zucchero dolce,
----> 7) E cos sei anche tu.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2.7: IL COMANDO UNDO [ANNULLA]
-
- ** Premi u per annullare gli ultimi comandi eseguiti. **
- ** Premi U per annullare le modifiche all'ultima linea. **
-
- 1. Muovi il cursore fino alla linea qui sotto, indicata da --->.
- e posizionati sul primo errore.
- 2. Batti x per cancellare il primo carattere sbagliato.
- 3. Adesso batti u per annullare l'ultimo comando eseguito.
- 4. Ora invece, correggi tutti gli errori sulla linea usando il comando x .
- 5. Adesso batti una U Maiuscola per riportare la linea al suo stato originale.
- 6. Adesso batti u pi volte per annullare la U e i comandi precedenti.
- 7. Adesso batti pi volte CTRL-r (tieni il tasto CTRL schiacciato
- mentre batti r) per rieseguire i comandi (annullare l'annullamento).
-
----> Correeggi gli errori ssu quuesta linea e riimpiazzali coon "undo".
-
- 8. Questi comandi sono molto utili. Ora spostati al Sommario della Lezione 2.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 2 SOMMARIO
-
-
- 1. Per cancellare dal cursore fino alla parola seguente batti: dw
- 2. Per cancellare dal cursore fino alla fine della linea batti: d$
- 3. Per cancellare un'intera linea batti: dd
- 4. Per eseguire pi volte un movimento, mettici davanti un numero: 2w
- 5. Il formato per un comando di modifica :
-
- operatore [numero] movimento
- dove:
- operatore - indica il da farsi, ad es. d per [delete] cancellare
- [numero] - contatore facoltativo di ripetizione del movimento
- movimento - spostamento nel testo su cui operare, ad es.
- w [word] parola, $ (fino a fine linea), etc.
-
- 6. Per andare a inizio linea usate uno zero: 0
- 7. Per annullare i comandi precedenti, batti: u (u minuscola)
- Per annullare tutte le modifiche a una linea batti: U (U maiuscola)
- Per annullare l'annullamento ["redo"] batti: CTRL-r
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 3.1: IL COMANDO PUT [METTI, PONI]
-
-
- ** Batti p per porre [put] testo (cancellato prima) dopo il cursore. **
-
- 1. Muovi il cursore alla prima linea indicata con ---> qui in basso.
-
- 2. Batti dd per cancellare la linea e depositarla in un registro di Vim.
-
- 3. Muovi il cursore fino alla linea c) SOPRA quella dove andrebbe messa
- la linea appena cancellata.
-
- 4. Batti p per mettere la linea sotto il cursore.
-
- 5. Ripeti i passi da 2 a 4 per mettere tutte le linee nel giusto ordine.
-
----> d) Puoi impararla tu?
----> b) Le viole sono blu,
----> c) La saggezza si impara,
----> a) Le rose sono rosse,
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 3.2: IL COMANDO REPLACE [RIMPIAZZARE]
-
-
- ** Batti rx per rimpiazzare il carattere sotto al cursore con x . **
-
- 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
-
- 2. Muovi il cursore fino a posizionarlo sopra il primo errore.
-
- 3. Batti r e poi il carattere che dovrebbe stare qui.
-
- 4. Ripeti i passi 2 e 3 finch la prima linea uguale alla seconda.
-
----> Ammattendo quetta lince, qualcuno ho predato alcuni tosti sballiati!
----> Immettendo questa linea, qualcuno ha premuto alcuni tasti sbagliati!
-
- 5. Ora passa alla Lezione 3.2.
-
-NOTA: Ricordati che dovresti imparare con la pratica, non solo leggendo.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 3.3: L'OPERATORE CHANGE [CAMBIA]
-
-
- ** Per cambiare fino alla fine di una parola, batti ce . **
-
- 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
-
- 2. Posiziona il cursore alla u in lubw.
-
- 3. Batti ce e la parola corretta (in questo caso, batti inea ).
-
- 4. Premi <ESC> e vai sul prossimo carattere da modificare.
-
- 5. Ripeti i passi 3 e 4 finch la prima frase uguale alla seconda.
-
----> Questa lubw ha alcune pptfd da asdert usgfk l'operatore CHANGE.
----> Questa linea ha alcune parole da cambiare usando l'operatore CHANGE.
-
-Nota che ce cancella la parola, e ti mette anche in Modalit Inserimento
- [Insert Mode]
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 3.4: ALTRI CAMBIAMENTI USANDO c
-
-** L'operatore c [CHANGE] agisce sugli stessi movimenti di d [DELETE] **
-
- 1. L'operatore CHANGE si comporta come DELETE. Il formato :
-
- c [numero] movimento
-
- 2. I movimenti sono gli stessi,
- ad es. w (word, parola), $ (fine linea), etc.
-
- 3. Muovi il cursore alla prima linea qui sotto, indicata da --->.
-
- 4. Posiziona il cursore al primo errore.
-
- 5. Batti c$ e inserisci resto della linea utilizzando come modello la
- linea seguente, e quando hai finito premi <ESC>
-
----> La fine di questa linea deve essere aiutata a divenire come la seguente.
----> La fine di questa linea deve essere corretta usando il comando c$ .
-
-NOTA: Puoi usare il tasto Backspace se devi correggere errori di battitura.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 3 SOMMARIO
-
-
- 1. Per reinserire del testo appena cancellato, batti p . Questo
- inserisce [pone] il testo cancellato DOPO il cursore (se era stata tolta
- una linea intera, questa verr messa nella linea SOTTO il cursore).
-
- 2. Per rimpiazzare il carattere sotto il cursore, batti r e poi il
- carattere che vuoi sostituire.
-
- 3. L'operatore change ti permette di cambiare dal cursore fino a dove
- arriva il movimento. Ad es. Batti ce per cambiare dal cursore
- fino alla fine della parola, c$ per cambiare fino a fine linea.
-
- 4. Il formato di change :
-
- c [numero] movimento
-
-Ora vai alla prossima Lezione.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 4.1: POSIZIONAMENTO E SITUAZIONE FILE
-
- ** Batti CTRL-G per vedere a che punto sei nel file e la situazione **
- ** del file. Batti G per raggiungere una linea nel file. **
-
- NOTA: Leggi l'intera Lezione prima di eseguire un qualsiasi passo!!
-
- 1. Tieni premuto il tasto CTRL e batti g . Ossia batti CTRL-G.
- Un messaggio apparir in fondo alla pagina con il NOME FILE e la
- posizione nel file. Ricordati il numero della linea per il Passo 3.
-
-NOTA: La posizione del cursore si vede nell'angolo in basso a destra dello
- schermo, se impostata l'opzione 'ruler' (righello, vedi :help ruler).
-
- 2. Premi G [G Maiuscolo] per posizionarti in fondo al file.
- Batti gg per posizionarti in cima al file.
-
- 3. Batti il numero della linea in cui ti trovavi e poi G . Questo ti
- riporter fino alla linea in cui ti trovavi quando avevi battuto CTRL-g.
-
- 4. Se ti senti sicuro nel farlo, esegui i passi da 1 a 3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 4.2: IL COMANDO SEARCH [RICERCA]
-
- ** Batti / seguito da una frase per ricercare quella frase. **
-
- 1. in Modalit Normale batti il carattere / . Nota che la "/" e il cursore
- sono visibili in fondo dello schermo come quando si usa il comando : .
-
- 2. Adesso batti 'errroore' <INVIO>. Questa la parola che vuoi ricercare.
-
- 3. Per ricercare ancora la stessa frase, batti soltanto n .
- Per ricercare la stessa frase in direzione opposta, batti N .
-
- 4. Per ricercare una frase nella direzione opposta, usa ? al posto di / .
-
- 5. Per tornare dove eri prima nel file premi CTRL-O (tieni il tasto CTRL
- schiacciato mentre premi la lettera o). Ripeti CTRL-O per andare ancora
- indietro. Puoi usare CTRL-I per tornare in avanti.
-
-NOTA: "errroore" non il modo giusto di digitare errore; errroore un errore.
-NOTA: Quando la ricerca arriva a fine file, ricomincia dall'inizio del file,
- a meno che l'opzione 'wrapscan' sia stata disattivata.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 4.3: RICERCA DI PARENTESI CORRISPONDENTI
-
-
- ** Batti % per trovare una ),], o } corrispondente. **
-
- 1. Posiziona il cursore su una (, [, o { nella linea sotto, indicata da --->.
-
- 2. Adesso batti il carattere % .
-
- 3. Il cursore si sposter sulla parentesi corrispondente.
-
- 4. Batti % per muovere il cursore all'altra parentesi corrispondente.
-
----> Questa ( una linea di test con (, [ ] e { } al suo interno. ))
-
-
-NOTA: Questo molto utile nel "debug" di un programma con parentesi errate!
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 4.4: L'OPERATORE SOSTITUZIONE (SUBSTITUTE)
-
- ** Batti :s/vecchio/nuovo/g per sostituire 'nuovo' a 'vecchio'. **
-
- 1. Muovi il cursore fino alla linea qui sotto, indicata da --->.
-
- 2. Batti :s/lla/la <INVIO> . Nota che questo comando cambia solo
- LA PRIMA occorrenza di "lla" sulla linea.
-
- 3. Adesso batti :s/lla/la/g . Aggiungendo la flag g si chiede di
- sostituire "globalmente" sulla linea, ossia tutte le occorrenze
- di "lla" sulla linea.
-
----> lla stagione migliore per lla fioritura lla primavera.
-
- 4. Per cambiare ogni ricorrenza di una stringa di caratteri tra due linee,
- batti :#,#s/vecchio/nuovo/g dove #,# sono i numeri che delimitano
- il gruppo di linee in cui si vuole sostituire.
- Batti :%s/vecchio/nuovo/g per cambiare ogni occorrenza nell'intero file.
- Batti :%s/vecchio/nuovo/gc per trovare ogni occorrenza nell'intero file
- ricevendo per ognuna una richiesta se
- effettuare o meno la sostituzione.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 4 SOMMARIO
-
-
-1. CTRL-G visualizza a che punto sei nel file e la situazione del file.
- G [G Maiuscolo] ti porta all'ultima linea del file.
- numero G ti porta alla linea con quel numero.
- gg ti porta alla prima linea del file.
-
-2. Battendo / seguito da una frase ricerca IN AVANTI quella frase.
- Battendo ? seguito da una frase ricerca ALL'INDIETRO quella frase.
- DOPO una ricerca batti n per trovare la prossima occorrenza nella
- stessa direzione, oppure N per cercare in direzione opposta.
- CTRL-O ti porta alla posizione precedente, CTRL-I a quella pi nuova.
-
-3. Battendo % mentre il cursore si trova su (,),[,],{, oppure }
- ti posizioni sulla corrispondente parentesi.
-
-4. Per sostituire "nuovo" al primo "vecchio" in 1 linea batti :s/vecchio/nuovo
- Per sostituire "nuovo" ad ogni "vecchio" in 1 linea batti :s/vecchio/nuovo/g
- Per sostituire frasi tra 2 numeri di linea [#] batti :#,#s/vecchio/nuovo/g
- Per sostituire tutte le occorrenze nel file batti :%s/vecchio/nuovo/g
- Per chiedere conferma ogni volta aggiungi 'c' :%s/vecchio/nuovo/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 5.1: COME ESEGUIRE UN COMANDO ESTERNO
-
-
- ** Batti :! seguito da un comando esterno per eseguire quel comando. **
-
- 1. Batti il comando : per posizionare il cursore in fondo allo schermo.
- Ci ti permette di immettere un comando dalla linea comandi.
-
- 2. Adesso batti il carattere ! (punto esclamativo). Ci ti permette di
- eseguire qualsiasi comando esterno si possa eseguire nella "shell".
-
- 3. Ad esempio batti ls dopo il ! e poi premi <INVIO>. Questo
- visualizza una lista della tua directory, proprio come se fossi in una
- "shell". Usa :!dir se ls non funziona. [Unix: ls MS-DOS: dir]
-
-NOTA: E' possibile in questo modo eseguire un comando a piacere, specificando
- anche dei parametri per i comandi stessi.
-
-NOTA: Tutti i comandi : devono essere terminati premendo <INVIO>
- Da qui in avanti non lo ripeteremo ogni volta.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 5.2: ANCORA SULLA SCRITTURA DEI FILE
-
-
- ** Per salvare le modifiche apportate a un testo batti :w NOMEFILE. **
-
- 1. Batti :!dir or :!ls per procurarti una lista della tua directory.
- Gi sai che devi premere <INVIO> dopo aver scritto il comando.
-
- 2. Scegli un NOMEFILE che ancora non esista, ad es. TEST .
-
- 3. Adesso batti: :w TEST (dove TEST il NOMEFILE che hai scelto).
-
- 4. Questo salva l'intero file ("tutor.it") con il nome di TEST.
- Per verifica batti ancora :!dir o :!ls per listare la tua directory.
-
-NOTA: Se esci da Vim e riesegui Vim battendo vim TEST , il file aperto
- sar una copia esatta di "tutor.it" al momento del salvataggio.
-
- 5. Ora cancella il file battendo (MR-DOS): :!del TEST
- o (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 5.3: SELEZIONARE IL TESTO DA SCRIVERE
-
- ** Per salvare una porzione di file, batti v movimento :w NOMEFILE **
-
- 1. Muovi il cursore su questa linea.
-
- 2. Premi v e muovi il cursore fino alla linea numerata 5., qui sotto.
- Nota che il testo viene evidenziato.
-
- 3. Batti il carattere : . In fondo allo schermo apparir :'<,'> .
-
- 4. Batti w TEST , dove TEST il nome di un file non ancora esistente.
- Verifica che si veda :'<,'>w TEST prima di dare <INVIO>.
-
- 5. Vim scriver nel file TEST le linee che hai selezionato. Usa :!dir
- o :!ls per controllare che esiste. Non cancellarlo ora! Ti servir
- nella prossima lezione.
-
-NOTA: Battere v inizia una selezione visuale. Puoi muovere il cursore
- come vuoi, e rendere la selezione pi piccola o pi grande. Poi
- puoi usare un operatore per agire sul testo selezionato.
- Ad es., d cancella il testo.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 5.4: INSERIRE E RIUNIRE FILE
-
-
- ** Per inserire il contenuto di un file, batti :r NOMEFILE **
-
- 1. Posiziona il cursore appena sopra questa riga.
-
-NOTA: Dopo aver eseguito il Passo 2 vedrai il testo della Lezione 5.3.
- Quindi spostati IN GIU' per tornare ancora a questa Lezione.
-
- 2. Ora inserisci il tuo file TEST con il comando :r TEST dove TEST
- il nome che hai usato per creare il file.
- Il file richiesto inserito sotto la linea in cui si trova il cursore.
-
- 3. Per verificare che un file stato inserito, torna indietro col cursore
- e nota che ci sono ora 2 copie della Lezione 5.3, quella originale e
- quella che viene dal file.
-
-NOTA: Puoi anche leggere l'output prodotto da un comando esterno. Ad es.
- :r !ls legge l'output del comando ls e lo inserisce sotto la linea
- in cui si trova il cursore.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 5 SOMMARIO
-
-
- 1. :!comando esegue un comando esterno.
-
- Alcuni esempi utili sono [in MSDOS]:
- :!dir - visualizza lista directory
- :!del NOMEFILE - cancella file NOMEFILE.
-
- 2. :w NOMEFILE scrive su disco il file che stai editando con nome NOMEFILE.
-
- 3. v movimento :w NOMEFILE salva le linee selezionate in maniera
- visuale nel file NOMEFILE.
-
- 4. :r NOMEFILE legge il file NOMEFILE da disco e lo inserisce nel file
- che stai modificando, dopo la linea in cui posizionato il cursore.
-
- 5. :r !dir legge l'output del comando dir e lo inserisce dopo la
- linea in cui posizionato il cursore.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 6.1: IL COMANDO OPEN [APRIRE]
-
-
- ** Batti o per aprire una linea sotto il cursore **
- ** e passare in Modalit Inserimento. **
-
- 1. Muovi il cursore fino alla linea qui sotto, indicata da --->.
-
- 2. Batti la lettera minuscola o per aprire una linea sotto il cursore e
- passare in Modalit Inserimento.
-
- 3. Poi inserisci del testo e premi <ESC> per uscire dalla
- Modalit Inserimento.
-
----> Dopo battuto o il cursore sulla linea aperta (in Modalit Inserimento).
-
- 4. Per aprire una linea SOPRA il cursore, batti una O maiuscola, invece
- che una o minuscola. Prova sulla linea qui sotto.
-Apri una linea SOPRA questa battendo O mentre il cursore su questa linea.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 6.2: IL COMANDO APPEND [AGGIUNGERE]
-
- ** Batti a per inserire testo DOPO il cursore. **
-
- 1. Muovi il cursore all'inizio della linea qui sotto, indicata da --->.
-
- 2. Batti e finch il cursore arriva alla fine di li .
-
- 3. Batti una a (minuscola) per aggiungere testo DOPO il cursore.
-
- 4. Completa la parola come mostrato nella linea successiva. Premi <ESC>
- per uscire dalla Modalit Inserimento.
-
- 5. Usa e per passare alla successiva parola incompleta e ripeti i passi
- 3 e 4.
-
----> Questa li ti permetter di esercit ad aggiungere testo a una linea.
----> Questa linea ti permetter di esercitarti ad aggiungere testo a una linea.
-
-NOTA: a, i ed A entrano sempre in Modalit Inserimento, la sola differenza
- dove verranno inseriti i caratteri.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 6.3: UN ALTRO MODO DI RIMPIAZZARE [REPLACE]
-
-
- ** Batti una R maiuscola per rimpiazzare pi di un carattere. **
-
- 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. Muovi il
- cursore all'inizio del primo xxx .
-
- 2. Ora batti R e batti il numero che vedi nella linea seguente, in modo
- che rimpiazzi l' xxx .
-
- 3. Premi <ESC> per uscire dalla Modalit Replace. Nota che il resto della
- linea resta invariato.
-
- 4. Ripeti i passi in modo da rimpiazzare l'altro xxx .
-
----> Aggiungendo 123 a xxx si ottiene xxx.
----> Aggiungendo 123 a 456 si ottiene 579.
-
-NOTA: La Modalit Replace come la Modalit Inserimento, ma ogni carattere
- che viene battuto ricopre un carattere esistente.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 6.4: COPIA E INCOLLA DEL TESTO
-
-
- ** usa l'operatore y per copiare del testo e p per incollarlo **
-
- 1. Vai alla linea indicata da ---> qui sotto, e metti il cursore dopo "a)".
-
- 2. Entra in Modalit Visuale con v e metti il cursore davanti a "primo".
-
- 3. Batti y per copiare [yank] il testo evidenziato.
-
- 4. Muovi il cursore alla fine della linea successiva: j$
-
- 5. Batti p per incollare [paste] il testo. Poi batti: a secondo <ESC> .
-
- 6. Usa la Modalit Visuale per selezionare " elemento.", copialo con y ,
- Vai alla fine della linea successiva con j$ e incolla il testo con p .
-
----> a) questo il primo elemento.
- b)
-
-NOTA: Puoi usare y come operatore; yw copia una parola [word].
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 6.5: SET [IMPOSTA] UN'OPZIONE
-
- ** Imposta un'opzione per ignorare maiuscole/minuscole **
- ** durante la ricerca/sostituzione **
-
- 1. Ricerca 'nota' battendo: /nota <ENTER>
- Ripeti la ricerca pi volte usando il tasto n
-
- 2. Imposta l'opzione 'ic' (Ignore Case, [Ignora maiuscolo/minuscolo])
- battendo: :set ic
-
- 3. Ora ricerca ancora 'nota' premendo il tasto n
- Troverai adesso anche Nota e NOTA .
-
- 4. Imposta le opzioni 'hlsearch' e 'incsearch' :set hls is
-
- 5. Ora batti ancora il comando di ricerca, e guarda cosa succede: /nota
-
- 6. Per disabilitare il riconoscimento di maiuscole/minuscole batti: :set noic
-NOTA: Per non evidenziare le occorrenze trovate batti: :nohlsearch
-NOTA: Per ignorare maiuscole/minuscole solo per una ricerca, usa \c
- nel comando di ricerca: /nota\c <INVIO>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 6 SOMMARIO
-
- 1. Batti o per aggiungere una linea SOTTO il cursore ed entrare in
- Modalit Inserimento.
- Batti O per aggiungere una linea SOPRA il cursore.
-
- 2. Batti a per inserire testo DOPO il cursore.
- Batti A per inserire testo alla fine della linea.
-
- 3. Il comando e sposta il cursore alla fine di una parola.
-
- 4. L'operatore y copia del testo, p incolla del testo.
-
- 5. Batti R per entrare in Modalit Replace, e ne esci premendo <ESC>.
-
- 6. Batti ":set xxx" per impostare l'opzione "xxx". Alcun opzioni sono:
- 'ic' 'ignorecase' ignorare maiuscole/minuscole nella ricerca
- 'is' 'incsearch' mostra occorrenze parziali durante una ricerca
- 'hls' 'hlsearch' evidenzia tutte le occorrenze di una ricerca
- Puoi usare sia il nome completo di un'opzione che quello abbreviato.
-
- 7. Usa il prefisso "no" per annullare una opzione: :set noic
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 7.1: OTTENERE AIUTO
-
- ** Usa il sistema di aiuto on-line **
-
- Vim ha un esauriente sistema di aiuto on-line. Per cominciare, prova una di
- queste alternative:
- - premi il tasto <AIUTO> (se ce n' uno)
- - premi il tasto <F1> (se ce n' uno)
- - batti :help <INVIO> OPPURE :h <INVIO>
-
- Leggi il testo nella finestra di aiuto per vedere come funziona l'aiuto.
- Batti CTRL-W CTRL-W per passare da una finestra all'altra.
- Batti :q <INVIO> per chiudere la finestra di aiuto.
-
- Puoi trovare aiuto su quasi tutto, dando un argomento al comando ":help"
- Prova questi (non dimenticare di premere <INVIO>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 7.2: PREPARARE UNO SCRIPT INIZIALE
-
- ** Attiva le opzioni Vim **
-
- Vim ha molte pi opzioni di Vi, ma molte di esse sono predefinite inattive.
- Per cominciare a usare pi opzioni, devi creare un file "vimrc".
-
- 1. Comincia a editare il file "vimrc". Questo dipende dal tuo sistema:
- :e ~/.vimrc per Unix
- :e $VIM/_vimrc per MS-Windows
-
- 2. Ora leggi i contenuti del file "vimrc" distribuito come esempio:
-
- :r $VIMRUNTIME/vimrc_example.vim
-
- 3. Scrivi il file con:
- :w
-
- La prossima volta che apri Vim, sar abilitata la colorazione sintattica.
- Puoi aggiungere a questo file "vimrc" tutte le tue impostazioni preferite.
- Per maggiori informazioni batti: :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 7.3: COMPLETAMENTO
-
-
- ** Completamento linea comandi con CTRL-D e <TAB> **
-
- 1. Imposta Vim in modalit compatibile: :set nocp
-
- 2. Guarda i file esistenti nella directory: :!ls o :!dir
-
- 3. Batti l'inizio di un comando: :e
-
- 4. Premi CTRL-D e Vim ti mostra una lista di comandi che iniziano per "e".
-
- 5. Premi <TAB> e Vim completa per te il nome comando come ":edit".
-
- 6. Ora batti uno spazio e l'inizio del nome di un file esistente: :edit FIL
-
- 7. Premi <TAB>. Vim completer il nome del file (se il solo possibile).
-
-NOTA: Il completamento disponibile per molti comandi. Prova a battere
- CTRL-D e <TAB>. Particolarmente utile per :help .
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lezione 7 Sommario
-
-
- 1. Batti :help o premi <F1> o <Help> per aprire una finestra di aiuto.
-
- 2. Batti :help comando per avere aiuto su comando .
-
- 3. Batti CTRL-W CTRL-W per saltare alla prossima finestra.
-
- 4. Batti :q per chiudere la finestra di aiuto.
-
- 5. Crea uno script iniziale vimrc contenente le tue impostazioni preferite.
-
- 6. Mentre batti un comando : , premi CTRL-D per vedere i possibili
- completamenti. Premi <TAB> per usare il completamento desiderato.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Qui finisce la Guida a Vim. Il suo intento di fornire una breve panoramica
- dell'Editor Vim, che ti consenta di usare l'Editor abbastanza facilmente.
- Questa guida largamente incompleta poich Vim ha moltissimi altri comandi.
- Puoi anche leggere il manuale utente (anche in italiano): ":help user-manual".
-
- Per ulteriore lettura e studio, raccomandiamo:
- Vim - Vi Improved - di Steve Oualline Editore: New Riders
- Il primo libro completamente dedicato a Vim. Utile specie per principianti.
- Contiene molti esempi e figure.
- Vedi http://iccf-holland.org/click5.html
-
- Quest'altro libro pi su Vi che su Vim, ma pure consigliato:
- Learning the Vi Editor - di Linda Lamb e Arnold Robbins
- Editore: O'Reilly & Associates Inc.
- E' un buon libro per imparare quasi tutto ci che puoi voler fare con Vi.
- Ne esiste una traduzione italiana, basata su una vecchia edizione.
-
- Questa guida stata scritta da Michael C. Pierce e Robert K. Ware,
- Colorado School of Mines, usando idee fornite da Charles Smith,
- Colorado State University - E-mail: bware@mines.colorado.edu
- Modificato per Vim da Bram Moolenaar.
- Segnalare refusi ad Antonio Colombo - E-mail: azc100@gmail.com
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.ja.euc b/runtime/tutor/tutor.ja.euc
deleted file mode 100644
index f043e42f2..000000000
--- a/runtime/tutor/tutor.ja.euc
+++ /dev/null
@@ -1,975 +0,0 @@
-===============================================================================
-= V I M 兜 塑 (チュ〖トリアル) へ よ う こ そ - Version 1.7 =
-===============================================================================
-
- Vim は、このチュ〖トリアルで棱汤するには驴すぎる镍のコマンドを洒えた润撅
- に动蜗なエディタ〖です。このチュ〖トリアルは、あなたが Vim を它墙エディ
- タ〖として蝗いこなせるようになるのに浇尸なコマンドについて棱汤をするよう
- なっています。
-
- チュ〖トリアルを窗位するのに涩妥な箕粗は、承えたコマンドを活すのにどれだ
- け箕粗を蝗うのかにもよりますが、およそ25から30尸です。
-
- ATTENTION:
- 笆布の锡浆脱コマンドにはこの矢鞠を恃构するものもあります。锡浆を幌める涟
- にコピ〖を侯喇しましょう("vimtutor"したならば、贷にコピ〖されています)。
-
- このチュ〖トリアルが、蝗うことで承えられる慌寥みになっていることを、看し
- ておかなければなりません。赖しく池浆するにはコマンドを悸狠に活さなければ
- ならないのです。矢鞠を粕んだだけならば、きっと撕れてしまいます!。
-
- さぁ、Capsロック(Shift-Lock)キ〖が病されていないことを澄千した稿、茶烫に
- レッスン1.1 が链婶山绩されるところまで、j キ〖を病してカ〖ソルを败瓢しま
- しょう。
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1.1: カ〖ソルの败瓢
-
-
- ** カ〖ソルを败瓢するには、绩される屯に h,j,k,l を病します **
- ^
- k ヒント: h キ〖は焊数羹に败瓢します。
- < h l > l キ〖は宝数羹に败瓢します。
- j j キ〖は布甜磅キ〖のようなキ〖です。
- v
- 1. 败瓢に捶れるまで、スクリ〖ンでカ〖ソル败瓢させましょう。
-
- 2. 布へのキ〖(j)を病しつづけると、息鲁して败瓢できます。
- これで肌のレッスンに败瓢する数恕がわかりましたね。
-
- 3. 布へのキ〖を蝗って、レッスン1.2 に败瓢しましょう。
-
-Note: 部をタイプしているか冉らなくなったら、<ESC>を病してノ〖マルモ〖ドにし
- ます。それから掐蜗しようとしていたコマンドを浩掐蜗しましょう。
-
-Note: カ〖ソルキ〖でも败瓢できます。しかし hjkl に办刨捶れてしまえば、はるか
- に庐く败瓢することができるでしょう。いやマジで!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1.2: VIM の弹瓢と姜位
-
-
- !! NOTE: 笆布のあらゆるステップを乖う涟に、このレッスンを粕みましょう!!
-
- 1. <ESC>キ〖を病しましょう。(澄悸にノ〖マルモ〖ドにするため)
-
- 2. 肌のようにタイプ: :q! <ENTER>
- これにより试礁した柒推を瘦赂せずにエディタが姜位します。
-
- 3. シェルプロンプトが叫てきたら、このチュ〖トリアルを幌める百ににコマンド
- をタイプします。
- そのコマンドは: vimtutor <ENTER>
-
- 4. これまでのステップを承え极慨がついたならば、ステップ 1 から 3 までを悸
- 狠に活して、Vim を1刨姜位してから浩び弹瓢しましょう。
-
-NOTE: :q! <ENTER> は链ての恃构を撬逮します。レッスンにて恃构をファイルに瘦
- 赂する数恕についても寿动していきましょう。
-
- 5. 1.3までカ〖ソルを败瓢させましょう。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1.3: テキスト试礁 - 猴近
-
-
- ** ノ〖マルモ〖ドにてカ〖ソルの布の矢机を猴近するには x を病します **
-
- 1. 笆布の ---> と绩された乖にカ〖ソルを败瓢しましょう。
-
- 2. 粗般いを饯赖するために、猴近する呵介の矢机までカ〖ソルを败瓢します。
-
- 3. 稍涩妥な矢机を x を病して猴近しましょう。
-
- 4. 矢が赖しくなるまで ステップ 2 から 4 を帆り手しましょう。
-
----> その ううさぎ は つつきき を こええてて とびはねたた
-
- 5. 乖が赖しくなったら、レッスン 1.4 へ渴みましょう。
-
-NOTE: 链てのレッスンを奶じて、承えようとするのではなく悸狠にやってみましょう。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1.4: テキスト试礁 - 赁掐
-
-
- ** ノ〖マルモ〖ドにてテキストを赁掐するには i を病します **
-
- 1. 笆布の ---> と绩された呵介の乖にカ〖ソルを败瓢しましょう。
-
- 2. 1乖誊を2乖誊と票じ屯にするために、テキストを赁掐しなければならない疤弥
- の肌の矢机にカ〖ソルを败瓢します。
-
- 3. i キ〖を病してから、纳裁が涩妥な矢机をタイプしましょう。
-
- 4. 粗般いを饯赖したら <ESC> を病してコマンドモ〖ドに提り、赖しい矢になる屯
- にステップ 2 から 4 を帆り手しましょう。
-
----> この には 颅りない テキスト ある。
----> この 乖 には 傣つか 颅りない テキスト が ある。
-
- 5. 赁掐の数恕がわかったら布のレッスン1の妥腆を斧ましょう。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1.5: テキスト试礁 - 纳裁
-
-
- ** テキスト纳裁するには A を病しましょう **
-
- 1. 笆布の ---> と绩された呵介の乖にカ〖ソルを败瓢しましょう。
- カ〖ソルがその矢机惧にあってもかまいません。
-
- 2. 纳裁が涩妥な眷疥で A をタイプしましょう。
-
- 3. テキストを纳裁し姜えたら、 <ESC> を病してノ〖マルモ〖ドに提りましょう。
-
- 4. 2乖誊の ---> と绩された眷疥へ败瓢し、ステップ 2 から 3 帆り手して矢恕を
- 饯赖しましょう。
-
----> ここには粗般ったテキストがあり
- ここには粗般ったテキストがあります。
----> ここにも粗般ったテキス
- ここにも粗般ったテキストがあります。
-
- 5. テキストの纳裁が汾谗になってきたらレッスン 1.6 へ渴みましょう。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1.6: ファイルの试礁
-
-
- ** ファイルを瘦赂して姜位するには :wq とタイプします **
-
- !! NOTE: 笆布のステップを悸乖する涟に、まず链挛を粕んでください!!
-
- 1. レッスン 1.2 でやったように :q! をタイプして、このチュ〖トリアルを姜位
- します。
-
- 2. シェルプロンプトでこのコマンドをタイプします: vim tutor <ENTER>
- 'vim'が Vim エディタを弹瓢するコマンド、'tutor' は试礁したいファイルの
- 叹涟です。恃构してもよいファイルを蝗いましょう。
-
- 3. 涟のレッスンで池んだように、テキストを赁掐、猴近します。
-
- 4. 恃构をファイルに瘦赂します: :wq <ENTER>
-
- 5. vimtutor を浩刨弹瓢し、笆布の妥腆へ渴みましょう。
-
- 6. 笆惧のステップを粕んで妄豺した惧でこれを悸乖しましょう。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 1 妥腆
-
-
- 1. カ〖ソルは甜磅キ〖もしくは hjkl キ〖で败瓢します。
- h (焊) j (布) k (惧) l (宝)
-
- 2. Vim を弹瓢するにはプロンプトから vim ファイル叹 <ENTER> とタイプします。
-
- 3. Vim を姜位するには <ESC> :q! <ENTER> とタイプします(恃构を撬逮)。
- もしくは <ESC> :wq <ENTER> とタイプします(恃构を瘦赂)。
-
- 4. カ〖ソルの布の矢机を猴近するには、ノ〖マルモ〖ドで x とタイプします。
-
- 5. カ〖ソルの疤弥に矢机を赁掐するには、ノ〖マルモ〖ドで i とタイプします。
- i テキストのタイプ <ESC> カ〖ソル疤弥に纳裁
- A テキストの纳裁 <ESC> 乖琐に纳裁
-
-NOTE: <ESC> キ〖を病すとノ〖マルモ〖ドに败乖します。その狠、粗般ったり掐蜗庞
- 面のコマンドを艰り久すことができます。
-
-さて、鲁けてレッスン 2 を幌めましょう。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.1: 猴近コマンド
-
-
- ** 帽胳の琐萨までを猴近するには dw とタイプしましょう **
-
- 1. ノ〖マルモ〖ドであることを澄千するために <ESC> を病しましょう。
-
- 2. 笆布の ---> と绩された乖にカ〖ソルを败瓢しましょう。
-
- 3. 久したい帽胳の黎片にカ〖ソルを败瓢しましょう。
-
- 4. 帽胳を猴近するために dw とタイプしましょう。
-
- NOTE: タイプすると、dw という矢机がスクリ〖ンの呵布乖に附われます。
- タイプを粗般ってしまった箕には <ESC> を病してやり木しましょう。
-
----> この 矢 绘 には いくつかの たのしい 涩妥のない 帽胳 が 崔まれて います。
-
- 5. 3 から 4 までを矢が赖しくなるまで帆り手し、レッスン 2.2 へ渴みましょう。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.2: その戮の猴近コマンド
-
-
- ** 乖の琐萨までを猴近するには d$ とタイプしましょう **
-
- 1. ノ〖マルモ〖ドであることを澄千するのに <ESC> を病しましょう。
-
- 2. 笆布の ---> と绩された乖にカ〖ソルを败瓢しましょう。
-
- 3. 赖しい矢の琐萨へカ〖ソルを败瓢しましょう(呵介の . の稿です)。
-
- 4. 乖琐まで猴近するのに d$ とタイプしましょう。
-
----> 茂かがこの乖の呵稿を2刨タイプしました。 2刨タイプしました。
-
-
- 5. どういうことか妄豺するために、レッスン 2.3 へ渴みましょう。
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.3: オペレ〖タとモ〖ション
-
-
- 驴くのコマンドはオペレ〖タとモ〖ションからテキストに恃构を裁ます。
- 猴近コマンド d のオペレ〖タは肌の屯になっています:
-
- d モ〖ション
-
- それぞれ:
- d - 猴近コマンド。
- モ〖ション - 部に滦して漂きかけるか(笆布に刁げます)。
-
- オペレ〖タの办婶办枉:
- w - カ〖ソル疤弥から鄂球を崔む帽胳の琐萨まで。
- e - カ〖ソル疤弥から鄂球を崔まない帽胳の琐萨まで。
- $ - カ〖ソル疤弥から乖琐まで。
-
- つまり de とタイプすると、カ〖ソル疤弥から帽胳の姜わりまでを猴近します。
-
-NOTE: 肆副したい客は、ノ〖マルモ〖ドにてコマンドなしにモ〖ションを病して
- みましょう。カ〖ソルが誊弄胳办枉で绩される疤弥に败瓢するはずです。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.4: モ〖ションにカウントを蝗脱する
-
-
- ** 部搀も乖いたい帆り手しのモ〖ションの涟に眶猛をタイプします。 **
-
- 1. 笆布の ---> と绩された度の黎片にカ〖ソルを败瓢します。
-
- 2. 2dw をタイプして帽胳2つ尸败瓢します。
-
- 3. 3e をタイプして3つ誊の帽胳の姜眉に败瓢します。
-
- 4. 0 (ゼロ)をタイプして乖片に败瓢します。
-
- 5. ステップ 2 と 3 を般う眶猛と蝗って帆り手します。
-
----> This is just a line with words you can move around in.
-
- 6. レッスン 2.5 に渴みましょう。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.5: より驴くを猴近するためにカウントを蝗脱する
-
-
- ** オペレ〖タとカウントをタイプすると、その拎侯が剩眶搀帆り手されます。 **
-
- 贷揭の猴近のオペレ〖タとモ〖ションの寥み圭わせにカウントを纳裁することで、
- より驴くの猴近が乖えます:
- d 眶猛 モ〖ション
-
- 1. ---> と绩された乖の乖片婶尸にカ〖ソルを败瓢しましょう。
-
- 2. UPPER CASE の帽胳2つを 2dw とタイプして猴近します。
-
- 3. UPPER CASE という息鲁した帽胳を、1つのコマンドと佰なるカウントを回年し、
- ステップ 1 と 2 を帆り手します。
-
----> このABC DE乖のFGHI JK LMN OP帽胳はQ RS TUV搴物になった。
-
-NOTE: オペレ〖タ d とモ〖ションの粗にカウントを蝗った眷圭、オペレ〖タのない
- 眷圭のモ〖ションのように瓢侯します。
- 毋: 3dw と d3w は票霹で、3w を猴近します。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.6: 乖の拎侯
-
-
- ** 乖链挛を猴近するには dd とタイプします **
-
- 乖链挛を猴近する裳刨が驴いので、Viのデザイナ〖は乖の猴近を d の2搀タイプと
- いう词帽なものに疯めました。
-
- 1. 笆布の剁の2乖誊にカ〖ソルを败瓢します。
- 2. dd とタイプして乖を猴近します。
- 3. さらに4乖誊に败瓢します。
- 4. 2dd とタイプして2乖を猴近します。
-
----> 1) バラは乐い、
----> 2) つまらないものは弛しい、
----> 3) スミレは滥い、
----> 4) 讳は贾をもっている、
----> 5) 箕纷が箕癸を桂げる、
----> 6) 航劈は磁い
----> 7) オマエモナ〖
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2.7: やり木しコマンド
-
-
- ** 呵稿のコマンドを艰り久すには u を病します。U は乖链挛の艰久です。 **
-
- 1. 笆布の ---> と绩された乖にカ〖ソルを败瓢し、呵介の粗般いにカ〖ソ
- ルを败瓢しましょう。
- 2. x をタイプしていらない黎片の矢机を猴近しましょう。
- 3. さぁ、u をタイプして呵稿に悸乖したコマンドを艰り久しましょう。
- 4. 海刨は、x を蝗脱して疙りを链て饯赖しましょう。
- 5. 络矢机の U をタイプして、乖を傅の觉轮に提しましょう。
- 6. u をタイプして木涟の U コマンドを艰久しましょう。
- 7. ではコマンドを浩悸乖するのに CTRL-R (CTRL を病したまま R を虑つ)を眶搀
- タイプしてみましょう(艰久の艰久)。
-
----> このの乖のの粗般いを饯赖」し、稿でそれらの饯赖をを艰久しまますす。
-
- 8. これはとても守网なコマンドです。さぁレッスン 2 妥腆へ渴みましょう。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 2 妥腆
-
-
- 1. カ〖ソル疤弥から帽胳の琐萨までを猴近するには dw とタイプします。
- 2. カ〖ソル疤弥から乖の琐萨までを猴近するには d$ とタイプします。
- 3. 乖链挛を猴近するには dd とタイプします。
-
- 4. モ〖ションを帆り手すには眶猛を烧涂します: 2w
- 5. 恃构に脱いるコマンドの妨及は
- オペレ〖タ [眶猛] モ〖ション
-
- それぞれ:
- オペレ〖タ - 猴近 d の梧で部をするか。
- 眶猛 - そのコマンドを部搀帆り手すか。
- モ〖ション - w (帽胳)や $ (乖琐)などの梧で、テキストの部に滦して漂きか
- けるか。
-
- 6. 乖の黎片に败瓢するにはゼロを蝗脱します: 0
-
- 7. 涟搀の瓢侯を艰久す: u (井矢机 u)
- 乖链挛の恃构を艰久す: U (络矢机 U)
- 艰久しの艰久し: CTRL-R
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 3.1: 沤り烧けコマンド
-
-
- ** 呵稿に猴近された乖をカ〖ソルの稿に沤り烧けるには p をタイプします **
-
- 1. 笆布の檬皖の呵介の乖にカ〖ソルを败瓢しましょう。
-
- 2. dd とタイプして乖を猴近し、Vim のバッファに呈羌しましょう。
-
- 3. 猴近した乖が塑丸あるべき疤弥の惧の乖まで、カ〖ソルを败瓢させましょう。
-
- 4. ノ〖マルモ〖ドで p をタイプして呈羌した乖を茶烫に提します。
-
- 5. 界戎が赖しくなる屯にステップ 2 から 4 を帆り手しましょう。
-
- d) 诞数も池ぶことができる?
- b) スミレは滥い、
- c) 梦访とは池ぶもの、
- a) バラは乐い、
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 3.2: 弥き垂えコマンド
-
-
- ** カ〖ソルの布の矢机を弥き垂えるには r をタイプします **
-
- 1. 笆布の ---> と绩された呵介の乖にカ〖ソルを败瓢しましょう。
-
- 2. 呵介の粗般いの黎片にカ〖ソルを败瓢しましょう。
-
- 3. r とタイプし、粗般っている矢机を弥き垂える、赖しい矢机をタイプしましょう。
-
- 4. 呵介の乖が赖しくなるまでステップ 2 から 3 を帆り手しましょう。
-
----> この圭を客蜗した箕ね、その客は傣つか啼般ったキ〖を病しもした!
----> この乖を掐蜗した箕に、その客は傣つか粗般ったキ〖を病しました!
-
- 5. さぁ、レッスン 3.2 へ渴みましょう。
-
-NOTE: 悸狠に活しましょう。疯して承えるだけにはしないこと。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 3.3: 恃构コマンド
-
-
- ** 帽胳の办婶、もしくは链挛を恃构するには cw とタイプします **
-
- 1. 笆布の ---> と绩された呵介の乖にカ〖ソルを败瓢しましょう。
-
- 2. lubw の u の疤弥にカ〖ソルを败瓢しましょう。
-
- 3. cw とタイプし、赖しい帽胳をタイプしましょう(この眷圭 'ine' とタイプ)。
-
- 4. 肌の粗般い(恃构すべき矢机の黎片)に败瓢するために <ESC> をタイプします。
-
- 5. 呵介の乖が肌の乖の屯になるまでステップ 3 と 4 を帆り手します。
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-cw は帽胳を恃构するだけでなく、赁掐も乖えることに庙罢しましょう。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 3.4: c を蝗脱したその戮の恃构
-
-
- ** 恃构コマンドは、猴近コマンドと票じ屯にオブジェクトを蝗脱します **
-
- 1. 恃构コマンドは、猴近コマンドと票じような瓢侯をします。その妨及は
-
- c [眶猛] モ〖ション
-
- 2. オブジェクトも票じで、w は帽胳、 $ は乖琐などといったものです。
-
- 3. 笆布の ---> と绩された乖にカ〖ソルを败瓢しましょう。
-
- 4. 呵介の粗般いへカ〖ソルを败瓢しましょう。
-
- 5. c$ とタイプして乖の荒りを2乖誊の屯にし、<ESC> を病しましょう。
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-NOTE: タイプ面の粗般いはバックスペ〖スキ〖を蝗って木すこともできます。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 3 妥腆
-
-
- 1. 贷に猴近されたテキストを浩芹弥するには、p をタイプします。これは猴近さ
- れたテキストをカ〖ソルの稿に赁掐します(乖帽疤で猴近されたのならば、カ〖
- ソルのある肌の乖に赁掐されます)。
-
- 2. カ〖ソルの布の矢机を弥き垂えるには、r をタイプした稿、それを弥き垂える
- 矢机をタイプします。
-
- 3. 恃构コマンドではカ〖ソル疤弥から泼年のモ〖ションで回年される姜眉までを恃
- 构することが材墙です。毋えば cw ならばカ〖ソル疤弥から帽胳の姜わりまで、
- c$ ならば乖の姜わりまでを恃构します。
-
- 4. 恃构コマンドの妨及は
-
- c [眶猛] モ〖ション
-
-さぁ、肌のレッスンへ渴みましょう。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 4.1: 疤弥とファイルの攫鼠
-
- ** ファイル柒での疤弥とファイルの觉轮を山绩するには CTRL-G をタイプします。
- ファイル柒のある乖に败瓢するには G をタイプします **
-
- NOTE: ステップを悸乖する涟に、このレッスン链てに誊を奶しましょう!!
-
- 1. CTRL を病したまま g を病しましょう。この拎侯を CTRL-G と钙んでいます。
- ペ〖ジの办戎布にファイル叹と乖戎规が山绩されるはずです。 ステップ 3のため
- に乖戎规を承えておきましょう。
-
-NOTE: 茶烫の宝布儿にカ〖ソルの疤弥が山绩されているかもしれません。これは
- 'ruler' オプション(レッスン6で棱汤)を肋年することで山绩されます。
-
- 2. 呵布乖に败瓢するために G をタイプしましょう。
- ファイルの黎片に败瓢するには gg とタイプしましょう。
-
- 3. 黎ほどの乖の戎规をタイプし G をタイプしましょう。呵介に CTRL-G を病した乖
- に提って丸るはずです。
-
- 4. 极慨が积てたらステップ 1 から 3 を悸乖しましょう。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 4.2: 浮瑚コマンド
-
-
- ** 胳剁を浮瑚するには / と、涟数浮瑚する胳剁をタイプします。**
-
- 1. ノ〖マルモ〖ドで / という矢机をタイプします。茶烫办戎布に : コマンドと
- 票じ屯に / が附れることに丹づくでしょう。
-
- 2. では、'errroor' <ENTER> とタイプしましょう。これが浮瑚したい帽胳です。
-
- 3. 票じ胳をもう办刨浮瑚するときは 帽に n をタイプします。
- 嫡数羹に胳剁を浮瑚するときは N をタイプします。
-
- 4. 嫡数羹に胳剁を浮瑚する眷圭は、/ の洛わりに ? コマンドを蝗脱します。
-
- 5. 傅の眷疥に提るには CTRL-O (Ctrl を病し鲁けながら o 矢机タイプ)をタイプし
- ます。さらに提るにはこれを帆り手します。CTRL-I は涟数羹です。
-
-Note: "errroor" は error とスペルが般います; errroor はいわゆる error です。
-Note: 浮瑚がファイルの姜わりに茫すると、オプション 'wrapscan' が肋年されている
- 眷圭は、ファイルの黎片から浮瑚を鲁乖します。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 4.3: 滦炳する崇柑を浮瑚
-
-
- ** 滦炳する ),] や } を浮瑚するには % をタイプします **
-
- 1. 布の ---> で绩された乖で (,[ か { のどれかにカ〖ソルを败瓢しましょう。
-
- 2. そこで % とタイプしましょう。
-
- 3. カ〖ソルは滦炳する崇柑に败瓢するはずです。
-
- 4. 呵介の崇柑に败瓢するには % とタイプしましょう。
-
- 5. 戮の (,),[,],{ or } でカ〖ソルを败瓢し、% が部をしているか澄千しましょう。
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-
-NOTE: この怠墙は崇柑が办米していないプログラムをデバッグするのにとても舔惟ち
- ます。
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 4.4: 粗般いを恃构する数恕
-
-
- ** 'old' を 'new' に弥垂するには :s/old/new/g とタイプします **
-
- 1. 笆布の ---> と绩された乖にカ〖ソルを败瓢しましょう。
-
- 2. :s/thee/the <ENTER> とタイプしましょう。このコマンドはその乖で呵介に斧
- つかったものにだけ乖なわれることに丹をつけましょう。
-
- 3. では :s/thee/the/g とタイプしましょう。乖链挛を弥垂することを罢蹋します。
- この恃构はその乖で斧つかった链ての舱疥に滦して乖なわれます。
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 剩眶乖から斧つかる矢机を恃构するには
- :#,#s/old/new/g #,# には弥き垂える认跋の倡幌と姜位の乖戎规を回年しま
- す。
- :%s/old/new/g ファイル链挛で斧つかるものに滦して恃构する。
- :%s/old/new/gc ファイル链挛で斧つかるものに滦して、1つ1つ澄千をとりな
- がら恃构する。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 4 妥腆
-
-
- 1. CTRL-G はファイルでの疤弥とファイルの拒嘿を山绩します。
- G はファイルの呵布乖に败瓢します。
- 眶猛 G はその乖に败瓢します。
- gg は黎片乖に败瓢します。
-
- 2. / の稿に胳剁をタイプすると涟数に胳剁を浮瑚します。
- ? の稿に胳剁をタイプすると稿数に胳剁を浮瑚します。
- 浮瑚の稿の n は票じ数羹の肌の浮瑚を、N は嫡数羹の浮瑚をします。
- CTRL-O は眷疥を涟に败し、CTRL-I は眷疥を肌に败瓢します。
-
- 3. (,),[,],{, もしくは } 惧にカ〖ソルがある觉轮で % をタイプすると滦になる矢
- 机へ败瓢します。
-
- 4. 附哼乖の呵介の old を new に弥垂する。 :s/old/new
- 附哼乖の链ての old を new に弥垂する。 :s/old/new/g
- 2つの # 粗で胳剁を弥垂する。 :#,#s/old/new/g
- ファイルの面の链ての浮瑚胳剁を弥垂する。 :%s/old/new/g
- 'c' を裁えると弥垂の刨に澄千を滇める。 :%s/old/new/gc
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 5.1: 嘲婶コマンドを悸乖する数恕
-
-
- ** :! の稿に悸乖する嘲婶コマンドをタイプします **
-
- 1. 茶烫の呵布婶にカ〖ソルが败瓢するよう、捶れ科しんだ : をタイプしましょう。
- これでコマンドがタイプできる屯になります。
-
- 2. ここで ! という矢机(炊貌射)をタイプしましょう。
- これで嘲婶シェルコマンドが悸乖できる屯になります。
-
- 3. 毋として ! に鲁けて ls とタイプし <ENTER> を病しましょう。
- シェルプロンプトのようにディレクトリの办枉が山绩されるはずです。
- もしくは ls が瓢かないならば :!dir を蝗脱しましょう。
-
-Note: この数恕によってあらゆるコマンドが悸乖することができます。もちろん苞眶
- も涂えられます。
-
-Note: 链ての : コマンドは <ENTER> を病して姜位しなければなりません。
- 笆惯ではこのことに咐第しません。
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 5.2: その戮のファイルへ今き哈み
-
-
- ** ファイルへ恃构を瘦赂するには :w ファイル叹 とタイプします **
-
- 1. ディレクトリの办枉を评るために :!dir もしくは :!ls とタイプしましょう。
- このあと <ENTER> を病すのは贷にご赂梦ですね。
-
- 2. TEST のように、そのディレクトリに痰いファイル叹を办つ联びます。
-
- 3. では :w TEST とタイプしましょう (TEST は、联んだファイル叹です)。
-
- 4. これによりファイル链挛が TEST という叹涟で瘦赂されます。
- もう办刨 :!dir もしくは !ls とタイプして澄千してみましょう。
-
-Note: ここで Vim を姜位し、ファイル叹 TEST と鼎に弹瓢すると、瘦赂した箕の
- チュ〖トリアルの剩澜ができ惧がるはずです。
-
- 5. さらに、肌のようにタイプしてファイルを久しましょう(MS-DOS): :!del TEST
- もしくは(Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 5.3: 联买した今き哈み
-
-
-** ファイルの疤弥を瘦赂するには、v モ〖ションと :w FILENAME をタイプします。 **
-
- 1. この乖にカ〖ソルを败瓢します。
-
- 2. v を病し、笆布の妈5灌誊にカ〖ソルを败瓢します。テキストが动拇山绩されるの
- に庙誊して布さい。
-
- 3. 矢机 : を病すと、茶烫の呵布婶に :'<,'> が附れます。
-
- 4. w TEST (TESET は赂哼しないファイル叹)をタイプします。
- Enter を病す涟に :'<,'>w TEST となっていることを澄千して布さい。
-
- 5. Vim は TEST というファイルに联买された乖を今き哈むでしょう。
- !dir もしくは !ls でそれを澄千します。
- それは猴近しないでおいて布さい。肌のレッスンで蝗脱します。
-
-NOTE: v を病すと、Visual 联买が幌まります。カ〖ソルを瓢かすことで、联买认跋を
- 络きくも井さくもできます。さらに、その联买认跋に滦してオペレ〖タを努脱
- きます。毋えば d はテキストを猴近します。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 5.4: ファイルの艰哈と圭驶
-
-
- ** ファイルの面咳を赁掐するには :r ファイル叹 とタイプします **
-
- 1. カ〖ソルを笆布の乖に圭わせます。
-
-NOTE: ステップ 2 の悸乖稿、レッスン 5.3 のテキストが附れます。布に布がってこ
- のレッスンに败瓢しましょう。
-
- 2. では TEST というファイルを :r TEST というコマンドで粕み哈みましょう。
- ここでいう TEST は蝗うファイルの叹涟のことです。
- 粕み哈まれたファイルは、カ〖ソル乖の布にあります。
-
- 3. 艰哈んだファイルを澄千してみましょう。カ〖ソルを提すと、レッスン5.3 の
- オリジナルとファイルによるものの2つがあることがわかります。
-
-NOTE: 嘲婶コマンドの叫蜗を粕み哈むことも叫丸ます。毋えば、
- :r !ls は ls コマンドの叫蜗をカ〖ソル笆布に粕み哈みます。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 5 妥腆
-
-
- 1. :!command によって 嘲婶コマンドを悸乖します。
-
- よく蝗う毋:
- (MS-DOS) (Unix)
- :!dir :!ls - ディレクトリ柒の办枉を斧る。
- :!del FILENAME :!rm FILENAME - ファイルを猴近する。
-
- 2. :w ファイル叹 によってファイル叹というファイルがディスクに今き哈まれる。
-
- 3. v モ〖ションで :w FILENAME とすると、ビジュアル联买乖がファイルに瘦赂さ
- れる。
-
- 4. :r ファイル叹 によりファイル叹というファイルがディスクより艰哈まれ、
- カ〖ソル疤弥の布に赁掐される。
-
- 5. :r !dir は dir コマンドの叫蜗をカ〖ソル疤弥笆布に粕み哈む。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 6.1: オ〖プンコマンド
-
-
- ** o をタイプすると、カ〖ソルの布の乖が倡き、赁掐モ〖ドに掐ります **
-
- 1. 笆布の ---> と绩された乖にカ〖ソルを败瓢しましょう。
-
- 2. o (井矢机) をタイプして、カ〖ソルの布の乖を倡き、赁掐モ〖ドに掐ります。
-
- 3. さらに赁掐モ〖ドを姜位する百に <ESC> をタイプします。
-
----> o をタイプするとカ〖ソルは倡いた乖へ败瓢し赁掐モ〖ドに掐ります。
-
- 4. カ〖ソルの惧の乖に赁掐するには、井矢机の o ではなく、帽姐に络矢机の O
- をタイプします。肌の乖で活してみましょう。
-
----> この乖の惧へ赁掐するには、この乖へカ〖ソルを弥いて O をタイプします。
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 6.2: 纳裁コマンド
-
-
- ** カ〖ソルの肌の疤弥からテキストを纳裁するには a とタイプします **
-
- 1. カ〖ソルを ---> で绩された度へ败瓢しましょう。
-
- 2. e を病して li の姜眉婶までカ〖ソルを败瓢します。
-
- 3. カ〖ソルの稿ろにテキストを纳裁するために a (井矢机) をタイプします。
-
- 4. その布の乖ののような帽胳に窗喇させます。赁掐モ〖ドを却ける百に <ESC> に病
- します。
-
- 5. e を蝗って肌の稍窗链な帽胳へ败瓢し、ステップ 3 と 4 を帆り手します。
-
----> This li will allow you to pract appendi text to a line.
----> This line will allow you to practice appending text to a line.
-
-Note: a, i と A は票じ赁掐モ〖ドへ败りますが、矢机が赁掐される疤弥だけが佰なり
- ます。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 6.3: その戮の弥垂数恕
-
-
- ** 1矢机笆惧を弥き垂えるには络矢机の R とタイプしましょう **
-
- 1. 笆布の ---> と绩された度にカ〖ソルを败瓢します。呵介の xxx の黎片に败瓢し
- ます。
-
- 2. R を病して、2乖誊の眶猛をタイプすることで、xxx が弥垂されます。
-
- 3. 弥垂モ〖ドを却けるには <ESC> を病します。乖の荒りが恃构されていないままに
- なることに庙罢してください。
-
- 5. 荒った xxx をステップを帆り手して弥垂しましょう。
-
----> Adding 123 to xxx gives you xxx.
----> Adding 123 to 456 gives you 579.
-
-NOTE: 弥垂モ〖ドは赁掐モ〖ドに击ていますが、链てのタイプされた矢机は贷赂の矢机
- を猴近します。
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 6.4: テキストのコピ〖とペ〖スト
-
-
- ** テキストのコピ〖にはオペレ〖タ y を、ペ〖ストには p を蝗います **
-
- 1. ---> と绩された乖へ败瓢し、カ〖ソルを "a)" の稿に弥いておきます。
-
- 2. v でビジュアルモ〖ドを倡幌し、"first"の缄涟までカ〖ソルを败瓢します。
-
- 3. y をタイプして动拇山绩されたテキストを yank (コピ〖)します。
-
- 4. 肌の乖の乖琐までカ〖ソルを败瓢します: j$
-
- 5. p を病して沤り烧け(put)てから、肌をタイプします: a second <ESC>
-
- 6. ビジュアルモ〖ドで " item." を联买し、y でヤンク、肌の乖の乖琐まで j$ で
- 败瓢し、 p でテキストをそこに put します。
-
----> a) this is the first item.
- b)
-
- Note: 帽胳を1つ yank するのに y をオペレ〖タとして yw とすることも叫丸ます。
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 6.5: オプションの肋年
-
-
- ** 浮瑚や弥垂の狠に络矢机/井矢机を痰浑するには、オプションを肋年します **
-
- 1. 肌の屯に掐蜗して 'ignore' を浮瑚しましょう: /ignore <ENTER>
- n を病して部刨か浮瑚を帆り手します。
-
- 2. 肌の屯に掐蜗して 'ic' (Ignore Case の维) オプションを肋年します: :set ic
-
- 3. では n によってもう1刨 'ignore' を浮瑚します。
- n を病してさらに眶搀浮瑚を帆り手しましょう。
-
- 4. 'hlsearch' と 'incsearch' オプションを肋年しましょう: :set hls is
-
- 5. 浮瑚コマンドを浩掐蜗して、部が弹こるか斧てみましょう: /ignore <ENTER>
-
- 6. 络矢机井矢机の惰侍を痰跟にするには肌の屯に掐蜗します: :set noic
-
-Note: マッチの动拇山绩をやめるには肌の屯に掐蜗します: :nohlsearch
-Note: 1つの浮瑚コマンドだけ络矢机井矢机の惰侍をやめたいならば、フレ〖ズに \c
- を蝗脱します: /ignore\c <ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 6 妥腆
-
- 1. o をタイプするとカ〖ソルの布の乖を倡けて、そこで赁掐モ〖ドになる。
- O (络矢机) をタイプするとカ〖ソルの惧の乖で赁掐モ〖ドになる。
-
- 2. カ〖ソル惧の矢机の肌からテキストを纳裁するには a とタイプする。
- 乖琐に极瓢でテキストを赁掐するには络矢机 A をタイプする。
-
- 3. e コマンドは帽胳の姜眉婶カ〖ソルを败瓢する。
-
- 4. y オペレ〖タはテキストを yank (コピ〖)し、p はそれを put (ペ〖スト)する。
-
- 5. 络矢机の R をタイプすると弥垂モ〖ドに掐り、<ESC>を病すと却ける。
-
- 6. ":set xxx" とタイプするとオプション "xxx" が肋年される。
- 'ic' 'ignorecase' 浮瑚箕に络矢机井矢机の惰侍しない
- 'is' 'incsearch' 浮瑚フレ〖ズに婶尸マッチしている婶尸を山绩する
- 'hls' 'hlsearch' マッチするすべを动拇山绩する
- 墓い数、没い数、どちらのオプション叹でも蝗脱できます。
-
- 7. "no" を烧涂し、オプションを痰跟にします: :set noic
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 7.1: オンラインヘルプコマンド
-
-
- ** オンラインヘルプを蝗脱しましょう **
-
- Vim には弓认にわたるオンラインヘルプシステムがあります。
- ヘルプを倡幌するには、これら3つのどれか1つを活してみましょう:
- - ヘルプキ〖 <HELP> を病す(もしあるならば)。
- - <F1> キ〖を病す(もしあるならば)。
- - :help <ENTER> とタイプする。
-
- ヘルプウィンドウのテキストを粕むと、ヘルプの瓢侯が妄豺できます。
- CTRL-W CTRL-W とタイプすると ヘルプウィンドウへジャンプします。
- :q <ENTER> とタイプすると ヘルプウィンドウが誓じられます。
-
- ":help" コマンドに苞眶を涂えることにより、あらゆる玛叹のヘルプを斧つけること
- ができます。これらを活してみましょう(<ENTER> をタイプし撕れないように):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 7.2: 弹瓢スクリプトの侯喇
-
- ** Vim の泼魔を券带する **
-
- Vim には Vi よりも驴くの泼魔を僻まえていまが、そのほとんどは介袋觉轮にて
- 蝗脱稍材となっています。より驴くの泼魔を蝗いはじめるには "vimrc" ファイル
- を侯喇します。
-
- 1. "vimrc" ファイルの试礁を倡幌する。これはシステムに巴赂します。
- :edit ~/.vimrc UNIX 羹け
- :edit $VIM/_vimrc MS-Windows 羹け
-
- 2. ここでサンプルの "vimrc" を粕み哈みます。
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 笆布のようにファイルへ今き哈みます。
- :write
-
- 肌搀 Vim を弹瓢すると、咖づけ菇矢が蝗えるようになるでしょう。
- この "vimrc" ファイルへ、お攻みの肋年を纳裁することができます。
- より驴くの攫鼠を评るには :help vimrc-intro とタイプします。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 7.3: 输窗
-
-
- ** CTRL-D と <TAB> でコマンドラインを输窗する **
-
- 1. コンパチモ〖ドでないことを澄千します: :set nocp
-
- 2. 附哼のディレクトリに哼るファイルを :!ls か :!dir で澄千します。
-
- 3. コマンドの倡幌をタイプします: :e
-
- 4. CTRL-D を病すと Vim は "e" から幌まるコマンドの办枉を山绩します。
-
- 5. <TAB> を病すと Vim は ":edit" というコマンド叹を输窗します。
-
- 6. さらに鄂球と、贷赂のファイル叹の幌まりを裁えます: :edit FIL
-
- 7. <TAB> を病すと Vim は叹涟を输窗します。(もし办つしか痰かった眷圭)
-
-NOTE: 输窗は驴くのコマンドで瓢侯します。そして CTRL-D と <TAB> 病してみてくだ
- さい。泼に :help の狠に舔惟ちます。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- レッスン 7 妥腆
-
-
- 1. ヘルプウィンドウを倡くには :help とするか <F1> もしくは <Help> を病す。
-
- 2. コマンド(cmd)のヘルプを浮瑚するには :help cmd とタイプする。
-
- 3. 侍のウィンドウへジャンプするには CTRL-W CTRL-W とタイプする。
-
- 4. ヘルプウィンドウを誓じるには :q とタイプする。
-
- 5. お攻みの肋年を瘦つには vimrc 弹瓢スクリプトを侯喇する。
-
- 6. : command で材墙な输窗を斧るには CTRL-D をタイプする。
- 输窗を蝗脱するには <TAB> を病す。
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- これにて Vim のチュ〖トリアルを姜わります。エディタを词帽に、しかも郊尸に
- 蝗うことができるようにと、Vim の积つ车前の妥爬のみを帕えようとしました。
- Vim にはさらに驴くのコマンドがあり、ここで链てを棱汤することはできません。
- 笆惯はユ〖ザマニュアルを徊救ください: "help :user-manual"
-
- これ笆稿の池浆のために、肌の塑を夸力します。
- Vim - Vi Improved - by Steve Oualline
- 叫惹家: New Riders
- 呵介の塑は窗链に Vim のために今かれました。とりわけ介看荚にはお京めです。
- 驴くの毋玛や哭惹が非很されています。
- 肌のURLを徊救して布さい http://iccf-holland.org/click5.html
-
- 肌は Vim よりも Vi について今かれた概い塑ですが夸力します:
- Learning the Vi Editor - by Linda Lamb
- 叫惹家: O'Reilly & Associates Inc.
- Vi でやりたいと蛔うことほぼ链てを梦ることができる紊今です。
- 妈6惹では、Vim についての攫鼠も崔まれています。
-
- このチュ〖トリアルは Colorado State University の Charles Smith のアイデア
- を答に、Colorado School of Mines の Michael C. Pierce と Robert K. Ware の
- 尉叹によって今かれました。 E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
-
- 泣塑胳条 揪塑 沦拱 <mattn_jp@hotmail.com>
- 雌饯 录铂 吕虾 <koron@tka.att.ne.jp>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- vi:set ts=8 sts=4 sw=4 tw=78:
diff --git a/runtime/tutor/tutor.ja.sjis b/runtime/tutor/tutor.ja.sjis
deleted file mode 100644
index 3bb3c2c37..000000000
--- a/runtime/tutor/tutor.ja.sjis
+++ /dev/null
@@ -1,975 +0,0 @@
-===============================================================================
-= V I M 嫵 杮 (僠儏乕僩儕傾儖) 傊 傛 偆 偙 偦 - Version 1.7 =
-===============================================================================
-
- Vim 偼丄偙偺僠儏乕僩儕傾儖偱愢柧偡傞偵偼懡偡偓傞掱偺僐儅儞僪傪旛偊偨旕忢
- 偵嫮椡側僄僨傿僞乕偱偡丅偙偺僠儏乕僩儕傾儖偼丄偁側偨偑 Vim 傪枩擻僄僨傿
- 僞乕偲偟偰巊偄偙側偣傞傛偆偵側傞偺偵廫暘側僐儅儞僪偵偮偄偰愢柧傪偡傞傛偆
- 側偭偰偄傑偡丅
-
- 僠儏乕僩儕傾儖傪姰椆偡傞偺偵昁梫側帪娫偼丄妎偊偨僐儅儞僪傪帋偡偺偵偳傟偩
- 偗帪娫傪巊偆偺偐偵傕傛傝傑偡偑丄偍傛偦25偐傜30暘偱偡丅
-
- ATTENTION:
- 埲壓偺楙廗梡僐儅儞僪偵偼偙偺暥復傪曄峏偡傞傕偺傕偁傝傑偡丅楙廗傪巒傔傞慜
- 偵僐僺乕傪嶌惉偟傑偟傚偆("vimtutor"偟偨側傜偽丄婛偵僐僺乕偝傟偰偄傑偡)丅
-
- 偙偺僠儏乕僩儕傾儖偑丄巊偆偙偲偱妎偊傜傟傞巇慻傒偵側偭偰偄傞偙偲傪丄怱偟
- 偰偍偐側偗傟偽側傝傑偣傫丅惓偟偔妛廗偡傞偵偼僐儅儞僪傪幚嵺偵帋偝側偗傟偽
- 側傜側偄偺偱偡丅暥復傪撉傫偩偩偗側傜偽丄偒偭偲朰傟偰偟傑偄傑偡!丅
-
- 偝偀丄Caps儘僢僋(Shift-Lock)僉乕偑墴偝傟偰偄側偄偙偲傪妋擣偟偨屻丄夋柺偵
- 儗僢僗儞1.1 偑慡晹昞帵偝傟傞偲偙傠傑偱丄j 僉乕傪墴偟偰僇乕僜儖傪堏摦偟傑
- 偟傚偆丅
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1.1: 僇乕僜儖偺堏摦
-
-
- ** 僇乕僜儖傪堏摦偡傞偵偼丄帵偝傟傞條偵 h,j,k,l 傪墴偟傑偡 **
- ^
- k 僸儞僩: h 僉乕偼嵍曽岦偵堏摦偟傑偡丅
- < h l > l 僉乕偼塃曽岦偵堏摦偟傑偡丅
- j j 僉乕偼壓栴報僉乕偺傛偆側僉乕偱偡丅
- v
- 1. 堏摦偵姷傟傞傑偱丄僗僋儕乕儞偱僇乕僜儖堏摦偝偣傑偟傚偆丅
-
- 2. 壓傊偺僉乕(j)傪墴偟偮偯偗傞偲丄楢懕偟偰堏摦偱偒傑偡丅
- 偙傟偱師偺儗僢僗儞偵堏摦偡傞曽朄偑傢偐傝傑偟偨偹丅
-
- 3. 壓傊偺僉乕傪巊偭偰丄儗僢僗儞1.2 偵堏摦偟傑偟傚偆丅
-
-Note: 壗傪僞僀僾偟偰偄傞偐敾傜側偔側偭偨傜丄<ESC>傪墴偟偰僲乕儅儖儌乕僪偵偟
- 傑偡丅偦傟偐傜擖椡偟傛偆偲偟偰偄偨僐儅儞僪傪嵞擖椡偟傑偟傚偆丅
-
-Note: 僇乕僜儖僉乕偱傕堏摦偱偒傑偡丅偟偐偟 hjkl 偵堦搙姷傟偰偟傑偊偽丄偼傞偐
- 偵懍偔堏摦偡傞偙偲偑偱偒傞偱偟傚偆丅偄傗儅僕偱!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1.2: VIM 偺婲摦偲廔椆
-
-
- !! NOTE: 埲壓偺偁傜備傞僗僥僢僾傪峴偆慜偵丄偙偺儗僢僗儞傪撉傒傑偟傚偆!!
-
- 1. <ESC>僉乕傪墴偟傑偟傚偆丅(妋幚偵僲乕儅儖儌乕僪偵偡傞偨傔)
-
- 2. 師偺傛偆偵僞僀僾: :q! <ENTER>
- 偙傟偵傛傝曇廤偟偨撪梕傪曐懚偣偢偵僄僨傿僞偑廔椆偟傑偡丅
-
- 3. 僔僃儖僾儘儞僾僩偑弌偰偒偨傜丄偙偺僠儏乕僩儕傾儖傪巒傔傞堊偵偵僐儅儞僪
- 傪僞僀僾偟傑偡丅
- 偦偺僐儅儞僪偼: vimtutor <ENTER>
-
- 4. 偙傟傑偱偺僗僥僢僾傪妎偊帺怣偑偮偄偨側傜偽丄僗僥僢僾 1 偐傜 3 傑偱傪幚
- 嵺偵帋偟偰丄Vim 傪1搙廔椆偟偰偐傜嵞傃婲摦偟傑偟傚偆丅
-
-NOTE: :q! <ENTER> 偼慡偰偺曄峏傪攋婞偟傑偡丅儗僢僗儞偵偰曄峏傪僼傽僀儖偵曐
- 懚偡傞曽朄偵偮偄偰傕曌嫮偟偰偄偒傑偟傚偆丅
-
- 5. 1.3傑偱僇乕僜儖傪堏摦偝偣傑偟傚偆丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1.3: 僥僉僗僩曇廤 - 嶍彍
-
-
- ** 僲乕儅儖儌乕僪偵偰僇乕僜儖偺壓偺暥帤傪嶍彍偡傞偵偼 x 傪墴偟傑偡 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. 娫堘偄傪廋惓偡傞偨傔偵丄嶍彍偡傞嵟弶偺暥帤傑偱僇乕僜儖傪堏摦偟傑偡丅
-
- 3. 晄昁梫側暥帤傪 x 傪墴偟偰嶍彍偟傑偟傚偆丅
-
- 4. 暥偑惓偟偔側傞傑偱 僗僥僢僾 2 偐傜 4 傪孞傝曉偟傑偟傚偆丅
-
----> 偦偺 偆偆偝偓 偼 偮偮偒偒 傪 偙偊偊偰偰 偲傃偼偹偨偨
-
- 5. 峴偑惓偟偔側偭偨傜丄儗僢僗儞 1.4 傊恑傒傑偟傚偆丅
-
-NOTE: 慡偰偺儗僢僗儞傪捠偠偰丄妎偊傛偆偲偡傞偺偱偼側偔幚嵺偵傗偭偰傒傑偟傚偆丅
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1.4: 僥僉僗僩曇廤 - 憓擖
-
-
- ** 僲乕儅儖儌乕僪偵偰僥僉僗僩傪憓擖偡傞偵偼 i 傪墴偟傑偡 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨嵟弶偺峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. 1峴栚傪2峴栚偲摨偠條偵偡傞偨傔偵丄僥僉僗僩傪憓擖偟側偗傟偽側傜側偄埵抲
- 偺師偺暥帤偵僇乕僜儖傪堏摦偟傑偡丅
-
- 3. i 僉乕傪墴偟偰偐傜丄捛壛偑昁梫側暥帤傪僞僀僾偟傑偟傚偆丅
-
- 4. 娫堘偄傪廋惓偟偨傜 <ESC> 傪墴偟偰僐儅儞僪儌乕僪偵栠傝丄惓偟偄暥偵側傞條
- 偵僗僥僢僾 2 偐傜 4 傪孞傝曉偟傑偟傚偆丅
-
----> 偙偺 偵偼 懌傝側偄 僥僉僗僩 偁傞丅
----> 偙偺 峴 偵偼 婔偮偐 懌傝側偄 僥僉僗僩 偑 偁傞丅
-
- 5. 憓擖偺曽朄偑傢偐偭偨傜壓偺儗僢僗儞1偺梫栺傪尒傑偟傚偆丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1.5: 僥僉僗僩曇廤 - 捛壛
-
-
- ** 僥僉僗僩捛壛偡傞偵偼 A 傪墴偟傑偟傚偆 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨嵟弶偺峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
- 僇乕僜儖偑偦偺暥帤忋偵偁偭偰傕偐傑偄傑偣傫丅
-
- 2. 捛壛偑昁梫側応強偱 A 傪僞僀僾偟傑偟傚偆丅
-
- 3. 僥僉僗僩傪捛壛偟廔偊偨傜丄 <ESC> 傪墴偟偰僲乕儅儖儌乕僪偵栠傝傑偟傚偆丅
-
- 4. 2峴栚偺 ---> 偲帵偝傟偨応強傊堏摦偟丄僗僥僢僾 2 偐傜 3 孞傝曉偟偰暥朄傪
- 廋惓偟傑偟傚偆丅
-
----> 偙偙偵偼娫堘偭偨僥僉僗僩偑偁傝
- 偙偙偵偼娫堘偭偨僥僉僗僩偑偁傝傑偡丅
----> 偙偙偵傕娫堘偭偨僥僉僗
- 偙偙偵傕娫堘偭偨僥僉僗僩偑偁傝傑偡丅
-
- 5. 僥僉僗僩偺捛壛偑寉夣偵側偭偰偒偨傜儗僢僗儞 1.6 傊恑傒傑偟傚偆丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1.6: 僼傽僀儖偺曇廤
-
-
- ** 僼傽僀儖傪曐懚偟偰廔椆偡傞偵偼 :wq 偲僞僀僾偟傑偡 **
-
- !! NOTE: 埲壓偺僗僥僢僾傪幚峴偡傞慜偵丄傑偢慡懱傪撉傫偱偔偩偝偄!!
-
- 1. 儗僢僗儞 1.2 偱傗偭偨傛偆偵 :q! 傪僞僀僾偟偰丄偙偺僠儏乕僩儕傾儖傪廔椆
- 偟傑偡丅
-
- 2. 僔僃儖僾儘儞僾僩偱偙偺僐儅儞僪傪僞僀僾偟傑偡: vim tutor <ENTER>
- 'vim'偑 Vim 僄僨傿僞傪婲摦偡傞僐儅儞僪丄'tutor' 偼曇廤偟偨偄僼傽僀儖偺
- 柤慜偱偡丅曄峏偟偰傕傛偄僼傽僀儖傪巊偄傑偟傚偆丅
-
- 3. 慜偺儗僢僗儞偱妛傫偩傛偆偵丄僥僉僗僩傪憓擖丄嶍彍偟傑偡丅
-
- 4. 曄峏傪僼傽僀儖偵曐懚偟傑偡: :wq <ENTER>
-
- 5. vimtutor 傪嵞搙婲摦偟丄埲壓偺梫栺傊恑傒傑偟傚偆丅
-
- 6. 埲忋偺僗僥僢僾傪撉傫偱棟夝偟偨忋偱偙傟傪幚峴偟傑偟傚偆丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 1 梫栺
-
-
- 1. 僇乕僜儖偼栴報僉乕傕偟偔偼 hjkl 僉乕偱堏摦偟傑偡丅
- h (嵍) j (壓) k (忋) l (塃)
-
- 2. Vim 傪婲摦偡傞偵偼僾儘儞僾僩偐傜 vim 僼傽僀儖柤 <ENTER> 偲僞僀僾偟傑偡丅
-
- 3. Vim 傪廔椆偡傞偵偼 <ESC> :q! <ENTER> 偲僞僀僾偟傑偡(曄峏傪攋婞)丅
- 傕偟偔偼 <ESC> :wq <ENTER> 偲僞僀僾偟傑偡(曄峏傪曐懚)丅
-
- 4. 僇乕僜儖偺壓偺暥帤傪嶍彍偡傞偵偼丄僲乕儅儖儌乕僪偱 x 偲僞僀僾偟傑偡丅
-
- 5. 僇乕僜儖偺埵抲偵暥帤傪憓擖偡傞偵偼丄僲乕儅儖儌乕僪偱 i 偲僞僀僾偟傑偡丅
- i 僥僉僗僩偺僞僀僾 <ESC> 僇乕僜儖埵抲偵捛壛
- A 僥僉僗僩偺捛壛 <ESC> 峴枛偵捛壛
-
-NOTE: <ESC> 僉乕傪墴偡偲僲乕儅儖儌乕僪偵堏峴偟傑偡丅偦偺嵺丄娫堘偭偨傝擖椡搑
- 拞偺僐儅儞僪傪庢傝徚偡偙偲偑偱偒傑偡丅
-
-偝偰丄懕偗偰儗僢僗儞 2 傪巒傔傑偟傚偆丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.1: 嶍彍僐儅儞僪
-
-
- ** 扨岅偺枛旜傑偱傪嶍彍偡傞偵偼 dw 偲僞僀僾偟傑偟傚偆 **
-
- 1. 僲乕儅儖儌乕僪偱偁傞偙偲傪妋擣偡傞偨傔偵 <ESC> 傪墴偟傑偟傚偆丅
-
- 2. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 3. 徚偟偨偄扨岅偺愭摢偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 4. 扨岅傪嶍彍偡傞偨傔偵 dw 偲僞僀僾偟傑偟傚偆丅
-
- NOTE: 僞僀僾偡傞偲丄dw 偲偄偆暥帤偑僗僋儕乕儞偺嵟壓峴偵尰傢傟傑偡丅
- 僞僀僾傪娫堘偭偰偟傑偭偨帪偵偼 <ESC> 傪墴偟偰傗傝捈偟傑偟傚偆丅
-
----> 偙偺 暥 巻 偵偼 偄偔偮偐偺 偨偺偟偄 昁梫偺側偄 扨岅 偑 娷傑傟偰 偄傑偡丅
-
- 5. 3 偐傜 4 傑偱傪暥偑惓偟偔側傞傑偱孞傝曉偟丄儗僢僗儞 2.2 傊恑傒傑偟傚偆丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.2: 偦偺懠偺嶍彍僐儅儞僪
-
-
- ** 峴偺枛旜傑偱傪嶍彍偡傞偵偼 d$ 偲僞僀僾偟傑偟傚偆 **
-
- 1. 僲乕儅儖儌乕僪偱偁傞偙偲傪妋擣偡傞偺偵 <ESC> 傪墴偟傑偟傚偆丅
-
- 2. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 3. 惓偟偄暥偺枛旜傊僇乕僜儖傪堏摦偟傑偟傚偆(嵟弶偺 . 偺屻偱偡)丅
-
- 4. 峴枛傑偱嶍彍偡傞偺偵 d$ 偲僞僀僾偟傑偟傚偆丅
-
----> 扤偐偑偙偺峴偺嵟屻傪2搙僞僀僾偟傑偟偨丅 2搙僞僀僾偟傑偟偨丅
-
-
- 5. 偳偆偄偆偙偲偐棟夝偡傞偨傔偵丄儗僢僗儞 2.3 傊恑傒傑偟傚偆丅
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.3: 僆儁儗乕僞偲儌乕僔儑儞
-
-
- 懡偔偺僐儅儞僪偼僆儁儗乕僞偲儌乕僔儑儞偐傜僥僉僗僩偵曄峏傪壛傑偡丅
- 嶍彍僐儅儞僪 d 偺僆儁儗乕僞偼師偺條偵側偭偰偄傑偡:
-
- d 儌乕僔儑儞
-
- 偦傟偧傟:
- d - 嶍彍僐儅儞僪丅
- 儌乕僔儑儞 - 壗偵懳偟偰摥偒偐偗傞偐(埲壓偵嫇偘傑偡)丅
-
- 僆儁儗乕僞偺堦晹堦棗:
- w - 僇乕僜儖埵抲偐傜嬻敀傪娷傓扨岅偺枛旜傑偱丅
- e - 僇乕僜儖埵抲偐傜嬻敀傪娷傑側偄扨岅偺枛旜傑偱丅
- $ - 僇乕僜儖埵抲偐傜峴枛傑偱丅
-
- 偮傑傝 de 偲僞僀僾偡傞偲丄僇乕僜儖埵抲偐傜扨岅偺廔傢傝傑偱傪嶍彍偟傑偡丅
-
-NOTE: 朻尟偟偨偄恖偼丄僲乕儅儖儌乕僪偵偰僐儅儞僪側偟偵儌乕僔儑儞傪墴偟偰
- 傒傑偟傚偆丅僇乕僜儖偑栚揑岅堦棗偱帵偝傟傞埵抲偵堏摦偡傞偼偢偱偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.4: 儌乕僔儑儞偵僇僂儞僩傪巊梡偡傞
-
-
- ** 壗夞傕峴偄偨偄孞傝曉偟偺儌乕僔儑儞偺慜偵悢抣傪僞僀僾偟傑偡丅 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨嬈偺愭摢偵僇乕僜儖傪堏摦偟傑偡丅
-
- 2. 2dw 傪僞僀僾偟偰扨岅2偮暘堏摦偟傑偡丅
-
- 3. 3e 傪僞僀僾偟偰3偮栚偺扨岅偺廔抂偵堏摦偟傑偡丅
-
- 4. 0 (僛儘)傪僞僀僾偟偰峴摢偵堏摦偟傑偡丅
-
- 5. 僗僥僢僾 2 偲 3 傪堘偆悢抣偲巊偭偰孞傝曉偟傑偡丅
-
----> This is just a line with words you can move around in.
-
- 6. 儗僢僗儞 2.5 偵恑傒傑偟傚偆丅
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.5: 傛傝懡偔傪嶍彍偡傞偨傔偵僇僂儞僩傪巊梡偡傞
-
-
- ** 僆儁儗乕僞偲僇僂儞僩傪僞僀僾偡傞偲丄偦偺憖嶌偑暋悢夞孞傝曉偝傟傑偡丅 **
-
- 婛弎偺嶍彍偺僆儁儗乕僞偲儌乕僔儑儞偺慻傒崌傢偣偵僇僂儞僩傪捛壛偡傞偙偲偱丄
- 傛傝懡偔偺嶍彍偑峴偊傑偡:
- d 悢抣 儌乕僔儑儞
-
- 1. ---> 偲帵偝傟偨峴偺峴摢晹暘偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. UPPER CASE 偺扨岅2偮傪 2dw 偲僞僀僾偟偰嶍彍偟傑偡丅
-
- 3. UPPER CASE 偲偄偆楢懕偟偨扨岅傪丄1偮偺僐儅儞僪偲堎側傞僇僂儞僩傪巜掕偟丄
- 僗僥僢僾 1 偲 2 傪孞傝曉偟傑偡丅
-
----> 偙偺ABC DE峴偺FGHI JK LMN OP扨岅偼Q RS TUV鉟楉偵側偭偨丅
-
-NOTE: 僆儁儗乕僞 d 偲儌乕僔儑儞偺娫偵僇僂儞僩傪巊偭偨応崌丄僆儁儗乕僞偺側偄
- 応崌偺儌乕僔儑儞偺傛偆偵摦嶌偟傑偡丅
- 椺: 3dw 偲 d3w 偼摨摍偱丄3w 傪嶍彍偟傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.6: 峴偺憖嶌
-
-
- ** 峴慡懱傪嶍彍偡傞偵偼 dd 偲僞僀僾偟傑偡 **
-
- 峴慡懱傪嶍彍偡傞昿搙偑懡偄偺偱丄Vi偺僨僓僀僫乕偼峴偺嶍彍傪 d 偺2夞僞僀僾偲
- 偄偆娙扨側傕偺偵寛傔傑偟偨丅
-
- 1. 埲壓偺嬪偺2峴栚偵僇乕僜儖傪堏摦偟傑偡丅
- 2. dd 偲僞僀僾偟偰峴傪嶍彍偟傑偡丅
- 3. 偝傜偵4峴栚偵堏摦偟傑偡丅
- 4. 2dd 偲僞僀僾偟偰2峴傪嶍彍偟傑偡丅
-
----> 1) 僶儔偼愒偄丄
----> 2) 偮傑傜側偄傕偺偼妝偟偄丄
----> 3) 僗儈儗偼惵偄丄
----> 4) 巹偼幵傪傕偭偰偄傞丄
----> 5) 帪寁偑帪崗傪崘偘傞丄
----> 6) 嵒摐偼娒偄
----> 7) 僆儅僄儌僫乕
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2.7: 傗傝捈偟僐儅儞僪
-
-
- ** 嵟屻偺僐儅儞僪傪庢傝徚偡偵偼 u 傪墴偟傑偡丅U 偼峴慡懱偺庢徚偱偡丅 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟丄嵟弶偺娫堘偄偵僇乕僜
- 儖傪堏摦偟傑偟傚偆丅
- 2. x 傪僞僀僾偟偰偄傜側偄愭摢偺暥帤傪嶍彍偟傑偟傚偆丅
- 3. 偝偀丄u 傪僞僀僾偟偰嵟屻偵幚峴偟偨僐儅儞僪傪庢傝徚偟傑偟傚偆丅
- 4. 崱搙偼丄x 傪巊梡偟偰岆傝傪慡偰廋惓偟傑偟傚偆丅
- 5. 戝暥帤偺 U 傪僞僀僾偟偰丄峴傪尦偺忬懺偵栠偟傑偟傚偆丅
- 6. u 傪僞僀僾偟偰捈慜偺 U 僐儅儞僪傪庢徚偟傑偟傚偆丅
- 7. 偱偼僐儅儞僪傪嵞幚峴偡傞偺偵 CTRL-R (CTRL 傪墴偟偨傑傑 R 傪懪偮)傪悢夞
- 僞僀僾偟偰傒傑偟傚偆(庢徚偺庢徚)丅
-
----> 偙偺偺峴偺偺娫堘偄傪廋惓乆偟丄屻偱偦傟傜偺廋惓傪傪庢徚偟傑傑偡偡丅
-
- 8. 偙傟偼偲偰傕曋棙側僐儅儞僪偱偡丅偝偀儗僢僗儞 2 梫栺傊恑傒傑偟傚偆丅
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 2 梫栺
-
-
- 1. 僇乕僜儖埵抲偐傜扨岅偺枛旜傑偱傪嶍彍偡傞偵偼 dw 偲僞僀僾偟傑偡丅
- 2. 僇乕僜儖埵抲偐傜峴偺枛旜傑偱傪嶍彍偡傞偵偼 d$ 偲僞僀僾偟傑偡丅
- 3. 峴慡懱傪嶍彍偡傞偵偼 dd 偲僞僀僾偟傑偡丅
-
- 4. 儌乕僔儑儞傪孞傝曉偡偵偼悢抣傪晅梌偟傑偡: 2w
- 5. 曄峏偵梡偄傞僐儅儞僪偺宍幃偼
- 僆儁儗乕僞 [悢抣] 儌乕僔儑儞
-
- 偦傟偧傟:
- 僆儁儗乕僞 - 嶍彍 d 偺椶偱壗傪偡傞偐丅
- 悢抣 - 偦偺僐儅儞僪傪壗夞孞傝曉偡偐丅
- 儌乕僔儑儞 - w (扨岅)傗 $ (峴枛)側偳偺椶偱丄僥僉僗僩偺壗偵懳偟偰摥偒偐
- 偗傞偐丅
-
- 6. 峴偺愭摢偵堏摦偡傞偵偼僛儘傪巊梡偟傑偡: 0
-
- 7. 慜夞偺摦嶌傪庢徚偡: u (彫暥帤 u)
- 峴慡懱偺曄峏傪庢徚偡: U (戝暥帤 U)
- 庢徚偟偺庢徚偟: CTRL-R
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 3.1: 揬傝晅偗僐儅儞僪
-
-
- ** 嵟屻偵嶍彍偝傟偨峴傪僇乕僜儖偺屻偵揬傝晅偗傞偵偼 p 傪僞僀僾偟傑偡 **
-
- 1. 埲壓偺抜棊偺嵟弶偺峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. dd 偲僞僀僾偟偰峴傪嶍彍偟丄Vim 偺僶僢僼傽偵奿擺偟傑偟傚偆丅
-
- 3. 嶍彍偟偨峴偑杮棃偁傞傋偒埵抲偺忋偺峴傑偱丄僇乕僜儖傪堏摦偝偣傑偟傚偆丅
-
- 4. 僲乕儅儖儌乕僪偱 p 傪僞僀僾偟偰奿擺偟偨峴傪夋柺偵栠偟傑偡丅
-
- 5. 弴斣偑惓偟偔側傞條偵僗僥僢僾 2 偐傜 4 傪孞傝曉偟傑偟傚偆丅
-
- d) 婱曽傕妛傇偙偲偑偱偒傞?
- b) 僗儈儗偼惵偄丄
- c) 抦宐偲偼妛傇傕偺丄
- a) 僶儔偼愒偄丄
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 3.2: 抲偒姺偊僐儅儞僪
-
-
- ** 僇乕僜儖偺壓偺暥帤傪抲偒姺偊傞偵偼 r 傪僞僀僾偟傑偡 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨嵟弶偺峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. 嵟弶偺娫堘偄偺愭摢偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 3. r 偲僞僀僾偟丄娫堘偭偰偄傞暥帤傪抲偒姺偊傞丄惓偟偄暥帤傪僞僀僾偟傑偟傚偆丅
-
- 4. 嵟弶偺峴偑惓偟偔側傞傑偱僗僥僢僾 2 偐傜 3 傪孞傝曉偟傑偟傚偆丅
-
----> 偙偺崌傪恖椡偟偨帪偹丄偦偺恖偼婔偮偐栤堘偭偨僉乕傪墴偟傕偟偨!
----> 偙偺峴傪擖椡偟偨帪偵丄偦偺恖偼婔偮偐娫堘偭偨僉乕傪墴偟傑偟偨!
-
- 5. 偝偀丄儗僢僗儞 3.2 傊恑傒傑偟傚偆丅
-
-NOTE: 幚嵺偵帋偟傑偟傚偆丅寛偟偰妎偊傞偩偗偵偼偟側偄偙偲丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 3.3: 曄峏僐儅儞僪
-
-
- ** 扨岅偺堦晹丄傕偟偔偼慡懱傪曄峏偡傞偵偼 cw 偲僞僀僾偟傑偡 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨嵟弶偺峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. lubw 偺 u 偺埵抲偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 3. cw 偲僞僀僾偟丄惓偟偄扨岅傪僞僀僾偟傑偟傚偆(偙偺応崌 'ine' 偲僞僀僾)丅
-
- 4. 師偺娫堘偄(曄峏偡傋偒暥帤偺愭摢)偵堏摦偡傞偨傔偵 <ESC> 傪僞僀僾偟傑偡丅
-
- 5. 嵟弶偺峴偑師偺峴偺條偵側傞傑偱僗僥僢僾 3 偲 4 傪孞傝曉偟傑偡丅
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-cw 偼扨岅傪曄峏偡傞偩偗偱側偔丄憓擖傕峴偊傞偙偲偵拲堄偟傑偟傚偆丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 3.4: c 傪巊梡偟偨偦偺懠偺曄峏
-
-
- ** 曄峏僐儅儞僪偼丄嶍彍僐儅儞僪偲摨偠條偵僆僽僕僃僋僩傪巊梡偟傑偡 **
-
- 1. 曄峏僐儅儞僪偼丄嶍彍僐儅儞僪偲摨偠傛偆側摦嶌傪偟傑偡丅偦偺宍幃偼
-
- c [悢抣] 儌乕僔儑儞
-
- 2. 僆僽僕僃僋僩傕摨偠偱丄w 偼扨岅丄 $ 偼峴枛側偳偲偄偭偨傕偺偱偡丅
-
- 3. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 4. 嵟弶偺娫堘偄傊僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 5. c$ 偲僞僀僾偟偰峴偺巆傝傪俀峴栚偺條偵偟丄<ESC> 傪墴偟傑偟傚偆丅
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-NOTE: 僞僀僾拞偺娫堘偄偼僶僢僋僗儁乕僗僉乕傪巊偭偰捈偡偙偲傕偱偒傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 3 梫栺
-
-
- 1. 婛偵嶍彍偝傟偨僥僉僗僩傪嵞攝抲偡傞偵偼丄p 傪僞僀僾偟傑偡丅偙傟偼嶍彍偝
- 傟偨僥僉僗僩傪僇乕僜儖偺屻偵憓擖偟傑偡(峴扨埵偱嶍彍偝傟偨偺側傜偽丄僇乕
- 僜儖偺偁傞師偺峴偵憓擖偝傟傑偡)丅
-
- 2. 僇乕僜儖偺壓偺暥帤傪抲偒姺偊傞偵偼丄r 傪僞僀僾偟偨屻丄偦傟傪抲偒姺偊傞
- 暥帤傪僞僀僾偟傑偡丅
-
- 3. 曄峏僐儅儞僪偱偼僇乕僜儖埵抲偐傜摿掕偺儌乕僔儑儞偱巜掕偝傟傞廔抂傑偱傪曄
- 峏偡傞偙偲偑壜擻偱偡丅椺偊偽 cw 側傜偽僇乕僜儖埵抲偐傜扨岅偺廔傢傝傑偱丄
- c$ 側傜偽峴偺廔傢傝傑偱傪曄峏偟傑偡丅
-
- 4. 曄峏僐儅儞僪偺宍幃偼
-
- c [悢抣] 儌乕僔儑儞
-
-偝偀丄師偺儗僢僗儞傊恑傒傑偟傚偆丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 4.1: 埵抲偲僼傽僀儖偺忣曬
-
- ** 僼傽僀儖撪偱偺埵抲偲僼傽僀儖偺忬懺傪昞帵偡傞偵偼 CTRL-G 傪僞僀僾偟傑偡丅
- 僼傽僀儖撪偺偁傞峴偵堏摦偡傞偵偼 G 傪僞僀僾偟傑偡 **
-
- NOTE: 僗僥僢僾傪幚峴偡傞慜偵丄偙偺儗僢僗儞慡偰偵栚傪捠偟傑偟傚偆!!
-
- 1. CTRL 傪墴偟偨傑傑 g 傪墴偟傑偟傚偆丅偙偺憖嶌傪 CTRL-G 偲屇傫偱偄傑偡丅
- 儁乕僕偺堦斣壓偵僼傽僀儖柤偲峴斣崋偑昞帵偝傟傞偼偢偱偡丅 僗僥僢僾 3偺偨傔
- 偵峴斣崋傪妎偊偰偍偒傑偟傚偆丅
-
-NOTE: 夋柺偺塃壓嬿偵僇乕僜儖偺埵抲偑昞帵偝傟偰偄傞偐傕偟傟傑偣傫丅偙傟偼
- 'ruler' 僆僾僔儑儞(儗僢僗儞6偱愢柧)傪愝掕偡傞偙偲偱昞帵偝傟傑偡丅
-
- 2. 嵟壓峴偵堏摦偡傞偨傔偵 G 傪僞僀僾偟傑偟傚偆丅
- 僼傽僀儖偺愭摢偵堏摦偡傞偵偼 gg 偲僞僀僾偟傑偟傚偆丅
-
- 3. 愭傎偳偺峴偺斣崋傪僞僀僾偟 G 傪僞僀僾偟傑偟傚偆丅嵟弶偵 CTRL-G 傪墴偟偨峴
- 偵栠偭偰棃傞偼偢偱偡丅
-
- 4. 帺怣偑帩偰偨傜僗僥僢僾 1 偐傜 3 傪幚峴偟傑偟傚偆丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 4.2: 専嶕僐儅儞僪
-
-
- ** 岅嬪傪専嶕偡傞偵偼 / 偲丄慜曽専嶕偡傞岅嬪傪僞僀僾偟傑偡丅**
-
- 1. 僲乕儅儖儌乕僪偱 / 偲偄偆暥帤傪僞僀僾偟傑偡丅夋柺堦斣壓偵 : 僐儅儞僪偲
- 摨偠條偵 / 偑尰傟傞偙偲偵婥偯偔偱偟傚偆丅
-
- 2. 偱偼丄'errroor' <ENTER> 偲僞僀僾偟傑偟傚偆丅偙傟偑専嶕偟偨偄扨岅偱偡丅
-
- 3. 摨偠岅傪傕偆堦搙専嶕偡傞偲偒偼 扨偵 n 傪僞僀僾偟傑偡丅
- 媡曽岦偵岅嬪傪専嶕偡傞偲偒偼 N 傪僞僀僾偟傑偡丅
-
- 4. 媡曽岦偵岅嬪傪専嶕偡傞応崌偼丄/ 偺戙傢傝偵 ? 僐儅儞僪傪巊梡偟傑偡丅
-
- 5. 尦偺応強偵栠傞偵偼 CTRL-O (Ctrl 傪墴偟懕偗側偑傜 o 暥帤僞僀僾)傪僞僀僾偟
- 傑偡丅偝傜偵栠傞偵偼偙傟傪孞傝曉偟傑偡丅CTRL-I 偼慜曽岦偱偡丅
-
-Note: "errroor" 偼 error 偲僗儁儖偑堘偄傑偡; errroor 偼偄傢備傞 error 偱偡丅
-Note: 専嶕偑僼傽僀儖偺廔傢傝偵払偡傞偲丄僆僾僔儑儞 'wrapscan' 偑愝掕偝傟偰偄傞
- 応崌偼丄僼傽僀儖偺愭摢偐傜専嶕傪懕峴偟傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 4.3: 懳墳偡傞妵屖傪専嶕
-
-
- ** 懳墳偡傞 ),] 傗 } 傪専嶕偡傞偵偼 % 傪僞僀僾偟傑偡 **
-
- 1. 壓偺 ---> 偱帵偝傟偨峴偱 (,[ 偐 { 偺偳傟偐偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. 偦偙偱 % 偲僞僀僾偟傑偟傚偆丅
-
- 3. 僇乕僜儖偼懳墳偡傞妵屖偵堏摦偡傞偼偢偱偡丅
-
- 4. 嵟弶偺妵屖偵堏摦偡傞偵偼 % 偲僞僀僾偟傑偟傚偆丅
-
- 5. 懠偺 (,),[,],{ or } 偱僇乕僜儖傪堏摦偟丄% 偑壗傪偟偰偄傞偐妋擣偟傑偟傚偆丅
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-
-NOTE: 偙偺婡擻偼妵屖偑堦抳偟偰偄側偄僾儘僌儔儉傪僨僶僢僌偡傞偺偵偲偰傕栶棫偪
- 傑偡丅
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 4.4: 娫堘偄傪曄峏偡傞曽朄
-
-
- ** 'old' 傪 'new' 偵抲姺偡傞偵偼 :s/old/new/g 偲僞僀僾偟傑偡 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. :s/thee/the <ENTER> 偲僞僀僾偟傑偟傚偆丅偙偺僐儅儞僪偼偦偺峴偱嵟弶偵尒
- 偮偐偭偨傕偺偵偩偗峴側傢傟傞偙偲偵婥傪偮偗傑偟傚偆丅
-
- 3. 偱偼 :s/thee/the/g 偲僞僀僾偟傑偟傚偆丅峴慡懱傪抲姺偡傞偙偲傪堄枴偟傑偡丅
- 偙偺曄峏偼偦偺峴偱尒偮偐偭偨慡偰偺売強偵懳偟偰峴側傢傟傑偡丅
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 暋悢峴偐傜尒偮偐傞暥帤傪曄峏偡傞偵偼
- :#,#s/old/new/g #,# 偵偼抲偒姺偊傞斖埻偺奐巒偲廔椆偺峴斣崋傪巜掕偟傑
- 偡丅
- :%s/old/new/g 僼傽僀儖慡懱偱尒偮偐傞傕偺偵懳偟偰曄峏偡傞丅
- :%s/old/new/gc 僼傽僀儖慡懱偱尒偮偐傞傕偺偵懳偟偰丄1偮1偮妋擣傪偲傝側
- 偑傜曄峏偡傞丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 4 梫栺
-
-
- 1. CTRL-G 偼僼傽僀儖偱偺埵抲偲僼傽僀儖偺徻嵶傪昞帵偟傑偡丅
- G 偼僼傽僀儖偺嵟壓峴偵堏摦偟傑偡丅
- 悢抣 G 偼偦偺峴偵堏摦偟傑偡丅
- gg 偼愭摢峴偵堏摦偟傑偡丅
-
- 2. / 偺屻偵岅嬪傪僞僀僾偡傞偲慜曽偵岅嬪傪専嶕偟傑偡丅
- ? 偺屻偵岅嬪傪僞僀僾偡傞偲屻曽偵岅嬪傪専嶕偟傑偡丅
- 専嶕偺屻偺 n 偼摨偠曽岦偺師偺専嶕傪丄N 偼媡曽岦偺専嶕傪偟傑偡丅
- CTRL-O 偼応強傪慜偵堏偟丄CTRL-I 偼応強傪師偵堏摦偟傑偡丅
-
- 3. (,),[,],{, 傕偟偔偼 } 忋偵僇乕僜儖偑偁傞忬懺偱 % 傪僞僀僾偡傞偲懳偵側傞暥
- 帤傊堏摦偟傑偡丅
-
- 4. 尰嵼峴偺嵟弶偺 old 傪 new 偵抲姺偡傞丅 :s/old/new
- 尰嵼峴偺慡偰偺 old 傪 new 偵抲姺偡傞丅 :s/old/new/g
- 2偮偺 # 娫偱岅嬪傪抲姺偡傞丅 :#,#s/old/new/g
- 僼傽僀儖偺拞偺慡偰偺専嶕岅嬪傪抲姺偡傞丅 :%s/old/new/g
- 'c' 傪壛偊傞偲抲姺偺搙偵妋擣傪媮傔傞丅 :%s/old/new/gc
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 5.1: 奜晹僐儅儞僪傪幚峴偡傞曽朄
-
-
- ** :! 偺屻偵幚峴偡傞奜晹僐儅儞僪傪僞僀僾偟傑偡 **
-
- 1. 夋柺偺嵟壓晹偵僇乕僜儖偑堏摦偡傞傛偆丄姷傟恊偟傫偩 : 傪僞僀僾偟傑偟傚偆丅
- 偙傟偱僐儅儞僪偑僞僀僾偱偒傞條偵側傝傑偡丅
-
- 2. 偙偙偱 ! 偲偄偆暥帤(姶扱晞)傪僞僀僾偟傑偟傚偆丅
- 偙傟偱奜晹僔僃儖僐儅儞僪偑幚峴偱偒傞條偵側傝傑偡丅
-
- 3. 椺偲偟偰 ! 偵懕偗偰 ls 偲僞僀僾偟 <ENTER> 傪墴偟傑偟傚偆丅
- 僔僃儖僾儘儞僾僩偺傛偆偵僨傿儗僋僩儕偺堦棗偑昞帵偝傟傞偼偢偱偡丅
- 傕偟偔偼 ls 偑摦偐側偄側傜偽 :!dir 傪巊梡偟傑偟傚偆丅
-
-Note: 偙偺曽朄偵傛偭偰偁傜備傞僐儅儞僪偑幚峴偡傞偙偲偑偱偒傑偡丅傕偪傠傫堷悢
- 傕梌偊傜傟傑偡丅
-
-Note: 慡偰偺 : 僐儅儞僪偼 <ENTER> 傪墴偟偰廔椆偟側偗傟偽側傝傑偣傫丅
- 埲崀偱偼偙偺偙偲偵尵媦偟傑偣傫丅
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 5.2: 偦偺懠偺僼傽僀儖傊彂偒崬傒
-
-
- ** 僼傽僀儖傊曄峏傪曐懚偡傞偵偼 :w 僼傽僀儖柤 偲僞僀僾偟傑偡 **
-
- 1. 僨傿儗僋僩儕偺堦棗傪摼傞偨傔偵 :!dir 傕偟偔偼 :!ls 偲僞僀僾偟傑偟傚偆丅
- 偙偺偁偲 <ENTER> 傪墴偡偺偼婛偵偛懚抦偱偡偹丅
-
- 2. TEST 偺傛偆偵丄偦偺僨傿儗僋僩儕偵柍偄僼傽僀儖柤傪堦偮慖傃傑偡丅
-
- 3. 偱偼 :w TEST 偲僞僀僾偟傑偟傚偆 (TEST 偼丄慖傫偩僼傽僀儖柤偱偡)丅
-
- 4. 偙傟偵傛傝僼傽僀儖慡懱偑 TEST 偲偄偆柤慜偱曐懚偝傟傑偡丅
- 傕偆堦搙 :!dir 傕偟偔偼 !ls 偲僞僀僾偟偰妋擣偟偰傒傑偟傚偆丅
-
-Note: 偙偙偱 Vim 傪廔椆偟丄僼傽僀儖柤 TEST 偲嫟偵婲摦偡傞偲丄曐懚偟偨帪偺
- 僠儏乕僩儕傾儖偺暋惢偑偱偒忋偑傞偼偢偱偡丅
-
- 5. 偝傜偵丄師偺傛偆偵僞僀僾偟偰僼傽僀儖傪徚偟傑偟傚偆(MS-DOS): :!del TEST
- 傕偟偔偼(Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 5.3: 慖戰偟偨彂偒崬傒
-
-
-** 僼傽僀儖偺埵抲傪曐懚偡傞偵偼丄v 儌乕僔儑儞偲 :w FILENAME 傪僞僀僾偟傑偡丅 **
-
- 1. 偙偺峴偵僇乕僜儖傪堏摦偟傑偡丅
-
- 2. v 傪墴偟丄埲壓偺戞5崁栚偵僇乕僜儖傪堏摦偟傑偡丅僥僉僗僩偑嫮挷昞帵偝傟傞偺
- 偵拲栚偟偰壓偝偄丅
-
- 3. 暥帤 : 傪墴偡偲丄夋柺偺嵟壓晹偵 :'<,'> 偑尰傟傑偡丅
-
- 4. w TEST (TESET 偼懚嵼偟側偄僼傽僀儖柤)傪僞僀僾偟傑偡丅
- Enter 傪墴偡慜偵 :'<,'>w TEST 偲側偭偰偄傞偙偲傪妋擣偟偰壓偝偄丅
-
- 5. Vim 偼 TEST 偲偄偆僼傽僀儖偵慖戰偝傟偨峴傪彂偒崬傓偱偟傚偆丅
- !dir 傕偟偔偼 !ls 偱偦傟傪妋擣偟傑偡丅
- 偦傟偼嶍彍偟側偄偱偍偄偰壓偝偄丅師偺儗僢僗儞偱巊梡偟傑偡丅
-
-NOTE: v 傪墴偡偲丄Visual 慖戰偑巒傑傝傑偡丅僇乕僜儖傪摦偐偡偙偲偱丄慖戰斖埻傪
- 戝偒偔傕彫偝偔傕偱偒傑偡丅偝傜偵丄偦偺慖戰斖埻偵懳偟偰僆儁儗乕僞傪揔梡
- 偒傑偡丅椺偊偽 d 偼僥僉僗僩傪嶍彍偟傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 5.4: 僼傽僀儖偺庢崬偲崌暪
-
-
- ** 僼傽僀儖偺拞恎傪憓擖偡傞偵偼 :r 僼傽僀儖柤 偲僞僀僾偟傑偡 **
-
- 1. 僇乕僜儖傪埲壓偺峴偵崌傢偣傑偡丅
-
-NOTE: 僗僥僢僾 2 偺幚峴屻丄儗僢僗儞 5.3 偺僥僉僗僩偑尰傟傑偡丅壓偵壓偑偭偰偙
- 偺儗僢僗儞偵堏摦偟傑偟傚偆丅
-
- 2. 偱偼 TEST 偲偄偆僼傽僀儖傪 :r TEST 偲偄偆僐儅儞僪偱撉傒崬傒傑偟傚偆丅
- 偙偙偱偄偆 TEST 偼巊偆僼傽僀儖偺柤慜偺偙偲偱偡丅
- 撉傒崬傑傟偨僼傽僀儖偼丄僇乕僜儖峴偺壓偵偁傝傑偡丅
-
- 3. 庢崬傫偩僼傽僀儖傪妋擣偟偰傒傑偟傚偆丅僇乕僜儖傪栠偡偲丄儗僢僗儞5.3 偺
- 僆儕僕僫儖偲僼傽僀儖偵傛傞傕偺偺2偮偑偁傞偙偲偑傢偐傝傑偡丅
-
-NOTE: 奜晹僐儅儞僪偺弌椡傪撉傒崬傓偙偲傕弌棃傑偡丅椺偊偽丄
- :r !ls 偼 ls 僐儅儞僪偺弌椡傪僇乕僜儖埲壓偵撉傒崬傒傑偡丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 5 梫栺
-
-
- 1. :!command 偵傛偭偰 奜晹僐儅儞僪傪幚峴偟傑偡丅
-
- 傛偔巊偆椺:
- (MS-DOS) (Unix)
- :!dir :!ls - 僨傿儗僋僩儕撪偺堦棗傪尒傞丅
- :!del FILENAME :!rm FILENAME - 僼傽僀儖傪嶍彍偡傞丅
-
- 2. :w 僼傽僀儖柤 偵傛偭偰僼傽僀儖柤偲偄偆僼傽僀儖偑僨傿僗僋偵彂偒崬傑傟傞丅
-
- 3. v 儌乕僔儑儞偱 :w FILENAME 偲偡傞偲丄價僕儏傾儖慖戰峴偑僼傽僀儖偵曐懚偝
- 傟傞丅
-
- 4. :r 僼傽僀儖柤 偵傛傝僼傽僀儖柤偲偄偆僼傽僀儖偑僨傿僗僋傛傝庢崬傑傟丄
- 僇乕僜儖埵抲偺壓偵憓擖偝傟傞丅
-
- 5. :r !dir 偼 dir 僐儅儞僪偺弌椡傪僇乕僜儖埵抲埲壓偵撉傒崬傓丅
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 6.1: 僆乕僾儞僐儅儞僪
-
-
- ** o 傪僞僀僾偡傞偲丄僇乕僜儖偺壓偺峴偑奐偒丄憓擖儌乕僪偵擖傝傑偡 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨峴偵僇乕僜儖傪堏摦偟傑偟傚偆丅
-
- 2. o (彫暥帤) 傪僞僀僾偟偰丄僇乕僜儖偺壓偺峴傪奐偒丄憓擖儌乕僪偵擖傝傑偡丅
-
- 3. 偝傜偵憓擖儌乕僪傪廔椆偡傞堊偵 <ESC> 傪僞僀僾偟傑偡丅
-
----> o 傪僞僀僾偡傞偲僇乕僜儖偼奐偄偨峴傊堏摦偟憓擖儌乕僪偵擖傝傑偡丅
-
- 4. 僇乕僜儖偺忋偺峴偵憓擖偡傞偵偼丄彫暥帤偺 o 偱偼側偔丄扨弮偵戝暥帤偺 O
- 傪僞僀僾偟傑偡丅師偺峴偱帋偟偰傒傑偟傚偆丅
-
----> 偙偺峴偺忋傊憓擖偡傞偵偼丄偙偺峴傊僇乕僜儖傪抲偄偰 O 傪僞僀僾偟傑偡丅
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 6.2: 捛壛僐儅儞僪
-
-
- ** 僇乕僜儖偺師偺埵抲偐傜僥僉僗僩傪捛壛偡傞偵偼 a 偲僞僀僾偟傑偡 **
-
- 1. 僇乕僜儖傪 ---> 偱帵偝傟偨嬈傊堏摦偟傑偟傚偆丅
-
- 2. e 傪墴偟偰 li 偺廔抂晹傑偱僇乕僜儖傪堏摦偟傑偡丅
-
- 3. 僇乕僜儖偺屻傠偵僥僉僗僩傪捛壛偡傞偨傔偵 a (彫暥帤) 傪僞僀僾偟傑偡丅
-
- 4. 偦偺壓偺峴偺偺傛偆側扨岅偵姰惉偝偣傑偡丅憓擖儌乕僪傪敳偗傞堊偵 <ESC> 偵墴
- 偟傑偡丅
-
- 5. e 傪巊偭偰師偺晄姰慡側扨岅傊堏摦偟丄僗僥僢僾 3 偲 4 傪孞傝曉偟傑偡丅
-
----> This li will allow you to pract appendi text to a line.
----> This line will allow you to practice appending text to a line.
-
-Note: a, i 偲 A 偼摨偠憓擖儌乕僪傊堏傝傑偡偑丄暥帤偑憓擖偝傟傞埵抲偩偗偑堎側傝
- 傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 6.3: 偦偺懠偺抲姺曽朄
-
-
- ** 1暥帤埲忋傪抲偒姺偊傞偵偼戝暥帤偺 R 偲僞僀僾偟傑偟傚偆 **
-
- 1. 埲壓偺 ---> 偲帵偝傟偨嬈偵僇乕僜儖傪堏摦偟傑偡丅嵟弶偺 xxx 偺愭摢偵堏摦偟
- 傑偡丅
-
- 2. R 傪墴偟偰丄2峴栚偺悢抣傪僞僀僾偡傞偙偲偱丄xxx 偑抲姺偝傟傑偡丅
-
- 3. 抲姺儌乕僪傪敳偗傞偵偼 <ESC> 傪墴偟傑偡丅峴偺巆傝偑曄峏偝傟偰偄側偄傑傑偵
- 側傞偙偲偵拲堄偟偰偔偩偝偄丅
-
- 5. 巆偭偨 xxx 傪僗僥僢僾傪孞傝曉偟偰抲姺偟傑偟傚偆丅
-
----> Adding 123 to xxx gives you xxx.
----> Adding 123 to 456 gives you 579.
-
-NOTE: 抲姺儌乕僪偼憓擖儌乕僪偵帡偰偄傑偡偑丄慡偰偺僞僀僾偝傟偨暥帤偼婛懚偺暥帤
- 傪嶍彍偟傑偡丅
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 6.4: 僥僉僗僩偺僐僺乕偲儁乕僗僩
-
-
- ** 僥僉僗僩偺僐僺乕偵偼僆儁儗乕僞 y 傪丄儁乕僗僩偵偼 p 傪巊偄傑偡 **
-
- 1. ---> 偲帵偝傟偨峴傊堏摦偟丄僇乕僜儖傪 "a)" 偺屻偵抲偄偰偍偒傑偡丅
-
- 2. v 偱價僕儏傾儖儌乕僪傪奐巒偟丄"first"偺庤慜傑偱僇乕僜儖傪堏摦偟傑偡丅
-
- 3. y 傪僞僀僾偟偰嫮挷昞帵偝傟偨僥僉僗僩傪 yank (僐僺乕)偟傑偡丅
-
- 4. 師偺峴偺峴枛傑偱僇乕僜儖傪堏摦偟傑偡: j$
-
- 5. p 傪墴偟偰揬傝晅偗(put)偰偐傜丄師傪僞僀僾偟傑偡: a second <ESC>
-
- 6. 價僕儏傾儖儌乕僪偱 " item." 傪慖戰偟丄y 偱儎儞僋丄師偺峴偺峴枛傑偱 j$ 偱
- 堏摦偟丄 p 偱僥僉僗僩傪偦偙偵 put 偟傑偡丅
-
----> a) this is the first item.
- b)
-
- Note: 扨岅傪1偮 yank 偡傞偺偵 y 傪僆儁儗乕僞偲偟偰 yw 偲偡傞偙偲傕弌棃傑偡丅
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 6.5: 僆僾僔儑儞偺愝掕
-
-
- ** 専嶕傗抲姺偺嵺偵戝暥帤/彫暥帤傪柍帇偡傞偵偼丄僆僾僔儑儞傪愝掕偟傑偡 **
-
- 1. 師偺條偵擖椡偟偰 'ignore' 傪専嶕偟傑偟傚偆: /ignore <ENTER>
- n 傪墴偟偰壗搙偐専嶕傪孞傝曉偟傑偡丅
-
- 2. 師偺條偵擖椡偟偰 'ic' (Ignore Case 偺棯) 僆僾僔儑儞傪愝掕偟傑偡: :set ic
-
- 3. 偱偼 n 偵傛偭偰傕偆1搙 'ignore' 傪専嶕偟傑偡丅
- n 傪墴偟偰偝傜偵悢夞専嶕傪孞傝曉偟傑偟傚偆丅
-
- 4. 'hlsearch' 偲 'incsearch' 僆僾僔儑儞傪愝掕偟傑偟傚偆: :set hls is
-
- 5. 専嶕僐儅儞僪傪嵞擖椡偟偰丄壗偑婲偙傞偐尒偰傒傑偟傚偆: /ignore <ENTER>
-
- 6. 戝暥帤彫暥帤偺嬫暿傪柍岠偵偡傞偵偼師偺條偵擖椡偟傑偡: :set noic
-
-Note: 儅僢僠偺嫮挷昞帵傪傗傔傞偵偼師偺條偵擖椡偟傑偡: :nohlsearch
-Note: 1偮偺専嶕僐儅儞僪偩偗戝暥帤彫暥帤偺嬫暿傪傗傔偨偄側傜偽丄僼儗乕僘偵 \c
- 傪巊梡偟傑偡: /ignore\c <ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 6 梫栺
-
- 1. o 傪僞僀僾偡傞偲僇乕僜儖偺壓偺峴傪奐偗偰丄偦偙偱憓擖儌乕僪偵側傞丅
- O (戝暥帤) 傪僞僀僾偡傞偲僇乕僜儖偺忋偺峴偱憓擖儌乕僪偵側傞丅
-
- 2. 僇乕僜儖忋偺暥帤偺師偐傜僥僉僗僩傪捛壛偡傞偵偼 a 偲僞僀僾偡傞丅
- 峴枛偵帺摦偱僥僉僗僩傪憓擖偡傞偵偼戝暥帤 A 傪僞僀僾偡傞丅
-
- 3. e 僐儅儞僪偼扨岅偺廔抂晹僇乕僜儖傪堏摦偡傞丅
-
- 4. y 僆儁儗乕僞偼僥僉僗僩傪 yank (僐僺乕)偟丄p 偼偦傟傪 put (儁乕僗僩)偡傞丅
-
- 5. 戝暥帤偺 R 傪僞僀僾偡傞偲抲姺儌乕僪偵擖傝丄<ESC>傪墴偡偲敳偗傞丅
-
- 6. ":set xxx" 偲僞僀僾偡傞偲僆僾僔儑儞 "xxx" 偑愝掕偝傟傞丅
- 'ic' 'ignorecase' 専嶕帪偵戝暥帤彫暥帤偺嬫暿偟側偄
- 'is' 'incsearch' 専嶕僼儗乕僘偵晹暘儅僢僠偟偰偄傞晹暘傪昞帵偡傞
- 'hls' 'hlsearch' 儅僢僠偡傞偡傋傪嫮挷昞帵偡傞
- 挿偄曽丄抁偄曽丄偳偪傜偺僆僾僔儑儞柤偱傕巊梡偱偒傑偡丅
-
- 7. "no" 傪晅梌偟丄僆僾僔儑儞傪柍岠偵偟傑偡: :set noic
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 7.1: 僆儞儔僀儞僿儖僾僐儅儞僪
-
-
- ** 僆儞儔僀儞僿儖僾傪巊梡偟傑偟傚偆 **
-
- Vim 偵偼峀斖偵傢偨傞僆儞儔僀儞僿儖僾僔僗僥儉偑偁傝傑偡丅
- 僿儖僾傪奐巒偡傞偵偼丄偙傟傜3偮偺偳傟偐1偮傪帋偟偰傒傑偟傚偆:
- - 僿儖僾僉乕 <HELP> 傪墴偡(傕偟偁傞側傜偽)丅
- - <F1> 僉乕傪墴偡(傕偟偁傞側傜偽)丅
- - :help <ENTER> 偲僞僀僾偡傞丅
-
- 僿儖僾僂傿儞僪僂偺僥僉僗僩傪撉傓偲丄僿儖僾偺摦嶌偑棟夝偱偒傑偡丅
- CTRL-W CTRL-W 偲僞僀僾偡傞偲 僿儖僾僂傿儞僪僂傊僕儍儞僾偟傑偡丅
- :q <ENTER> 偲僞僀僾偡傞偲 僿儖僾僂傿儞僪僂偑暵偠傜傟傑偡丅
-
- ":help" 僐儅儞僪偵堷悢傪梌偊傞偙偲偵傛傝丄偁傜備傞戣柤偺僿儖僾傪尒偮偗傞偙偲
- 偑偱偒傑偡丅偙傟傜傪帋偟偰傒傑偟傚偆(<ENTER> 傪僞僀僾偟朰傟側偄傛偆偵):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 7.2: 婲摦僗僋儕僾僩偺嶌惉
-
- ** Vim 偺摿挜傪敪婗偡傞 **
-
- Vim 偵偼 Vi 傛傝傕懡偔偺摿挜傪摜傑偊偰偄傑偑丄偦偺傎偲傫偳偼弶婜忬懺偵偰
- 巊梡晄壜偲側偭偰偄傑偡丅傛傝懡偔偺摿挜傪巊偄偼偠傔傞偵偼 "vimrc" 僼傽僀儖
- 傪嶌惉偟傑偡丅
-
- 1. "vimrc" 僼傽僀儖偺曇廤傪奐巒偡傞丅偙傟偼僔僗僥儉偵埶懚偟傑偡丅
- :edit ~/.vimrc UNIX 岦偗
- :edit $VIM/_vimrc MS-Windows 岦偗
-
- 2. 偙偙偱僒儞僾儖偺 "vimrc" 傪撉傒崬傒傑偡丅
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 埲壓偺傛偆偵僼傽僀儖傊彂偒崬傒傑偡丅
- :write
-
- 師夞 Vim 傪婲摦偡傞偲丄怓偯偗峔暥偑巊偊傞傛偆偵側傞偱偟傚偆丅
- 偙偺 "vimrc" 僼傽僀儖傊丄偍岲傒偺愝掕傪捛壛偡傞偙偲偑偱偒傑偡丅
- 傛傝懡偔偺忣曬傪摼傞偵偼 :help vimrc-intro 偲僞僀僾偟傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 7.3: 曗姰
-
-
- ** CTRL-D 偲 <TAB> 偱僐儅儞僪儔僀儞傪曗姰偡傞 **
-
- 1. 僐儞僷僠儌乕僪偱側偄偙偲傪妋擣偟傑偡: :set nocp
-
- 2. 尰嵼偺僨傿儗僋僩儕偵嵼傞僼傽僀儖傪 :!ls 偐 :!dir 偱妋擣偟傑偡丅
-
- 3. 僐儅儞僪偺奐巒傪僞僀僾偟傑偡: :e
-
- 4. CTRL-D 傪墴偡偲 Vim 偼 "e" 偐傜巒傑傞僐儅儞僪偺堦棗傪昞帵偟傑偡丅
-
- 5. <TAB> 傪墴偡偲 Vim 偼 ":edit" 偲偄偆僐儅儞僪柤傪曗姰偟傑偡丅
-
- 6. 偝傜偵嬻敀偲丄婛懚偺僼傽僀儖柤偺巒傑傝傪壛偊傑偡: :edit FIL
-
- 7. <TAB> 傪墴偡偲 Vim 偼柤慜傪曗姰偟傑偡丅(傕偟堦偮偟偐柍偐偭偨応崌)
-
-NOTE: 曗姰偼懡偔偺僐儅儞僪偱摦嶌偟傑偡丅偦偟偰 CTRL-D 偲 <TAB> 墴偟偰傒偰偔偩
- 偝偄丅摿偵 :help 偺嵺偵栶棫偪傑偡丅
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 儗僢僗儞 7 梫栺
-
-
- 1. 僿儖僾僂傿儞僪僂傪奐偔偵偼 :help 偲偡傞偐 <F1> 傕偟偔偼 <Help> 傪墴偡丅
-
- 2. 僐儅儞僪(cmd)偺僿儖僾傪専嶕偡傞偵偼 :help cmd 偲僞僀僾偡傞丅
-
- 3. 暿偺僂傿儞僪僂傊僕儍儞僾偡傞偵偼 CTRL-W CTRL-W 偲僞僀僾偡傞丅
-
- 4. 僿儖僾僂傿儞僪僂傪暵偠傞偵偼 :q 偲僞僀僾偡傞丅
-
- 5. 偍岲傒偺愝掕傪曐偮偵偼 vimrc 婲摦僗僋儕僾僩傪嶌惉偡傞丅
-
- 6. : command 偱壜擻側曗姰傪尒傞偵偼 CTRL-D 傪僞僀僾偡傞丅
- 曗姰傪巊梡偡傞偵偼 <TAB> 傪墴偡丅
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 偙傟偵偰 Vim 偺僠儏乕僩儕傾儖傪廔傢傝傑偡丅僄僨傿僞傪娙扨偵丄偟偐傕廩暘偵
- 巊偆偙偲偑偱偒傞傛偆偵偲丄Vim 偺帩偮奣擮偺梫揰偺傒傪揱偊傛偆偲偟傑偟偨丅
- Vim 偵偼偝傜偵懡偔偺僐儅儞僪偑偁傝丄偙偙偱慡偰傪愢柧偡傞偙偲偼偱偒傑偣傫丅
- 埲崀偼儐乕僓儅僯儏傾儖傪嶲徠偔偩偝偄: "help :user-manual"
-
- 偙傟埲屻偺妛廗偺偨傔偵丄師偺杮傪悇慐偟傑偡丅
- Vim - Vi Improved - by Steve Oualline
- 弌斉幮: New Riders
- 嵟弶偺杮偼姰慡偵 Vim 偺偨傔偵彂偐傟傑偟偨丅偲傝傢偗弶怱幰偵偼偍彠傔偱偡丅
- 懡偔偺椺戣傗恾斉偑宖嵹偝傟偰偄傑偡丅
- 師偺URL傪嶲徠偟偰壓偝偄 http://iccf-holland.org/click5.html
-
- 師偼 Vim 傛傝傕 Vi 偵偮偄偰彂偐傟偨屆偄杮偱偡偑悇慐偟傑偡:
- Learning the Vi Editor - by Linda Lamb
- 弌斉幮: O'Reilly & Associates Inc.
- Vi 偱傗傝偨偄偲巚偆偙偲傎傏慡偰傪抦傞偙偲偑偱偒傞椙彂偱偡丅
- 戞6斉偱偼丄Vim 偵偮偄偰偺忣曬傕娷傑傟偰偄傑偡丅
-
- 偙偺僠儏乕僩儕傾儖偼 Colorado State University 偺 Charles Smith 偺傾僀僨傾
- 傪婎偵丄Colorado School of Mines 偺 Michael C. Pierce 偲 Robert K. Ware 偺
- 椉柤偵傛偭偰彂偐傟傑偟偨丅 E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
-
- 擔杮岅栿 徏杮 懽峅 <mattn_jp@hotmail.com>
- 娔廋 懞壀 懢榊 <koron@tka.att.ne.jp>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- vi:set ts=8 sts=4 sw=4 tw=78:
diff --git a/runtime/tutor/tutor.ja.utf-8 b/runtime/tutor/tutor.ja.utf-8
deleted file mode 100644
index e12cd6986..000000000
--- a/runtime/tutor/tutor.ja.utf-8
+++ /dev/null
@@ -1,975 +0,0 @@
-===============================================================================
-= V I M 鏁 鏈 (銉併儱銉笺儓銉偄銉) 銇 銈 銇 銇 銇 - Version 1.7 =
-===============================================================================
-
- Vim 銇併亾銇儊銉ャ兗銉堛儶銈€儷銇ц鏄庛仚銈嬨伀銇銇欍亷銈嬬▼銇偝銉炪兂銉夈倰鍌欍亪銇熼潪甯
- 銇挤鍔涖仾銈ㄣ儑銈c偪銉笺仹銇欍傘亾銇儊銉ャ兗銉堛儶銈€儷銇併亗銇仧銇 Vim 銈掍竾鑳姐偍銉囥偅
- 銈裤兗銇ㄣ仐銇︿娇銇勩亾銇仜銈嬨倛銇嗐伀銇倠銇伀鍗佸垎銇偝銉炪兂銉夈伀銇ゃ亜銇﹁鏄庛倰銇欍倠銈堛亞
- 銇仯銇︺亜銇俱仚銆
-
- 銉併儱銉笺儓銉偄銉倰瀹屼簡銇欍倠銇伀蹇呰銇檪闁撱伅銆佽銇堛仧銈炽優銉炽儔銈掕│銇欍伄銇仼銈屻仩
- 銇戞檪闁撱倰浣裤亞銇亱銇倐銈堛倞銇俱仚銇屻併亰銈堛仢25銇嬨倝30鍒嗐仹銇欍
-
- ATTENTION:
- 浠ヤ笅銇反缈掔敤銈炽優銉炽儔銇伅銇撱伄鏂囩珷銈掑鏇淬仚銈嬨倐銇倐銇傘倞銇俱仚銆傜反缈掋倰濮嬨倎銈嬪墠
- 銇偝銉斻兗銈掍綔鎴愩仐銇俱仐銈囥亞("vimtutor"銇椼仧銇倝銇般佹棦銇偝銉斻兗銇曘倢銇︺亜銇俱仚)銆
-
- 銇撱伄銉併儱銉笺儓銉偄銉亴銆佷娇銇嗐亾銇ㄣ仹瑕氥亪銈夈倢銈嬩粫绲勩伩銇仾銇c仸銇勩倠銇撱仺銈掋佸績銇
- 銇︺亰銇嬨仾銇戙倢銇般仾銈娿伨銇涖倱銆傛銇椼亸瀛︾繏銇欍倠銇伅銈炽優銉炽儔銈掑疅闅涖伀瑭︺仌銇亼銈屻伆
- 銇倝銇亜銇仹銇欍傛枃绔犮倰瑾倱銇犮仩銇戙仾銈夈伆銆併亶銇c仺蹇樸倢銇︺仐銇俱亜銇俱仚!銆
-
- 銇曘亖銆丆aps銉儍銈(Shift-Lock)銈兗銇屾娂銇曘倢銇︺亜銇亜銇撱仺銈掔⒑瑾嶃仐銇熷緦銆佺敾闈€伀
- 銉儍銈广兂1.1 銇屽叏閮ㄨ〃绀恒仌銈屻倠銇ㄣ亾銈嶃伨銇с乯 銈兗銈掓娂銇椼仸銈兗銈姐儷銈掔Щ鍕曘仐銇
- 銇椼倗銇嗐
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1.1: 銈兗銈姐儷銇Щ鍕
-
-
- ** 銈兗銈姐儷銈掔Щ鍕曘仚銈嬨伀銇佺ず銇曘倢銈嬫銇 h,j,k,l 銈掓娂銇椼伨銇 **
- ^
- k 銉掋兂銉: h 銈兗銇乏鏂瑰悜銇Щ鍕曘仐銇俱仚銆
- < h l > l 銈兗銇彸鏂瑰悜銇Щ鍕曘仐銇俱仚銆
- j j 銈兗銇笅鐭㈠嵃銈兗銇倛銇嗐仾銈兗銇с仚銆
- v
- 1. 绉诲嫊銇叄銈屻倠銇俱仹銆併偣銈儶銉笺兂銇с偒銉笺偨銉Щ鍕曘仌銇涖伨銇椼倗銇嗐
-
- 2. 涓嬨伕銇偔銉(j)銈掓娂銇椼仱銇ャ亼銈嬨仺銆侀g稓銇椼仸绉诲嫊銇с亶銇俱仚銆
- 銇撱倢銇ф銇儸銉冦偣銉炽伀绉诲嫊銇欍倠鏂规硶銇屻倧銇嬨倞銇俱仐銇熴伃銆
-
- 3. 涓嬨伕銇偔銉笺倰浣裤仯銇︺併儸銉冦偣銉1.2 銇Щ鍕曘仐銇俱仐銈囥亞銆
-
-Note: 浣曘倰銈裤偆銉椼仐銇︺亜銈嬨亱鍒ゃ倝銇亸銇仯銇熴倝銆<ESC>銈掓娂銇椼仸銉庛兗銉炪儷銉€兗銉夈伀銇
- 銇俱仚銆傘仢銈屻亱銈夊叆鍔涖仐銈堛亞銇ㄣ仐銇︺亜銇熴偝銉炪兂銉夈倰鍐嶅叆鍔涖仐銇俱仐銈囥亞銆
-
-Note: 銈兗銈姐儷銈兗銇с倐绉诲嫊銇с亶銇俱仚銆傘仐銇嬨仐 hjkl 銇竴搴︽叄銈屻仸銇椼伨銇堛伆銆併伅銈嬨亱
- 銇熴亸绉诲嫊銇欍倠銇撱仺銇屻仹銇嶃倠銇с仐銈囥亞銆傘亜銈勩優銈搞仹!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1.2: VIM 銇捣鍕曘仺绲備簡
-
-
- !! NOTE: 浠ヤ笅銇亗銈夈倖銈嬨偣銉嗐儍銉椼倰琛屻亞鍓嶃伀銆併亾銇儸銉冦偣銉炽倰瑾伩銇俱仐銈囥亞!!
-
- 1. <ESC>銈兗銈掓娂銇椼伨銇椼倗銇嗐(纰哄疅銇儙銉笺優銉儮銉笺儔銇仚銈嬨仧銈)
-
- 2. 娆°伄銈堛亞銇偪銈ゃ儣: :q! <ENTER>
- 銇撱倢銇倛銈婄法闆嗐仐銇熷唴瀹广倰淇濆瓨銇涖仛銇偍銉囥偅銈裤亴绲備簡銇椼伨銇欍
-
- 3. 銈枫偋銉儣銉兂銉椼儓銇屽嚭銇︺亶銇熴倝銆併亾銇儊銉ャ兗銉堛儶銈€儷銈掑銈併倠鐐恒伀銇偝銉炪兂銉
- 銈掋偪銈ゃ儣銇椼伨銇欍
- 銇濄伄銈炽優銉炽儔銇: vimtutor <ENTER>
-
- 4. 銇撱倢銇俱仹銇偣銉嗐儍銉椼倰瑕氥亪鑷俊銇屻仱銇勩仧銇倝銇般併偣銉嗐儍銉 1 銇嬨倝 3 銇俱仹銈掑疅
- 闅涖伀瑭︺仐銇︺乂im 銈1搴︾祩浜嗐仐銇︺亱銈夊啀銇宠捣鍕曘仐銇俱仐銈囥亞銆
-
-NOTE: :q! <ENTER> 銇叏銇︺伄澶夋洿銈掔牬妫勩仐銇俱仚銆傘儸銉冦偣銉炽伀銇﹀鏇淬倰銉曘偂銈ゃ儷銇繚
- 瀛樸仚銈嬫柟娉曘伀銇ゃ亜銇︺倐鍕夊挤銇椼仸銇勩亶銇俱仐銈囥亞銆
-
- 5. 1.3銇俱仹銈兗銈姐儷銈掔Щ鍕曘仌銇涖伨銇椼倗銇嗐
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1.3: 銉嗐偔銈广儓绶ㄩ泦 - 鍓婇櫎
-
-
- ** 銉庛兗銉炪儷銉€兗銉夈伀銇︺偒銉笺偨銉伄涓嬨伄鏂囧瓧銈掑墛闄ゃ仚銈嬨伀銇 x 銈掓娂銇椼伨銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 2. 闁撻仌銇勩倰淇銇欍倠銇熴倎銇佸墛闄ゃ仚銈嬫渶鍒濄伄鏂囧瓧銇俱仹銈兗銈姐儷銈掔Щ鍕曘仐銇俱仚銆
-
- 3. 涓嶅繀瑕併仾鏂囧瓧銈 x 銈掓娂銇椼仸鍓婇櫎銇椼伨銇椼倗銇嗐
-
- 4. 鏂囥亴姝c仐銇忋仾銈嬨伨銇 銈广儐銉冦儣 2 銇嬨倝 4 銈掔拱銈婅繑銇椼伨銇椼倗銇嗐
-
----> 銇濄伄 銇嗐亞銇曘亷 銇 銇ゃ仱銇嶃亶 銈 銇撱亪銇堛仸銇 銇ㄣ伋銇伃銇熴仧
-
- 5. 琛屻亴姝c仐銇忋仾銇c仧銈夈併儸銉冦偣銉 1.4 銇搁层伩銇俱仐銈囥亞銆
-
-NOTE: 鍏ㄣ仸銇儸銉冦偣銉炽倰閫氥仒銇︺佽銇堛倛銇嗐仺銇欍倠銇仹銇仾銇忓疅闅涖伀銈勩仯銇︺伩銇俱仐銈囥亞銆
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1.4: 銉嗐偔銈广儓绶ㄩ泦 - 鎸垮叆
-
-
- ** 銉庛兗銉炪儷銉€兗銉夈伀銇︺儐銈偣銉堛倰鎸垮叆銇欍倠銇伅 i 銈掓娂銇椼伨銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熸渶鍒濄伄琛屻伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 2. 1琛岀洰銈2琛岀洰銇ㄥ悓銇樻銇仚銈嬨仧銈併伀銆併儐銈偣銉堛倰鎸垮叆銇椼仾銇戙倢銇般仾銈夈仾銇勪綅缃
- 銇銇枃瀛椼伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仚銆
-
- 3. i 銈兗銈掓娂銇椼仸銇嬨倝銆佽拷鍔犮亴蹇呰銇枃瀛椼倰銈裤偆銉椼仐銇俱仐銈囥亞銆
-
- 4. 闁撻仌銇勩倰淇銇椼仧銈 <ESC> 銈掓娂銇椼仸銈炽優銉炽儔銉€兗銉夈伀鎴汇倞銆佹銇椼亜鏂囥伀銇倠妲
- 銇偣銉嗐儍銉 2 銇嬨倝 4 銈掔拱銈婅繑銇椼伨銇椼倗銇嗐
-
----> 銇撱伄 銇伅 瓒炽倞銇亜 銉嗐偔銈广儓 銇傘倠銆
----> 銇撱伄 琛 銇伅 骞俱仱銇 瓒炽倞銇亜 銉嗐偔銈广儓 銇 銇傘倠銆
-
- 5. 鎸垮叆銇柟娉曘亴銈忋亱銇c仧銈変笅銇儸銉冦偣銉1銇绱勩倰瑕嬨伨銇椼倗銇嗐
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1.5: 銉嗐偔銈广儓绶ㄩ泦 - 杩藉姞
-
-
- ** 銉嗐偔銈广儓杩藉姞銇欍倠銇伅 A 銈掓娂銇椼伨銇椼倗銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熸渶鍒濄伄琛屻伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
- 銈兗銈姐儷銇屻仢銇枃瀛椾笂銇亗銇c仸銈傘亱銇俱亜銇俱仜銈撱
-
- 2. 杩藉姞銇屽繀瑕併仾鍫存墍銇 A 銈掋偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
- 3. 銉嗐偔銈广儓銈掕拷鍔犮仐绲傘亪銇熴倝銆 <ESC> 銈掓娂銇椼仸銉庛兗銉炪儷銉€兗銉夈伀鎴汇倞銇俱仐銈囥亞銆
-
- 4. 2琛岀洰銇 ---> 銇ㄧず銇曘倢銇熷牬鎵銇哥Щ鍕曘仐銆併偣銉嗐儍銉 2 銇嬨倝 3 绻般倞杩斻仐銇︽枃娉曘倰
- 淇銇椼伨銇椼倗銇嗐
-
----> 銇撱亾銇伅闁撻仌銇c仧銉嗐偔銈广儓銇屻亗銈
- 銇撱亾銇伅闁撻仌銇c仧銉嗐偔銈广儓銇屻亗銈娿伨銇欍
----> 銇撱亾銇倐闁撻仌銇c仧銉嗐偔銈
- 銇撱亾銇倐闁撻仌銇c仧銉嗐偔銈广儓銇屻亗銈娿伨銇欍
-
- 5. 銉嗐偔銈广儓銇拷鍔犮亴杌藉揩銇仾銇c仸銇嶃仧銈夈儸銉冦偣銉 1.6 銇搁层伩銇俱仐銈囥亞銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1.6: 銉曘偂銈ゃ儷銇法闆
-
-
- ** 銉曘偂銈ゃ儷銈掍繚瀛樸仐銇︾祩浜嗐仚銈嬨伀銇 :wq 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- !! NOTE: 浠ヤ笅銇偣銉嗐儍銉椼倰瀹熻銇欍倠鍓嶃伀銆併伨銇氬叏浣撱倰瑾倱銇с亸銇犮仌銇!!
-
- 1. 銉儍銈广兂 1.2 銇с倓銇c仧銈堛亞銇 :q! 銈掋偪銈ゃ儣銇椼仸銆併亾銇儊銉ャ兗銉堛儶銈€儷銈掔祩浜
- 銇椼伨銇欍
-
- 2. 銈枫偋銉儣銉兂銉椼儓銇с亾銇偝銉炪兂銉夈倰銈裤偆銉椼仐銇俱仚: vim tutor <ENTER>
- 'vim'銇 Vim 銈ㄣ儑銈c偪銈掕捣鍕曘仚銈嬨偝銉炪兂銉夈'tutor' 銇法闆嗐仐銇熴亜銉曘偂銈ゃ儷銇
- 鍚嶅墠銇с仚銆傚鏇淬仐銇︺倐銈堛亜銉曘偂銈ゃ儷銈掍娇銇勩伨銇椼倗銇嗐
-
- 3. 鍓嶃伄銉儍銈广兂銇у銈撱仩銈堛亞銇併儐銈偣銉堛倰鎸垮叆銆佸墛闄ゃ仐銇俱仚銆
-
- 4. 澶夋洿銈掋儠銈°偆銉伀淇濆瓨銇椼伨銇: :wq <ENTER>
-
- 5. vimtutor 銈掑啀搴﹁捣鍕曘仐銆佷互涓嬨伄瑕佺磩銇搁层伩銇俱仐銈囥亞銆
-
- 6. 浠ヤ笂銇偣銉嗐儍銉椼倰瑾倱銇х悊瑙c仐銇熶笂銇с亾銈屻倰瀹熻銇椼伨銇椼倗銇嗐
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 1 瑕佺磩
-
-
- 1. 銈兗銈姐儷銇煝鍗般偔銉笺倐銇椼亸銇 hjkl 銈兗銇хЩ鍕曘仐銇俱仚銆
- h (宸) j (涓) k (涓) l (鍙)
-
- 2. Vim 銈掕捣鍕曘仚銈嬨伀銇儣銉兂銉椼儓銇嬨倝 vim 銉曘偂銈ゃ儷鍚 <ENTER> 銇ㄣ偪銈ゃ儣銇椼伨銇欍
-
- 3. Vim 銈掔祩浜嗐仚銈嬨伀銇 <ESC> :q! <ENTER> 銇ㄣ偪銈ゃ儣銇椼伨銇(澶夋洿銈掔牬妫)銆
- 銈傘仐銇忋伅 <ESC> :wq <ENTER> 銇ㄣ偪銈ゃ儣銇椼伨銇(澶夋洿銈掍繚瀛)銆
-
- 4. 銈兗銈姐儷銇笅銇枃瀛椼倰鍓婇櫎銇欍倠銇伅銆併儙銉笺優銉儮銉笺儔銇 x 銇ㄣ偪銈ゃ儣銇椼伨銇欍
-
- 5. 銈兗銈姐儷銇綅缃伀鏂囧瓧銈掓尶鍏ャ仚銈嬨伀銇併儙銉笺優銉儮銉笺儔銇 i 銇ㄣ偪銈ゃ儣銇椼伨銇欍
- i 銉嗐偔銈广儓銇偪銈ゃ儣 <ESC> 銈兗銈姐儷浣嶇疆銇拷鍔
- A 銉嗐偔銈广儓銇拷鍔 <ESC> 琛屾湯銇拷鍔
-
-NOTE: <ESC> 銈兗銈掓娂銇欍仺銉庛兗銉炪儷銉€兗銉夈伀绉昏銇椼伨銇欍傘仢銇殯銆侀枔閬曘仯銇熴倞鍏ュ姏閫
- 涓伄銈炽優銉炽儔銈掑彇銈婃秷銇欍亾銇ㄣ亴銇с亶銇俱仚銆
-
-銇曘仸銆佺稓銇戙仸銉儍銈广兂 2 銈掑銈併伨銇椼倗銇嗐
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.1: 鍓婇櫎銈炽優銉炽儔
-
-
- ** 鍗樿獮銇湯灏俱伨銇с倰鍓婇櫎銇欍倠銇伅 dw 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇 **
-
- 1. 銉庛兗銉炪儷銉€兗銉夈仹銇傘倠銇撱仺銈掔⒑瑾嶃仚銈嬨仧銈併伀 <ESC> 銈掓娂銇椼伨銇椼倗銇嗐
-
- 2. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 3. 娑堛仐銇熴亜鍗樿獮銇厛闋伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 4. 鍗樿獮銈掑墛闄ゃ仚銈嬨仧銈併伀 dw 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
- NOTE: 銈裤偆銉椼仚銈嬨仺銆乨w 銇ㄣ亜銇嗘枃瀛椼亴銈广偗銉兗銉炽伄鏈涓嬭銇従銈忋倢銇俱仚銆
- 銈裤偆銉椼倰闁撻仌銇c仸銇椼伨銇c仧鏅傘伀銇 <ESC> 銈掓娂銇椼仸銈勩倞鐩淬仐銇俱仐銈囥亞銆
-
----> 銇撱伄 鏂 绱 銇伅 銇勩亸銇ゃ亱銇 銇熴伄銇椼亜 蹇呰銇仾銇 鍗樿獮 銇 鍚伨銈屻仸 銇勩伨銇欍
-
- 5. 3 銇嬨倝 4 銇俱仹銈掓枃銇屾銇椼亸銇倠銇俱仹绻般倞杩斻仐銆併儸銉冦偣銉 2.2 銇搁层伩銇俱仐銈囥亞銆
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.2: 銇濄伄浠栥伄鍓婇櫎銈炽優銉炽儔
-
-
- ** 琛屻伄鏈熬銇俱仹銈掑墛闄ゃ仚銈嬨伀銇 d$ 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇 **
-
- 1. 銉庛兗銉炪儷銉€兗銉夈仹銇傘倠銇撱仺銈掔⒑瑾嶃仚銈嬨伄銇 <ESC> 銈掓娂銇椼伨銇椼倗銇嗐
-
- 2. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 3. 姝c仐銇勬枃銇湯灏俱伕銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞(鏈鍒濄伄 . 銇緦銇с仚)銆
-
- 4. 琛屾湯銇俱仹鍓婇櫎銇欍倠銇伀 d$ 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
----> 瑾般亱銇屻亾銇銇渶寰屻倰2搴︺偪銈ゃ儣銇椼伨銇椼仧銆 2搴︺偪銈ゃ儣銇椼伨銇椼仧銆
-
-
- 5. 銇┿亞銇勩亞銇撱仺銇嬬悊瑙c仚銈嬨仧銈併伀銆併儸銉冦偣銉 2.3 銇搁层伩銇俱仐銈囥亞銆
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.3: 銈儦銉兗銈裤仺銉€兗銈枫儳銉
-
-
- 澶氥亸銇偝銉炪兂銉夈伅銈儦銉兗銈裤仺銉€兗銈枫儳銉炽亱銈夈儐銈偣銉堛伀澶夋洿銈掑姞銇俱仚銆
- 鍓婇櫎銈炽優銉炽儔 d 銇偑銉氥儸銉笺偪銇銇銇仾銇c仸銇勩伨銇:
-
- d 銉€兗銈枫儳銉
-
- 銇濄倢銇炪倢:
- d - 鍓婇櫎銈炽優銉炽儔銆
- 銉€兗銈枫儳銉 - 浣曘伀瀵俱仐銇﹀儘銇嶃亱銇戙倠銇(浠ヤ笅銇寵銇掋伨銇)銆
-
- 銈儦銉兗銈裤伄涓閮ㄤ竴瑕:
- w - 銈兗銈姐儷浣嶇疆銇嬨倝绌虹櫧銈掑惈銈鍗樿獮銇湯灏俱伨銇с
- e - 銈兗銈姐儷浣嶇疆銇嬨倝绌虹櫧銈掑惈銇俱仾銇勫崢瑾炪伄鏈熬銇俱仹銆
- $ - 銈兗銈姐儷浣嶇疆銇嬨倝琛屾湯銇俱仹銆
-
- 銇ゃ伨銈 de 銇ㄣ偪銈ゃ儣銇欍倠銇ㄣ併偒銉笺偨銉綅缃亱銈夊崢瑾炪伄绲傘倧銈娿伨銇с倰鍓婇櫎銇椼伨銇欍
-
-NOTE: 鍐掗櫤銇椼仧銇勪汉銇併儙銉笺優銉儮銉笺儔銇仸銈炽優銉炽儔銇仐銇儮銉笺偡銉с兂銈掓娂銇椼仸
- 銇裤伨銇椼倗銇嗐傘偒銉笺偨銉亴鐩殑瑾炰竴瑕с仹绀恒仌銈屻倠浣嶇疆銇Щ鍕曘仚銈嬨伅銇氥仹銇欍
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.4: 銉€兗銈枫儳銉炽伀銈偊銉炽儓銈掍娇鐢ㄣ仚銈
-
-
- ** 浣曞洖銈傝銇勩仧銇勭拱銈婅繑銇椼伄銉€兗銈枫儳銉炽伄鍓嶃伀鏁板ゃ倰銈裤偆銉椼仐銇俱仚銆 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熸キ銇厛闋伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仚銆
-
- 2. 2dw 銈掋偪銈ゃ儣銇椼仸鍗樿獮2銇ゅ垎绉诲嫊銇椼伨銇欍
-
- 3. 3e 銈掋偪銈ゃ儣銇椼仸3銇ょ洰銇崢瑾炪伄绲傜銇Щ鍕曘仐銇俱仚銆
-
- 4. 0 (銈笺儹)銈掋偪銈ゃ儣銇椼仸琛岄牠銇Щ鍕曘仐銇俱仚銆
-
- 5. 銈广儐銉冦儣 2 銇 3 銈掗仌銇嗘暟鍊ゃ仺浣裤仯銇︾拱銈婅繑銇椼伨銇欍
-
----> This is just a line with words you can move around in.
-
- 6. 銉儍銈广兂 2.5 銇层伩銇俱仐銈囥亞銆
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.5: 銈堛倞澶氥亸銈掑墛闄ゃ仚銈嬨仧銈併伀銈偊銉炽儓銈掍娇鐢ㄣ仚銈
-
-
- ** 銈儦銉兗銈裤仺銈偊銉炽儓銈掋偪銈ゃ儣銇欍倠銇ㄣ併仢銇搷浣溿亴瑜囨暟鍥炵拱銈婅繑銇曘倢銇俱仚銆 **
-
- 鏃㈣堪銇墛闄ゃ伄銈儦銉兗銈裤仺銉€兗銈枫儳銉炽伄绲勩伩鍚堛倧銇涖伀銈偊銉炽儓銈掕拷鍔犮仚銈嬨亾銇ㄣ仹銆
- 銈堛倞澶氥亸銇墛闄ゃ亴琛屻亪銇俱仚:
- d 鏁板 銉€兗銈枫儳銉
-
- 1. ---> 銇ㄧず銇曘倢銇熻銇闋儴鍒嗐伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 2. UPPER CASE 銇崢瑾2銇ゃ倰 2dw 銇ㄣ偪銈ゃ儣銇椼仸鍓婇櫎銇椼伨銇欍
-
- 3. UPPER CASE 銇ㄣ亜銇嗛g稓銇椼仧鍗樿獮銈掋1銇ゃ伄銈炽優銉炽儔銇ㄧ暟銇倠銈偊銉炽儓銈掓寚瀹氥仐銆
- 銈广儐銉冦儣 1 銇 2 銈掔拱銈婅繑銇椼伨銇欍
-
----> 銇撱伄ABC DE琛屻伄FGHI JK LMN OP鍗樿獮銇疩 RS TUV缍洪簵銇仾銇c仧銆
-
-NOTE: 銈儦銉兗銈 d 銇ㄣ儮銉笺偡銉с兂銇枔銇偒銈︺兂銉堛倰浣裤仯銇熷牬鍚堛併偑銉氥儸銉笺偪銇仾銇
- 鍫村悎銇儮銉笺偡銉с兂銇倛銇嗐伀鍕曚綔銇椼伨銇欍
- 渚: 3dw 銇 d3w 銇悓绛夈仹銆3w 銈掑墛闄ゃ仐銇俱仚銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.6: 琛屻伄鎿嶄綔
-
-
- ** 琛屽叏浣撱倰鍓婇櫎銇欍倠銇伅 dd 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- 琛屽叏浣撱倰鍓婇櫎銇欍倠闋诲害銇屽銇勩伄銇с乂i銇儑銈躲偆銉娿兗銇銇墛闄ゃ倰 d 銇2鍥炪偪銈ゃ儣銇
- 銇勩亞绨″崢銇倐銇伀姹恒倎銇俱仐銇熴
-
- 1. 浠ヤ笅銇彞銇2琛岀洰銇偒銉笺偨銉倰绉诲嫊銇椼伨銇欍
- 2. dd 銇ㄣ偪銈ゃ儣銇椼仸琛屻倰鍓婇櫎銇椼伨銇欍
- 3. 銇曘倝銇4琛岀洰銇Щ鍕曘仐銇俱仚銆
- 4. 2dd 銇ㄣ偪銈ゃ儣銇椼仸2琛屻倰鍓婇櫎銇椼伨銇欍
-
----> 1) 銉愩儵銇丹銇勩
----> 2) 銇ゃ伨銈夈仾銇勩倐銇伅妤姐仐銇勩
----> 3) 銈广儫銉伅闈掋亜銆
----> 4) 绉併伅杌娿倰銈傘仯銇︺亜銈嬨
----> 5) 鏅傝▓銇屾檪鍒汇倰鍛娿亽銈嬨
----> 6) 鐮傜硸銇敇銇
----> 7) 銈優銈ㄣ儮銉娿兗
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2.7: 銈勩倞鐩淬仐銈炽優銉炽儔
-
-
- ** 鏈寰屻伄銈炽優銉炽儔銈掑彇銈婃秷銇欍伀銇 u 銈掓娂銇椼伨銇欍俇 銇鍏ㄤ綋銇彇娑堛仹銇欍 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼佹渶鍒濄伄闁撻仌銇勩伀銈兗銈
- 銉倰绉诲嫊銇椼伨銇椼倗銇嗐
- 2. x 銈掋偪銈ゃ儣銇椼仸銇勩倝銇亜鍏堥牠銇枃瀛椼倰鍓婇櫎銇椼伨銇椼倗銇嗐
- 3. 銇曘亖銆乽 銈掋偪銈ゃ儣銇椼仸鏈寰屻伀瀹熻銇椼仧銈炽優銉炽儔銈掑彇銈婃秷銇椼伨銇椼倗銇嗐
- 4. 浠婂害銇亁 銈掍娇鐢ㄣ仐銇﹁銈娿倰鍏ㄣ仸淇銇椼伨銇椼倗銇嗐
- 5. 澶ф枃瀛椼伄 U 銈掋偪銈ゃ儣銇椼仸銆佽銈掑厓銇姸鎱嬨伀鎴汇仐銇俱仐銈囥亞銆
- 6. u 銈掋偪銈ゃ儣銇椼仸鐩村墠銇 U 銈炽優銉炽儔銈掑彇娑堛仐銇俱仐銈囥亞銆
- 7. 銇с伅銈炽優銉炽儔銈掑啀瀹熻銇欍倠銇伀 CTRL-R (CTRL 銈掓娂銇椼仧銇俱伨 R 銈掓墦銇)銈掓暟鍥
- 銈裤偆銉椼仐銇︺伩銇俱仐銈囥亞(鍙栨秷銇彇娑)銆
-
----> 銇撱伄銇銇伄闁撻仌銇勩倰淇銆呫仐銆佸緦銇с仢銈屻倝銇慨姝c倰銈掑彇娑堛仐銇俱伨銇欍仚銆
-
- 8. 銇撱倢銇仺銇︺倐渚垮埄銇偝銉炪兂銉夈仹銇欍傘仌銇併儸銉冦偣銉 2 瑕佺磩銇搁层伩銇俱仐銈囥亞銆
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 2 瑕佺磩
-
-
- 1. 銈兗銈姐儷浣嶇疆銇嬨倝鍗樿獮銇湯灏俱伨銇с倰鍓婇櫎銇欍倠銇伅 dw 銇ㄣ偪銈ゃ儣銇椼伨銇欍
- 2. 銈兗銈姐儷浣嶇疆銇嬨倝琛屻伄鏈熬銇俱仹銈掑墛闄ゃ仚銈嬨伀銇 d$ 銇ㄣ偪銈ゃ儣銇椼伨銇欍
- 3. 琛屽叏浣撱倰鍓婇櫎銇欍倠銇伅 dd 銇ㄣ偪銈ゃ儣銇椼伨銇欍
-
- 4. 銉€兗銈枫儳銉炽倰绻般倞杩斻仚銇伅鏁板ゃ倰浠樹笌銇椼伨銇: 2w
- 5. 澶夋洿銇敤銇勩倠銈炽優銉炽儔銇舰寮忋伅
- 銈儦銉兗銈 [鏁板 銉€兗銈枫儳銉
-
- 銇濄倢銇炪倢:
- 銈儦銉兗銈 - 鍓婇櫎 d 銇銇т綍銈掋仚銈嬨亱銆
- 鏁板 - 銇濄伄銈炽優銉炽儔銈掍綍鍥炵拱銈婅繑銇欍亱銆
- 銉€兗銈枫儳銉 - w (鍗樿獮)銈 $ (琛屾湯)銇仼銇銇с併儐銈偣銉堛伄浣曘伀瀵俱仐銇﹀儘銇嶃亱
- 銇戙倠銇嬨
-
- 6. 琛屻伄鍏堥牠銇Щ鍕曘仚銈嬨伀銇偧銉倰浣跨敤銇椼伨銇: 0
-
- 7. 鍓嶅洖銇嫊浣溿倰鍙栨秷銇: u (灏忔枃瀛 u)
- 琛屽叏浣撱伄澶夋洿銈掑彇娑堛仚: U (澶ф枃瀛 U)
- 鍙栨秷銇椼伄鍙栨秷銇: CTRL-R
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 3.1: 璨笺倞浠樸亼銈炽優銉炽儔
-
-
- ** 鏈寰屻伀鍓婇櫎銇曘倢銇熻銈掋偒銉笺偨銉伄寰屻伀璨笺倞浠樸亼銈嬨伀銇 p 銈掋偪銈ゃ儣銇椼伨銇 **
-
- 1. 浠ヤ笅銇钀姐伄鏈鍒濄伄琛屻伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 2. dd 銇ㄣ偪銈ゃ儣銇椼仸琛屻倰鍓婇櫎銇椼乂im 銇儛銉冦儠銈°伀鏍肩磵銇椼伨銇椼倗銇嗐
-
- 3. 鍓婇櫎銇椼仧琛屻亴鏈潵銇傘倠銇广亶浣嶇疆銇笂銇銇俱仹銆併偒銉笺偨銉倰绉诲嫊銇曘仜銇俱仐銈囥亞銆
-
- 4. 銉庛兗銉炪儷銉€兗銉夈仹 p 銈掋偪銈ゃ儣銇椼仸鏍肩磵銇椼仧琛屻倰鐢婚潰銇埢銇椼伨銇欍
-
- 5. 闋嗙暘銇屾銇椼亸銇倠妲樸伀銈广儐銉冦儣 2 銇嬨倝 4 銈掔拱銈婅繑銇椼伨銇椼倗銇嗐
-
- d) 璨存柟銈傚銇躲亾銇ㄣ亴銇с亶銈?
- b) 銈广儫銉伅闈掋亜銆
- c) 鐭ユ伒銇ㄣ伅瀛︺伓銈傘伄銆
- a) 銉愩儵銇丹銇勩
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 3.2: 缃亶鎻涖亪銈炽優銉炽儔
-
-
- ** 銈兗銈姐儷銇笅銇枃瀛椼倰缃亶鎻涖亪銈嬨伀銇 r 銈掋偪銈ゃ儣銇椼伨銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熸渶鍒濄伄琛屻伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 2. 鏈鍒濄伄闁撻仌銇勩伄鍏堥牠銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 3. r 銇ㄣ偪銈ゃ儣銇椼侀枔閬曘仯銇︺亜銈嬫枃瀛椼倰缃亶鎻涖亪銈嬨佹銇椼亜鏂囧瓧銈掋偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
- 4. 鏈鍒濄伄琛屻亴姝c仐銇忋仾銈嬨伨銇с偣銉嗐儍銉 2 銇嬨倝 3 銈掔拱銈婅繑銇椼伨銇椼倗銇嗐
-
----> 銇撱伄鍚堛倰浜哄姏銇椼仧鏅傘伃銆併仢銇汉銇咕銇ゃ亱鍟忛仌銇c仧銈兗銈掓娂銇椼倐銇椼仧!
----> 銇撱伄琛屻倰鍏ュ姏銇椼仧鏅傘伀銆併仢銇汉銇咕銇ゃ亱闁撻仌銇c仧銈兗銈掓娂銇椼伨銇椼仧!
-
- 5. 銇曘亖銆併儸銉冦偣銉 3.2 銇搁层伩銇俱仐銈囥亞銆
-
-NOTE: 瀹熼殯銇│銇椼伨銇椼倗銇嗐傛焙銇椼仸瑕氥亪銈嬨仩銇戙伀銇仐銇亜銇撱仺銆
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 3.3: 澶夋洿銈炽優銉炽儔
-
-
- ** 鍗樿獮銇竴閮ㄣ併倐銇椼亸銇叏浣撱倰澶夋洿銇欍倠銇伅 cw 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熸渶鍒濄伄琛屻伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 2. lubw 銇 u 銇綅缃伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 3. cw 銇ㄣ偪銈ゃ儣銇椼佹銇椼亜鍗樿獮銈掋偪銈ゃ儣銇椼伨銇椼倗銇(銇撱伄鍫村悎 'ine' 銇ㄣ偪銈ゃ儣)銆
-
- 4. 娆°伄闁撻仌銇(澶夋洿銇欍伖銇嶆枃瀛椼伄鍏堥牠)銇Щ鍕曘仚銈嬨仧銈併伀 <ESC> 銈掋偪銈ゃ儣銇椼伨銇欍
-
- 5. 鏈鍒濄伄琛屻亴娆°伄琛屻伄妲樸伀銇倠銇俱仹銈广儐銉冦儣 3 銇 4 銈掔拱銈婅繑銇椼伨銇欍
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-cw 銇崢瑾炪倰澶夋洿銇欍倠銇犮亼銇с仾銇忋佹尶鍏ャ倐琛屻亪銈嬨亾銇ㄣ伀娉ㄦ剰銇椼伨銇椼倗銇嗐
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 3.4: c 銈掍娇鐢ㄣ仐銇熴仢銇粬銇鏇
-
-
- ** 澶夋洿銈炽優銉炽儔銇佸墛闄ゃ偝銉炪兂銉夈仺鍚屻仒妲樸伀銈儢銈搞偋銈儓銈掍娇鐢ㄣ仐銇俱仚 **
-
- 1. 澶夋洿銈炽優銉炽儔銇佸墛闄ゃ偝銉炪兂銉夈仺鍚屻仒銈堛亞銇嫊浣溿倰銇椼伨銇欍傘仢銇舰寮忋伅
-
- c [鏁板 銉€兗銈枫儳銉
-
- 2. 銈儢銈搞偋銈儓銈傚悓銇樸仹銆亀 銇崢瑾炪 $ 銇鏈仾銇┿仺銇勩仯銇熴倐銇仹銇欍
-
- 3. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 4. 鏈鍒濄伄闁撻仌銇勩伕銈兗銈姐儷銈掔Щ鍕曘仐銇俱仐銈囥亞銆
-
- 5. c$ 銇ㄣ偪銈ゃ儣銇椼仸琛屻伄娈嬨倞銈掞紥琛岀洰銇銇仐銆<ESC> 銈掓娂銇椼伨銇椼倗銇嗐
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-NOTE: 銈裤偆銉椾腑銇枔閬曘亜銇儛銉冦偗銈广儦銉笺偣銈兗銈掍娇銇c仸鐩淬仚銇撱仺銈傘仹銇嶃伨銇欍
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 3 瑕佺磩
-
-
- 1. 鏃€伀鍓婇櫎銇曘倢銇熴儐銈偣銉堛倰鍐嶉厤缃仚銈嬨伀銇乸 銈掋偪銈ゃ儣銇椼伨銇欍傘亾銈屻伅鍓婇櫎銇
- 銈屻仧銉嗐偔銈广儓銈掋偒銉笺偨銉伄寰屻伀鎸垮叆銇椼伨銇(琛屽崢浣嶃仹鍓婇櫎銇曘倢銇熴伄銇倝銇般併偒銉
- 銈姐儷銇亗銈嬫銇銇尶鍏ャ仌銈屻伨銇)銆
-
- 2. 銈兗銈姐儷銇笅銇枃瀛椼倰缃亶鎻涖亪銈嬨伀銇乺 銈掋偪銈ゃ儣銇椼仧寰屻併仢銈屻倰缃亶鎻涖亪銈
- 鏂囧瓧銈掋偪銈ゃ儣銇椼伨銇欍
-
- 3. 澶夋洿銈炽優銉炽儔銇с伅銈兗銈姐儷浣嶇疆銇嬨倝鐗瑰畾銇儮銉笺偡銉с兂銇ф寚瀹氥仌銈屻倠绲傜銇俱仹銈掑
- 鏇淬仚銈嬨亾銇ㄣ亴鍙兘銇с仚銆備緥銇堛伆 cw 銇倝銇般偒銉笺偨銉綅缃亱銈夊崢瑾炪伄绲傘倧銈娿伨銇с
- c$ 銇倝銇拌銇祩銈忋倞銇俱仹銈掑鏇淬仐銇俱仚銆
-
- 4. 澶夋洿銈炽優銉炽儔銇舰寮忋伅
-
- c [鏁板 銉€兗銈枫儳銉
-
-銇曘亖銆佹銇儸銉冦偣銉炽伕閫层伩銇俱仐銈囥亞銆
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 4.1: 浣嶇疆銇ㄣ儠銈°偆銉伄鎯呭牨
-
- ** 銉曘偂銈ゃ儷鍐呫仹銇綅缃仺銉曘偂銈ゃ儷銇姸鎱嬨倰琛ㄧず銇欍倠銇伅 CTRL-G 銈掋偪銈ゃ儣銇椼伨銇欍
- 銉曘偂銈ゃ儷鍐呫伄銇傘倠琛屻伀绉诲嫊銇欍倠銇伅 G 銈掋偪銈ゃ儣銇椼伨銇 **
-
- NOTE: 銈广儐銉冦儣銈掑疅琛屻仚銈嬪墠銇併亾銇儸銉冦偣銉冲叏銇︺伀鐩倰閫氥仐銇俱仐銈囥亞!!
-
- 1. CTRL 銈掓娂銇椼仧銇俱伨 g 銈掓娂銇椼伨銇椼倗銇嗐傘亾銇搷浣溿倰 CTRL-G 銇ㄥ懠銈撱仹銇勩伨銇欍
- 銉氥兗銈搞伄涓鐣笅銇儠銈°偆銉悕銇ㄨ鐣彿銇岃〃绀恒仌銈屻倠銇仛銇с仚銆 銈广儐銉冦儣 3銇仧銈
- 銇鐣彿銈掕銇堛仸銇娿亶銇俱仐銈囥亞銆
-
-NOTE: 鐢婚潰銇彸涓嬮殔銇偒銉笺偨銉伄浣嶇疆銇岃〃绀恒仌銈屻仸銇勩倠銇嬨倐銇椼倢銇俱仜銈撱傘亾銈屻伅
- 'ruler' 銈儣銈枫儳銉(銉儍銈广兂6銇ц鏄)銈掕ō瀹氥仚銈嬨亾銇ㄣ仹琛ㄧず銇曘倢銇俱仚銆
-
- 2. 鏈涓嬭銇Щ鍕曘仚銈嬨仧銈併伀 G 銈掋偪銈ゃ儣銇椼伨銇椼倗銇嗐
- 銉曘偂銈ゃ儷銇厛闋伀绉诲嫊銇欍倠銇伅 gg 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
- 3. 鍏堛伝銇┿伄琛屻伄鐣彿銈掋偪銈ゃ儣銇 G 銈掋偪銈ゃ儣銇椼伨銇椼倗銇嗐傛渶鍒濄伀 CTRL-G 銈掓娂銇椼仧琛
- 銇埢銇c仸鏉ャ倠銇仛銇с仚銆
-
- 4. 鑷俊銇屾寔銇︺仧銈夈偣銉嗐儍銉 1 銇嬨倝 3 銈掑疅琛屻仐銇俱仐銈囥亞銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 4.2: 妞滅储銈炽優銉炽儔
-
-
- ** 瑾炲彞銈掓绱€仚銈嬨伀銇 / 銇ㄣ佸墠鏂规绱€仚銈嬭獮鍙ャ倰銈裤偆銉椼仐銇俱仚銆**
-
- 1. 銉庛兗銉炪儷銉€兗銉夈仹 / 銇ㄣ亜銇嗘枃瀛椼倰銈裤偆銉椼仐銇俱仚銆傜敾闈竴鐣笅銇 : 銈炽優銉炽儔銇
- 鍚屻仒妲樸伀 / 銇岀従銈屻倠銇撱仺銇皸銇ャ亸銇с仐銈囥亞銆
-
- 2. 銇с伅銆'errroor' <ENTER> 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐傘亾銈屻亴妞滅储銇椼仧銇勫崢瑾炪仹銇欍
-
- 3. 鍚屻仒瑾炪倰銈傘亞涓搴︽绱€仚銈嬨仺銇嶃伅 鍗樸伀 n 銈掋偪銈ゃ儣銇椼伨銇欍
- 閫嗘柟鍚戙伀瑾炲彞銈掓绱€仚銈嬨仺銇嶃伅 N 銈掋偪銈ゃ儣銇椼伨銇欍
-
- 4. 閫嗘柟鍚戙伀瑾炲彞銈掓绱€仚銈嬪牬鍚堛伅銆/ 銇唬銈忋倞銇 ? 銈炽優銉炽儔銈掍娇鐢ㄣ仐銇俱仚銆
-
- 5. 鍏冦伄鍫存墍銇埢銈嬨伀銇 CTRL-O (Ctrl 銈掓娂銇楃稓銇戙仾銇屻倝 o 鏂囧瓧銈裤偆銉)銈掋偪銈ゃ儣銇
- 銇俱仚銆傘仌銈夈伀鎴汇倠銇伅銇撱倢銈掔拱銈婅繑銇椼伨銇欍侰TRL-I 銇墠鏂瑰悜銇с仚銆
-
-Note: "errroor" 銇 error 銇ㄣ偣銉氥儷銇岄仌銇勩伨銇; errroor 銇亜銈忋倖銈 error 銇с仚銆
-Note: 妞滅储銇屻儠銈°偆銉伄绲傘倧銈娿伀閬斻仚銈嬨仺銆併偑銉椼偡銉с兂 'wrapscan' 銇岃ō瀹氥仌銈屻仸銇勩倠
- 鍫村悎銇併儠銈°偆銉伄鍏堥牠銇嬨倝妞滅储銈掔稓琛屻仐銇俱仚銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 4.3: 瀵惧繙銇欍倠鎷姬銈掓绱
-
-
- ** 瀵惧繙銇欍倠 ),] 銈 } 銈掓绱€仚銈嬨伀銇 % 銈掋偪銈ゃ儣銇椼伨銇 **
-
- 1. 涓嬨伄 ---> 銇хず銇曘倢銇熻銇 (,[ 銇 { 銇仼銈屻亱銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 2. 銇濄亾銇 % 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
- 3. 銈兗銈姐儷銇蹇溿仚銈嬫嫭寮с伀绉诲嫊銇欍倠銇仛銇с仚銆
-
- 4. 鏈鍒濄伄鎷姬銇Щ鍕曘仚銈嬨伀銇 % 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐
-
- 5. 浠栥伄 (,),[,],{ or } 銇с偒銉笺偨銉倰绉诲嫊銇椼% 銇屼綍銈掋仐銇︺亜銈嬨亱纰鸿獚銇椼伨銇椼倗銇嗐
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-
-NOTE: 銇撱伄姗熻兘銇嫭寮с亴涓鑷淬仐銇︺亜銇亜銉椼儹銈般儵銉犮倰銉囥儛銉冦偘銇欍倠銇伀銇ㄣ仸銈傚焦绔嬨仭
- 銇俱仚銆
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 4.4: 闁撻仌銇勩倰澶夋洿銇欍倠鏂规硶
-
-
- ** 'old' 銈 'new' 銇疆鎻涖仚銈嬨伀銇 :s/old/new/g 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 2. :s/thee/the <ENTER> 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐傘亾銇偝銉炪兂銉夈伅銇濄伄琛屻仹鏈鍒濄伀瑕
- 銇ゃ亱銇c仧銈傘伄銇仩銇戣銇倧銈屻倠銇撱仺銇皸銈掋仱銇戙伨銇椼倗銇嗐
-
- 3. 銇с伅 :s/thee/the/g 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐傝鍏ㄤ綋銈掔疆鎻涖仚銈嬨亾銇ㄣ倰鎰忓懗銇椼伨銇欍
- 銇撱伄澶夋洿銇仢銇銇ц銇ゃ亱銇c仧鍏ㄣ仸銇畤鎵銇銇椼仸琛屻仾銈忋倢銇俱仚銆
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 瑜囨暟琛屻亱銈夎銇ゃ亱銈嬫枃瀛椼倰澶夋洿銇欍倠銇伅
- :#,#s/old/new/g #,# 銇伅缃亶鎻涖亪銈嬬瘎鍥层伄闁嬪銇ㄧ祩浜嗐伄琛岀暘鍙枫倰鎸囧畾銇椼伨
- 銇欍
- :%s/old/new/g 銉曘偂銈ゃ儷鍏ㄤ綋銇ц銇ゃ亱銈嬨倐銇伀瀵俱仐銇﹀鏇淬仚銈嬨
- :%s/old/new/gc 銉曘偂銈ゃ儷鍏ㄤ綋銇ц銇ゃ亱銈嬨倐銇伀瀵俱仐銇︺1銇1銇ょ⒑瑾嶃倰銇ㄣ倞銇
- 銇屻倝澶夋洿銇欍倠銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 4 瑕佺磩
-
-
- 1. CTRL-G 銇儠銈°偆銉仹銇綅缃仺銉曘偂銈ゃ儷銇┏绱般倰琛ㄧず銇椼伨銇欍
- G 銇儠銈°偆銉伄鏈涓嬭銇Щ鍕曘仐銇俱仚銆
- 鏁板 G 銇仢銇銇Щ鍕曘仐銇俱仚銆
- gg 銇厛闋銇Щ鍕曘仐銇俱仚銆
-
- 2. / 銇緦銇獮鍙ャ倰銈裤偆銉椼仚銈嬨仺鍓嶆柟銇獮鍙ャ倰妞滅储銇椼伨銇欍
- ? 銇緦銇獮鍙ャ倰銈裤偆銉椼仚銈嬨仺寰屾柟銇獮鍙ャ倰妞滅储銇椼伨銇欍
- 妞滅储銇緦銇 n 銇悓銇樻柟鍚戙伄娆°伄妞滅储銈掋丯 銇嗘柟鍚戙伄妞滅储銈掋仐銇俱仚銆
- CTRL-O 銇牬鎵銈掑墠銇Щ銇椼丆TRL-I 銇牬鎵銈掓銇Щ鍕曘仐銇俱仚銆
-
- 3. (,),[,],{, 銈傘仐銇忋伅 } 涓娿伀銈兗銈姐儷銇屻亗銈嬬姸鎱嬨仹 % 銈掋偪銈ゃ儣銇欍倠銇ㄥ銇仾銈嬫枃
- 瀛椼伕绉诲嫊銇椼伨銇欍
-
- 4. 鐝惧湪琛屻伄鏈鍒濄伄 old 銈 new 銇疆鎻涖仚銈嬨 :s/old/new
- 鐝惧湪琛屻伄鍏ㄣ仸銇 old 銈 new 銇疆鎻涖仚銈嬨 :s/old/new/g
- 2銇ゃ伄 # 闁撱仹瑾炲彞銈掔疆鎻涖仚銈嬨 :#,#s/old/new/g
- 銉曘偂銈ゃ儷銇腑銇叏銇︺伄妞滅储瑾炲彞銈掔疆鎻涖仚銈嬨 :%s/old/new/g
- 'c' 銈掑姞銇堛倠銇ㄧ疆鎻涖伄搴︺伀纰鸿獚銈掓眰銈併倠銆 :%s/old/new/gc
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 5.1: 澶栭儴銈炽優銉炽儔銈掑疅琛屻仚銈嬫柟娉
-
-
- ** :! 銇緦銇疅琛屻仚銈嬪閮ㄣ偝銉炪兂銉夈倰銈裤偆銉椼仐銇俱仚 **
-
- 1. 鐢婚潰銇渶涓嬮儴銇偒銉笺偨銉亴绉诲嫊銇欍倠銈堛亞銆佹叄銈岃Κ銇椼倱銇 : 銈掋偪銈ゃ儣銇椼伨銇椼倗銇嗐
- 銇撱倢銇с偝銉炪兂銉夈亴銈裤偆銉椼仹銇嶃倠妲樸伀銇倞銇俱仚銆
-
- 2. 銇撱亾銇 ! 銇ㄣ亜銇嗘枃瀛(鎰熷槅绗)銈掋偪銈ゃ儣銇椼伨銇椼倗銇嗐
- 銇撱倢銇у閮ㄣ偡銈с儷銈炽優銉炽儔銇屽疅琛屻仹銇嶃倠妲樸伀銇倞銇俱仚銆
-
- 3. 渚嬨仺銇椼仸 ! 銇稓銇戙仸 ls 銇ㄣ偪銈ゃ儣銇 <ENTER> 銈掓娂銇椼伨銇椼倗銇嗐
- 銈枫偋銉儣銉兂銉椼儓銇倛銇嗐伀銉囥偅銉偗銉堛儶銇竴瑕с亴琛ㄧず銇曘倢銈嬨伅銇氥仹銇欍
- 銈傘仐銇忋伅 ls 銇屽嫊銇嬨仾銇勩仾銈夈伆 :!dir 銈掍娇鐢ㄣ仐銇俱仐銈囥亞銆
-
-Note: 銇撱伄鏂规硶銇倛銇c仸銇傘倝銈嗐倠銈炽優銉炽儔銇屽疅琛屻仚銈嬨亾銇ㄣ亴銇с亶銇俱仚銆傘倐銇°倣銈撳紩鏁
- 銈備笌銇堛倝銈屻伨銇欍
-
-Note: 鍏ㄣ仸銇 : 銈炽優銉炽儔銇 <ENTER> 銈掓娂銇椼仸绲備簡銇椼仾銇戙倢銇般仾銈娿伨銇涖倱銆
- 浠ラ檷銇с伅銇撱伄銇撱仺銇█鍙娿仐銇俱仜銈撱
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 5.2: 銇濄伄浠栥伄銉曘偂銈ゃ儷銇告浉銇嶈炯銇
-
-
- ** 銉曘偂銈ゃ儷銇稿鏇淬倰淇濆瓨銇欍倠銇伅 :w 銉曘偂銈ゃ儷鍚 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- 1. 銉囥偅銉偗銉堛儶銇竴瑕с倰寰椼倠銇熴倎銇 :!dir 銈傘仐銇忋伅 :!ls 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇嗐
- 銇撱伄銇傘仺 <ENTER> 銈掓娂銇欍伄銇棦銇仈瀛樼煡銇с仚銇
-
- 2. TEST 銇倛銇嗐伀銆併仢銇儑銈c儸銈儓銉伀鐒°亜銉曘偂銈ゃ儷鍚嶃倰涓銇ら伕銇炽伨銇欍
-
- 3. 銇с伅 :w TEST 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇 (TEST 銇侀伕銈撱仩銉曘偂銈ゃ儷鍚嶃仹銇)銆
-
- 4. 銇撱倢銇倛銈娿儠銈°偆銉叏浣撱亴 TEST 銇ㄣ亜銇嗗悕鍓嶃仹淇濆瓨銇曘倢銇俱仚銆
- 銈傘亞涓搴 :!dir 銈傘仐銇忋伅 !ls 銇ㄣ偪銈ゃ儣銇椼仸纰鸿獚銇椼仸銇裤伨銇椼倗銇嗐
-
-Note: 銇撱亾銇 Vim 銈掔祩浜嗐仐銆併儠銈°偆銉悕 TEST 銇ㄥ叡銇捣鍕曘仚銈嬨仺銆佷繚瀛樸仐銇熸檪銇
- 銉併儱銉笺儓銉偄銉伄瑜囪=銇屻仹銇嶄笂銇屻倠銇仛銇с仚銆
-
- 5. 銇曘倝銇佹銇倛銇嗐伀銈裤偆銉椼仐銇︺儠銈°偆銉倰娑堛仐銇俱仐銈囥亞(MS-DOS): :!del TEST
- 銈傘仐銇忋伅(Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 5.3: 閬告姙銇椼仧鏇搞亶杈笺伩
-
-
-** 銉曘偂銈ゃ儷銇綅缃倰淇濆瓨銇欍倠銇伅銆乿 銉€兗銈枫儳銉炽仺 :w FILENAME 銈掋偪銈ゃ儣銇椼伨銇欍 **
-
- 1. 銇撱伄琛屻伀銈兗銈姐儷銈掔Щ鍕曘仐銇俱仚銆
-
- 2. v 銈掓娂銇椼佷互涓嬨伄绗5闋呯洰銇偒銉笺偨銉倰绉诲嫊銇椼伨銇欍傘儐銈偣銉堛亴寮疯琛ㄧず銇曘倢銈嬨伄
- 銇敞鐩仐銇︿笅銇曘亜銆
-
- 3. 鏂囧瓧 : 銈掓娂銇欍仺銆佺敾闈€伄鏈涓嬮儴銇 :'<,'> 銇岀従銈屻伨銇欍
-
- 4. w TEST (TESET 銇瓨鍦ㄣ仐銇亜銉曘偂銈ゃ儷鍚)銈掋偪銈ゃ儣銇椼伨銇欍
- Enter 銈掓娂銇欏墠銇 :'<,'>w TEST 銇ㄣ仾銇c仸銇勩倠銇撱仺銈掔⒑瑾嶃仐銇︿笅銇曘亜銆
-
- 5. Vim 銇 TEST 銇ㄣ亜銇嗐儠銈°偆銉伀閬告姙銇曘倢銇熻銈掓浉銇嶈炯銈銇с仐銈囥亞銆
- !dir 銈傘仐銇忋伅 !ls 銇с仢銈屻倰纰鸿獚銇椼伨銇欍
- 銇濄倢銇墛闄ゃ仐銇亜銇с亰銇勩仸涓嬨仌銇勩傛銇儸銉冦偣銉炽仹浣跨敤銇椼伨銇欍
-
-NOTE: v 銈掓娂銇欍仺銆乂isual 閬告姙銇屽銇俱倞銇俱仚銆傘偒銉笺偨銉倰鍕曘亱銇欍亾銇ㄣ仹銆侀伕鎶炵瘎鍥层倰
- 澶с亶銇忋倐灏忋仌銇忋倐銇с亶銇俱仚銆傘仌銈夈伀銆併仢銇伕鎶炵瘎鍥层伀瀵俱仐銇︺偑銉氥儸銉笺偪銈掗仼鐢
- 銇嶃伨銇欍備緥銇堛伆 d 銇儐銈偣銉堛倰鍓婇櫎銇椼伨銇欍
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 5.4: 銉曘偂銈ゃ儷銇彇杈笺仺鍚堜降
-
-
- ** 銉曘偂銈ゃ儷銇腑韬倰鎸垮叆銇欍倠銇伅 :r 銉曘偂銈ゃ儷鍚 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- 1. 銈兗銈姐儷銈掍互涓嬨伄琛屻伀鍚堛倧銇涖伨銇欍
-
-NOTE: 銈广儐銉冦儣 2 銇疅琛屽緦銆併儸銉冦偣銉 5.3 銇儐銈偣銉堛亴鐝俱倢銇俱仚銆備笅銇笅銇屻仯銇︺亾
- 銇儸銉冦偣銉炽伀绉诲嫊銇椼伨銇椼倗銇嗐
-
- 2. 銇с伅 TEST 銇ㄣ亜銇嗐儠銈°偆銉倰 :r TEST 銇ㄣ亜銇嗐偝銉炪兂銉夈仹瑾伩杈笺伩銇俱仐銈囥亞銆
- 銇撱亾銇с亜銇 TEST 銇娇銇嗐儠銈°偆銉伄鍚嶅墠銇亾銇ㄣ仹銇欍
- 瑾伩杈笺伨銈屻仧銉曘偂銈ゃ儷銇併偒銉笺偨銉銇笅銇亗銈娿伨銇欍
-
- 3. 鍙栬炯銈撱仩銉曘偂銈ゃ儷銈掔⒑瑾嶃仐銇︺伩銇俱仐銈囥亞銆傘偒銉笺偨銉倰鎴汇仚銇ㄣ併儸銉冦偣銉5.3 銇
- 銈儶銈搞儕銉仺銉曘偂銈ゃ儷銇倛銈嬨倐銇伄2銇ゃ亴銇傘倠銇撱仺銇屻倧銇嬨倞銇俱仚銆
-
-NOTE: 澶栭儴銈炽優銉炽儔銇嚭鍔涖倰瑾伩杈笺個銇撱仺銈傚嚭鏉ャ伨銇欍備緥銇堛伆銆
- :r !ls 銇 ls 銈炽優銉炽儔銇嚭鍔涖倰銈兗銈姐儷浠ヤ笅銇銇胯炯銇裤伨銇欍
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 5 瑕佺磩
-
-
- 1. :!command 銇倛銇c仸 澶栭儴銈炽優銉炽儔銈掑疅琛屻仐銇俱仚銆
-
- 銈堛亸浣裤亞渚:
- (MS-DOS) (Unix)
- :!dir :!ls - 銉囥偅銉偗銉堛儶鍐呫伄涓瑕с倰瑕嬨倠銆
- :!del FILENAME :!rm FILENAME - 銉曘偂銈ゃ儷銈掑墛闄ゃ仚銈嬨
-
- 2. :w 銉曘偂銈ゃ儷鍚 銇倛銇c仸銉曘偂銈ゃ儷鍚嶃仺銇勩亞銉曘偂銈ゃ儷銇屻儑銈c偣銈伀鏇搞亶杈笺伨銈屻倠銆
-
- 3. v 銉€兗銈枫儳銉炽仹 :w FILENAME 銇ㄣ仚銈嬨仺銆併儞銈搞儱銈€儷閬告姙琛屻亴銉曘偂銈ゃ儷銇繚瀛樸仌
- 銈屻倠銆
-
- 4. :r 銉曘偂銈ゃ儷鍚 銇倛銈娿儠銈°偆銉悕銇ㄣ亜銇嗐儠銈°偆銉亴銉囥偅銈广偗銈堛倞鍙栬炯銇俱倢銆
- 銈兗銈姐儷浣嶇疆銇笅銇尶鍏ャ仌銈屻倠銆
-
- 5. :r !dir 銇 dir 銈炽優銉炽儔銇嚭鍔涖倰銈兗銈姐儷浣嶇疆浠ヤ笅銇銇胯炯銈銆
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 6.1: 銈兗銉椼兂銈炽優銉炽儔
-
-
- ** o 銈掋偪銈ゃ儣銇欍倠銇ㄣ併偒銉笺偨銉伄涓嬨伄琛屻亴闁嬨亶銆佹尶鍏ャ儮銉笺儔銇叆銈娿伨銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熻銇偒銉笺偨銉倰绉诲嫊銇椼伨銇椼倗銇嗐
-
- 2. o (灏忔枃瀛) 銈掋偪銈ゃ儣銇椼仸銆併偒銉笺偨銉伄涓嬨伄琛屻倰闁嬨亶銆佹尶鍏ャ儮銉笺儔銇叆銈娿伨銇欍
-
- 3. 銇曘倝銇尶鍏ャ儮銉笺儔銈掔祩浜嗐仚銈嬬偤銇 <ESC> 銈掋偪銈ゃ儣銇椼伨銇欍
-
----> o 銈掋偪銈ゃ儣銇欍倠銇ㄣ偒銉笺偨銉伅闁嬨亜銇熻銇哥Щ鍕曘仐鎸垮叆銉€兗銉夈伀鍏ャ倞銇俱仚銆
-
- 4. 銈兗銈姐儷銇笂銇銇尶鍏ャ仚銈嬨伀銇佸皬鏂囧瓧銇 o 銇с伅銇亸銆佸崢绱斻伀澶ф枃瀛椼伄 O
- 銈掋偪銈ゃ儣銇椼伨銇欍傛銇銇ц│銇椼仸銇裤伨銇椼倗銇嗐
-
----> 銇撱伄琛屻伄涓娿伕鎸垮叆銇欍倠銇伅銆併亾銇銇搞偒銉笺偨銉倰缃亜銇 O 銈掋偪銈ゃ儣銇椼伨銇欍
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 6.2: 杩藉姞銈炽優銉炽儔
-
-
- ** 銈兗銈姐儷銇銇綅缃亱銈夈儐銈偣銉堛倰杩藉姞銇欍倠銇伅 a 銇ㄣ偪銈ゃ儣銇椼伨銇 **
-
- 1. 銈兗銈姐儷銈 ---> 銇хず銇曘倢銇熸キ銇哥Щ鍕曘仐銇俱仐銈囥亞銆
-
- 2. e 銈掓娂銇椼仸 li 銇祩绔儴銇俱仹銈兗銈姐儷銈掔Щ鍕曘仐銇俱仚銆
-
- 3. 銈兗銈姐儷銇緦銈嶃伀銉嗐偔銈广儓銈掕拷鍔犮仚銈嬨仧銈併伀 a (灏忔枃瀛) 銈掋偪銈ゃ儣銇椼伨銇欍
-
- 4. 銇濄伄涓嬨伄琛屻伄銇倛銇嗐仾鍗樿獮銇畬鎴愩仌銇涖伨銇欍傛尶鍏ャ儮銉笺儔銈掓姕銇戙倠鐐恒伀 <ESC> 銇娂
- 銇椼伨銇欍
-
- 5. e 銈掍娇銇c仸娆°伄涓嶅畬鍏ㄣ仾鍗樿獮銇哥Щ鍕曘仐銆併偣銉嗐儍銉 3 銇 4 銈掔拱銈婅繑銇椼伨銇欍
-
----> This li will allow you to pract appendi text to a line.
----> This line will allow you to practice appending text to a line.
-
-Note: a, i 銇 A 銇悓銇樻尶鍏ャ儮銉笺儔銇哥Щ銈娿伨銇欍亴銆佹枃瀛椼亴鎸垮叆銇曘倢銈嬩綅缃仩銇戙亴鐣般仾銈
- 銇俱仚銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 6.3: 銇濄伄浠栥伄缃彌鏂规硶
-
-
- ** 1鏂囧瓧浠ヤ笂銈掔疆銇嶆彌銇堛倠銇伅澶ф枃瀛椼伄 R 銇ㄣ偪銈ゃ儣銇椼伨銇椼倗銇 **
-
- 1. 浠ヤ笅銇 ---> 銇ㄧず銇曘倢銇熸キ銇偒銉笺偨銉倰绉诲嫊銇椼伨銇欍傛渶鍒濄伄 xxx 銇厛闋伀绉诲嫊銇
- 銇俱仚銆
-
- 2. R 銈掓娂銇椼仸銆2琛岀洰銇暟鍊ゃ倰銈裤偆銉椼仚銈嬨亾銇ㄣ仹銆亁xx 銇岀疆鎻涖仌銈屻伨銇欍
-
- 3. 缃彌銉€兗銉夈倰鎶溿亼銈嬨伀銇 <ESC> 銈掓娂銇椼伨銇欍傝銇畫銈娿亴澶夋洿銇曘倢銇︺亜銇亜銇俱伨銇
- 銇倠銇撱仺銇敞鎰忋仐銇︺亸銇犮仌銇勩
-
- 5. 娈嬨仯銇 xxx 銈掋偣銉嗐儍銉椼倰绻般倞杩斻仐銇︾疆鎻涖仐銇俱仐銈囥亞銆
-
----> Adding 123 to xxx gives you xxx.
----> Adding 123 to 456 gives you 579.
-
-NOTE: 缃彌銉€兗銉夈伅鎸垮叆銉€兗銉夈伀浼笺仸銇勩伨銇欍亴銆佸叏銇︺伄銈裤偆銉椼仌銈屻仧鏂囧瓧銇棦瀛樸伄鏂囧瓧
- 銈掑墛闄ゃ仐銇俱仚銆
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 6.4: 銉嗐偔銈广儓銇偝銉斻兗銇ㄣ儦銉笺偣銉
-
-
- ** 銉嗐偔銈广儓銇偝銉斻兗銇伅銈儦銉兗銈 y 銈掋併儦銉笺偣銉堛伀銇 p 銈掍娇銇勩伨銇 **
-
- 1. ---> 銇ㄧず銇曘倢銇熻銇哥Щ鍕曘仐銆併偒銉笺偨銉倰 "a)" 銇緦銇疆銇勩仸銇娿亶銇俱仚銆
-
- 2. v 銇с儞銈搞儱銈€儷銉€兗銉夈倰闁嬪銇椼"first"銇墜鍓嶃伨銇с偒銉笺偨銉倰绉诲嫊銇椼伨銇欍
-
- 3. y 銈掋偪銈ゃ儣銇椼仸寮疯琛ㄧず銇曘倢銇熴儐銈偣銉堛倰 yank (銈炽償銉)銇椼伨銇欍
-
- 4. 娆°伄琛屻伄琛屾湯銇俱仹銈兗銈姐儷銈掔Щ鍕曘仐銇俱仚: j$
-
- 5. p 銈掓娂銇椼仸璨笺倞浠樸亼(put)銇︺亱銈夈佹銈掋偪銈ゃ儣銇椼伨銇: a second <ESC>
-
- 6. 銉撱偢銉ャ偄銉儮銉笺儔銇 " item." 銈掗伕鎶炪仐銆亂 銇с儰銉炽偗銆佹銇銇鏈伨銇 j$ 銇
- 绉诲嫊銇椼 p 銇с儐銈偣銉堛倰銇濄亾銇 put 銇椼伨銇欍
-
----> a) this is the first item.
- b)
-
- Note: 鍗樿獮銈1銇 yank 銇欍倠銇伀 y 銈掋偑銉氥儸銉笺偪銇ㄣ仐銇 yw 銇ㄣ仚銈嬨亾銇ㄣ倐鍑烘潵銇俱仚銆
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 6.5: 銈儣銈枫儳銉炽伄瑷畾
-
-
- ** 妞滅储銈勭疆鎻涖伄闅涖伀澶ф枃瀛/灏忔枃瀛椼倰鐒¤銇欍倠銇伅銆併偑銉椼偡銉с兂銈掕ō瀹氥仐銇俱仚 **
-
- 1. 娆°伄妲樸伀鍏ュ姏銇椼仸 'ignore' 銈掓绱€仐銇俱仐銈囥亞: /ignore <ENTER>
- n 銈掓娂銇椼仸浣曞害銇嬫绱€倰绻般倞杩斻仐銇俱仚銆
-
- 2. 娆°伄妲樸伀鍏ュ姏銇椼仸 'ic' (Ignore Case 銇暐) 銈儣銈枫儳銉炽倰瑷畾銇椼伨銇: :set ic
-
- 3. 銇с伅 n 銇倛銇c仸銈傘亞1搴 'ignore' 銈掓绱€仐銇俱仚銆
- n 銈掓娂銇椼仸銇曘倝銇暟鍥炴绱€倰绻般倞杩斻仐銇俱仐銈囥亞銆
-
- 4. 'hlsearch' 銇 'incsearch' 銈儣銈枫儳銉炽倰瑷畾銇椼伨銇椼倗銇: :set hls is
-
- 5. 妞滅储銈炽優銉炽儔銈掑啀鍏ュ姏銇椼仸銆佷綍銇岃捣銇撱倠銇嬭銇︺伩銇俱仐銈囥亞: /ignore <ENTER>
-
- 6. 澶ф枃瀛楀皬鏂囧瓧銇尯鍒ャ倰鐒″姽銇仚銈嬨伀銇銇銇叆鍔涖仐銇俱仚: :set noic
-
-Note: 銉炪儍銉併伄寮疯琛ㄧず銈掋倓銈併倠銇伅娆°伄妲樸伀鍏ュ姏銇椼伨銇: :nohlsearch
-Note: 1銇ゃ伄妞滅储銈炽優銉炽儔銇犮亼澶ф枃瀛楀皬鏂囧瓧銇尯鍒ャ倰銈勩倎銇熴亜銇倝銇般併儠銉兗銈恒伀 \c
- 銈掍娇鐢ㄣ仐銇俱仚: /ignore\c <ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 6 瑕佺磩
-
- 1. o 銈掋偪銈ゃ儣銇欍倠銇ㄣ偒銉笺偨銉伄涓嬨伄琛屻倰闁嬨亼銇︺併仢銇撱仹鎸垮叆銉€兗銉夈伀銇倠銆
- O (澶ф枃瀛) 銈掋偪銈ゃ儣銇欍倠銇ㄣ偒銉笺偨銉伄涓娿伄琛屻仹鎸垮叆銉€兗銉夈伀銇倠銆
-
- 2. 銈兗銈姐儷涓娿伄鏂囧瓧銇銇嬨倝銉嗐偔銈广儓銈掕拷鍔犮仚銈嬨伀銇 a 銇ㄣ偪銈ゃ儣銇欍倠銆
- 琛屾湯銇嚜鍕曘仹銉嗐偔銈广儓銈掓尶鍏ャ仚銈嬨伀銇ぇ鏂囧瓧 A 銈掋偪銈ゃ儣銇欍倠銆
-
- 3. e 銈炽優銉炽儔銇崢瑾炪伄绲傜閮ㄣ偒銉笺偨銉倰绉诲嫊銇欍倠銆
-
- 4. y 銈儦銉兗銈裤伅銉嗐偔銈广儓銈 yank (銈炽償銉)銇椼乸 銇仢銈屻倰 put (銉氥兗銈广儓)銇欍倠銆
-
- 5. 澶ф枃瀛椼伄 R 銈掋偪銈ゃ儣銇欍倠銇ㄧ疆鎻涖儮銉笺儔銇叆銈娿<ESC>銈掓娂銇欍仺鎶溿亼銈嬨
-
- 6. ":set xxx" 銇ㄣ偪銈ゃ儣銇欍倠銇ㄣ偑銉椼偡銉с兂 "xxx" 銇岃ō瀹氥仌銈屻倠銆
- 'ic' 'ignorecase' 妞滅储鏅傘伀澶ф枃瀛楀皬鏂囧瓧銇尯鍒ャ仐銇亜
- 'is' 'incsearch' 妞滅储銉曘儸銉笺偤銇儴鍒嗐優銉冦儊銇椼仸銇勩倠閮ㄥ垎銈掕〃绀恒仚銈
- 'hls' 'hlsearch' 銉炪儍銉併仚銈嬨仚銇广倰寮疯琛ㄧず銇欍倠
- 闀枫亜鏂广佺煭銇勬柟銆併仼銇°倝銇偑銉椼偡銉с兂鍚嶃仹銈備娇鐢ㄣ仹銇嶃伨銇欍
-
- 7. "no" 銈掍粯涓庛仐銆併偑銉椼偡銉с兂銈掔劇鍔广伀銇椼伨銇: :set noic
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 7.1: 銈兂銉┿偆銉炽儤銉儣銈炽優銉炽儔
-
-
- ** 銈兂銉┿偆銉炽儤銉儣銈掍娇鐢ㄣ仐銇俱仐銈囥亞 **
-
- Vim 銇伅搴冪瘎銇倧銇熴倠銈兂銉┿偆銉炽儤銉儣銈枫偣銉嗐儬銇屻亗銈娿伨銇欍
- 銉樸儷銉椼倰闁嬪銇欍倠銇伅銆併亾銈屻倝3銇ゃ伄銇┿倢銇1銇ゃ倰瑭︺仐銇︺伩銇俱仐銈囥亞:
- - 銉樸儷銉椼偔銉 <HELP> 銈掓娂銇(銈傘仐銇傘倠銇倝銇)銆
- - <F1> 銈兗銈掓娂銇(銈傘仐銇傘倠銇倝銇)銆
- - :help <ENTER> 銇ㄣ偪銈ゃ儣銇欍倠銆
-
- 銉樸儷銉椼偊銈c兂銉夈偊銇儐銈偣銉堛倰瑾個銇ㄣ併儤銉儣銇嫊浣溿亴鐞嗚В銇с亶銇俱仚銆
- CTRL-W CTRL-W 銇ㄣ偪銈ゃ儣銇欍倠銇 銉樸儷銉椼偊銈c兂銉夈偊銇搞偢銉c兂銉椼仐銇俱仚銆
- :q <ENTER> 銇ㄣ偪銈ゃ儣銇欍倠銇 銉樸儷銉椼偊銈c兂銉夈偊銇岄枆銇樸倝銈屻伨銇欍
-
- ":help" 銈炽優銉炽儔銇紩鏁般倰涓庛亪銈嬨亾銇ㄣ伀銈堛倞銆併亗銈夈倖銈嬮鍚嶃伄銉樸儷銉椼倰瑕嬨仱銇戙倠銇撱仺
- 銇屻仹銇嶃伨銇欍傘亾銈屻倝銈掕│銇椼仸銇裤伨銇椼倗銇(<ENTER> 銈掋偪銈ゃ儣銇楀繕銈屻仾銇勩倛銇嗐伀):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 7.2: 璧峰嫊銈广偗銉儣銉堛伄浣滄垚
-
- ** Vim 銇壒寰淬倰鐧烘彯銇欍倠 **
-
- Vim 銇伅 Vi 銈堛倞銈傚銇忋伄鐗瑰敬銈掕笍銇俱亪銇︺亜銇俱亴銆併仢銇伝銇ㄣ倱銇┿伅鍒濇湡鐘舵厠銇仸
- 浣跨敤涓嶅彲銇ㄣ仾銇c仸銇勩伨銇欍傘倛銈婂銇忋伄鐗瑰敬銈掍娇銇勩伅銇樸倎銈嬨伀銇 "vimrc" 銉曘偂銈ゃ儷
- 銈掍綔鎴愩仐銇俱仚銆
-
- 1. "vimrc" 銉曘偂銈ゃ儷銇法闆嗐倰闁嬪銇欍倠銆傘亾銈屻伅銈枫偣銉嗐儬銇緷瀛樸仐銇俱仚銆
- :edit ~/.vimrc UNIX 鍚戙亼
- :edit $VIM/_vimrc MS-Windows 鍚戙亼
-
- 2. 銇撱亾銇с偟銉炽儣銉伄 "vimrc" 銈掕銇胯炯銇裤伨銇欍
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 浠ヤ笅銇倛銇嗐伀銉曘偂銈ゃ儷銇告浉銇嶈炯銇裤伨銇欍
- :write
-
- 娆″洖 Vim 銈掕捣鍕曘仚銈嬨仺銆佽壊銇ャ亼妲嬫枃銇屼娇銇堛倠銈堛亞銇仾銈嬨仹銇椼倗銇嗐
- 銇撱伄 "vimrc" 銉曘偂銈ゃ儷銇搞併亰濂姐伩銇ō瀹氥倰杩藉姞銇欍倠銇撱仺銇屻仹銇嶃伨銇欍
- 銈堛倞澶氥亸銇儏鍫便倰寰椼倠銇伅 :help vimrc-intro 銇ㄣ偪銈ゃ儣銇椼伨銇欍
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 7.3: 瑁滃畬
-
-
- ** CTRL-D 銇 <TAB> 銇с偝銉炪兂銉夈儵銈ゃ兂銈掕瀹屻仚銈 **
-
- 1. 銈炽兂銉戙儊銉€兗銉夈仹銇亜銇撱仺銈掔⒑瑾嶃仐銇俱仚: :set nocp
-
- 2. 鐝惧湪銇儑銈c儸銈儓銉伀鍦ㄣ倠銉曘偂銈ゃ儷銈 :!ls 銇 :!dir 銇х⒑瑾嶃仐銇俱仚銆
-
- 3. 銈炽優銉炽儔銇枊濮嬨倰銈裤偆銉椼仐銇俱仚: :e
-
- 4. CTRL-D 銈掓娂銇欍仺 Vim 銇 "e" 銇嬨倝濮嬨伨銈嬨偝銉炪兂銉夈伄涓瑕с倰琛ㄧず銇椼伨銇欍
-
- 5. <TAB> 銈掓娂銇欍仺 Vim 銇 ":edit" 銇ㄣ亜銇嗐偝銉炪兂銉夊悕銈掕瀹屻仐銇俱仚銆
-
- 6. 銇曘倝銇┖鐧姐仺銆佹棦瀛樸伄銉曘偂銈ゃ儷鍚嶃伄濮嬨伨銈娿倰鍔犮亪銇俱仚: :edit FIL
-
- 7. <TAB> 銈掓娂銇欍仺 Vim 銇悕鍓嶃倰瑁滃畬銇椼伨銇欍(銈傘仐涓銇ゃ仐銇嬬劇銇嬨仯銇熷牬鍚)
-
-NOTE: 瑁滃畬銇銇忋伄銈炽優銉炽儔銇у嫊浣溿仐銇俱仚銆傘仢銇椼仸 CTRL-D 銇 <TAB> 鎶笺仐銇︺伩銇︺亸銇
- 銇曘亜銆傜壒銇 :help 銇殯銇焦绔嬨仭銇俱仚銆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 銉儍銈广兂 7 瑕佺磩
-
-
- 1. 銉樸儷銉椼偊銈c兂銉夈偊銈掗枊銇忋伀銇 :help 銇ㄣ仚銈嬨亱 <F1> 銈傘仐銇忋伅 <Help> 銈掓娂銇欍
-
- 2. 銈炽優銉炽儔(cmd)銇儤銉儣銈掓绱€仚銈嬨伀銇 :help cmd 銇ㄣ偪銈ゃ儣銇欍倠銆
-
- 3. 鍒ャ伄銈︺偅銉炽儔銈︺伕銈搞儯銉炽儣銇欍倠銇伅 CTRL-W CTRL-W 銇ㄣ偪銈ゃ儣銇欍倠銆
-
- 4. 銉樸儷銉椼偊銈c兂銉夈偊銈掗枆銇樸倠銇伅 :q 銇ㄣ偪銈ゃ儣銇欍倠銆
-
- 5. 銇婂ソ銇裤伄瑷畾銈掍繚銇ゃ伀銇 vimrc 璧峰嫊銈广偗銉儣銉堛倰浣滄垚銇欍倠銆
-
- 6. : command 銇у彲鑳姐仾瑁滃畬銈掕銈嬨伀銇 CTRL-D 銈掋偪銈ゃ儣銇欍倠銆
- 瑁滃畬銈掍娇鐢ㄣ仚銈嬨伀銇 <TAB> 銈掓娂銇欍
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 銇撱倢銇仸 Vim 銇儊銉ャ兗銉堛儶銈€儷銈掔祩銈忋倞銇俱仚銆傘偍銉囥偅銈裤倰绨″崢銇併仐銇嬨倐鍏呭垎銇
- 浣裤亞銇撱仺銇屻仹銇嶃倠銈堛亞銇仺銆乂im 銇寔銇ゆ蹇点伄瑕佺偣銇伩銈掍紳銇堛倛銇嗐仺銇椼伨銇椼仧銆
- Vim 銇伅銇曘倝銇銇忋伄銈炽優銉炽儔銇屻亗銈娿併亾銇撱仹鍏ㄣ仸銈掕鏄庛仚銈嬨亾銇ㄣ伅銇с亶銇俱仜銈撱
- 浠ラ檷銇儲銉笺偠銉炪儖銉ャ偄銉倰鍙傜収銇忋仩銇曘亜: "help :user-manual"
-
- 銇撱倢浠ュ緦銇缈掋伄銇熴倎銇佹銇湰銈掓帹钖︺仐銇俱仚銆
- Vim - Vi Improved - by Steve Oualline
- 鍑虹増绀: New Riders
- 鏈鍒濄伄鏈伅瀹屽叏銇 Vim 銇仧銈併伀鏇搞亱銈屻伨銇椼仧銆傘仺銈娿倧銇戝垵蹇冭呫伀銇亰濂ㄣ倎銇с仚銆
- 澶氥亸銇緥椤屻倓鍥崇増銇屾幉杓夈仌銈屻仸銇勩伨銇欍
- 娆°伄URL銈掑弬鐓с仐銇︿笅銇曘亜 http://iccf-holland.org/click5.html
-
- 娆°伅 Vim 銈堛倞銈 Vi 銇仱銇勩仸鏇搞亱銈屻仧鍙ゃ亜鏈仹銇欍亴鎺ㄨ枽銇椼伨銇:
- Learning the Vi Editor - by Linda Lamb
- 鍑虹増绀: O'Reilly & Associates Inc.
- Vi 銇с倓銈娿仧銇勩仺鎬濄亞銇撱仺銇汇伡鍏ㄣ仸銈掔煡銈嬨亾銇ㄣ亴銇с亶銈嬭壇鏇搞仹銇欍
- 绗6鐗堛仹銇乂im 銇仱銇勩仸銇儏鍫便倐鍚伨銈屻仸銇勩伨銇欍
-
- 銇撱伄銉併儱銉笺儓銉偄銉伅 Colorado State University 銇 Charles Smith 銇偄銈ゃ儑銈
- 銈掑熀銇丆olorado School of Mines 銇 Michael C. Pierce 銇 Robert K. Ware 銇
- 涓″悕銇倛銇c仸鏇搞亱銈屻伨銇椼仧銆 E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
-
- 鏃ユ湰瑾炶ǔ 鏉炬湰 娉板紭 <mattn_jp@hotmail.com>
- 鐩d慨 鏉戝病 澶儙 <koron@tka.att.ne.jp>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- vi:set ts=8 sts=4 sw=4 tw=78:
diff --git a/runtime/tutor/tutor.ko.euc b/runtime/tutor/tutor.ko.euc
deleted file mode 100644
index ddfc5ac81..000000000
--- a/runtime/tutor/tutor.ko.euc
+++ /dev/null
@@ -1,812 +0,0 @@
-===============================================================================
-= 忽 辨棱捞 (VIM Tutor) 俊 坷脚 巴阑 券康钦聪促 - Version 1.5 =
-===============================================================================
-
- 忽(Vim)篮 捞 辨棱捞俊辑 促 汲疙且 荐 绝阑 父怒 腹篮 疙飞阑 啊柳
- 概快 碍仿茄 祈笼扁涝聪促. 捞 辨棱捞绰 忽阑 奖霸 傈玫饶 祈笼扁肺 荤侩且
- 荐 乐档废 面盒茄 疙飞俊 措秦 汲疙窍绊 乐嚼聪促.
-
- 捞 辨棱捞甫 都绰 单俊绰 角嚼窍绰 单俊 倔付唱 矫埃阑 静绰 啊俊 蝶扼辑
- 25-30 盒 沥档啊 吧赋聪促.
-
- 捞 楷嚼俊 器窃等 疙飞篮 郴侩阑 绊抹聪促. 捞 颇老狼 汗荤夯阑 父甸绢辑
- 楷嚼窍技夸. (vimtutor 甫 烹秦 矫累沁促搁, 捞固 汗荤夯阑 荤侩窍绰
- 吝涝聪促.)
-
- 吝夸茄 巴篮, 捞 辨棱捞啊 流立 结焊搁辑 硅快档废 绊妨登绢 乐促绰 巴涝聪促.
- 疙飞阑 力措肺 劳洒妨搁, 流立 角青秦焊绰 巴捞 鞘夸钦聪促. 郴侩阑 佬绰
- 巴父栏肺绰, 疙飞阑 镭绢滚府霸 瞪 巴涝聪促.
-
- 磊 捞力, Caps Lock(Shift-Lock) 虐啊 喘妨乐瘤 臼篮瘤 犬牢秦焊矫绊, j 虐甫
- 面盒洒 喘矾辑 Lesson 1.1捞 拳搁俊 啊垫 瞒档废 框流咯壕矫促.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.1: 目辑 框流捞扁
-
- ** 目辑甫 框流捞妨搁, 钎矫等 措肺 h,j,k,l 虐甫 穿福绞矫坷. **
- ^
- k 腮飘: h 虐绰 哭率俊 乐栏哥, 哭率栏肺 框流涝聪促.
- < h l > l 虐绰 坷弗率俊 乐栏哥, 坷弗率栏肺
- j 框流涝聪促.
- v j 虐绰 酒贰规氢 拳混钎贸烦 积板嚼聪促.
-
- 1. 劳槛秦龙 锭鳖瘤 目辑甫 胶农赴 惑俊辑 框流咯 焊绞矫坷.
-
- 2. 酒贰 规氢虐 (j)甫 馆汗涝仿捞 瞪 锭鳖瘤 穿福绊 拌绞矫坷.
----> 捞力 促澜 lesson栏肺 啊绰 规过阑 舅霸 登菌嚼聪促.
-
- 3. 酒贰 规氢虐甫 捞侩窍咯, Lesson 1.2 肺 啊绞矫坷.
-
-曼绊: 盔窍瘤 臼绰 公攫啊啊 涝仿捞 登菌促搁, <ESC>甫 喘矾辑, 疙飞 葛靛肺
- 倒酒啊绞矫坷. 弊 饶俊 盔窍绰 疙飞阑 促矫 涝仿窍绞矫坷.
-
-曼绊: 目辑虐 肚茄 累悼且 巴涝聪促. 窍瘤父 hjkl俊 劳槛秦瘤搁, 目辑虐焊促
- 任纠 狐福霸 捞悼且 荐 乐阑 巴涝聪促.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.2: 忽阑 矫累窍绊 场郴扁
-
-
- !! 林狼: 酒贰 乐绰 窜拌甫 角青窍扁 傈俊, 捞 lesson 傈眉甫 佬栏绞矫坷!!
-
- 1. <ESC> 虐甫 喘矾辑 犬角窍霸 疙飞 葛靛肺 狐廉 唱可聪促.
-
- 2. 促澜苞 鞍捞 涝仿钦聪促: :q! <ENTER>
-
----> 捞犯霸 窍搁, 官诧 郴侩阑 *历厘窍瘤 臼绊* 祈笼扁甫 狐廉唱癌聪促.
- 历厘茄 饶 狐廉唱啊妨搁 促澜苞 鞍捞 涝仿钦聪促:
- :wq <ENTER>
-
- 3. 僵 橇芬橇飘啊 焊牢促搁, 促矫 辨棱捞肺 倒酒坷扁 困秦 促澜苞 鞍捞
- 涝仿钦聪促.
- vimtutor <ENTER>
- 肚绰 促澜苞 鞍阑 荐档 乐嚼聪促.
- vim tutor.ko <ENTER>
-
----> 'vim' 篮 忽 祈笼扁肺 甸绢啊绰 巴阑 舵窍哥, 'tutor.ko'绰 祈笼窍妨绰
- 颇老阑 舵钦聪促.
-
- 4. 困俊辑 捞具扁茄 窜拌甫 扁撅窍看栏哥, 犬脚捞 辑搁, 1俊辑 3鳖瘤甫
- 荐青窍咯 祈笼扁甫 唱艾促啊 促矫 甸绢客焊绞矫坷. 弊 饶 目辑甫 酒贰肺
- 框流咯 Lesson 1.3 栏肺 啊绞矫坷.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.3: 咆胶飘 祈笼 - 瘤快扁
-
-
-** 疙飞 葛靛俊辑 x 甫 穿福搁 目辑啊 困摹茄 镑狼 臂磊甫 瘤匡 荐 乐嚼聪促. **
-
- 1. ----> 肺 钎矫等 镑栏肺 目辑甫 颗败焊绞矫坷.
-
- 2. 坷鸥甫 荐沥窍扁 困秦, 目辑甫 瘤匡 臂磊 困肺 框流咯 焊绞矫坷.
-
- 3. x 虐甫 喘矾辑 瘤况具且 臂磊甫 瘤快绞矫坷.
-
- 4. 2俊辑 4鳖瘤甫 馆汗窍咯 巩厘捞 棵官福霸 登档废 窍咯 焊绞矫坷.
-
----> The ccow jumpedd ovverr thhe mooon.
-
- 5. 巩厘捞 沥犬秦脸促搁, Lesson 1.4肺 啊绞矫坷.
-
-林狼: 捞 辨棱捞甫 焊搁辑 寇快妨绊 窍瘤富绊, 流立 荤侩秦焊搁辑 劳洒辨
- 官而聪促.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.4: 咆胶飘 祈笼 - 火涝 (INSERTION)
-
-
- ** 疙飞 葛靛俊辑 i 甫 穿福搁 咆胶飘甫 涝仿且 荐 乐嚼聪促. **
-
- 1. 目辑甫 霉锅掳 ---> 肺 钎矫等 临肺 框流涝聪促.
-
- 2. 霉锅掳 临阑 滴锅掳 临苞 度鞍捞 父甸巴涝聪促. 咆胶飘啊 甸绢啊具且
- 镑 促澜何磐 霉锅掳 臂磊 困俊 目辑甫 颗败 初嚼聪促.
-
- 3. i 虐甫 穿弗 饶, 鞘夸茄 郴侩阑 涝仿钦聪促.
-
- 4. 荐沥茄 饶俊绰 <ESC> 甫 喘矾辑 疙飞 葛靛肺 倒酒癌聪促.
- 巩厘阑 棵官福霸 父甸扁 困秦 2俊辑 4狼 苞沥阑 馆汗钦聪促.
-
----> There is text misng this .
----> There is some text missing from this line.
-
- 5. 咆胶飘甫 火涝窍绰 单俊 劳槛秦脸促搁, 夸距阑 毫林绞矫坷.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 1 夸距
-
-
- 1. 目辑甫 框流老 锭俊绰 拳混钎 虐唱 hjkl 虐甫 捞侩钦聪促.
- h (哭率) j (酒贰) k (困) l (坷弗率)
-
- 2. 僵 橇芬橇飘俊辑 忽阑 矫累窍妨搁 vim FILENAME <ENTER>
-
- 3. 荐沥茄 郴侩阑 公矫茄 盲肺 忽俊辑 狐廉唱啊妨搁 <ESC> :q! <ENTER>
- 历厘茄 饶 忽俊辑 狐廉唱啊妨搁 <ESC> :wq <ENTER>
-
- 4. 疙飞 葛靛俊辑 目辑啊 困摹茄 镑狼 臂磊甫 瘤快妨搁 x 甫 涝仿钦聪促.
-
- 5. 疙飞 葛靛俊辑 目辑啊 困摹茄 镑俊 咆胶飘甫 火涝窍妨搁
- i 甫 穿弗 饶 咆胶飘甫 涝仿窍绊 <ESC> 甫 穿辅聪促.
-
-曼绊: <ESC>绰 疙飞 葛靛肺 倒酒啊绰 单 静哥, 盔摹 臼绰 疙飞捞唱 肯傈洒 涝仿登瘤
- 臼篮 疙飞阑 秒家窍绰 单俊档 竟聪促.
-
-弊烦 Lesson 2甫 矫累钦矫促.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.1: 昏力(DELETION) 疙飞
-
-
- ** 茄 窜绢甫 场鳖瘤 瘤快妨搁 dw 扼绊 摹搁 邓聪促. **
-
- 1. <ESC> 虐甫 喘矾辑 犬角窍霸 疙飞 葛靛肺 狐廉 唱可聪促.
-
- 2. 酒贰俊 ---> 肺 钎矫等 临 鳖瘤 目辑甫 颗遍聪促.
-
- 3. 瘤况具且 窜绢狼 贸澜栏肺 目辑甫 颗遍聪促.
-
- 4. dw 扼绊 媚辑 弊 窜绢甫 瘤矿聪促.
-
- 林狼: 困俊辑 富茄措肺 窍搁 拳搁狼 付瘤阜 临俊 dw 扼绰 臂磊啊 钎矫邓聪促.
- 肋给 闷促搁, <ESC> 甫 喘矾辑 促矫 矫累窍绞矫坷.
-
----> There are a some words fun that don't belong paper in this sentence.
-
- 5. 3, 4锅 苞沥阑 促矫 窍咯 巩厘阑 沥犬窍霸 父电 第 Lesson 2.2肺 啊绞矫坷.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.2: 促弗 昏力 疙飞
-
- ** d$ 扼绊 摹搁 弊 临 场鳖瘤 瘤况笼聪促. **
-
- 1. <ESC> 虐甫 喘矾辑 犬角窍霸 疙飞 葛靛肺 狐廉 唱可聪促.
-
- 2. 酒贰俊 ---> 肺 钎矫等 临 鳖瘤 目辑甫 颗遍聪促.
-
- 3. 棵官弗 临狼 场栏肺 目辑甫 颗遍聪促. (霉锅掳肺 唱坷绰 . 促澜涝聪促.)
-
- 4. d$ 扼绊 媚辑 临 场鳖瘤 瘤矿聪促.
-
----> Somebody typed the end of this line twice. end of this line twice.
-
-
- 5. 绢恫 老捞 老绢车绰瘤 捞秦窍扁 困秦 Lesson 2.3 栏肺 啊绞矫坷.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.3: 疙飞苞 利侩 措惑俊 措秦
-
-
- 昏力 疙飞 d狼 屈侥篮 促澜苞 鞍嚼聪促.
-
- [冉荐] d 措惑 肚绰 d [冉荐] 措惑
- 咯扁辑
- 冉荐 - 疙飞阑 割 锅 荐青且 瘤 (可记, 扁夯蔼=1).
- d - 瘤快绰 疙飞
- 措惑 - 酒贰俊 力矫等 措惑俊 措秦 疙飞阑 荐青
-
- 利侩 啊瓷茄 措惑狼 辆幅:
- w - 目辑俊辑 弊 窜绢狼 场鳖瘤 (傍归 器窃.)
- e - 目辑俊辑 弊 窜绢狼 场鳖瘤 (傍归阑 器窃窍瘤 臼澜.)
- $ - 目辑俊辑 弊 临狼 场鳖瘤
-
-曼绊: 龋扁缴捞 乐促搁, 疙飞 葛靛俊辑 疙飞 绝捞 措惑阑 涝仿秦焊绞矫坷.
- 困俊辑 捞具扁茄 措惑狼 格废俊 蝶扼 目辑啊 框流捞霸 邓聪促.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.4: '疙飞-措惑' 俊 措茄 抗寇
-
-
- ** dd 扼绊 摹搁 临 傈眉甫 瘤矿聪促. **
-
- 临 傈眉甫 瘤快绰 老捞 梨扁 锭巩俊, Vi甫 叼磊牢 茄 荤恩甸篮, 埃窜洒 d甫
- 滴锅 楷崔酒 摹搁 茄 临阑 瘤匡 荐 乐档废 窍看嚼聪促.
-
- 1. 目辑甫 酒贰 唱柯 窜遏狼 滴锅掳 临肺 啊廉啊绞矫坷.
- 2. dd 甫 涝仿窍咯 弊 临阑 瘤快绞矫坷.
- 3. 弊繁 促澜 匙锅掳 临肺 啊绞矫坷.
- 4. 2dd 扼绊 涝仿窍咯 滴临阑 瘤矿聪促. ( 冉荐-疙飞-措惑阑 扁撅窍技夸. )
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.5: 秒家(UNDO) 疙飞
-
-
- ** u 甫 穿福搁 付瘤阜 疙飞捞 秒家登哥, U 绰 临 傈眉甫 荐沥钦聪促. **
-
- 1. 目辑甫 ---> 肺 钎矫等 临肺 捞悼茄 饶 霉锅掳 肋给等 何盒 困肺 颗遍聪促.
- 2. x 甫 涝仿窍咯 霉锅掳 肋给等 臂磊甫 瘤矿聪促.
- 3. 弊烦 捞力 u 甫 涝仿窍咯 付瘤阜栏肺 荐青等 疙飞阑 秒家钦聪促.
- 4. 捞锅俊绰 x 疙飞阑 捞侩窍咯 弊 临狼 葛电 俊矾甫 荐沥秦壕矫促.
- 5. 措巩磊 U 甫 喘矾辑 弊 临阑 盔贰 惑怕肺 倒妨初酒 焊绞矫坷.
- 6. 捞锅俊绰 u 甫 割 锅 喘矾辑 U 客 捞傈 疙飞阑 秒家秦壕矫促.
- 7. CTRL-R (CTRL 虐甫 穿弗 惑怕俊辑 R阑 穿福绰 巴) 阑 割 锅 喘矾辑
- 疙飞阑 促矫 角青秦壕矫促. (秒家茄 巴阑 秒家窃.)
-
----> Fiix the errors oon thhis line and reeplace them witth undo.
-
- 8. 捞 疙飞篮 概快 蜡侩钦聪促. 弊烦 Lesson 2 夸距栏肺 逞绢啊档废 钦矫促.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 2 夸距
-
-
- 1. 目辑啊 困摹茄 镑何磐 窜绢狼 场鳖瘤 瘤快妨搁: dw
-
- 2. 目辑啊 困摹茄 镑何磐 临 场鳖瘤 瘤快妨搁: d$
-
- 3. 临 傈眉甫 瘤快妨搁: dd
-
- 4. 疙飞 葛靛俊辑 郴府绰 疙飞狼 屈侥篮 促澜苞 鞍嚼聪促:
-
- [冉荐] 疙飞 措惑 肚绰 疙飞 [冉荐] 措惑
- 咯扁辑:
- 冉荐 - 弊 疙飞阑 割 锅 馆汗且 巴牢啊
- 疙飞 - 绢恫 疙飞阑 郴副 巴牢啊 ( 抗甫 甸绢, 昏力牢 版快绰 d )
- 措惑 - 疙飞捞 悼累且 措惑, 抗甫 甸绢 w (窜绢), $ (临狼 场) 殿.
-
- 5. 捞傈 青悼阑 秒家窍妨搁: u (家巩磊 u)
- 茄 临俊辑 荐沥茄 巴阑 葛滴 秒家窍妨搁: U (措巩磊 U)
- 秒家茄 巴阑 促矫 角青窍妨搁: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.1: 嘿捞扁(PUT) 疙飞
-
-
- ** p 甫 涝仿窍咯 付瘤阜栏肺 瘤款 郴侩阑 目辑 第俊 嘿涝聪促. **
-
- 1. 酒贰俊 乐绰 巩窜狼 霉 临肺 目辑甫 框流捞绞矫坷.
-
- 2. dd 甫 涝仿窍咯 弊 临阑 瘤况辑 忽狼 滚欺俊 历厘钦聪促.
-
- 3. 酒鳖 瘤款 临捞 啊具且 困摹狼 *拉临肺* 目辑甫 颗遍聪促.
-
- 4. 疙飞 葛靛俊辑, p 甫 涝仿窍咯 弊 临阑 力措肺 等 磊府肺 颗遍聪促.
-
- 5. 2俊辑 4甫 馆汗窍咯 葛电 临狼 鉴辑甫 官肺 棱栏绞矫坷.
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.2: 摹券(REPLACE) 疙飞
-
-
- ** 目辑 酒贰狼 臂磊 窍唱甫 官操妨搁, r 阑 穿弗 饶 官曹 臂磊甫 涝仿钦聪促. **
-
- 1. 目辑甫 ---> 肺 钎矫等 霉 临肺 颗遍聪促.
-
- 2. 目辑甫 肋给等 霉 何盒栏肺 颗遍聪促.
-
- 3. r 阑 穿弗 饶, 肋给等 何盒阑 绊媚 镜 臂磊甫 涝仿钦聪促.
-
- 4. 2俊辑 3狼 苞沥阑 馆汗窍咯, 霉 临狼 坷幅甫 荐沥窍绞矫坷.
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. Lesson 3.2 肺 捞悼钦矫促.
-
-林狼: 寇快瘤 富绊, 流立 秦焊搁辑 劳囚具 茄促绰 巴阑 镭瘤 付绞矫坷.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.3: 函券(CHANGE) 疙飞
-
-
- ** 茄 窜绢狼 老何唱 傈眉甫 官操妨搁, cw 甫 摹绞矫坷. **
-
- 1. 目辑甫 ---> 肺 钎矫等 霉临肺 颗遍聪促.
-
- 2. 目辑甫 lubw 俊辑 u 困俊 棵妨初嚼聪促.
-
- 3. cw 扼绊 疙飞茄 饶 窜绢甫 沥犬窍霸 荐沥钦聪促. (捞 版快, 'ine' 甫 抹聪促.)
-
- 4. <ESC> 甫 穿弗 饶 促澜 俊矾肺 癌聪促 (荐沥登绢具且 霉 臂磊肺 癌聪促.)
-
- 5. 3俊辑 4狼 苞沥阑 馆汗窍咯 霉锅掳 巩厘阑 滴锅掳 巩厘苞 鞍档废 父奠聪促.
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-cw 绰 窜绢甫 摹券窍绰 巴 挥父 酒聪扼, 郴侩阑 火涝且 荐 乐档废 茄促绰 巴俊
-林狼钦矫促.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.4: c 甫 捞侩茄 促弗 函券 疙飞
-
-
- ** 函券 疙飞篮 昏力且 锭 捞侩茄 措惑俊 措秦 利侩且 荐 乐嚼聪促. **
-
- 1. 函券 疙飞篮 昏力客 悼老茄 规侥栏肺 悼累钦聪促. 屈侥篮 促澜苞 鞍嚼聪促:
-
- [冉荐] c 措惑 肚绰 c [冉荐] 措惑
-
- 2. 利侩 啊瓷茄 措惑 开矫 鞍嚼聪促. w (窜绢), $ (临狼 场) 殿捞 乐嚼聪促.
-
- 3. ---> 肺 钎矫等 霉临肺 捞悼钦聪促.
-
- 4. 霉 俊矾 困肺 目辑甫 颗遍聪促.
-
- 5. c$ 甫 涝仿窍咯, 弊 临狼 唱赣瘤啊 滴锅掳 临贸烦 登档废 荐沥茄 饶 <ESC> 甫
- 穿福绞矫坷.
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 3 夸距
-
-
- 1. 捞固 瘤款 郴侩阑 登倒府妨搁, p 甫 穿福绞矫坷. 捞 疙飞篮 目辑 *促澜俊*
- 瘤况柳 郴侩阑 嘿涝聪促(PUT). (茄 临阑 瘤款 版快俊绰 目辑 促澜 临俊
- 瘤况柳 郴侩捞 嘿嚼聪促.)
-
- 2. 目辑 酒贰狼 臂磊甫 摹券窍妨搁(REPLACE), r 阑 穿弗 饶 盔贰 臂磊 措脚
- 官操绢 持阑 臂磊甫 涝仿钦聪促.
-
- 3. 函券 疙飞(CHANGE)篮 目辑俊辑 何磐 瘤沥茄 措惑狼 场鳖瘤 官曹 荐 乐绰
- 疙飞涝聪促. 抗甫 甸绢, 目辑 困摹俊辑 窜绢狼 场鳖瘤 官操妨搁, cw 甫
- 涝仿窍搁 登哥, c$ 绰 临 场鳖瘤 官操绰 单 静涝聪促.
-
- 4. 函券 疙飞狼 屈侥篮 促澜苞 鞍嚼聪促:
-
- [冉荐] c 措惑 肚绰 c [冉荐] 措惑
-
-拌加秦辑 促澜 Lesson 阑 柳青钦矫促.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.1: 困摹客 颇老狼 惑怕
-
-
- ** CTRL-g 甫 穿福搁 颇老 郴俊辑狼 泅犁 困摹客 颇老狼 惑怕甫 杭 荐 乐嚼聪促.
- SHIFT-G 甫 穿福搁 颇老 郴狼 临肺 捞悼钦聪促. **
-
- 林狼: 酒贰狼 窜拌甫 蝶扼窍扁 傈俊, 捞 Lesson 傈眉甫 刚历 佬栏绞矫坷.
-
- 1. CTRL 虐甫 穿弗 惑怕俊辑 g 甫 穿辅聪促. 颇老 捞抚苞 泅犁 困摹茄 临捞
- 钎矫等 惑怕临捞 拳搁 酒贰俊 钎矫瞪 巴涝聪促. 3锅掳 窜拌甫 困秦 弊
- 临 锅龋甫 扁撅窍绊 拌绞矫坷.
-
- 2. SHIFT-G 甫 穿福搁 颇老狼 付瘤阜栏肺 捞悼钦聪促.
-
- 3. 酒鳖 扁撅沁带 临 锅龋甫 涝仿茄 饶 SHIFT-G 甫 穿福绞矫坷. 捞犯霸 窍搁
- 贸澜俊 CTRL-g 甫 喘范带 厘家肺 登倒酒啊霸 瞪 巴涝聪促.
- (锅龋甫 涝仿且 锭, 捞巴篮 拳搁俊 钎矫登瘤 臼嚼聪促.)
-
- 4. 磊脚捞 积板促搁, 1俊辑 3鳖瘤甫 角青秦焊绞矫坷.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.2: 茫扁 疙飞
-
-
- ** / 甫 穿弗 饶 八祸且 巩备甫 涝仿窍绞矫坷. **
-
- 1. 疙飞 葛靛俊辑 / 甫 涝仿窍绞矫坷. : 疙飞俊辑客 付蛮啊瘤肺, 拳搁 酒贰俊
- / 客 目辑啊 钎矫瞪 巴涝聪促.
-
- 2. 'errroor' 扼绊 模 饶 <ENTER> 甫 摹绞矫坷. 捞 窜绢甫 茫栏妨绊 钦聪促.
-
- 3. 鞍篮 巩备甫 促矫 茫栏妨搁, 埃窜洒 n 阑 涝仿窍绞矫坷.
- 鞍篮 巩备甫 馆措 规氢栏肺 茫栏妨搁, Shift-N 阑 涝仿窍绞矫坷.
-
- 4. 巩备甫 开规氢栏肺 茫栏妨搁, / 措脚 ? 甫 捞侩窍搁 邓聪促.
-
----> "errroor" is not the way to spell error; errroor is an error.
-
-曼绊: 茫绰 吝俊 颇老狼 场俊 促促福霸 登搁, 颇老狼 贸澜何磐 促矫 茫霸 邓聪促.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.3: 褒龋狼 娄 茫扁
-
-
- ** % 甫 喘矾辑 ), ], } 狼 娄阑 茫嚼聪促. **
-
- 1. 目辑甫 ---> 肺 钎矫等 临狼 (, [, { 吝 窍唱俊 啊廉促 初嚼聪促.
-
- 2. % 甫 涝仿秦 壕矫促.
-
- 3. 目辑啊 娄捞 嘎绰 褒龋肺 捞悼且 巴涝聪促.
-
- 4. % 甫 涝仿窍咯, 捞傈 褒龋肺 登倒酒 可矫促.
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-曼绊: 娄捞 嘎瘤 臼绰 褒龋啊 乐绰 橇肺弊伐阑 叼滚彪且 锭俊 概快 蜡侩钦聪促!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.4: 俊矾甫 荐沥窍绰 规过
-
-
- ** :s/old/new/g 窍搁 'old' 甫 'new' 肺 摹券(SUBTITUTE)钦聪促. **
-
- 1. 目辑甫 ---> 肺 钎矫等 临俊 啊廉促 初嚼聪促.
-
- 2. :s/thee/the 甫 涝仿茄 饶 <ENTER> 甫 抹聪促. 捞 疙飞篮 弊 临俊辑
- 贸澜栏肺 惯斑等 巴父 官槽促绰 巴俊 林狼窍绞矫坷.
-
- 3. 捞锅俊绰 :s/thee/the/g 甫 涝仿钦聪促. 捞绰 弊 临 傈眉(globally)甫
- 摹券茄促绰 巴阑 狼固钦聪促.
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 滴 临 荤捞狼 葛电 巩磊凯俊 措秦 摹券窍妨搁 促澜苞 鞍捞 钦聪促,
- :#,#s/old/new/g #,# 绰 滴 临狼 临锅龋甫 舵钦聪促.
- :%s/old/new/g 颇老 傈眉俊辑 惯斑等 葛电 巴阑 摹券窍绰 版快涝聪促.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 4 夸距
-
-
- 1. CTRL-g 绰 颇老狼 惑怕客 颇老 郴俊辑狼 泅犁 困摹甫 钎矫钦聪促.
- SHIFT-G 绰 颇老狼 场栏肺 捞悼钦聪促. 临锅龋甫 涝仿茄 饶 SHIFT-G甫
- 涝仿窍搁, 弊 临肺 捞悼钦聪促.
-
- 2. / 甫 涝仿茄 饶 巩备甫 涝仿窍搁 弊 巩备甫 酒阀规氢栏肺 茫嚼聪促.
- ? 甫 涝仿茄 饶 巩备甫 涝仿窍搁 拉规氢栏肺 茫嚼聪促.
- 八祸 饶, n 阑 涝仿窍搁 鞍篮 规氢栏肺 促澜 巩备甫 茫栏哥,
- Shift-N 阑 涝仿窍搁 馆措 规氢栏肺 茫嚼聪促.
-
- 3. 目辑啊 (,),[,],{,} 困俊 乐阑 锭俊 % 甫 涝仿窍搁 惑览窍绰 娄阑
- 茫酒癌聪促.
-
- 4. 绢恫 临俊 贸澜 殿厘窍绰 old甫 new肺 官操妨搁 :s/old/new
- 茄 临俊 殿厘窍绰 葛电 old甫 new肺 官操妨搁 :s/old/new/g
- 滴 临 #,# 荤捞俊辑 摹券阑 窍妨搁 :#,#s/old/new/g
- 颇老 郴狼 葛电 巩备甫 摹券窍妨搁 :%s/old/new/g
- 官曹 锭付促 犬牢阑 芭摹妨搁 'c'甫 嘿咯辑 :%s/old/new/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.1: 寇何 疙飞 角青窍绰 规过
-
-
- ** :! 阑 涝仿茄 饶 角青窍妨绰 疙飞阑 涝仿窍绞矫坷. **
-
- 1. 模槛茄 疙飞牢 : 甫 涝仿窍搁 目辑啊 拳搁 酒贰肺 捞悼钦聪促. 疙飞阑
- 涝仿且 荐 乐霸 邓聪促.
-
- 2. 捞力 ! (蠢肠钎) 甫 涝仿窍绞矫坷. 捞犯霸 窍搁 寇何 僵 疙飞阑 角青且
- 荐 乐嚼聪促.
-
- 3. 矫氰伙酒 ! 促澜俊 ls 甫 涝仿茄 饶 <ENTER> 甫 媚焊绞矫坷. 僵 橇芬橇飘
- 俊辑贸烦 叼泛配府狼 格废捞 免仿瞪 巴涝聪促. ls 啊 悼累窍瘤 臼绰促搁
- :!dir 阑 矫档秦 焊绞矫坷.
-
-曼绊: 绢恫 寇何 疙飞档 捞 规过栏肺 角青且 荐 乐嚼聪促.
-
-曼绊: 葛电 : 疙飞篮 <ENTER> 甫 媚具 付公府 邓聪促.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.2: 焊促 磊技茄 颇老 历厘
-
-
- ** 荐沥等 郴侩阑 颇老肺 历厘窍妨搁, :w FILENAME 窍绞矫坷. **
-
- 1. :!dir 肚绰 :!ls 甫 涝仿窍咯 叼泛配府狼 府胶飘甫 掘绢可聪促.
- 困狼 疙飞 饶 <ENTER>甫 媚具茄促绰 巴篮 捞固 舅绊 乐阑 巴涝聪促.
-
- 2. TEST 贸烦 粮犁窍瘤 臼绰 颇老 捞抚阑 窍唱 绊福绞矫坷.
-
- 3. 捞力 :w TEST 扼绊 涝仿窍绞矫坷. (TEST绰 寸脚捞 急琶茄 颇老 捞抚涝聪促.)
-
- 4. 捞犯霸 窍搁 忽 辨棱捞 颇老 傈眉甫 TEST扼绰 捞抚栏肺 历厘钦聪促.
- 犬牢窍妨搁, :!dir 阑 促矫 涝仿窍咯, 叼泛配府甫 混旗焊绞矫坷.
-
-曼绊: 忽阑 辆丰茄 饶, 忽阑 促矫 角青窍咯 TEST扼绰 颇老阑 凯搁, 弊 颇老篮
- 历厘沁阑 锭客 肯寒洒 鞍篮 汗荤夯老 巴涝聪促.
-
- 5. 捞力 弊 颇老阑 瘤矿矫促.
- (MS-DOS俊辑): !del TEST
- (Unix俊辑): !rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.3: 急琶利栏肺 历厘窍绰 疙飞
-
-
- ** 颇老狼 老何甫 历厘窍妨搁, :#,# w FILENAME 窍绞矫坷. **
-
- 1. 促矫 茄锅, :!dir 捞唱 !ls 甫 涝仿窍咯 叼泛配府狼 格废阑 罐酒柯 饶
- TEST 鞍篮 利钦茄 捞抚阑 急琶钦聪促.
-
- 2. 目辑甫 捞 其捞瘤狼 贸澜栏肺 颗变 饶, Ctrl-g 甫 涝仿窍咯 弊 临狼 临锅龋甫
- 舅酒忱聪促. 捞 锅龋甫 扁撅窍绞矫坷!
-
- 3. 捞力 捞 其捞瘤狼 付瘤阜栏肺 啊辑 Ctrl-g 甫 促矫 涝仿窍绞矫坷. 捞 临狼
- 临锅龋 肚茄 扁撅窍绞矫坷!
-
- 4. 绢恫 冀记父 颇老肺 历厘窍妨搁, :#,# w TEST 甫 涝仿窍搁 邓聪促. 捞 锭
- #,# 绰 酒鳖 扁撅沁带 矫累苞 场 临锅龋 涝聪促. TEST绰 颇老 捞抚涝聪促.
-
- 5. :!dir 阑 捞侩窍咯 颇老捞 父甸绢脸绰瘤 犬牢窍绞矫坷. 瘤快瘤绰 付绞矫坷.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.4: 颇老 佬绢甸捞扁, 钦摹扁
-
-
- ** 绢恫 颇老狼 郴侩阑 火涝窍妨搁, :r FILENAME 窍绞矫坷 **
-
- 1. :!dir 阑 涝仿窍咯 酒鳖 父电 TEST 颇老捞 弊措肺 乐绰瘤 犬牢窍绞矫坷.
-
- 2. 目辑甫 捞 其捞瘤狼 贸澜栏肺 框流捞绞矫坷.
-
-林狼: 3锅掳 窜拌甫 角青窍搁, Lesson 5.3 阑 焊霸 瞪 巴涝聪促. 弊犯霸 登搁
- 捞 lesson栏肺 促矫 郴妨坷绞矫坷.
-
- 3. 捞力 TEST 颇老阑 佬绢甸涝矫促. :r TEST 疙飞阑 荤侩窍绞矫坷. TEST 绰
- 颇老狼 捞抚涝聪促.
-
-曼绊: 佬绢甸牢 颇老篮 目辑啊 困摹茄 瘤痢俊辑何磐 初捞霸 邓聪促.
-
- 4. 颇老捞 佬绢甸咯柳 巴阑 犬牢窍扁 困秦, 第肺 捞悼秦辑 扁粮 滚傈苞 颇老俊辑
- 佬绢甸牢 滚傈, 捞犯霸 Lesson 5.3 捞 滴锅 馆汗登菌澜阑 犬牢窍绞矫坷.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 5 夸距
-
-
- 1. :!command 甫 捞侩窍咯 寇何 疙飞阑 角青钦聪促.
-
- 蜡侩茄 抗:
- (MS-DOS) (Unix)
- :!dir :!ls - 叼泛配府狼 格废阑 焊咯霖促.
- :!del FILENAME :!rm FILENAME - FILENAME捞扼绰 颇老阑 瘤款促.
-
- 2. :w FILENAME 窍搁 泅犁 忽俊辑 荤侩窍绰 颇老阑 FILENAME捞扼绰 捞抚栏肺
- 叼胶农俊 历厘钦聪促.
-
- 3. :#,#w FILENAME 窍搁 #何磐 #鳖瘤狼 临阑 FILENAME捞扼绰 颇老肺 历厘钦聪促.
-
- 4. :r FILENAME 篮 叼胶农俊辑 FILENAME捞扼绰 颇老阑 阂矾甸咯辑 目辑 困摹
- 第俊 泅犁 颇老阑 笼绢持嚼聪促.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.1: 货 临 凯扁(OPEN) 疙飞
-
-
- ** o 甫 穿福搁 目辑 酒贰俊 临阑 父甸绊 祈笼 葛靛啊 邓聪促. **
-
- 1. 酒贰俊 ---> 肺 钎矫等 临肺 目辑甫 颗扁绞矫坷.
-
- 2. o (家巩磊)甫 媚辑 目辑 *酒贰俊* 临阑 窍唱 咯绞矫坷. 祈笼 葛靛啊 邓聪促.
- Insert mode.
-
- 3. ---> 肺 钎矫等 临阑 汗荤茄 饶 <ESC> 甫 喘矾辑 祈笼 葛靛俊辑 唱坷绞矫坷.
-
----> After typing o the cursor is placed on the open line in Insert mode.
-
- 4. 目辑 *困俊* 临阑 窍唱 父靛妨搁, 家巩磊 o 措脚 措巩磊 O 甫 摹搁 邓聪促.
- 酒贰 乐绰 临俊 措秦 捞 疙飞阑 郴妨焊绞矫坷.
-Open up a line above this by typing Shift-O while the cursor is on this line.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.2: 眠啊(APPEND) 疙飞
-
-
- ** a 甫 穿福搁 目辑 *促澜俊* 臂阑 涝仿且 荐 乐嚼聪促. **
-
- 1. 目辑甫 ---> 肺 钎矫等 霉锅掳 临狼 场栏肺 颗遍聪促. 疙飞 葛靛俊辑
- $ 甫 捞侩窍绞矫坷.
-
- 2. 家巩磊 a 甫 目辑 酒贰 臂磊 *促澜*俊 臂阑 眠啊且 荐 乐嚼聪促.
- (措巩磊 A绰 弊 临狼 场俊 眠啊钦聪促.)
-
-曼绊: 弊犯霸 窍矫搁 绊累 临狼 场俊 眠啊甫 窍扁 困秦 i甫 穿福绊, 目辑 酒贰俊
- 乐带 臂磊甫 馆汗窍绊, 臂阑 尝况持绊, <ESC>甫 喘矾 疙飞 葛靛肺 倒酒客辑,
- 目辑甫 坷弗率栏肺 颗扁绊 付瘤阜栏肺 x鳖瘤 喘矾具 窍绰 锅芭肺框阑 乔窍角
- 荐 乐嚼聪促.
-
- 3. 捞力 霉 临阑 肯己窍绞矫坷. 眠啊 疙飞篮 咆胶飘啊 涝仿登绰 困摹 寇俊绰
- 祈笼 葛靛客 肯傈洒 鞍促绰 巴阑 蜡充窍绞矫坷.
-
----> This line will allow you to practice
----> This line will allow you to practice appending text to the end of a line.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.3: 摹券(REPLACE) 狼 促弗 滚傈
-
-
- ** 措巩磊 R 阑 涝仿窍搁 窍唱 捞惑狼 臂磊甫 官曹 荐 乐嚼聪促. **
-
- 1. 目辑甫 ---> 肺 钎矫等 霉锅掳 临肺 颗扁绞矫坷.
-
- 2. 目辑甫 ---> 肺 钎矫等 滴锅掳 临苞 促弗 霉锅掳 窜绢 困肺 颗扁绞矫坷.
- ('last' 涝聪促.)
-
- 3. R 阑 涝仿茄 饶 霉锅掳 临狼 抗傈 咆胶飘 困俊 货肺款 臂阑 涝仿窍咯
- 唱赣瘤 郴侩捞 滴锅掳 临苞 鞍酒瘤档废 官策矫促.
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. <ESC> 甫 喘矾辑 唱啊搁, 官差瘤 臼篮 咆胶飘绰 弊措肺 巢霸 邓聪促.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.4: 可记 汲沥(SET)
-
- ** 茫扁唱 官操扁俊辑 措家巩磊 备盒阑 绝局扁 困秦 可记阑 汲沥钦聪促 **
-
- 1. 促澜阑 涝仿窍咯 'ignore' 甫 茫栏绞矫坷:
- /ignore
- n 虐甫 捞侩窍咯 咯矾锅 馆汗窍绞矫坷.
-
- 2. 'ic' (措家巩磊 备喊 救窃, Ignore case) 可记阑 汲沥窍绞矫坷:
- :set ic
-
- 3. n 虐甫 喘矾辑 'ignore' 甫 促矫 茫酒焊绞矫坷.
- n 虐甫 拌加 喘矾辑 咯矾锅 茫栏绞矫坷.
-
- 4. 'hlsearch' 客 'incsearch' 可记阑 汲沥钦矫促.
- :set hls is
-
- 5. 茫扁 疙飞阑 促矫 涝仿窍咯, 绢恫 老捞 老绢唱绰瘤 犬牢秦 焊绞矫坷:
- /ignore
-
- 6. 茫篮 郴侩捞 碍炼(HIGHLIGHT)等 巴阑 绝局妨搁, 促澜苞 鞍捞 涝仿钦聪促:
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 6 夸距
-
-
- 1. o 甫 涝仿窍搁 目辑 *酒贰俊* 茄 临捞 凯府哥, 目辑绰 祈笼 葛靛肺
- 凯赴 临 困俊 困摹窍霸 邓聪促.
- 措巩磊 O 甫 涝仿窍搁 目辑啊 乐绰 临狼 *困肺* 货 临阑 凯霸 邓聪促.
-
- 2. a 甫 涝仿窍搁 目辑 *促澜俊* 臂阑 涝仿且 荐 乐嚼聪促.
- 措巩磊 A 甫 涝仿窍搁 磊悼栏肺 弊 临狼 场俊 臂磊甫 眠啊窍霸 邓聪促.
-
- 3. 措巩磊 R 阑 涝仿窍搁 <ESC> 甫 喘矾辑 唱啊扁 傈鳖瘤 官操扁 葛靛啊 邓聪促.
-
- 4. ":set xxx" 甫 窍搁 "xxx" 可记捞 汲沥邓聪促.
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 7: 柯扼牢 档框富 疙飞
-
-
- ** 柯扼牢 档框富 矫胶袍 荤侩窍扁 **
-
- 忽篮 气 承篮 柯扼牢 档框富 矫胶袍阑 力傍钦聪促. 档框富阑 焊妨搁,
- 促澜 技啊瘤 吝 窍唱甫 矫档秦焊绞矫坷:
- - <HELP> 虐甫 穿弗促. (虐啊 乐绰 版快)
- - <F1> 虐甫 穿弗促. (虐啊 乐绰 版快)
- - :help <ENTER> 扼绊 涝仿茄促.
-
- 档框富 芒阑 摧栏妨搁 :q <ENTER> 扼绊 涝仿窍绞矫坷.
-
- ":help" 扼绰 疙飞俊 牢磊甫 林搁 绢恫 林力俊 包茄 档框富阑 茫阑 荐 乐嚼聪促.
- 促澜 疙飞阑 郴妨 焊绞矫坷. ( <ENTER> 虐甫 穿福绰 巴阑 镭瘤 付绞矫坷.)
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 8: 矫累 胶农赋飘 父甸扁
-
- ** 忽狼 扁瓷 难扁 **
-
- 忽篮 Vi 焊促 任纠 腹篮 扁瓷阑 啊瘤绊 乐瘤父, 措何盒篮 扁夯利栏肺 累悼窍瘤
- 臼嚼聪促. 歹 腹篮 扁瓷阑 结焊妨搁, "vimrc" 扼绰 颇老阑 父甸绢具 钦聪促.
-
- 1. "vimrc" 颇老阑 荐沥钦矫促. 捞 颇老篮 荤侩窍绰 矫胶袍俊 蝶扼 促辅聪促:
- 1. Start editing the "vimrc" file, this depends on your system:
- :edit ~/.vimrc Unix狼 版快
- :edit $VIM/_vimrc MS-Windows狼 版快
-
- 2. 捞力 "vimrc"狼 抗力甫 佬绢甸涝聪促:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 促澜苞 鞍捞 窍咯 颇老阑 历厘钦聪促:
-
- :write
-
- 促澜 锅俊 忽阑 矫累窍搁, 备巩 碍炼(syntax highlighting)捞 荤侩瞪 巴涝聪促.
- 葛电 盔窍绰 汲沥阑 捞 "vimrc" 颇老俊 持绢笛 荐 乐嚼聪促.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 捞巴栏肺 忽 辨棱捞甫 付抹聪促. 捞 辨棱捞绰 忽 祈笼扁俊 措茄 埃帆茄 俺夸甫
- 焊咯林扁 困茄 狼档肺 力累登菌栏哥, 捞 祈笼扁甫 沥富 埃窜洒 荤侩窍扁俊
- 面盒且 挥涝聪促. 忽俊绰 捞 辨棱捞客绰 厚背且 荐 绝阑 父怒 任纠 腹篮 疙飞捞
- 乐嚼聪促. 促澜 荤侩磊 概春倔阑 佬栏绞矫坷: ":help user-manual"
-
- 焊促 磊技洒 佬绊 傍何窍妨搁, 促澜 氓阑 眠玫秦 靛赋聪促:
- Vim - Vi Improved - by Steve Oualline
- 免魄荤: New Riders
- 捞 氓篮 肯傈洒 忽俊 措秦辑父 促风绊 乐嚼聪促. 漂洒 檬焊磊甸俊霸 蜡侩钦聪促.
- 腹篮 抗力客 弊覆捞 乐嚼聪促.
- 促澜阑 曼绊窍绞矫坷: http://iccf-holland.org/click5.html
-
- 促澜 氓篮 粱 坷贰等 氓栏肺 忽焊促绰 Vi俊 措秦 促风绊 乐瘤父, 开矫 眠玫且 父
- 钦聪促:
- Learning the Vi Editor - by Linda Lamb
- 免魄荤: O'Reilly & Associates Inc.
- Vi肺 窍绊 酵篮 芭狼 葛电 巴俊 措秦 舅 荐 乐绰 亮篮 氓涝聪促.
- 咯几锅掳 俺沥魄篮 忽俊 包茄 郴侩阑 器窃窍绊 乐嚼聪促.
-
- 捞 辨棱捞绰 Colorado School of Mines狼 Michael C. Pierce 客
- Robert K. Ware 啊 Colorado State University狼 Charles Smith 狼 酒捞叼绢俊
- 馒救窍咯 借嚼聪促.
- . E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
-
- 捞 巩辑狼 茄惫绢 滚傈俊 包茄 巩狼绰 促澜 荤捞飘肺 秦林绞矫坷.
- http://wiki.kldp.org/wiki.php/VimTutorKo
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.ko.utf-8 b/runtime/tutor/tutor.ko.utf-8
deleted file mode 100644
index 4498c9f6d..000000000
--- a/runtime/tutor/tutor.ko.utf-8
+++ /dev/null
@@ -1,812 +0,0 @@
-===============================================================================
-= 牍 旮胳灐鞚 (VIM Tutor) 鞐 鞓れ嫚 瓴冹潉 頇橃榿頃╇媹雼 - Version 1.5 =
-===============================================================================
-
- 牍(Vim)鞚 鞚 旮胳灐鞚挫棎靹 雼 靹る獏頃 靾 鞐嗢潉 毵岉伡 毵庫潃 氇呺牴鞚 臧歆
- 毵れ毎 臧曤牓頃 韼胳旮办瀰雼堧嫟. 鞚 旮胳灐鞚措姅 牍旍潉 靿疥矊 鞝勳矞頉 韼胳旮半 靷毄頃
- 靾 鞛堧弰搿 於╇秳頃 氇呺牴鞐 雽頃 靹る獏頃橁碃 鞛堨姷雼堧嫟.
-
- 鞚 旮胳灐鞚措ゼ 霒茧姅 雿办棎電 鞁れ姷頃橂姅 雿办棎 鞏茧雮 鞁滉皠鞚 鞊半姅 臧鞐 霐半澕靹
- 25-30 攵 鞝曤弰臧 瓯鸽雼堧嫟.
-
- 鞚 鞐办姷鞐 韽暔霅 氇呺牴鞚 雮挫毄鞚 瓿犾供雼堧嫟. 鞚 韺岇澕鞚 氤奠偓氤胳潉 毵岆摛鞏挫劀
- 鞐办姷頃橃劯鞖. (vimtutor 毳 韱淀暣 鞁滌瀾頄堧嫟氅, 鞚措 氤奠偓氤胳潉 靷毄頃橂姅
- 欷戩瀰雼堧嫟.)
-
- 欷戩殧頃 瓴冹潃, 鞚 旮胳灐鞚搓皜 歆侅爲 鞃炒氅挫劀 氚办毎霃勲 瓿犽牑霅橃柎 鞛堧嫟電 瓴冹瀰雼堧嫟.
- 氇呺牴鞚 鞝滊寑搿 鞚淀瀳霠る┐, 歆侅爲 鞁ろ枆頃措炒電 瓴冹澊 頃勳殧頃╇媹雼. 雮挫毄鞚 鞚诫姅
- 瓴冸鞙茧電, 氇呺牴鞚 鞛婌柎氩勲Μ瓴 霅 瓴冹瀰雼堧嫟.
-
- 鞛 鞚挫牅, Caps Lock(Shift-Lock) 韨り皜 雸岆牑鞛堨 鞎婌潃歆 頇曥澑頃措炒鞁滉碃, j 韨るゼ
- 於╇秳頌 雸岆煬靹 Lesson 1.1鞚 頇旊┐鞐 臧霌 彀弰搿 鞗歆侅棳氪呾嫓雼.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.1: 旎れ劀 鞗歆侅澊旮
-
- ** 旎れ劀毳 鞗歆侅澊霠る┐, 響滌嫓霅 雽搿 h,j,k,l 韨るゼ 雸勲ゴ鞁嫓鞓. **
- ^
- k 頌岉姼: h 韨る姅 鞕检鞐 鞛堨溂氅, 鞕检鞙茧 鞗歆侅瀰雼堧嫟.
- < h l > l 韨る姅 鞓るジ飒届棎 鞛堨溂氅, 鞓るジ飒届溂搿
- j 鞗歆侅瀰雼堧嫟.
- v j 韨る姅 鞎勲灅氚╉枼 頇旍偞響滌矘霟 靸濌布鞀惦媹雼.
-
- 1. 鞚奠垯頃挫 霑岅箤歆 旎れ劀毳 鞀ろ伂毽 靸侅棎靹 鞗歆侅棳 氤挫嫮鞁滌槫.
-
- 2. 鞎勲灅 氚╉枼韨 (j)毳 氚橂车鞛呺牓鞚 霅 霑岅箤歆 雸勲ゴ瓿 瓿勳嫮鞁滌槫.
----> 鞚挫牅 雼れ潓 lesson鞙茧 臧電 氚╇矔鞚 鞎岅矊 霅橃棃鞀惦媹雼.
-
- 3. 鞎勲灅 氚╉枼韨るゼ 鞚挫毄頃橃棳, Lesson 1.2 搿 臧鞁嫓鞓.
-
-彀戈碃: 鞗愴晿歆 鞎婋姅 氍挫柛臧臧 鞛呺牓鞚 霅橃棃雼る┐, <ESC>毳 雸岆煬靹, 氇呺牴 氇摐搿
- 霃岇晞臧鞁嫓鞓. 攴 頉勳棎 鞗愴晿電 氇呺牴鞚 雼れ嫓 鞛呺牓頃橃嫮鞁滌槫.
-
-彀戈碃: 旎れ劀韨 霕愴暅 鞛戨彊頃 瓴冹瀰雼堧嫟. 頃橃毵 hjkl鞐 鞚奠垯頃挫氅, 旎れ劀韨る炒雼
- 頉敩 牍犽ゴ瓴 鞚措彊頃 靾 鞛堨潉 瓴冹瀰雼堧嫟.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.2: 牍旍潉 鞁滌瀾頃橁碃 雭濍偞旮
-
-
- !! 欤检潣: 鞎勲灅 鞛堧姅 雼硠毳 鞁ろ枆頃橁赴 鞝勳棎, 鞚 lesson 鞝勳泊毳 鞚届溂鞁嫓鞓!!
-
- 1. <ESC> 韨るゼ 雸岆煬靹 頇曥嫟頃橁矊 氇呺牴 氇摐搿 牍犾牳 雮橃樀雼堧嫟.
-
- 2. 雼れ潓瓿 臧欖澊 鞛呺牓頃╇媹雼: :q! <ENTER>
-
----> 鞚措爣瓴 頃橂┐, 氚旊 雮挫毄鞚 *鞝鞛ロ晿歆 鞎婈碃* 韼胳旮半ゼ 牍犾牳雮橁皯雼堧嫟.
- 鞝鞛ロ暅 頉 牍犾牳雮橁皜霠る┐ 雼れ潓瓿 臧欖澊 鞛呺牓頃╇媹雼:
- :wq <ENTER>
-
- 3. 靿 頂勲‖頂勴姼臧 氤挫澑雼る┐, 雼れ嫓 旮胳灐鞚措 霃岇晞鞓り赴 鞙勴暣 雼れ潓瓿 臧欖澊
- 鞛呺牓頃╇媹雼.
- vimtutor <ENTER>
- 霕愲姅 雼れ潓瓿 臧欖潉 靾橂弰 鞛堨姷雼堧嫟.
- vim tutor.ko <ENTER>
-
----> 'vim' 鞚 牍 韼胳旮半 霌れ柎臧電 瓴冹潉 霚豁晿氅, 'tutor.ko'電 韼胳頃橂牑電
- 韺岇澕鞚 霚豁暕雼堧嫟.
-
- 4. 鞙勳棎靹 鞚挫暭旮绊暅 雼硠毳 旮办柕頃橃榾鞙茧┌, 頇曥嫚鞚 靹滊┐, 1鞐愳劀 3旯岇毳
- 靾橅枆頃橃棳 韼胳旮半ゼ 雮橁皵雼り皜 雼れ嫓 霌れ柎鞕氤挫嫮鞁滌槫. 攴 頉 旎れ劀毳 鞎勲灅搿
- 鞗歆侅棳 Lesson 1.3 鞙茧 臧鞁嫓鞓.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.3: 韰嶌姢韸 韼胳 - 歆鞖瓣赴
-
-
-** 氇呺牴 氇摐鞐愳劀 x 毳 雸勲ゴ氅 旎れ劀臧 鞙勳箻頃 瓿踌潣 旮鞛愲ゼ 歆鞖 靾 鞛堨姷雼堧嫟. **
-
- 1. ----> 搿 響滌嫓霅 瓿踌溂搿 旎れ劀毳 鞓波氤挫嫮鞁滌槫.
-
- 2. 鞓ろ儉毳 靾橃爼頃橁赴 鞙勴暣, 旎れ劀毳 歆鞖 旮鞛 鞙勲 鞗歆侅棳 氤挫嫮鞁滌槫.
-
- 3. x 韨るゼ 雸岆煬靹 歆鞗岇暭頃 旮鞛愲ゼ 歆鞖办嫮鞁滌槫.
-
- 4. 2鞐愳劀 4旯岇毳 氚橂车頃橃棳 氍胳灔鞚 鞓皵毳搓矊 霅橂弰搿 頃橃棳 氤挫嫮鞁滌槫.
-
----> The ccow jumpedd ovverr thhe mooon.
-
- 5. 氍胳灔鞚 鞝曧檿頃挫雼る┐, Lesson 1.4搿 臧鞁嫓鞓.
-
-欤检潣: 鞚 旮胳灐鞚措ゼ 氤措┐靹 鞕胳毎霠り碃 頃橃毵愱碃, 歆侅爲 靷毄頃措炒氅挫劀 鞚淀瀳旮
- 氚旊瀺雼堧嫟.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 1.4: 韰嶌姢韸 韼胳 - 靷届瀰 (INSERTION)
-
-
- ** 氇呺牴 氇摐鞐愳劀 i 毳 雸勲ゴ氅 韰嶌姢韸鸽ゼ 鞛呺牓頃 靾 鞛堨姷雼堧嫟. **
-
- 1. 旎れ劀毳 觳矆歆 ---> 搿 響滌嫓霅 欷勲 鞗歆侅瀰雼堧嫟.
-
- 2. 觳矆歆 欷勳潉 霊愲矆歆 欷勱臣 霕戧皺鞚 毵岆摛瓴冹瀰雼堧嫟. 韰嶌姢韸戈皜 霌れ柎臧鞎柬暊
- 瓿 雼れ潓攵韯 觳矆歆 旮鞛 鞙勳棎 旎れ劀毳 鞓波 雴撿姷雼堧嫟.
-
- 3. i 韨るゼ 雸勲ジ 頉, 頃勳殧頃 雮挫毄鞚 鞛呺牓頃╇媹雼.
-
- 4. 靾橃爼頃 頉勳棎電 <ESC> 毳 雸岆煬靹 氇呺牴 氇摐搿 霃岇晞臧戨媹雼.
- 氍胳灔鞚 鞓皵毳搓矊 毵岆摛旮 鞙勴暣 2鞐愳劀 4鞚 瓿检爼鞚 氚橂车頃╇媹雼.
-
----> There is text misng this .
----> There is some text missing from this line.
-
- 5. 韰嶌姢韸鸽ゼ 靷届瀰頃橂姅 雿办棎 鞚奠垯頃挫雼る┐, 鞖旍暯鞚 氪愳<鞁嫓鞓.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 1 鞖旍暯
-
-
- 1. 旎れ劀毳 鞗歆侅澕 霑岇棎電 頇旍偞響 韨る倶 hjkl 韨るゼ 鞚挫毄頃╇媹雼.
- h (鞕检) j (鞎勲灅) k (鞙) l (鞓るジ飒)
-
- 2. 靿 頂勲‖頂勴姼鞐愳劀 牍旍潉 鞁滌瀾頃橂牑氅 vim FILENAME <ENTER>
-
- 3. 靾橃爼頃 雮挫毄鞚 氍挫嫓頃 毂勲 牍旍棎靹 牍犾牳雮橁皜霠る┐ <ESC> :q! <ENTER>
- 鞝鞛ロ暅 頉 牍旍棎靹 牍犾牳雮橁皜霠る┐ <ESC> :wq <ENTER>
-
- 4. 氇呺牴 氇摐鞐愳劀 旎れ劀臧 鞙勳箻頃 瓿踌潣 旮鞛愲ゼ 歆鞖半牑氅 x 毳 鞛呺牓頃╇媹雼.
-
- 5. 氇呺牴 氇摐鞐愳劀 旎れ劀臧 鞙勳箻頃 瓿踌棎 韰嶌姢韸鸽ゼ 靷届瀰頃橂牑氅
- i 毳 雸勲ジ 頉 韰嶌姢韸鸽ゼ 鞛呺牓頃橁碃 <ESC> 毳 雸勲雼堧嫟.
-
-彀戈碃: <ESC>電 氇呺牴 氇摐搿 霃岇晞臧電 雿 鞊半┌, 鞗愳箻 鞎婋姅 氇呺牴鞚措倶 鞕勳爠頌 鞛呺牓霅橃
- 鞎婌潃 氇呺牴鞚 旆唽頃橂姅 雿办棎霃 鞌侂媹雼.
-
-攴鸽熂 Lesson 2毳 鞁滌瀾頃╈嫓雼.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.1: 靷牅(DELETION) 氇呺牴
-
-
- ** 頃 雼柎毳 雭濌箤歆 歆鞖半牑氅 dw 霛缄碃 旃橂┐ 霅╇媹雼. **
-
- 1. <ESC> 韨るゼ 雸岆煬靹 頇曥嫟頃橁矊 氇呺牴 氇摐搿 牍犾牳 雮橃樀雼堧嫟.
-
- 2. 鞎勲灅鞐 ---> 搿 響滌嫓霅 欷 旯岇 旎れ劀毳 鞓箒雼堧嫟.
-
- 3. 歆鞗岇暭頃 雼柎鞚 觳橃潓鞙茧 旎れ劀毳 鞓箒雼堧嫟.
-
- 4. dw 霛缄碃 斐愳劀 攴 雼柎毳 歆鞗侂媹雼.
-
- 欤检潣: 鞙勳棎靹 毵愴暅雽搿 頃橂┐ 頇旊┐鞚 毵堨毵 欷勳棎 dw 霛茧姅 旮鞛愱皜 響滌嫓霅╇媹雼.
- 鞛橂 斐る嫟氅, <ESC> 毳 雸岆煬靹 雼れ嫓 鞁滌瀾頃橃嫮鞁滌槫.
-
----> There are a some words fun that don't belong paper in this sentence.
-
- 5. 3, 4氩 瓿检爼鞚 雼れ嫓 頃橃棳 氍胳灔鞚 鞝曧檿頃橁矊 毵岆摖 霋 Lesson 2.2搿 臧鞁嫓鞓.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.2: 雼るジ 靷牅 氇呺牴
-
- ** d$ 霛缄碃 旃橂┐ 攴 欷 雭濌箤歆 歆鞗岇雼堧嫟. **
-
- 1. <ESC> 韨るゼ 雸岆煬靹 頇曥嫟頃橁矊 氇呺牴 氇摐搿 牍犾牳 雮橃樀雼堧嫟.
-
- 2. 鞎勲灅鞐 ---> 搿 響滌嫓霅 欷 旯岇 旎れ劀毳 鞓箒雼堧嫟.
-
- 3. 鞓皵毳 欷勳潣 雭濎溂搿 旎れ劀毳 鞓箒雼堧嫟. (觳矆歆鸽 雮橃槫電 . 雼れ潓鞛呺媹雼.)
-
- 4. d$ 霛缄碃 斐愳劀 欷 雭濌箤歆 歆鞗侂媹雼.
-
----> Somebody typed the end of this line twice. end of this line twice.
-
-
- 5. 鞏措枻 鞚检澊 鞚检柎雮姅歆 鞚错暣頃橁赴 鞙勴暣 Lesson 2.3 鞙茧 臧鞁嫓鞓.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.3: 氇呺牴瓿 鞝侅毄 雽靸侅棎 雽頃
-
-
- 靷牅 氇呺牴 d鞚 順曥嫕鞚 雼れ潓瓿 臧欖姷雼堧嫟.
-
- [須熿垬] d 雽靸 霕愲姅 d [須熿垬] 雽靸
- 鞐赴靹
- 須熿垬 - 氇呺牴鞚 氇 氩 靾橅枆頃 歆 (鞓奠厴, 旮半掣臧=1).
- d - 歆鞖半姅 氇呺牴
- 雽靸 - 鞎勲灅鞐 鞝滌嫓霅 雽靸侅棎 雽頃 氇呺牴鞚 靾橅枆
-
- 鞝侅毄 臧電ロ暅 雽靸侅潣 膦呺:
- w - 旎れ劀鞐愳劀 攴 雼柎鞚 雭濌箤歆 (瓿惦氨 韽暔.)
- e - 旎れ劀鞐愳劀 攴 雼柎鞚 雭濌箤歆 (瓿惦氨鞚 韽暔頃橃 鞎婌潓.)
- $ - 旎れ劀鞐愳劀 攴 欷勳潣 雭濌箤歆
-
-彀戈碃: 順戈赴鞁澊 鞛堧嫟氅, 氇呺牴 氇摐鞐愳劀 氇呺牴 鞐嗢澊 雽靸侅潉 鞛呺牓頃措炒鞁嫓鞓.
- 鞙勳棎靹 鞚挫暭旮绊暅 雽靸侅潣 氇╇鞐 霐半澕 旎れ劀臧 鞗歆侅澊瓴 霅╇媹雼.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.4: '氇呺牴-雽靸' 鞐 雽頃 鞓堨櫢
-
-
- ** dd 霛缄碃 旃橂┐ 欷 鞝勳泊毳 歆鞗侂媹雼. **
-
- 欷 鞝勳泊毳 歆鞖半姅 鞚检澊 鞛﹃赴 霑岆鞐, Vi毳 霐旍瀽鞚 頃 靷瀸霌れ潃, 臧勲嫧頌 d毳
- 霊愲矆 鞐半嫭鞎 旃橂┐ 頃 欷勳潉 歆鞖 靾 鞛堧弰搿 頃橃榾鞀惦媹雼.
-
- 1. 旎れ劀毳 鞎勲灅 雮橃槰 雼澖鞚 霊愲矆歆 欷勲 臧鞝戈皜鞁嫓鞓.
- 2. dd 毳 鞛呺牓頃橃棳 攴 欷勳潉 歆鞖办嫮鞁滌槫.
- 3. 攴鸽煱 雼れ潓 雱る矆歆 欷勲 臧鞁嫓鞓.
- 4. 2dd 霛缄碃 鞛呺牓頃橃棳 霊愳鞚 歆鞗侂媹雼. ( 須熿垬-氇呺牴-雽靸侅潉 旮办柕頃橃劯鞖. )
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.5: 旆唽(UNDO) 氇呺牴
-
-
- ** u 毳 雸勲ゴ氅 毵堨毵 氇呺牴鞚 旆唽霅橂┌, U 電 欷 鞝勳泊毳 靾橃爼頃╇媹雼. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 欷勲 鞚措彊頃 頉 觳矆歆 鞛橂霅 攵攵 鞙勲 鞓箒雼堧嫟.
- 2. x 毳 鞛呺牓頃橃棳 觳矆歆 鞛橂霅 旮鞛愲ゼ 歆鞗侂媹雼.
- 3. 攴鸽熂 鞚挫牅 u 毳 鞛呺牓頃橃棳 毵堨毵夓溂搿 靾橅枆霅 氇呺牴鞚 旆唽頃╇媹雼.
- 4. 鞚措矆鞐愲姅 x 氇呺牴鞚 鞚挫毄頃橃棳 攴 欷勳潣 氇摖 鞐愲煬毳 靾橃爼頃措磪鞁滊嫟.
- 5. 雽氍胳瀽 U 毳 雸岆煬靹 攴 欷勳潉 鞗愲灅 靸來儨搿 霃岆牑雴撿晞 氤挫嫮鞁滌槫.
- 6. 鞚措矆鞐愲姅 u 毳 氇 氩 雸岆煬靹 U 鞕 鞚挫爠 氇呺牴鞚 旆唽頃措磪鞁滊嫟.
- 7. CTRL-R (CTRL 韨るゼ 雸勲ジ 靸來儨鞐愳劀 R鞚 雸勲ゴ電 瓴) 鞚 氇 氩 雸岆煬靹
- 氇呺牴鞚 雼れ嫓 鞁ろ枆頃措磪鞁滊嫟. (旆唽頃 瓴冹潉 旆唽頃.)
-
----> Fiix the errors oon thhis line and reeplace them witth undo.
-
- 8. 鞚 氇呺牴鞚 毵れ毎 鞙犾毄頃╇媹雼. 攴鸽熂 Lesson 2 鞖旍暯鞙茧 雱橃柎臧霃勲 頃╈嫓雼.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 2 鞖旍暯
-
-
- 1. 旎れ劀臧 鞙勳箻頃 瓿畴秬韯 雼柎鞚 雭濌箤歆 歆鞖半牑氅: dw
-
- 2. 旎れ劀臧 鞙勳箻頃 瓿畴秬韯 欷 雭濌箤歆 歆鞖半牑氅: d$
-
- 3. 欷 鞝勳泊毳 歆鞖半牑氅: dd
-
- 4. 氇呺牴 氇摐鞐愳劀 雮措Μ電 氇呺牴鞚 順曥嫕鞚 雼れ潓瓿 臧欖姷雼堧嫟:
-
- [須熿垬] 氇呺牴 雽靸 霕愲姅 氇呺牴 [須熿垬] 雽靸
- 鞐赴靹:
- 須熿垬 - 攴 氇呺牴鞚 氇 氩 氚橂车頃 瓴冹澑臧
- 氇呺牴 - 鞏措枻 氇呺牴鞚 雮措Υ 瓴冹澑臧 ( 鞓堧ゼ 霌れ柎, 靷牅鞚 瓴届毎電 d )
- 雽靸 - 氇呺牴鞚 霃欖瀾頃 雽靸, 鞓堧ゼ 霌れ柎 w (雼柎), $ (欷勳潣 雭) 霌.
-
- 5. 鞚挫爠 頄夒彊鞚 旆唽頃橂牑氅: u (靻岆鞛 u)
- 頃 欷勳棎靹 靾橃爼頃 瓴冹潉 氇憪 旆唽頃橂牑氅: U (雽氍胳瀽 U)
- 旆唽頃 瓴冹潉 雼れ嫓 鞁ろ枆頃橂牑氅: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.1: 攵欖澊旮(PUT) 氇呺牴
-
-
- ** p 毳 鞛呺牓頃橃棳 毵堨毵夓溂搿 歆鞖 雮挫毄鞚 旎れ劀 霋れ棎 攵欖瀰雼堧嫟. **
-
- 1. 鞎勲灅鞐 鞛堧姅 氍鸽嫧鞚 觳 欷勲 旎れ劀毳 鞗歆侅澊鞁嫓鞓.
-
- 2. dd 毳 鞛呺牓頃橃棳 攴 欷勳潉 歆鞗岇劀 牍旍潣 氩勴嵓鞐 鞝鞛ロ暕雼堧嫟.
-
- 3. 鞎勱箤 歆鞖 欷勳澊 臧鞎柬暊 鞙勳箻鞚 *鞙楈搿* 旎れ劀毳 鞓箒雼堧嫟.
-
- 4. 氇呺牴 氇摐鞐愳劀, p 毳 鞛呺牓頃橃棳 攴 欷勳潉 鞝滊寑搿 霅 鞛愲Μ搿 鞓箒雼堧嫟.
-
- 5. 2鞐愳劀 4毳 氚橂车頃橃棳 氇摖 欷勳潣 靾滌劀毳 氚旊 鞛§溂鞁嫓鞓.
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.2: 旃橅櫂(REPLACE) 氇呺牴
-
-
- ** 旎れ劀 鞎勲灅鞚 旮鞛 頃橂倶毳 氚旉靖霠る┐, r 鞚 雸勲ジ 頉 氚旉縺 旮鞛愲ゼ 鞛呺牓頃╇媹雼. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 觳 欷勲 鞓箒雼堧嫟.
-
- 2. 旎れ劀毳 鞛橂霅 觳 攵攵勳溂搿 鞓箒雼堧嫟.
-
- 3. r 鞚 雸勲ジ 頉, 鞛橂霅 攵攵勳潉 瓿犾硱 鞊 旮鞛愲ゼ 鞛呺牓頃╇媹雼.
-
- 4. 2鞐愳劀 3鞚 瓿检爼鞚 氚橂车頃橃棳, 觳 欷勳潣 鞓る毳 靾橃爼頃橃嫮鞁滌槫.
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. Lesson 3.2 搿 鞚措彊頃╈嫓雼.
-
-欤检潣: 鞕胳毎歆 毵愱碃, 歆侅爲 頃措炒氅挫劀 鞚淀榾鞎 頃滊嫟電 瓴冹潉 鞛婌 毵堨嫮鞁滌槫.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.3: 氤頇(CHANGE) 氇呺牴
-
-
- ** 頃 雼柎鞚 鞚茧秬雮 鞝勳泊毳 氚旉靖霠る┐, cw 毳 旃橃嫮鞁滌槫. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 觳搿 鞓箒雼堧嫟.
-
- 2. 旎れ劀毳 lubw 鞐愳劀 u 鞙勳棎 鞓牑雴撿姷雼堧嫟.
-
- 3. cw 霛缄碃 氇呺牴頃 頉 雼柎毳 鞝曧檿頃橁矊 靾橃爼頃╇媹雼. (鞚 瓴届毎, 'ine' 毳 旃╇媹雼.)
-
- 4. <ESC> 毳 雸勲ジ 頉 雼れ潓 鞐愲煬搿 臧戨媹雼 (靾橃爼霅橃柎鞎柬暊 觳 旮鞛愲 臧戨媹雼.)
-
- 5. 3鞐愳劀 4鞚 瓿检爼鞚 氚橂车頃橃棳 觳矆歆 氍胳灔鞚 霊愲矆歆 氍胳灔瓿 臧欕弰搿 毵岆摥雼堧嫟.
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-cw 電 雼柎毳 旃橅櫂頃橂姅 瓴 肟愲 鞎勲媹霛, 雮挫毄鞚 靷届瀰頃 靾 鞛堧弰搿 頃滊嫟電 瓴冹棎
-欤检潣頃╈嫓雼.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.4: c 毳 鞚挫毄頃 雼るジ 氤頇 氇呺牴
-
-
- ** 氤頇 氇呺牴鞚 靷牅頃 霑 鞚挫毄頃 雽靸侅棎 雽頃 鞝侅毄頃 靾 鞛堨姷雼堧嫟. **
-
- 1. 氤頇 氇呺牴鞚 靷牅鞕 霃欖澕頃 氚╈嫕鞙茧 霃欖瀾頃╇媹雼. 順曥嫕鞚 雼れ潓瓿 臧欖姷雼堧嫟:
-
- [須熿垬] c 雽靸 霕愲姅 c [須熿垬] 雽靸
-
- 2. 鞝侅毄 臧電ロ暅 雽靸 鞐嫓 臧欖姷雼堧嫟. w (雼柎), $ (欷勳潣 雭) 霌膘澊 鞛堨姷雼堧嫟.
-
- 3. ---> 搿 響滌嫓霅 觳搿 鞚措彊頃╇媹雼.
-
- 4. 觳 鞐愲煬 鞙勲 旎れ劀毳 鞓箒雼堧嫟.
-
- 5. c$ 毳 鞛呺牓頃橃棳, 攴 欷勳潣 雮橂ǜ歆臧 霊愲矆歆 欷勳矘霟 霅橂弰搿 靾橃爼頃 頉 <ESC> 毳
- 雸勲ゴ鞁嫓鞓.
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 3 鞖旍暯
-
-
- 1. 鞚措 歆鞖 雮挫毄鞚 霅橂弻毽牑氅, p 毳 雸勲ゴ鞁嫓鞓. 鞚 氇呺牴鞚 旎れ劀 *雼れ潓鞐*
- 歆鞗岇 雮挫毄鞚 攵欖瀰雼堧嫟(PUT). (頃 欷勳潉 歆鞖 瓴届毎鞐愲姅 旎れ劀 雼れ潓 欷勳棎
- 歆鞗岇 雮挫毄鞚 攵欖姷雼堧嫟.)
-
- 2. 旎れ劀 鞎勲灅鞚 旮鞛愲ゼ 旃橅櫂頃橂牑氅(REPLACE), r 鞚 雸勲ジ 頉 鞗愲灅 旮鞛 雽鞁
- 氚旉靖鞏 雱l潉 旮鞛愲ゼ 鞛呺牓頃╇媹雼.
-
- 3. 氤頇 氇呺牴(CHANGE)鞚 旎れ劀鞐愳劀 攵韯 歆鞝曧暅 雽靸侅潣 雭濌箤歆 氚旉縺 靾 鞛堧姅
- 氇呺牴鞛呺媹雼. 鞓堧ゼ 霌れ柎, 旎れ劀 鞙勳箻鞐愳劀 雼柎鞚 雭濌箤歆 氚旉靖霠る┐, cw 毳
- 鞛呺牓頃橂┐ 霅橂┌, c$ 電 欷 雭濌箤歆 氚旉靖電 雿 鞊办瀰雼堧嫟.
-
- 4. 氤頇 氇呺牴鞚 順曥嫕鞚 雼れ潓瓿 臧欖姷雼堧嫟:
-
- [須熿垬] c 雽靸 霕愲姅 c [須熿垬] 雽靸
-
-瓿勳啀頃挫劀 雼れ潓 Lesson 鞚 歆勴枆頃╈嫓雼.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.1: 鞙勳箻鞕 韺岇澕鞚 靸來儨
-
-
- ** CTRL-g 毳 雸勲ゴ氅 韺岇澕 雮挫棎靹滌潣 順勳灛 鞙勳箻鞕 韺岇澕鞚 靸來儨毳 氤 靾 鞛堨姷雼堧嫟.
- SHIFT-G 毳 雸勲ゴ氅 韺岇澕 雮挫潣 欷勲 鞚措彊頃╇媹雼. **
-
- 欤检潣: 鞎勲灅鞚 雼硠毳 霐半澕頃橁赴 鞝勳棎, 鞚 Lesson 鞝勳泊毳 毹检爛 鞚届溂鞁嫓鞓.
-
- 1. CTRL 韨るゼ 雸勲ジ 靸來儨鞐愳劀 g 毳 雸勲雼堧嫟. 韺岇澕 鞚措瓿 順勳灛 鞙勳箻頃 欷勳澊
- 響滌嫓霅 靸來儨欷勳澊 頇旊┐ 鞎勲灅鞐 響滌嫓霅 瓴冹瀰雼堧嫟. 3氩堨Ц 雼硠毳 鞙勴暣 攴
- 欷 氩堩樃毳 旮办柕頃橁碃 瓿勳嫮鞁滌槫.
-
- 2. SHIFT-G 毳 雸勲ゴ氅 韺岇澕鞚 毵堨毵夓溂搿 鞚措彊頃╇媹雼.
-
- 3. 鞎勱箤 旮办柕頄堧崢 欷 氩堩樃毳 鞛呺牓頃 頉 SHIFT-G 毳 雸勲ゴ鞁嫓鞓. 鞚措爣瓴 頃橂┐
- 觳橃潓鞐 CTRL-g 毳 雸岆爛雿 鞛レ唽搿 霅橂弻鞎勱皜瓴 霅 瓴冹瀰雼堧嫟.
- (氩堩樃毳 鞛呺牓頃 霑, 鞚搓矁鞚 頇旊┐鞐 響滌嫓霅橃 鞎婌姷雼堧嫟.)
-
- 4. 鞛愳嫚鞚 靸濌布雼る┐, 1鞐愳劀 3旯岇毳 鞁ろ枆頃措炒鞁嫓鞓.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.2: 彀娟赴 氇呺牴
-
-
- ** / 毳 雸勲ジ 頉 瓴靸夗暊 氍戈惮毳 鞛呺牓頃橃嫮鞁滌槫. **
-
- 1. 氇呺牴 氇摐鞐愳劀 / 毳 鞛呺牓頃橃嫮鞁滌槫. : 氇呺牴鞐愳劀鞕 毵堨艾臧歆搿, 頇旊┐ 鞎勲灅鞐
- / 鞕 旎れ劀臧 響滌嫓霅 瓴冹瀰雼堧嫟.
-
- 2. 'errroor' 霛缄碃 旃 頉 <ENTER> 毳 旃橃嫮鞁滌槫. 鞚 雼柎毳 彀眷溂霠り碃 頃╇媹雼.
-
- 3. 臧欖潃 氍戈惮毳 雼れ嫓 彀眷溂霠る┐, 臧勲嫧頌 n 鞚 鞛呺牓頃橃嫮鞁滌槫.
- 臧欖潃 氍戈惮毳 氚橂寑 氚╉枼鞙茧 彀眷溂霠る┐, Shift-N 鞚 鞛呺牓頃橃嫮鞁滌槫.
-
- 4. 氍戈惮毳 鞐癌頄レ溂搿 彀眷溂霠る┐, / 雽鞁 ? 毳 鞚挫毄頃橂┐ 霅╇媹雼.
-
----> "errroor" is not the way to spell error; errroor is an error.
-
-彀戈碃: 彀倦姅 欷戩棎 韺岇澕鞚 雭濎棎 雼る嫟毳搓矊 霅橂┐, 韺岇澕鞚 觳橃潓攵韯 雼れ嫓 彀娟矊 霅╇媹雼.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.3: 甏勴樃鞚 歆 彀娟赴
-
-
- ** % 毳 雸岆煬靹 ), ], } 鞚 歆濎潉 彀眷姷雼堧嫟. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 欷勳潣 (, [, { 欷 頃橂倶鞐 臧鞝鸽嫟 雴撿姷雼堧嫟.
-
- 2. % 毳 鞛呺牓頃 氪呾嫓雼.
-
- 3. 旎れ劀臧 歆濎澊 毵炿姅 甏勴樃搿 鞚措彊頃 瓴冹瀰雼堧嫟.
-
- 4. % 毳 鞛呺牓頃橃棳, 鞚挫爠 甏勴樃搿 霅橂弻鞎 鞓奠嫓雼.
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-彀戈碃: 歆濎澊 毵烄 鞎婋姅 甏勴樃臧 鞛堧姅 頂勲攴鸽灗鞚 霐旊矂旯呿暊 霑岇棎 毵れ毎 鞙犾毄頃╇媹雼!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 4.4: 鞐愲煬毳 靾橃爼頃橂姅 氚╇矔
-
-
- ** :s/old/new/g 頃橂┐ 'old' 毳 'new' 搿 旃橅櫂(SUBTITUTE)頃╇媹雼. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 欷勳棎 臧鞝鸽嫟 雴撿姷雼堧嫟.
-
- 2. :s/thee/the 毳 鞛呺牓頃 頉 <ENTER> 毳 旃╇媹雼. 鞚 氇呺牴鞚 攴 欷勳棎靹
- 觳橃潓鞙茧 氚滉铂霅 瓴冸 氚旉炯雼る姅 瓴冹棎 欤检潣頃橃嫮鞁滌槫.
-
- 3. 鞚措矆鞐愲姅 :s/thee/the/g 毳 鞛呺牓頃╇媹雼. 鞚措姅 攴 欷 鞝勳泊(globally)毳
- 旃橅櫂頃滊嫟電 瓴冹潉 鞚橂頃╇媹雼.
-
----> thee best time to see thee flowers is in thee spring.
-
- 4. 霊 欷 靷澊鞚 氇摖 氍胳瀽鞐挫棎 雽頃 旃橅櫂頃橂牑氅 雼れ潓瓿 臧欖澊 頃╇媹雼,
- :#,#s/old/new/g #,# 電 霊 欷勳潣 欷勲矆順鸽ゼ 霚豁暕雼堧嫟.
- :%s/old/new/g 韺岇澕 鞝勳泊鞐愳劀 氚滉铂霅 氇摖 瓴冹潉 旃橅櫂頃橂姅 瓴届毎鞛呺媹雼.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 4 鞖旍暯
-
-
- 1. CTRL-g 電 韺岇澕鞚 靸來儨鞕 韺岇澕 雮挫棎靹滌潣 順勳灛 鞙勳箻毳 響滌嫓頃╇媹雼.
- SHIFT-G 電 韺岇澕鞚 雭濎溂搿 鞚措彊頃╇媹雼. 欷勲矆順鸽ゼ 鞛呺牓頃 頉 SHIFT-G毳
- 鞛呺牓頃橂┐, 攴 欷勲 鞚措彊頃╇媹雼.
-
- 2. / 毳 鞛呺牓頃 頉 氍戈惮毳 鞛呺牓頃橂┐ 攴 氍戈惮毳 鞎勲灚氚╉枼鞙茧 彀眷姷雼堧嫟.
- ? 毳 鞛呺牓頃 頉 氍戈惮毳 鞛呺牓頃橂┐ 鞙楇癌頄レ溂搿 彀眷姷雼堧嫟.
- 瓴靸 頉, n 鞚 鞛呺牓頃橂┐ 臧欖潃 氚╉枼鞙茧 雼れ潓 氍戈惮毳 彀眷溂氅,
- Shift-N 鞚 鞛呺牓頃橂┐ 氚橂寑 氚╉枼鞙茧 彀眷姷雼堧嫟.
-
- 3. 旎れ劀臧 (,),[,],{,} 鞙勳棎 鞛堨潉 霑岇棎 % 毳 鞛呺牓頃橂┐ 靸侅潙頃橂姅 歆濎潉
- 彀眷晞臧戨媹雼.
-
- 4. 鞏措枻 欷勳棎 觳橃潓 霌膘灔頃橂姅 old毳 new搿 氚旉靖霠る┐ :s/old/new
- 頃 欷勳棎 霌膘灔頃橂姅 氇摖 old毳 new搿 氚旉靖霠る┐ :s/old/new/g
- 霊 欷 #,# 靷澊鞐愳劀 旃橅櫂鞚 頃橂牑氅 :#,#s/old/new/g
- 韺岇澕 雮挫潣 氇摖 氍戈惮毳 旃橅櫂頃橂牑氅 :%s/old/new/g
- 氚旉縺 霑岆雼 頇曥澑鞚 瓯办箻霠る┐ 'c'毳 攵欖棳靹 :%s/old/new/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.1: 鞕鸽秬 氇呺牴 鞁ろ枆頃橂姅 氚╇矔
-
-
- ** :! 鞚 鞛呺牓頃 頉 鞁ろ枆頃橂牑電 氇呺牴鞚 鞛呺牓頃橃嫮鞁滌槫. **
-
- 1. 旃滌垯頃 氇呺牴鞚 : 毳 鞛呺牓頃橂┐ 旎れ劀臧 頇旊┐ 鞎勲灅搿 鞚措彊頃╇媹雼. 氇呺牴鞚
- 鞛呺牓頃 靾 鞛堦矊 霅╇媹雼.
-
- 2. 鞚挫牅 ! (電愲倢響) 毳 鞛呺牓頃橃嫮鞁滌槫. 鞚措爣瓴 頃橂┐ 鞕鸽秬 靿 氇呺牴鞚 鞁ろ枆頃
- 靾 鞛堨姷雼堧嫟.
-
- 3. 鞁滍棙靷检晞 ! 雼れ潓鞐 ls 毳 鞛呺牓頃 頉 <ENTER> 毳 斐愲炒鞁嫓鞓. 靿 頂勲‖頂勴姼
- 鞐愳劀觳橂熂 霐旊爥韱犽Μ鞚 氇╇鞚 於滊牓霅 瓴冹瀰雼堧嫟. ls 臧 霃欖瀾頃橃 鞎婋姅雼る┐
- :!dir 鞚 鞁滊弰頃 氤挫嫮鞁滌槫.
-
-彀戈碃: 鞏措枻 鞕鸽秬 氇呺牴霃 鞚 氚╇矔鞙茧 鞁ろ枆頃 靾 鞛堨姷雼堧嫟.
-
-彀戈碃: 氇摖 : 氇呺牴鞚 <ENTER> 毳 斐愳暭 毵堧毽 霅╇媹雼.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.2: 氤措嫟 鞛愳劯頃 韺岇澕 鞝鞛
-
-
- ** 靾橃爼霅 雮挫毄鞚 韺岇澕搿 鞝鞛ロ晿霠る┐, :w FILENAME 頃橃嫮鞁滌槫. **
-
- 1. :!dir 霕愲姅 :!ls 毳 鞛呺牓頃橃棳 霐旊爥韱犽Μ鞚 毽姢韸鸽ゼ 鞏混柎鞓惦媹雼.
- 鞙勳潣 氇呺牴 頉 <ENTER>毳 斐愳暭頃滊嫟電 瓴冹潃 鞚措 鞎岅碃 鞛堨潉 瓴冹瀰雼堧嫟.
-
- 2. TEST 觳橂熂 臁挫灛頃橃 鞎婋姅 韺岇澕 鞚措鞚 頃橂倶 瓿犽ゴ鞁嫓鞓.
-
- 3. 鞚挫牅 :w TEST 霛缄碃 鞛呺牓頃橃嫮鞁滌槫. (TEST電 雼轨嫚鞚 靹犿儩頃 韺岇澕 鞚措鞛呺媹雼.)
-
- 4. 鞚措爣瓴 頃橂┐ 牍 旮胳灐鞚 韺岇澕 鞝勳泊毳 TEST霛茧姅 鞚措鞙茧 鞝鞛ロ暕雼堧嫟.
- 頇曥澑頃橂牑氅, :!dir 鞚 雼れ嫓 鞛呺牓頃橃棳, 霐旊爥韱犽Μ毳 靷错幋氤挫嫮鞁滌槫.
-
-彀戈碃: 牍旍潉 膦呺頃 頉, 牍旍潉 雼れ嫓 鞁ろ枆頃橃棳 TEST霛茧姅 韺岇澕鞚 鞐措┐, 攴 韺岇澕鞚
- 鞝鞛ロ枅鞚 霑岇檧 鞕勲步頌 臧欖潃 氤奠偓氤胳澕 瓴冹瀰雼堧嫟.
-
- 5. 鞚挫牅 攴 韺岇澕鞚 歆鞗侅嫓雼.
- (MS-DOS鞐愳劀): !del TEST
- (Unix鞐愳劀): !rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.3: 靹犿儩鞝侅溂搿 鞝鞛ロ晿電 氇呺牴
-
-
- ** 韺岇澕鞚 鞚茧秬毳 鞝鞛ロ晿霠る┐, :#,# w FILENAME 頃橃嫮鞁滌槫. **
-
- 1. 雼れ嫓 頃滊矆, :!dir 鞚措倶 !ls 毳 鞛呺牓頃橃棳 霐旊爥韱犽Μ鞚 氇╇鞚 氚涭晞鞓 頉
- TEST 臧欖潃 鞝來暕頃 鞚措鞚 靹犿儩頃╇媹雼.
-
- 2. 旎れ劀毳 鞚 韼橃澊歆鞚 觳橃潓鞙茧 鞓复 頉, Ctrl-g 毳 鞛呺牓頃橃棳 攴 欷勳潣 欷勲矆順鸽ゼ
- 鞎岇晞雰呺媹雼. 鞚 氩堩樃毳 旮办柕頃橃嫮鞁滌槫!
-
- 3. 鞚挫牅 鞚 韼橃澊歆鞚 毵堨毵夓溂搿 臧靹 Ctrl-g 毳 雼れ嫓 鞛呺牓頃橃嫮鞁滌槫. 鞚 欷勳潣
- 欷勲矆順 霕愴暅 旮办柕頃橃嫮鞁滌槫!
-
- 4. 鞏措枻 靹轨厴毵 韺岇澕搿 鞝鞛ロ晿霠る┐, :#,# w TEST 毳 鞛呺牓頃橂┐ 霅╇媹雼. 鞚 霑
- #,# 電 鞎勱箤 旮办柕頄堧崢 鞁滌瀾瓿 雭 欷勲矆順 鞛呺媹雼. TEST電 韺岇澕 鞚措鞛呺媹雼.
-
- 5. :!dir 鞚 鞚挫毄頃橃棳 韺岇澕鞚 毵岆摛鞏挫電旍 頇曥澑頃橃嫮鞁滌槫. 歆鞖办電 毵堨嫮鞁滌槫.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 5.4: 韺岇澕 鞚届柎霌れ澊旮, 頃╈箻旮
-
-
- ** 鞏措枻 韺岇澕鞚 雮挫毄鞚 靷届瀰頃橂牑氅, :r FILENAME 頃橃嫮鞁滌槫 **
-
- 1. :!dir 鞚 鞛呺牓頃橃棳 鞎勱箤 毵岆摖 TEST 韺岇澕鞚 攴鸽寑搿 鞛堧姅歆 頇曥澑頃橃嫮鞁滌槫.
-
- 2. 旎れ劀毳 鞚 韼橃澊歆鞚 觳橃潓鞙茧 鞗歆侅澊鞁嫓鞓.
-
-欤检潣: 3氩堨Ц 雼硠毳 鞁ろ枆頃橂┐, Lesson 5.3 鞚 氤搓矊 霅 瓴冹瀰雼堧嫟. 攴鸽爣瓴 霅橂┐
- 鞚 lesson鞙茧 雼れ嫓 雮措牑鞓れ嫮鞁滌槫.
-
- 3. 鞚挫牅 TEST 韺岇澕鞚 鞚届柎霌れ瀰鞁滊嫟. :r TEST 氇呺牴鞚 靷毄頃橃嫮鞁滌槫. TEST 電
- 韺岇澕鞚 鞚措鞛呺媹雼.
-
-彀戈碃: 鞚届柎霌れ澑 韺岇澕鞚 旎れ劀臧 鞙勳箻頃 歆鞝愳棎靹滊秬韯 雴撿澊瓴 霅╇媹雼.
-
- 4. 韺岇澕鞚 鞚届柎霌れ棳歆 瓴冹潉 頇曥澑頃橁赴 鞙勴暣, 霋る 鞚措彊頃挫劀 旮办〈 氩勳爠瓿 韺岇澕鞐愳劀
- 鞚届柎霌れ澑 氩勳爠, 鞚措爣瓴 Lesson 5.3 鞚 霊愲矆 氚橂车霅橃棃鞚岇潉 頇曥澑頃橃嫮鞁滌槫.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 5 鞖旍暯
-
-
- 1. :!command 毳 鞚挫毄頃橃棳 鞕鸽秬 氇呺牴鞚 鞁ろ枆頃╇媹雼.
-
- 鞙犾毄頃 鞓:
- (MS-DOS) (Unix)
- :!dir :!ls - 霐旊爥韱犽Μ鞚 氇╇鞚 氤挫棳欷雼.
- :!del FILENAME :!rm FILENAME - FILENAME鞚措澕電 韺岇澕鞚 歆鞖措嫟.
-
- 2. :w FILENAME 頃橂┐ 順勳灛 牍旍棎靹 靷毄頃橂姅 韺岇澕鞚 FILENAME鞚措澕電 鞚措鞙茧
- 霐旍姢韥棎 鞝鞛ロ暕雼堧嫟.
-
- 3. :#,#w FILENAME 頃橂┐ #攵韯 #旯岇鞚 欷勳潉 FILENAME鞚措澕電 韺岇澕搿 鞝鞛ロ暕雼堧嫟.
-
- 4. :r FILENAME 鞚 霐旍姢韥棎靹 FILENAME鞚措澕電 韺岇澕鞚 攵堧煬霌れ棳靹 旎れ劀 鞙勳箻
- 霋れ棎 順勳灛 韺岇澕鞚 歆戩柎雱l姷雼堧嫟.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.1: 靸 欷 鞐搓赴(OPEN) 氇呺牴
-
-
- ** o 毳 雸勲ゴ氅 旎れ劀 鞎勲灅鞐 欷勳潉 毵岆摛瓿 韼胳 氇摐臧 霅╇媹雼. **
-
- 1. 鞎勲灅鞐 ---> 搿 響滌嫓霅 欷勲 旎れ劀毳 鞓赴鞁嫓鞓.
-
- 2. o (靻岆鞛)毳 斐愳劀 旎れ劀 *鞎勲灅鞐* 欷勳潉 頃橂倶 鞐嫮鞁滌槫. 韼胳 氇摐臧 霅╇媹雼.
- Insert mode.
-
- 3. ---> 搿 響滌嫓霅 欷勳潉 氤奠偓頃 頉 <ESC> 毳 雸岆煬靹 韼胳 氇摐鞐愳劀 雮橃槫鞁嫓鞓.
-
----> After typing o the cursor is placed on the open line in Insert mode.
-
- 4. 旎れ劀 *鞙勳棎* 欷勳潉 頃橂倶 毵岆摐霠る┐, 靻岆鞛 o 雽鞁 雽氍胳瀽 O 毳 旃橂┐ 霅╇媹雼.
- 鞎勲灅 鞛堧姅 欷勳棎 雽頃 鞚 氇呺牴鞚 雮措牑氤挫嫮鞁滌槫.
-Open up a line above this by typing Shift-O while the cursor is on this line.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.2: 於旉皜(APPEND) 氇呺牴
-
-
- ** a 毳 雸勲ゴ氅 旎れ劀 *雼れ潓鞐* 旮鞚 鞛呺牓頃 靾 鞛堨姷雼堧嫟. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 觳矆歆 欷勳潣 雭濎溂搿 鞓箒雼堧嫟. 氇呺牴 氇摐鞐愳劀
- $ 毳 鞚挫毄頃橃嫮鞁滌槫.
-
- 2. 靻岆鞛 a 毳 旎れ劀 鞎勲灅 旮鞛 *雼れ潓*鞐 旮鞚 於旉皜頃 靾 鞛堨姷雼堧嫟.
- (雽氍胳瀽 A電 攴 欷勳潣 雭濎棎 於旉皜頃╇媹雼.)
-
-彀戈碃: 攴鸽爣瓴 頃橃嫓氅 瓿犾瀾 欷勳潣 雭濎棎 於旉皜毳 頃橁赴 鞙勴暣 i毳 雸勲ゴ瓿, 旎れ劀 鞎勲灅鞐
- 鞛堧崢 旮鞛愲ゼ 氚橂车頃橁碃, 旮鞚 雭检泴雱j碃, <ESC>毳 雸岆煬 氇呺牴 氇摐搿 霃岇晞鞕靹,
- 旎れ劀毳 鞓るジ飒届溂搿 鞓赴瓿 毵堨毵夓溂搿 x旯岇 雸岆煬鞎 頃橂姅 氩堦卑搿滌泙鞚 頂柬晿鞁
- 靾 鞛堨姷雼堧嫟.
-
- 3. 鞚挫牅 觳 欷勳潉 鞕勳劚頃橃嫮鞁滌槫. 於旉皜 氇呺牴鞚 韰嶌姢韸戈皜 鞛呺牓霅橂姅 鞙勳箻 鞕胳棎電
- 韼胳 氇摐鞕 鞕勳爠頌 臧欕嫟電 瓴冹潉 鞙犽厫頃橃嫮鞁滌槫.
-
----> This line will allow you to practice
----> This line will allow you to practice appending text to the end of a line.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.3: 旃橅櫂(REPLACE) 鞚 雼るジ 氩勳爠
-
-
- ** 雽氍胳瀽 R 鞚 鞛呺牓頃橂┐ 頃橂倶 鞚挫儊鞚 旮鞛愲ゼ 氚旉縺 靾 鞛堨姷雼堧嫟. **
-
- 1. 旎れ劀毳 ---> 搿 響滌嫓霅 觳矆歆 欷勲 鞓赴鞁嫓鞓.
-
- 2. 旎れ劀毳 ---> 搿 響滌嫓霅 霊愲矆歆 欷勱臣 雼るジ 觳矆歆 雼柎 鞙勲 鞓赴鞁嫓鞓.
- ('last' 鞛呺媹雼.)
-
- 3. R 鞚 鞛呺牓頃 頉 觳矆歆 欷勳潣 鞓堨爠 韰嶌姢韸 鞙勳棎 靸堧鞖 旮鞚 鞛呺牓頃橃棳
- 雮橂ǜ歆 雮挫毄鞚 霊愲矆歆 欷勱臣 臧欖晞歆霃勲 氚旉繅鞁滊嫟.
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. <ESC> 毳 雸岆煬靹 雮橁皜氅, 氚旊岇 鞎婌潃 韰嶌姢韸鸽姅 攴鸽寑搿 雮矊 霅╇媹雼.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 6.4: 鞓奠厴 靹れ爼(SET)
-
- ** 彀娟赴雮 氚旉靖旮办棎靹 雽靻岆鞛 甑秳鞚 鞐嗢暊旮 鞙勴暣 鞓奠厴鞚 靹れ爼頃╇媹雼 **
-
- 1. 雼れ潓鞚 鞛呺牓頃橃棳 'ignore' 毳 彀眷溂鞁嫓鞓:
- /ignore
- n 韨るゼ 鞚挫毄頃橃棳 鞐煬氩 氚橂车頃橃嫮鞁滌槫.
-
- 2. 'ic' (雽靻岆鞛 甑硠 鞎堩暔, Ignore case) 鞓奠厴鞚 靹れ爼頃橃嫮鞁滌槫:
- :set ic
-
- 3. n 韨るゼ 雸岆煬靹 'ignore' 毳 雼れ嫓 彀眷晞氤挫嫮鞁滌槫.
- n 韨るゼ 瓿勳啀 雸岆煬靹 鞐煬氩 彀眷溂鞁嫓鞓.
-
- 4. 'hlsearch' 鞕 'incsearch' 鞓奠厴鞚 靹れ爼頃╈嫓雼.
- :set hls is
-
- 5. 彀娟赴 氇呺牴鞚 雼れ嫓 鞛呺牓頃橃棳, 鞏措枻 鞚检澊 鞚检柎雮橂姅歆 頇曥澑頃 氤挫嫮鞁滌槫:
- /ignore
-
- 6. 彀眷潃 雮挫毄鞚 臧曥“(HIGHLIGHT)霅 瓴冹潉 鞐嗢暊霠る┐, 雼れ潓瓿 臧欖澊 鞛呺牓頃╇媹雼:
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 6 鞖旍暯
-
-
- 1. o 毳 鞛呺牓頃橂┐ 旎れ劀 *鞎勲灅鞐* 頃 欷勳澊 鞐措Μ氅, 旎れ劀電 韼胳 氇摐搿
- 鞐措Π 欷 鞙勳棎 鞙勳箻頃橁矊 霅╇媹雼.
- 雽氍胳瀽 O 毳 鞛呺牓頃橂┐ 旎れ劀臧 鞛堧姅 欷勳潣 *鞙勲* 靸 欷勳潉 鞐搓矊 霅╇媹雼.
-
- 2. a 毳 鞛呺牓頃橂┐ 旎れ劀 *雼れ潓鞐* 旮鞚 鞛呺牓頃 靾 鞛堨姷雼堧嫟.
- 雽氍胳瀽 A 毳 鞛呺牓頃橂┐ 鞛愲彊鞙茧 攴 欷勳潣 雭濎棎 旮鞛愲ゼ 於旉皜頃橁矊 霅╇媹雼.
-
- 3. 雽氍胳瀽 R 鞚 鞛呺牓頃橂┐ <ESC> 毳 雸岆煬靹 雮橁皜旮 鞝勱箤歆 氚旉靖旮 氇摐臧 霅╇媹雼.
-
- 4. ":set xxx" 毳 頃橂┐ "xxx" 鞓奠厴鞚 靹れ爼霅╇媹雼.
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 7: 鞓澕鞚 霃勳泙毵 氇呺牴
-
-
- ** 鞓澕鞚 霃勳泙毵 鞁滌姢韰 靷毄頃橁赴 **
-
- 牍旍潃 韽 雱撿潃 鞓澕鞚 霃勳泙毵 鞁滌姢韰滌潉 鞝滉车頃╇媹雼. 霃勳泙毵愳潉 氤措牑氅,
- 雼れ潓 靹戈皜歆 欷 頃橂倶毳 鞁滊弰頃措炒鞁嫓鞓:
- - <HELP> 韨るゼ 雸勲ジ雼. (韨り皜 鞛堧姅 瓴届毎)
- - <F1> 韨るゼ 雸勲ジ雼. (韨り皜 鞛堧姅 瓴届毎)
- - :help <ENTER> 霛缄碃 鞛呺牓頃滊嫟.
-
- 霃勳泙毵 彀届潉 雼溂霠る┐ :q <ENTER> 霛缄碃 鞛呺牓頃橃嫮鞁滌槫.
-
- ":help" 霛茧姅 氇呺牴鞐 鞚胳瀽毳 欤茧┐ 鞏措枻 欤检牅鞐 甏頃 霃勳泙毵愳潉 彀眷潉 靾 鞛堨姷雼堧嫟.
- 雼れ潓 氇呺牴鞚 雮措牑 氤挫嫮鞁滌槫. ( <ENTER> 韨るゼ 雸勲ゴ電 瓴冹潉 鞛婌 毵堨嫮鞁滌槫.)
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LESSON 8: 鞁滌瀾 鞀ろ伂毽巾姼 毵岆摛旮
-
- ** 牍旍潣 旮半姤 旒滉赴 **
-
- 牍旍潃 Vi 氤措嫟 頉敩 毵庫潃 旮半姤鞚 臧歆瓿 鞛堨毵, 雽攵攵勳潃 旮半掣鞝侅溂搿 鞛戨彊頃橃
- 鞎婌姷雼堧嫟. 雿 毵庫潃 旮半姤鞚 鞃炒霠る┐, "vimrc" 霛茧姅 韺岇澕鞚 毵岆摛鞏挫暭 頃╇媹雼.
-
- 1. "vimrc" 韺岇澕鞚 靾橃爼頃╈嫓雼. 鞚 韺岇澕鞚 靷毄頃橂姅 鞁滌姢韰滌棎 霐半澕 雼る雼堧嫟:
- 1. Start editing the "vimrc" file, this depends on your system:
- :edit ~/.vimrc Unix鞚 瓴届毎
- :edit $VIM/_vimrc MS-Windows鞚 瓴届毎
-
- 2. 鞚挫牅 "vimrc"鞚 鞓堨牅毳 鞚届柎霌れ瀰雼堧嫟:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 雼れ潓瓿 臧欖澊 頃橃棳 韺岇澕鞚 鞝鞛ロ暕雼堧嫟:
-
- :write
-
- 雼れ潓 氩堨棎 牍旍潉 鞁滌瀾頃橂┐, 甑 臧曥“(syntax highlighting)鞚 靷毄霅 瓴冹瀰雼堧嫟.
- 氇摖 鞗愴晿電 靹れ爼鞚 鞚 "vimrc" 韺岇澕鞐 雱l柎霊 靾 鞛堨姷雼堧嫟.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 鞚搓矁鞙茧 牍 旮胳灐鞚措ゼ 毵堨供雼堧嫟. 鞚 旮胳灐鞚措姅 牍 韼胳旮办棎 雽頃 臧勲灥頃 臧滌殧毳
- 氤挫棳欤缄赴 鞙勴暅 鞚橂弰搿 鞝滌瀾霅橃棃鞙茧┌, 鞚 韼胳旮半ゼ 鞝曤 臧勲嫧頌 靷毄頃橁赴鞐
- 於╇秳頃 肟愳瀰雼堧嫟. 牍旍棎電 鞚 旮胳灐鞚挫檧電 牍勱祼頃 靾 鞐嗢潉 毵岉伡 頉敩 毵庫潃 氇呺牴鞚
- 鞛堨姷雼堧嫟. 雼れ潓 靷毄鞛 毵る壌鞏检潉 鞚届溂鞁嫓鞓: ":help user-manual"
-
- 氤措嫟 鞛愳劯頌 鞚疥碃 瓿惦秬頃橂牑氅, 雼れ潓 毂呾潉 於旍矞頃 霌滊雼堧嫟:
- Vim - Vi Improved - by Steve Oualline
- 於滍寪靷: New Riders
- 鞚 毂呾潃 鞕勳爠頌 牍旍棎 雽頃挫劀毵 雼る(瓿 鞛堨姷雼堧嫟. 韸鬼瀳 齑堧炒鞛愲摛鞐愱矊 鞙犾毄頃╇媹雼.
- 毵庫潃 鞓堨牅鞕 攴鸽鞚 鞛堨姷雼堧嫟.
- 雼れ潓鞚 彀戈碃頃橃嫮鞁滌槫: http://iccf-holland.org/click5.html
-
- 雼れ潓 毂呾潃 膦 鞓る灅霅 毂呾溂搿 牍旊炒雼る姅 Vi鞐 雽頃 雼る(瓿 鞛堨毵, 鞐嫓 於旍矞頃 毵
- 頃╇媹雼:
- Learning the Vi Editor - by Linda Lamb
- 於滍寪靷: O'Reilly & Associates Inc.
- Vi搿 頃橁碃 鞁鹅潃 瓯办潣 氇摖 瓴冹棎 雽頃 鞎 靾 鞛堧姅 膦嬱潃 毂呾瀰雼堧嫟.
- 鞐劘氩堨Ц 臧滌爼韺愳潃 牍旍棎 甏頃 雮挫毄鞚 韽暔頃橁碃 鞛堨姷雼堧嫟.
-
- 鞚 旮胳灐鞚措姅 Colorado School of Mines鞚 Michael C. Pierce 鞕
- Robert K. Ware 臧 Colorado State University鞚 Charles Smith 鞚 鞎勳澊霐旍柎鞐
- 彀╈晥頃橃棳 鞃检姷雼堧嫟.
- . E-mail: bware@mines.colorado.edu.
-
- Modified for Vim by Bram Moolenaar.
-
- 鞚 氍胳劀鞚 頃滉淡鞏 氩勳爠鞐 甏頃 氍胳潣電 雼れ潓 靷澊韸鸽 頃挫<鞁嫓鞓.
- http://wiki.kldp.org/wiki.php/VimTutorKo
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.no b/runtime/tutor/tutor.no
deleted file mode 100644
index 17178df78..000000000
--- a/runtime/tutor/tutor.no
+++ /dev/null
@@ -1,973 +0,0 @@
-===============================================================================
-= V e l k o m m e n t i l i n n f r i n g e n i V i m -- Ver. 1.7 =
-===============================================================================
-
- Vim er en meget kraftig editor med mange kommandoer, alt for mange til
- kunne g gjennom alle i en innf鴕ing som denne. Den er beregnet p
- sette deg inn i bruken av nok kommandoer s du vil v鎟e i stand til lett
- kunne bruke Vim som en editor til alle form錶.
-
- Tiden som kreves for g gjennom denne innf鴕ingen tar ca. 25-30
- minutter, avhengig av hvor mye tid du bruker til eksperimentering.
-
- MERK:
- Kommandoene i leksjonene vil modifisere teksten. Lag en kopi av denne
- filen som du kan 鴙e deg p (hvis du kj鴕te 玽imtutor-kommandoen, er
- dette allerede en kopi).
-
- Det er viktig huske at denne innf鴕ingen er beregnet p l鎟ing gjennom
- bruk. Det betyr at du m utf鴕e kommandoene for l鎟e dem skikkelig.
- Hvis du bare leser teksten, vil du glemme kommandoene!
-
- F鴕st av alt, sjekk at 獵aps Lock IKKE er aktiv og trykk 玧-tasten for
- flytte mark鴕en helt til leksjon 1.1 fyller skjermen.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 1.1: FLYTTING AV MARK豏EN
-
-
- ** For flytte mark鴕en, trykk tastene h, j, k, l som vist. **
- ^
- k Tips: h-tasten er til venstre og flytter til venstre.
- < h l > l-tasten er til h鴜re og flytter til h鴜re.
- j j-tasten ser ut som en pil som peker nedover.
- v
- 1. Flytt mark鴕en rundt p skjermen til du har f錿t det inn i fingrene.
-
- 2. Hold inne nedovertasten (j) til den repeterer.
- N vet du hvordan du beveger deg til neste leksjon.
-
- 3. G til leksjon 1.2 ved hjelp av nedovertasten.
-
-Merk: Hvis du blir usikker p noe du har skrevet, trykk <ESC> for g til
- normalmodus. Skriv deretter kommandoen du 鴑sket p nytt.
-
-Merk: Piltastene skal ogs virke. Men ved bruke hjkl vil du v鎟e i stand til
- bevege mark鴕en mye raskere n錼 du er blitt vant til det. Helt sant!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 1.2: AVSLUTTE VIM
-
-
- !! MERK: F鴕 du utf鴕er noen av punktene nedenfor, les hele leksjonen!!
-
- 1. Trykk <ESC>-tasten (for forsikre deg om at du er i normalmodus).
-
- 2. Skriv: :q! <ENTER>.
- Dette avslutter editoren og FORKASTER alle forandringer som du har gjort.
-
- 3. N錼 du ser kommandolinjen i skallet, skriv kommandoen som startet denne
- innf鴕ingen. Den er: vimtutor <ENTER>
-
- 4. Hvis du er sikker p at du husker dette, utf鴕 punktene 1 til 3 for
- avslutte og starte editoren p nytt.
-
-MERK: :q! <ENTER> forkaster alle forandringer som du gjorde. I l鴓et av noen
- f leksjoner vil du l鎟e hvordan du lagrer forandringene til en fil.
-
- 5. Flytt mark鴕en ned til leksjon 1.3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 1.3: REDIGERING AV TEKST -- SLETTING
-
-
- ** Trykk x for slette tegnet under mark鴕en. **
-
- 1. Flytt mark鴕en til den f鴕ste linjen merket med --->.
-
- 2. For ordne feilene p linjen, flytt mark鴕en til den er opp tegnet som
- skal slettes.
-
- 3. Trykk tasten x for slette det u鴑skede tegnet.
-
- 4. Repeter punkt 2 til 4 til setningen er lik den som er under.
-
----> Hessstennnn brrr錽nudddde ii gaaata.
----> Hesten br錽nudde i gata.
-
- 5. N som linjen er korrekt, g til leksjon 1.4.
-
-MERK: N錼 du g錼 gjennom innf鴕ingen, ikke bare pr鴙 huske kommandoene, men
- bruk dem helt til de sitter.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 1.4: REDIGERING AV TEKST -- INNSETTING
-
-
- ** Trykk i for sette inn tekst. **
-
- 1. Flytt mark鴕en til den f鴕ste linjen som er merket med --->.
-
- 2. For gj鴕e den f鴕ste linjen lik den andre, flytt mark鴕en til den st錼
- p tegnet ETTER posisjonen der teksten skal settes inn.
-
- 3. Trykk i og skriv inn teksten som mangler.
-
- 4. Etterhvert som hver feil er fikset, trykk <ESC> for returnere til
- normalmodus. Repeter punkt 2 til 4 til setningen er korrekt.
-
----> Det er tkst som mnglr .
----> Det er ganske mye tekst som mangler her.
-
- 5. N錼 du f鴏er deg komfortabel med sette inn tekst, g til oppsummeringen
- nedenfor.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 1.5: REDIGERING AV TEKST -- LEGGE TIL
-
-
- ** Trykk A for legge til tekst. **
-
- 1. Flytt mark鴕en til den f鴕ste linjen nedenfor merket --->.
- Det har ikke noe si hvor mark鴕en er plassert p den linjen.
-
- 2. Trykk A og skriv inn det som skal legges til.
-
- 3. N錼 teksten er lagt til, trykk <ESC> for returnere til normalmodusen.
-
- 4. Flytt mark鴕en til den andre linjen markert med ---> og repeter steg 2 og
- 3 for reparere denne setningen.
-
----> Det mangler noe tekst p
- Det mangler noe tekst p denne linjen.
----> Det mangler ogs litt tek
- Det mangler ogs litt tekst p denne linjen.
-
- 5. N錼 du f鴏er at du behersker legge til tekst, g til leksjon 1.6.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 1.6: REDIGERE EN FIL
-
-
- ** Bruk :wq for lagre en fil og avslutte. **
-
- !! MERK: F鴕 du utf鴕er noen av stegene nedenfor, les hele denne leksjonen!!
-
- 1. Avslutt denne innf鴕ingen som du gjorde i leksjon 1.2: :q!
-
- 2. Skriv denne kommandoen p kommandolinja: vim tutor <ENTER>
- 玽im er kommandoen for starte Vim-editoren, 玹utor er navnet p fila
- som du vil redigere. Bruk en fil som kan forandres.
-
- 3. Sett inn og slett tekst som du l鎟te i de foreg錯nde leksjonene.
-
- 4. Lagre filen med forandringene og avslutt Vim med: :wq <ENTER>
-
- 5. Start innf鴕ingen p nytt og flytt ned til oppsummeringen som f鴏ger.
-
- 6. Etter ha lest og forst錿t stegene ovenfor: Sett i gang.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 1
-
-
- 1. Mark鴕en beveges ved hjelp av piltastene eller hjkl-tastene.
- h (venstre) j (ned) k (opp) l (h鴜re)
-
- 2. For starte Vim fra skall-kommandolinjen, skriv: vim FILNAVN <ENTER>
-
- 3. For avslutte Vim, skriv: <ESC> :q! <ENTER> for forkaste endringer.
- ELLER skriv: <ESC> :wq <ENTER> for lagre forandringene.
-
- 4. For slette tegnet under mark鴕en, trykk: x
-
- 5. For sette inn eller legge til tekst, trykk:
- i skriv innsatt tekst <ESC> sett inn f鴕 mark鴕en
- A skriv tillagt tekst <ESC> legg til p slutten av linjen
-
-MERK: N錼 du trykker <ESC> g錼 du til normalmodus eller du avbryter en u鴑sket
- og delvis fullf鴕t kommando.
-
- N kan du g videre til leksjon 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 2.1: SLETTEKOMMANDOER
-
-
- ** Trykk dw for slette et ord. **
-
- 1. Trykk <ESC> for v鎟e sikker p at du er i normalmodus.
-
- 2. Flytt mark鴕en til den f鴕ste linjen nedenfor merket --->.
-
- 3. Flytt mark鴕en til begynnelsen av ordet som skal slettes.
-
- 4. Trykk dw og ordet vil forsvinne.
-
-MERK: Bokstaven d vil komme til syne p den nederste linjen p skjermen n錼
- du skriver den. Vim venter p at du skal skrive w . Hvis du ser et annet
- tegn enn d har du skrevet noe feil; trykk <ESC> og start p nytt.
-
----> Det er agurk tre ord eple som ikke h鴕er p鎟e hjemme i denne setningen.
----> Det er tre ord som ikke h鴕er hjemme i denne setningen.
-
- 5. Repeter punkt 3 og 4 til den f鴕ste setningen er lik den andre. G
- deretter til leksjon 2.2.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 2.2: FLERE SLETTEKOMMANDOER
-
-
- ** Trykk d$ for slette til slutten av linjen. **
-
- 1. Trykk <ESC> for v鎟e sikker p at du er i normalmodus.
-
- 2. Flytt mark鴕en til linjen nedenfor merket --->.
-
- 3. Flytt mark鴕en til punktet der linjen skal kuttes (ETTER f鴕ste punktum).
-
- 4. Trykk d$ for slette alt til slutten av linjen.
-
----> Noen skrev slutten p linjen en gang for mye. linjen en gang for mye.
-
- 5. G til leksjon 2.3 for forst hva som skjer.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 2.3: OM OPERATORER OG BEVEGELSER
-
-
- Mange kommandoer som forandrer teksten er laget ut i fra en operator og en
- bevegelse. Formatet for en slettekommando med sletteoperatoren d er:
-
- d bevegelse
-
- Der:
- d - er sletteoperatoren.
- bevegelse - er hva operatoren vil opere p (listet nedenfor).
-
- En kort liste med bevegelser:
- w - til starten av det neste ordet, UNNTATT det f鴕ste tegnet.
- e - til slutten av det n鍁鎟ende ordet, INKLUDERT det siste tegnet.
- $ - til slutten av linjen, INKLUDERT det siste tegnet.
-
- Ved skrive de vil alts alt fra mark鴕en til slutten av ordet bli
- slettet.
-
-MERK: Ved skrive kun bevegelsen i normalmodusen uten en operator vil
- mark鴕en flyttes som spesifisert.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKSJON 2.4: BRUK AV TELLER FOR EN BEVEGELSE
-
-
- ** Ved skrive et tall foran en bevegelse repeterer den s mange ganger. **
-
- 1. Flytt mark鴕en til starten av linjen markert ---> nedenfor.
-
- 2. Skriv 2w for flytte mark鴕en to ord framover.
-
- 3. Skriv 3e for flytte mark鴕en framover til slutten av det tredje
- ordet.
-
- 4. Skriv 0 (null) for flytte til starten av linjen.
-
- 5. Repeter steg 2 og 3 med forskjellige tall.
-
----> Dette er en linje med noen ord som du kan bevege deg rundt p.
-
- 6. G videre til leksjon 2.5.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 2.5: BRUK AV ANTALL FOR SLETTE MER
-
-
- ** Et tall sammen med en operator repeterer den s mange ganger. **
-
- I kombinasjonen med sletteoperatoren og en bevegelse nevnt ovenfor setter du
- inn antall f鴕 bevegelsen for slette mer:
- d nummer bevegelse
-
- 1. Flytt mark鴕en til det f鴕ste ordet med STORE BOKSTAVER p linjen markert
- med --->.
-
- 2. Skriv 2dw for slette de to ordene med store bokstaver.
-
- 3. Repeter steg 1 og 2 med forskjelling antall for slette de etterf鴏gende
- ordene som har store bokstaver.
-
----> Denne ABC DE linjen FGHI JK LMN OP er n Q RS TUV litt mer lesbar.
-
-MERK: Et antall mellom operatoren d og bevegelsen virker p samme m錿e som
- bruke bevegelsen uten en operator.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 2.6: OPERERE P LINJER
-
-
- ** Trykk dd for slette en hel linje. **
-
- P grunn av at sletting av linjer er mye brukt, fant utviklerne av Vi ut at
- det vil v鎟e lettere rett og slett trykke to d-er for slette en linje.
-
- 1. Flytt mark鴕en til den andre linjen i verset nedenfor.
- 2. Trykk dd slette linjen.
- 3. Flytt deretter til den fjerde linjen.
- 4. Trykk 2dd for slette to linjer.
-
----> 1) Roser er r鴇e,
----> 2) Gj鴕me er g鴜,
----> 3) Fioler er bl,
----> 4) Jeg har en bil,
----> 5) Klokker viser tiden,
----> 6) Druer er s鴗e
----> 7) Og du er likes.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 2.7: ANGRE-KOMMANDOEN
-
-
- ** Trykk u for angre siste kommando, U for fikse en hel linje. **
-
- 1. Flytt mark鴕en til linjen nedenfor merket ---> og plasser den p den
- f鴕ste feilen.
- 2. Trykk x for slette det f鴕ste u鴑skede tegnet.
- 3. Trykk s u for angre den siste utf鴕te kommandoen.
- 4. Deretter ordner du alle feilene p linjene ved bruke kommandoen x .
- 5. Trykk n en stor U for sette linjen tilbake til det den var
- originalt.
- 6. Trykk u noen ganger for angre U og foreg錯nde kommandoer.
- 7. Deretter trykker du CTRL-R (hold CTRL nede mens du trykker R) noen
- ganger for gjenopprette kommandoene (omgj鴕e angrekommandoene).
-
----> RReparer feiilene p邋 denne linnnjen oog erssstatt dem meed angre.
-
- 8. Dette er meget nyttige kommandoer. N kan du g til oppsummeringen av
- leksjon 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 2
-
-
- 1. For slette fra mark鴕en fram til det neste ordet, trykk: dw
- 2. For slette fra mark鴕en til slutten av en linje, trykk: d$
- 3. For slette en hel linje, trykk: dd
-
- 4. For repetere en bevegelse, sett et nummer foran: 2w
- 5. Formatet for en forandringskommando er:
- operator [nummer] bevegelse
- der:
- operator - hva som skal gj鴕es, f.eks. d for slette
- [nummer] - et valgfritt antall for repetere bevegelsen
- bevegelse - hva kommandoen skal operere p, eksempelvis w (ord),
- $ (til slutten av linjen) og s videre.
-
- 6. For g til starten av en linje, bruk en null: 0
-
- 7. For angre tidligere endringer, skriv: u (liten u)
- For angre alle forandringer p en linje, skriv: U (stor U)
- For omgj鴕e angringen, trykk: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 3.1: 獿IM INN-KOMMANDOEN
-
-
- ** Trykk p for lime inn tidligere slettet tekst etter mark鴕en **
-
- 1. Flytt mark鴕en til den f鴕ste linjen med ---> nedenfor.
-
- 2. Trykk dd for slette linjen og lagre den i et Vim-register.
-
- 3. Flytt mark鴕en til c)-linjen, OVER posisjonen linjen skal settes inn.
-
- 4. Trykk p for legge linjen under mark鴕en.
-
- 5. Repeter punkt 2 til 4 helt til linjene er i riktig rekkef鴏ge.
-
----> d) Kan du ogs l鎟e?
----> b) Fioler er bl,
----> c) Intelligens m l鎟es,
----> a) Roser er r鴇e,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 3.2: 獷RSTATT-KOMMANDOEN
-
-
- ** Trykk rx for erstatte tegnet under mark鴕en med x. **
-
- 1. Flytt mark鴕en til den f鴕ste linjen nedenfor merket --->.
-
- 2. Flytt mark鴕en s den st錼 opp den f鴕ste feilen.
-
- 3. Trykk r og deretter tegnet som skal v鎟e der.
-
- 4. Repeter punkt 2 og 3 til den f鴕ste linjen er lik den andre.
-
----> Da dfnne lynjxn ble zkrevet, var det n鴈n som tjykket feite taster!
----> Da denne linjen ble skrevet, var det noen som trykket feile taster!
-
- 5. G videre til leksjon 3.2.
-
-MERK: Husk at du b鴕 l鎟e ved BRUKE, ikke pugge.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 3.3: 獸ORANDRE-OPERATOREN
-
-
- ** For forandre til slutten av et ord, trykk ce . **
-
- 1. Flytt mark鴕en til den f鴕ste linjen nedenfor som er merket --->.
-
- 2. Plasser mark鴕en p u i 玪ubjwr.
-
- 3. Trykk ce og det korrekte ordet (i dette tilfellet, skriv 玦njen).
-
- 4. Trykk <ESC> og g til det neste tegnet som skal forandres.
-
- 5. Repeter punkt 3 og 4 helt til den f鴕ste setningen er lik den andre.
-
----> Denne lubjwr har noen wgh som m forkw錺 med 玣or鎘zryas-kommandoen.
----> Denne linjen har noen ord som m forandres med 玣orandre-kommandoen.
-
-V鎟 oppmerksom p at ce sletter ordet og g錼 inn i innsettingsmodus.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 3.4: FLERE FORANDRINGER VED BRUK AV c
-
-
- ** Forandringskommandoen blir brukt med de samme bevegelser som 玸lett. **
-
- 1. Forandringsoperatoren fungerer p samme m錿e som 玸lett. Formatet er:
-
- c [nummer] bevegelse
-
- 2. Bevegelsene er de samme, som for eksempel w (ord) og $ (slutten av en
- linje).
-
- 3. G til den f鴕ste linjen nedenfor som er merket --->.
-
- 4. Flytt mark鴕en til den f鴕ste feilen.
-
- 5. Skriv c$ og skriv resten av linjen lik den andre og trykk <ESC>.
-
----> Slutten p denne linjen trenger litt hjelp for gj鴕e den lik den neste.
----> Slutten p denne linjen trenger bli rettet ved bruk av c$-kommandoen.
-
-MERK: Du kan bruke slettetasten for rette feil mens du skriver.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 3
-
-
- 1. For legge tilbake tekst som nettopp er blitt slettet, trykk p . Dette
- limer inn den slettede teksten ETTER mark鴕en (hvis en linje ble slettet
- vil den bli limt inn p linjen under mark鴕en).
-
- 2. For erstatte et tegn under mark鴕en, trykk r og deretter tegnet som
- du vil ha der.
-
- 3. Forandringsoperatoren lar deg forandre fra mark鴕en til dit bevegelsen
- tar deg. Det vil si, skriv ce for forandre fra mark鴕en til slutten
- av ordet, c$ for forandre til slutten av linjen.
-
- 4. Formatet for 玣orandre er:
-
- c [nummer] bevegelse
-
-N kan du g til neste leksjon.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 4.1: POSISJONERING AV MARK豏EN OG FILSTATUS
-
- ** Trykk CTRL-G for vise posisjonen i filen og filstatusen.
- Trykk G for g til en spesifikk linje i filen. **
-
- Merk: Les hele leksjonen f鴕 du utf鴕er noen av punktene!
-
- 1. Hold nede Ctrl-tasten og trykk g . Vi kaller dette CTRL-G. En melding
- vil komme til syne p bunnen av skjermen med filnavnet og posisjonen i
- filen. Husk linjenummeret for bruk i steg 3.
-
-Merk: Du kan se mark鴕posisjonen i nederste h鴜re hj鴕ne av skjermen. Dette
- skjer n錼 玶uler-valget er satt (forklart i leksjon 6).
-
- 2. Trykk G for g til bunnen av filen.
- Skriv gg for g til begynnelsen av filen.
-
- 3. Skriv inn linjenummeret du var p og deretter G . Dette vil f鴕e deg
- tilbake til linjen du var p da du f鴕st trykket CTRL-G.
-
- 4. Utf鴕 steg 1 til 3 hvis du f鴏er deg sikker p prosedyren.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 4.2: S豄EKOMMANDOEN
-
- ** Skriv / etterfulgt av en s鴎estreng som du vil lete etter. **
-
- 1. Trykk / n錼 du er i normalmodusen. Legg merke til at skr錽treken og
- mark鴕en kommer til syne p bunnen av skjermen i likhet med
- :-kommandoene.
-
- 2. Skriv 玣eeeiil og trykk <ENTER>. Dette er teksten du vil lete etter.
-
- 3. For finne neste forekomst av s鴎estrengen, trykk n .
- For lete etter samme s鴎eteksten i motsatt retning, trykk N .
-
- 4. For lete etter en tekst bakover i filen, bruk ? istedenfor / .
-
- 5. For g tilbake til der du kom fra, trykk CTRL-O (Hold Ctrl nede mens
- du trykker bokstaven o ). Repeter for g enda lengre tilbake. CTRL-I
- g錼 framover.
-
----> 玣eeeiil er ikke m錿en skrive 玣eil p, feeeiil er helt feil.
-Merk: N錼 s鴎ingen n錼 slutten av filen, vil den fortsette fra starten unntatt
- hvis 玾rapscan-valget er resatt.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 4.3: FINN SAMSVARENDE PARENTESER
-
-
- ** Trykk % for finne en samsvarende ), ] eller } . **
-
- 1. Plasser mark鴕en p en (, [ eller { p linjen nedenfor merket --->.
-
- 2. Trykk % .
-
- 3. Mark鴕en vil g til den samsvarende parentesen eller hakeparentesen.
-
- 4. Trykk % for flytte mark鴕en til den andre samsvarende parentesen.
-
- 5. Flytt mark鴕en til en annen (, ), [, ], { eller } og se hva % gj鴕.
-
----> Dette ( er en testlinje med (, [ ] og { } i den )).
-
-Merk: Dette er veldig nyttig til feils鴎ing i programmer som har ubalansert
- antall parenteser!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 4.4: ERSTATT-KOMMANDOEN
-
-
- ** Skriv :s/gammel/ny/g for erstatte 玤ammel med 玭y. **
-
- 1. Flytt mark鴕en til linjen nedenfor som er merket med --->.
-
- 2. Skriv :s/deen/den/ <ENTER> . Legg merke til at denne kommandoen bare
- forandrer den f鴕ste forekomsten av 玠een p linjen.
-
- 3. Skriv :s/deen/den/g . N錼 g-flagget legges til, betyr dette global
- erstatning p linjen og erstatter alle forekomster av 玠een p linjen.
-
----> deen som kan kaste deen tyngste steinen lengst er deen beste
-
- 4. For erstatte alle forekomster av en tekststreng mellom to linjer,
- skriv :#,#s/gammel/ny/g der #,# er linjenumrene p de to linjene for
- linjeomr錮et erstatningen skal gj鴕es.
- Skriv :%s/gammel/ny/g for erstatte tekst i hele filen.
- Skriv :%s/gammel/ny/gc for finne alle forekomster i hele filen, og
- deretter sp鴕re om teksten skal erstattes eller
- ikke.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 4
-
-
- 1. Ctrl-G viser n鍁鎟ende posisjon i filen og filstatusen.
- G g錼 til slutten av filen.
- nummer G g錼 til det linjenummeret.
- gg g錼 til den f鴕ste linjen.
-
- 2. Skriv / etterfulgt av en s鴎etekst for lete FRAMOVER etter teksten.
- Skriv ? etterfulgt av en s鴎etekst for lete BAKOVER etter teksten.
- Etter et s鴎 kan du trykke n for finne neste forekomst i den samme
- retningen eller N for lete i motsatt retning.
- CTRL-O tar deg tilbake til gamle posisjoner, CTRL-I til nyere posisjoner.
-
- 3. Skriv % n錼 mark鴕en st錼 p en (, ), [, ], { eller } for finne den
- som samsvarer.
-
- 4. Erstatte 玤ammel med f鴕ste 玭y p en linje: :s/gammel/ny
- Erstatte alle 玤ammel med 玭y p en linje: :s/gammel/ny/g
- Erstatte tekst mellom to linjenumre: :#,#s/gammel/ny/g
- Erstatte alle forekomster i en fil: :%s/gammel/ny/g
- For godkjenne hver erstatning, legg til 玞: :%s/gammel/ny/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 5.1: HVORDAN UTF豏E EN EKSTERN KOMMANDO
-
-
- ** Skriv :! etterfulgt av en ekstern kommando for utf鴕e denne. **
-
- 1. Skriv den velkjente kommandoen : for plassere mark鴕en p bunnen av
- skjermen. Dette lar deg skrive en kommandolinjekommando.
-
- 2. N kan du skrive tegnet ! . Dette lar deg utf鴕e en hvilken som helst
- ekstern kommando.
-
- 3. Som et eksempel, skriv ls etter utropstegnet og trykk <ENTER>. Du vil
- n f en liste over filene i katalogen, akkurat som om du hadde kj鴕t
- kommandoen direkte fra kommandolinjen i skallet. Eller bruk :!dir hvis
- 玪s ikke virker.
-
-MERK: Det er mulig kj鴕e alle eksterne kommandoer p denne m錿en, ogs med
- parametere.
-
-MERK: Alle :-kommandoer m avsluttes med <ENTER>. Fra dette punktet er det
- ikke alltid vi nevner det.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 5.2: MER OM LAGRING AV FILER
-
-
- ** For lagre endringene gjort i en tekst, skriv :w FILNAVN. **
-
- 1. Skriv :!dir eller :!ls for f en liste over filene i katalogen. Du
- vet allerede at du m trykke <ENTER> etter dette.
-
- 2. Velg et filnavn p en fil som ikke finnes, som for eksempel TEST .
-
- 3. Skriv :w TEST (der TEST er filnavnet du velger).
-
- 4. Dette lagrer hele filen (denne innf鴕ingen) under navnet TEST . For
- sjekke dette, skriv :!dir eller :!ls igjen for se innholdet av
- katalogen.
-
-Merk: Hvis du n hadde avsluttet Vim og startet p nytt igjen med 玽im TEST,
- ville filen v鎟t en eksakt kopi av innf鴕ingen da du lagret den.
-
- 5. Fjern filen ved skrive :!rm TEST hvis du er p et Unix-lignende
- operativsystem, eller :!del TEST hvis du bruker MS-DOS.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 5.3: VELGE TEKST SOM SKAL LAGRES
-
-
- ** For lagre en del av en fil, skriv v bevegelse :w FILNAVN **
-
- 1. Flytt mark鴕en til denne linjen.
-
- 2. Trykk v og flytt mark鴕en til det femte elementet nedenfor. Legg merke
- til at teksten blir markert.
-
- 3. Trykk : (kolon). P bunnen av skjermen vil :'<,'> komme til syne.
-
- 4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller
- at du ser :'<,'>w TEST f鴕 du trykker Enter.
-
- 5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller !ls
- for se den. Ikke slett den enda! Vi vil bruke den i neste leksjon.
-
-MERK: Ved trykke v startes visuelt valg. Du kan flytte mark鴕en rundt for
- gj鴕e det valgte omr錮et st鴕re eller mindre. Deretter kan du bruke en
- operator for gj鴕e noe med teksten. For eksempel sletter d teksten.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 5.4: HENTING OG SAMMENSL臝NG AV FILER
-
-
- ** For lese inn en annen fil inn i n鍁鎟ende buffer, skriv :r FILNAVN **
-
- 1. Plasser mark鴕en like over denne linjen.
-
-MERK: Etter ha utf鴕t steg 2 vil du se teksten fra leksjon 5.3. G deretter
- NED for se denne leksjonen igjen.
-
- 2. Hent TEST-filen ved bruke kommandoen :r TEST der TEST er navnet p
- filen du brukte. Filen du henter blir plassert nedenfor mark鴕linjen.
-
- 3. For sjekke at filen ble hentet, g tilbake og se at det er to kopier av
- leksjon 5.3, originalen og denne versjonen.
-
-MERK: Du kan ogs lese utdataene av en ekstern kommando. For eksempel, :r !ls
- leser utdataene av ls-kommandoen og legger dem nedenfor mark鴕en.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 5
-
-
- 1. :!kommando utf鴕er en ekstern kommandio.
-
- Noen nyttige eksempler er:
- (MS-DOS) (Unix)
- :!dir :!ls - List filene i katalogen.
- :!del FILNAVN :!rm FILNAVN - Slett filen FILNAVN.
-
- 2. :w FILNAVN skriver den n鍁鎟ende Vim-filen disken med navnet FILNAVN .
-
- 3. v bevegelse :w FILNAVN lagrer de visuelt valgte linjene til filen
- FILNAVN.
-
- 4. :r FILNAVN henter filen FILNAVN og legger den inn nedenfor mark鴕en.
-
- 5. :r !dir leser utdataene fra 玠ir-kommandoen og legger dem nedenfor
- mark鴕posisjonen.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 6.1: PNE LINJE-KOMMANDOEN
-
-
- ** Skriv o for pne opp for en ny linje etter mark鴕en og g til
- innsettingsmodus **
-
- 1. Flytt mark鴕en til linjen nedenfor merket --->.
-
- 2. Skriv o (liten o) for 錺ne opp en linje NEDENFOR mark鴕en og g inn i
- innsettingsmodus.
-
- 3. Skriv litt tekst og trykk <ESC> for g ut av innsettingsmodusen.
-
----> Etter at o er skrevet blir mark鴕en plassert p den tomme linjen.
-
- 4. For 錺ne en ny linje OVER mark鴕en, trykk rett og slett en stor O
- istedenfor en liten o . Pr鴙 dette p linjen nedenfor.
-
----> Lag ny linje over denne ved trykke O mens mark鴕en er p denne linjen.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 6.2: 獿EGG TIL-KOMMANDOEN
-
-
- ** Skriv a for legge til tekst ETTER mark鴕en. **
-
- 1. Flytt mark鴕en til starten av linjen merket ---> nedenfor.
-
- 2. Trykk e til mark鴕en er p slutten av 玪i.
-
- 3. Trykk a (liten a) for legge til tekst ETTER mark鴕en.
-
- 4. Fullf鴕 ordet s錸n som p linjen nedenfor. Trykk <ESC> for g ut av
- innsettingsmodusen.
-
- 5. Bruk e for g til det neste ufullstendige ordet og repeter steg 3 og
- 4.
-
----> Denne li lar deg 鴙e p leg til tek p en linje.
----> Denne linjen lar deg 鴙e p legge til tekst p en linje.
-
-Merk: a, i og A g錼 alle til den samme innsettingsmodusen, den eneste
- forskjellen er hvor tegnene blir satt inn.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 6.3: EN ANNEN M臫E ERSTATTE P
-
-
- ** Skriv en stor R for erstatte mer enn ett tegn. **
-
- 1. Flytt mark鴕en til den f鴕ste linjen nedenfor merket --->. Flytt mark鴕en
- til begynnelsen av den f鴕ste 玿xx-en.
-
- 2. Trykk R og skriv inn tallet som st錼 nedenfor p den andre linjen s
- det erstatter xxx.
-
- 3. Trykk <ESC> for g ut av erstatningsmodusen. Legg merke til at resten
- av linjen forblir uforandret.
-
- 4. Repeter stegene for erstatte den gjenv鎟ende xxx.
-
----> Ved legge 123 til xxx f錼 vi xxx.
----> Ved legge 123 til 456 f錼 vi 579.
-
-MERK: Erstatningsmodus er lik insettingsmodus, men hvert tegn som skrives
- erstatter et eksisterende tegn.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 6.4: KOPIERE OG LIME INN TEKST
-
-
- ** Bruk y-operatoren for kopiere tekst og p for lime den inn **
-
- 1. G til linjen merket ---> nedenfor og plasser mark鴕en etter 玜).
-
- 2. G inn i visuell modus med v og flytt mark鴕en til like f鴕 玣鴕ste.
-
- 3. Trykk y for kopiere (engelsk: 珁ank) den uthevede teksten.
-
- 4. Flytt mark鴕en til slutten av den neste linjen: j$
-
- 5. Trykk p for lime inn teksten. Trykk deretter: a andre <ESC> .
-
- 6. Bruk visuell modus for velge valget., kopier det med y , g til
- slutten av den neste linjen med j$ og legg inn teksten der med p .
-
----> a) Dette er det f鴕ste valget.
- b)
-
-Merk: Du kan ogs bruke y som en operator; yw kopierer ett ord.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 6.5: SETT VALG
-
-
- ** Sett et valg s s鴎 eller erstatning ignorerer store/sm bokstaver. **
-
- 1. Let etter 玦gnore ved skrive: /ignore <ENTER>
- Repeter flere ganger ved trykke n .
-
- 2. Sett 玦c-valget (Ignore Case) ved skrive: :set ic
-
- 3. S鴎 etter 玦gnore igjen ved trykke n .
- Legg merke til at b錮e 獻gnore og 獻GNORE blir funnet.
-
- 4. Sett 玥lsearch- og 玦ncsearch-valgene: :set hls is
-
- 5. Skriv s鴎ekommandoen igjen og se hva som skjer: /ignore <ENTER>
-
- 6. For sl av ignorering av store/sm bokstaver, skriv: :set noic
-
-Merk: For fjerne uthevingen av treff, skriv: :nohlsearch
-Merk: Hvis du vil ignorere store/sm bokstaver for kun en s鴎ekommando, bruk
- \c i uttrykket: /ignore\c <ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 6
-
- 1. Trykk o for legge til en linje NEDENFOR mark鴕en og g inn i
- innsettingsmodus.
- Trykk O for 錺ne en linje OVER mark鴕en.
-
- 2. Skriv a for sette inn tekst ETTER mark鴕en.
- Skriv A for sette inn tekst etter slutten av linjen.
-
- 3. Kommandoen e g錼 til slutten av et ord.
-
- 4. Operatoren y (珁ank) kopierer tekst, p (玴aste) limer den inn.
-
- 5. Ved trykke R g錼 du inn i erstatningsmodus helt til <ESC> trykkes.
-
- 6. Skriv :set xxx for sette valget 玿xx. Noen valg er:
- 玦c 玦gnorecase ignorer store/sm bokstaver under s鴎
- 玦s 玦ncsearch vis delvise treff for en s鴎etekst
- 玥ls 玥lsearch uthev alle s鴎etreff
-
- 7. Legg til 玭o foran valget for sl det av: :set noic
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 7.1: F HJELP
-
-
- ** Bruk det innebygde hjelpesystemet. **
-
- Vim har et omfattende innebygget hjelpesystem. For starte det, pr鴙 en av
- disse m錿ene:
- - Trykk Hjelp-tasten (hvis du har en)
- - Trykk F1-tasten (hvis du har en)
- - Skriv :help <ENTER>
-
- Les teksten i hjelpevinduet for finne ut hvordan hjelpen virker.
- Skriv CTRL-W CTRL-W for hoppe fra et vindu til et annet
- Skriv :q <ENTER> for lukke hjelpevinduet.
-
- Du kan f hjelp for omtrent alle temaer om Vim ved skrive et parameter til
- :help-kommandoen. Pr鴙 disse (ikke glem trykke <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 7.2: LAG ET OPPSTARTSSKRIPT
-
-
- ** Sl p funksjoner i Vim **
-
- Vim har mange flere funksjoner enn Vi, men flesteparten av dem er sl錿t av
- som standard. For begynne bruke flere funksjoner m du lage en
- 玽imrc-fil.
-
- 1. Start redigeringen av 玽imrc-filen. Dette avhenger av systemet ditt:
- :e ~/.vimrc for Unix
- :e $VIM/_vimrc for MS Windows
-
- 2. Les inn eksempelfilen for 玽imrc:
- :r $VIMRUNTIME/vimrc_example.vim
-
- 3. Lagre filen med:
- :w
-
- Neste gang du starter Vim vil den bruke syntaks-utheving. Du kan legge til
- alle dine foretrukne oppsett i denne 玽imrc-filen.
- For mer informasjon, skriv :help vimrc-intro
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Leksjon 7.3: FULLF豏ING
-
-
- ** Kommandolinjefullf鴕ing med CTRL-D og <TAB> **
-
- 1. V鎟 sikker p at Vim ikke er i Vi-kompatibel modus: :set nocp
-
- 2. Se hvilke filer som er i katalogen: :!ls eller :!dir
-
- 3. Skriv starten p en kommando: :e
-
- 4. Trykk CTRL-D og Vim vil vise en liste over kommandoer som starter med
- 玡.
-
- 5. Trykk <TAB> og Vim vil fullf鴕e kommandonavnet til :edit.
-
- 6. Legg til et mellomrom og starten p et eksisterende filnavn: :edit FIL
-
- 7. Trykk <TAB>. Vim vil fullf鴕e navnet (hvis det er unikt).
-
-MERK: Fullf鴕ing fungerer for mange kommandoer. Pr鴙 ved trykke CTRL-D og
- <TAB>. Det er spesielt nyttig for bruk sammen med :help .
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OPPSUMMERING AV LEKSJON 7
-
-
- 1. Skriv :help eller trykk <F1> eller <Help> for 錺ne et hjelpevindu.
-
- 2. Skriv :help kommando for f hjelp om kommando .
-
- 3. Trykk CTRL-W CTRL-W for hoppe til et annet vindu.
-
- 4. Trykk :q for lukke hjelpevinduet.
-
- 5. Opprett et vimrc-oppstartsskript for lagre favorittvalgene dine.
-
- 6. N錼 du skriver en :-kommando, trykk CTRL-D for se mulige
- fullf鴕inger. Trykk <TAB> for bruke en fullf鴕ing.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Her slutter innf鴕ingen i Vim. Den var ment som en rask oversikt over
- editoren, akkurat nok til la deg sette i gang med enkel bruk. Den er p
- langt n鎟 komplett, da Vim har mange flere kommandoer. Les bruksanvisningen
- ved skrive :help user-manual .
-
- For videre lesing og studier, kan denne boken anbefales:
- 玍im - Vi Improved av Steve Oualline
- Utgiver: New Riders
- Den f鴕ste boken som er fullt og helt dedisert til Vim. Spesielt nyttig for
- nybegynnere. Inneholder mange eksempler og illustrasjoner.
- Se http://iccf-holland.org/click5.html
-
- Denne boken er eldre og handler mer om Vi enn Vim, men anbefales ogs:
- 獿earning the Vi Editor av Linda Lamb
- Utgiver: O'Reilly & Associates Inc.
- Det er en god bok for f vite omtrent hva som helst om Vi.
- Den sjette utgaven inneholder ogs informasjon om Vim.
-
- Denne innf鴕ingen er skrevet av Michael C. Pierce og Robert K. Ware,
- Colorado School of Mines med id閑r av Charles Smith, Colorado State
- University. E-mail: bware@mines.colorado.edu .
-
- Modifisert for Vim av Bram Moolenaar.
- Oversatt av 貀vind A. Holm. E-mail: vimtutor _AT_ sunbase.org
- Id: tutor.no 406 2007-03-18 22:48:36Z sunny
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-vim: set ts=8 :
diff --git a/runtime/tutor/tutor.pl b/runtime/tutor/tutor.pl
deleted file mode 100644
index 7f39f3894..000000000
--- a/runtime/tutor/tutor.pl
+++ /dev/null
@@ -1,994 +0,0 @@
-===============================================================================
-= W i t a j w t u t o r i a l u V I M - a - Wersja 1.7. =
-===============================================================================
-
- Vim to pot昕ny edytor, kt髍y posiada wiele polece, zbyt du縪 by
- wyja秐i je wszystkie w tym tutorialu. Ten przewodnik ma nauczy
- Ci pos硊giwa si wystarczaj眂o wieloma komendami by m骻 砤two
- u縴wa Vima jako edytora og髄nego przeznaczenia.
-
- Czas potrzebny na uko馽zenie tutoriala to 25 do 30 minut i zale縴
- od tego jak wiele czasu sp阣zisz na eksperymentowaniu.
-
- UWAGA:
- Polecenia wykonywane w czasie lekcji zmodyfikuj tekst. Zr骲
- wcze秐iej kopi tego pliku do 鎤icze (je秎i zacz背e komend
- "vimtutor" to ju pracujesz na kopii).
-
- Pami阾aj 縠 przewodnik ten zosta zaprojektowany do nauki poprzez
- 鎤iczenia. Oznacza to, 縠 musisz wykonywa polecenia by nauczy si ich
- prawid硂wo. Je秎i b阣ziesz jedynie czyta tekst szybko zapomnisz wiele
- polece!
-
- Teraz upewnij si, 縠 nie masz wci秐i阾ego CapsLocka i wciskaj j
- tak d硊go dop髃i Lekcja 1.1. nie wype硁i ca砶owicie ekranu.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.1.: PORUSZANIE SI KURSOREM
-
- ** By wykona ruch kursorem, wci秐ij h, j, k, l jak pokazano. **
-
- ^
- k Wskaz體ka: h jest po lewej
- < h l > l jest po prawej
- j j wygl眃a jak strza砶a w d蟪
- v
- 1. Poruszaj kursorem dop髃i nie b阣ziesz pewien, 縠 pami阾asz polecenia.
-
- 2. Trzymaj j tak d硊go a b阣zie si powtarza.
- Teraz wiesz jak doj舵 do nast阷nej lekcji.
-
- 3. U縴waj眂 strza砶i w d蟪 przejd do nast阷nej lekcji.
-
-Uwaga: Je秎i nie jeste pewien czego co wpisa砮, wci秐ij <ESC> by wr骳i do
- trybu Normal. Wtedy powt髍z polecenie.
-
-Uwaga: Klawisze kursora tak縠 powinny dzia砤, ale u縴waj眂 hjkl b阣ziesz
- w stanie porusza si o wiele szybciej jak si tylko przyzwyczaisz.
- Naprawd!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.2.: WYCHODZENIE Z VIM-a
-
- !! UWAGA: Przed wykonaniem jakiegokolwiek polecenia przeczytaj ca潮 lekcj.!!
-
- 1. Wci秐ij <ESC> (aby upewni si, 縠 jeste w trybie Normal).
- 2. Wpisz: :q!<ENTER>.
- To spowoduje wyj禼ie z edytora PORZUCAJ wszelkie zmiany jakie
- zd笨y砮 zrobi. Je秎i chcesz zapami阾a zmiany i wyj舵
- wpisz: :wq<ENTER>
-
- 3. Kiedy widzisz znak zach阾y pow硂ki wpisz komend, 縠by wr骳i
- do tutoriala. Czyli: vimtutor<ENTER>
-
- 4. Je秎i chcesz zapami阾a polecenia, wykonaj kroki 1. do 3. aby
- wyj舵 i wr骳i do edytora.
-
-UWAGA: :q!<ENTER> porzuca wszelkie zmiany jakie zrobi砮. W nast阷nych
- lekcjach dowiesz si jak je zapami阾ywa.
-
- 5. Przenie kursor do lekcji 1.3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.3.: EDYCJA TEKSTU - KASOWANIE
-
- ** Wci秐ij x aby usun辨 znak pod kursorem. **
-
- 1. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 2. By poprawi b酬dy, naprowad kursor na znak do usuni阠ia.
-
- 3. Wci秐ij x aby usun辨 niechciany znak.
-
- 4. Powtarzaj kroki 2. do 4. dop髃i zdanie nie jest poprawne.
-
----> Kkrowa prrzeskoczy砤 prrzez ksii昕ycc.
-
- 5. Teraz kiedy zdanie jest poprawione przejd do Lekcji 1.4.
-
-UWAGA: Ucz si przez 鎤iczenie, nie wkuwanie.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.4.: EDYCJA TEKSTU - INSERT (wprowadzanie)
-
-
- ** Wci秐ij i aby wstawi tekst. **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->.
-
- 2. Aby poprawi pierwszy wiersz, ustaw kursor na pierwszym znaku PO tym
- gdzie tekst ma by wstawiony.
-
- 3. Wci秐ij i a nast阷nie wpisz konieczne poprawki.
-
- 4. Po poprawieniu b酬du wci秐ij <ESC> by wr骳i do trybu Normal.
- Powtarzaj kroki 2. do 4. aby poprawi ca砮 zdanie.
-
----> W tej brkje troch .
----> W tej linii brakuje troch tekstu.
-
- 5. Kiedy czujesz si swobodnie wstawiaj眂 tekst przejd do
- podsumowania poni縠j.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.5.: EDYCJA TEKSTU - APPENDING (dodawanie)
-
-
- ** Wci秐ij A by doda tekst. **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->.
- Nie ma znaczenia, kt髍y to b阣zie znak.
-
- 2. Wci秐ij A i wpisz odpowiednie dodatki.
-
- 3. Kiedy tekst zosta dodany, wci秐ij <ESC> i wr箧 do trybu Normalnego.
-
- 4. Przenie kursor do drugiej linii oznaczonej ---> i powt髍z kroki 2 i 3
- aby poprawi zdanie.
-
----> Brakuje tu tro
- Brakuje tu troch tekstu.
----> Tu te troch bra
- Tu te troch brakuje.
-
- 5. Kiedy ju utrwali砮 鎤iczenie przejd do lekcji 1.6.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.6.: EDYCJA PLIKU
-
-
- ** U縴j :wq aby zapisa plik i wyj舵. **
-
- !! UWAGA: zanim wykonasz jakiekolwiek polecenia przeczyaj ca潮 lekcj !!
-
- 1. Zako馽z tutorial tak jak w lekcji 1.2.: :q!
-
- 2. W pow硂ce wydaj polecenie: vim tutor<ENTER>
- "vim" jest poleceniem uruchamiaj眂ym edytor Vim. 'tutor' to nazwa pliku
- jaki chcesz edytowa. U縴j pliku jaki mo縠 zosta zmieniony.
-
- 3. Dodaj i usu tekst tak jak si nauczy砮 w poprzednich lekcjach.
-
- 4. Zapisz plik ze zmianami i opu舵 Vima: :wq<ENTER>
-
- 5. Uruchom ponownie vimtutor i przejd do podsumowania lekcji.
-
- 6. Po przeczytaniu wszystkich krok體 i ich zrozumieniu: wykonaj je.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 1. PODSUMOWANIE
-
- 1. Poruszasz kursorem u縴waj眂 "strza砮k" i klawiszy hjkl .
- h (w lewo) j (w d蟪) k (do g髍y) l (w prawo)
-
- 2. By wej舵 do Vima (z pow硂ki) wpisz:
- vim NAZWA_PLIKU<ENTER>
-
- 3. By wyj舵 z Vima wpisz:
- <ESC> :q!<ENTER> by usun眂 wszystkie zmiany.
- LUB: <ESC> :wq<ENTER> by zmiany zachowa.
-
- 4. By usun辨 znak pod kursorem wci秐ij: x
-
- 5. By wstawi tekst przed kursorem lub doda:
- i wpisz tekst <ESC> wstawi przed kursorem
- A wpisz tekst <ESC> doda na ko馽u linii
-
-UWAGA: Wci秐i阠ie <ESC> przeniesie Ci z powrotem do trybu Normal
- lub odwo砤 niechciane lub cz甓ciowo wprowadzone polecenia.
-
-Teraz mo縠my kontynuowa i przej舵 do Lekcji 2.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.1.: POLECENIE DELETE (usuwanie)
-
-
- ** Wpisz dw by usun眂 wyraz. **
-
- 1. Wci秐ij <ESC> by upewni si, 縠 jeste w trybie Normal.
-
- 2. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 3. Przesu kursor na pocz眛ek wyrazu, kt髍e chcesz usun辨.
-
- 4. Wpisz dw by usun辨 wyraz.
-
- UWAGA: Litera d pojawi si na dole ekranu. Vim czeka na wpisanie w .
- Je秎i zobaczysz inny znak oznacza to, 縠 wpisa砮 co 糽e, wci秐ij
- <ESC> i zacznij od pocz眛ku.
-
----> Jest tu par papier wyraz體, kt髍e kamie nie nale勘 do no縴ce tego zdania.
-
- 5. Powtarzaj kroki 3. i 4. dop髃i zdanie nie b阣zie poprawne, potem
- przejd do Lekcji 2.2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.2.: WI蔆EJ POLECE USUWAJYCH
-
-
- ** Wpisz d$ aby usun辨 tekst do ko馽a linii. **
-
- 1. Wci秐ij <ESC> aby si upewni, 縠 jeste w trybie Normal.
-
- 2. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 3. Przenie kursor do ko馽a poprawnego zdania (PO pierwszej . ).
-
- 4. Wpisz d$ aby usun辨 reszt linii.
-
----> Kto wpisa koniec tego zdania dwukrotnie. zdania dwukrotnie.
-
-
- 5. Przejd do Lekcji 2.3. by zrozumie co si sta硂.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.3.: O OPERATORACH I RUCHACH
-
-
- Wiele polece zmieniaj眂ych tekst s z硂縪ne z operatora i ruchu.
- Format dla polecenia usuwaj眂ego z operatorem d jest taki:
-
- d ruch
-
- Gdzie:
- d - operator usuwania.
- ruch - na czym polecenie b阣zie wykonywane (lista poni縠j).
-
- Kr髏ka lista ruch體:
- w - do pocz眛ku nast阷nego wyrazu WY!CZAJ pierwszy znak.
- e - do ko馽a bie勘cego wyrazu, W!CZAJ ostatni znak.
- $ - do ko馽a linii, W!CZAJ ostatni znak.
-
-W ten spos骲 wpisanie de usunie znaki od kursora do ko馽a wyrazu.
-
-UWAGA: Wpisanie tylko ruchu w trybie Normal bez operatora przeniesie kursor
- tak jak to okre秎ono.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.4.: U痀CIE MNO疦IKA DLA RUCHU
-
-
- ** Wpisanie liczby przed ruchem powtarza ruch odpowiedni ilo舵 razy. **
-
- 1. Przenie kursor na pocz眛ek linii poni縠j zaznaczonej --->.
-
- 2. Wpisz 2w aby przenie舵 kursor o dwa wyrazy do przodu.
-
- 3. Wpisz 3e aby przenie舵 kursor do ko馽a trzeciego wyrazu w prz骴.
-
- 4. Wpisz 0 (zero) aby przenie舵 kursor do pocz眛ku linii.
-
- 5. Powt髍z kroki 2. i 3. z innymi liczbami.
-
-
- ---> To jest zwyk硑 wiersz z wyrazami po kt髍ych mo縠sz si porusza.
-
- 6. Przejd do lekcji 2.5.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.5.: U痀CIE MNO疦IKA BY WI蔆EJ USUN∑
-
-
- ** Wpisanie liczby z operatorem powtarza go odpowiedni ilo舵 razy. **
-
- W wy縠j wspomnianej kombinacji operatora usuwania i ruchu podaj mno縩ik
- przed ruchem by wi阠ej usun辨:
- d liczba ruch
-
- 1. Przenie kursor do pierwszego wyrazu KAPITALIKAMI w linii zaznaczonej --->.
-
- 2. Wpisz 2dw aby usun辨 dwa wyrazy KAPITALIKAMI.
-
- 3. Powtarzaj kroki 1. i 2. z innymi mno縩ikami aby usun辨 kolejne wyrazy
- KAPITALIKAMI jednym poleceniem
-
----> ta ASD WE linia QWE ASDF ZXCV FG wyraz體 zosta砤 ERT FGH CF oczyszczona.
-
-UWAGA: Mno縩ik pomi阣zy operatorem d i ruchem dzia砤 podobnie do ruchu bez
- operatora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.6.: OPEROWANIE NA LINIACH
-
-
- ** Wpisz dd aby usun辨 ca潮 lini. **
-
- Z powodu cz阺to禼i usuwania ca硑ch linii, projektanci Vi zdecydowali, 縠
- b阣zie 砤twiej wpisa dwa razy d aby usun辨 lini.
-
- 1. Przenie kursor do drugiego zdania z wierszyka poni縠j.
- 2. Wpisz dd aby usun辨 wiersz.
- 3. Teraz przenie si do czwartego wiersza.
- 4. Wpisz 2dd aby usun眂 dwa wiersze.
-
----> 1) R罂e s czerwone,
----> 2) B硂to jest fajne,
----> 3) Fio砶i s niebieskie,
----> 4) Mam samoch骴,
----> 5) Zegar podaje czas,
----> 6) Cukier jest s硂dki,
----> 7) I ty te.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.7.: POLECENIE UNDO (cofnij)
-
-
- ** Wci秐ij u aby cofn辨 skutki ostatniego polecenia.
- U za, by cofn辨 skutki dla ca砮j linii. **
-
- 1. Przenie kursor do zdania poni縠j oznaczonego ---> i umie舵 go na
- pierwszym b酬dzie.
- 2. Wpisz x aby usun辨 pierwszy niechciany znak.
- 3. Teraz wci秐ij u aby cofn辨 skutki ostatniego polecenia.
- 4. Tym razem popraw wszystkie b酬dy w linii u縴waj眂 polecenia x .
- 5. Teraz wci秐ij wielkie U aby przywr骳i lini do oryginalnego stanu.
- 6. Teraz wci秐ij u kilka razy by cofn辨 U i poprzednie polecenia.
- 7. Teraz wpisz CTRL-R (trzymaj r體nocze秐ie wci秐i阾e klawisze CTRL i R)
- kilka razy, by cofn辨 cofni阠ia.
-
----> Poopraw bl阣yyy w teej liniii i zaamiie je prrzez coofnij.
-
- 8. To s bardzo po縴teczne polecenia.
-
- Przejd teraz do podsumowania Lekcji 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 2. PODSUMOWANIE
-
-
- 1. By usun辨 znaki od kursora do nast阷nego wyrazu wpisz: dw
- 2. By usun辨 znaki od kursora do ko馽a linii wpisz: d$
- 3. By usun辨 ca潮 lini: dd
- 4. By powt髍zy ruch poprzed go liczb: 2w
- 5. Format polecenia zmiany to:
- operator [liczba] ruch
- gdzie:
- operator - to co trzeba zrobi (np. d dla usuwania)
- [liczba] - opcjonalne, ile razy powt髍zy ruch
- ruch - przenosi nad tekstem do operowania, takim jak w (wyraz),
- $ (do ko馽a linii), etc.
-
- 6. By przej舵 do pocz眛ku linii u縴j zera: 0
- 7. By cofn辨 poprzednie polecenie, wpisz: u (ma砮 u)
- By cofn辨 wszystkie zmiany w linii wpisz: U (wielkie U)
- By cofn辨 cofni阠ia wpisz: CTRL-R
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.1.: POLECENIE PUT (wstaw)
-
-
- ** Wpisz p by wstawi ostatnie usuni阠ia za kursorem. **
-
- 1. Przenie kursor do pierwszej linii ---> poni縠j.
-
- 2. Wpisz dd aby usun辨 lini i przechowa j w rejestrze Vima.
-
- 3. Przenie kursor do linii c), POWY疎J tej gdzie usuni阾a linia powinna
- si znajdowa.
-
- 4. Wci秐ij p by wstawi lini poni縠j kursora.
-
- 5. Powtarzaj kroki 2. do 4. a znajd si w odpowiednim porz眃ku.
-
----> d) Jak dwa anio砶i.
----> b) Na dole fio砶i,
----> c) A my si kochamy,
----> a) Na g髍ze r罂e,
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.2.: POLECENIE REPLACE (zast眕)
-
-
- ** Wpisz rx aby zast眕i znak pod kursorem na x . **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->
-
- 2. Ustaw kursor na pierwszym b酬dzie.
-
- 3. Wpisz r a potem znak jaki powinien go zast眕i.
-
- 4. Powtarzaj kroki 2. i 3. dop髃i pierwsza linia nie b阣zie taka jak druga.
-
----> Kjedy ten wiersz bi wst髃iwany kto wcizn背 per z硑ch klawirzy!
----> Kiedy ten wiersz by wstukiwany kto wcisn背 par z硑ch klawiszy!
-
- 5. Teraz czas na Lekcj 3.3.
-
-
-UWAGA: Pami阾aj by uczy si 鎤icz眂, a nie pami阠iowo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.3.: OPERATOR CHANGE (zmie)
-
- ** By zmieni do ko馽a wyrazu wpisz ce . **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->.
-
- 2. Umie舵 kursor na u w lunos.
-
- 3. Wpisz ce i popraw wyraz (w tym wypadku wstaw inia ).
-
- 4. Wci秐ij <ESC> i przejd do nast阷nej planowanej zmiany.
-
- 5. Powtarzaj kroki 3. i 4. dop髃i pierwsze zdanie nie b阣zie takie same
- jak drugie.
-
----> Ta lunos ma pire s丑w, kt髍e t縤na zbnic u縤fajonc pcmazu zmie.
----> Ta linia ma par s丑w, kt髍e trzeba zmieni u縴waj眂 polecenia zmie.
-
- Zauwa, 縠 ce nie tylko zamienia wyraz, ale tak縠 zmienia tryb na
- Insert (wprowadzanie).
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.4.: WI蔆EJ ZMIAN U痀WAJ c
-
-
- ** Polecenie change u縴wa takich samych ruch體 jak delete. **
-
- 1. Operator change dzia砤 tak samo jak delete. Format wygl眃a tak:
-
- c [liczba] ruch
-
- 2. Ruchy s tak縠 takie same, np.: w (wyraz), $ (koniec linii), etc.
-
- 3. Przenie si do pierwszej linii poni縠j oznaczonej --->
-
- 4. Ustaw kursor na pierwszym b酬dzie.
-
- 5. Wpisz c$ , popraw koniec wiersza i wci秐ij <ESC>.
-
----> Koniec tego wiersza musi by poprawiony aby wygl眃a tak jak drugi.
----> Koniec tego wiersza musi by poprawiony u縴waj眂 polecenia c$ .
-
-UWAGA: Mo縠sz u縴wa <BS> aby poprawia b酬dy w czasie pisania.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 3. PODSUMOWANIE
-
-
- 1. Aby wstawi tekst, kt髍y zosta wcze秐iej usuni阾y wci秐ij p . To
- polecenie wstawia skasowany tekst PO kursorze (je秎i ca砤 linia
- zosta砤 usuni阾a, zostanie ona umieszczona w linii poni縠j kursora).
-
- 2. By zamieni znak pod kursorem wci秐ij r a potem znak, kt髍y ma zast眕i
- oryginalny.
-
- 3. Operator change pozwala Ci na zast眕ienie od kursora do miejsca gdzie
- zabra砨y ci ruch. Np. wpisz ce aby zamieni tekst od kursora do ko馽a
- wyrazu, c$ aby zmieni tekst do ko馽a linii.
-
- 4. Format do polecenia change (zmie):
-
- c [liczba] obiekt
-
- Teraz przejd do nast阷nej lekcji.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.1.: PO疎NIE KURSORA ORAZ STATUS PLIKU
-
- ** Naci秐ij CTRL-G aby zobaczy swoje po硂縠nie w pliku i status
- pliku. Naci秐ij G aby przej舵 do linii w pliku. **
-
- UWAGA: Przeczytaj ca潮 lekcj zanim wykonasz jakie polecenia!!!
-
- 1. Przytrzymaj klawisz CTRL i wci秐ij g . U縴wamy notacji CTRL-G.
- Na dole strony pojawi si pasek statusu z nazw pliku i pozycj w pliku.
- Zapami阾aj numer linii dla potrzeb kroku 3.
-
-UWAGA: Mo縠sz te zobaczy pozycj kursora w prawym, dolnym rogu ekranu.
- Dzieje si tak kiedy ustawiona jest opcja 'ruler' (wyja秐ione w lekcji 6.).
-
- 2. Wci秐ij G aby przej舵 na koniec pliku.
- Wci秐ij gg aby przej舵 do pocz眛ku pliku.
-
- 3. Wpisz numer linii, w kt髍ej by砮 a potem G . To przeniesie ci
- z powrotem do linii, w kt髍ej by砮 kiedy wcisn背e CTRL-G.
-
- 4. Je秎i czujesz si wystarczaj眂o pewnie, wykonaj kroki 1-3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.2.: POLECENIE SZUKAJ
-
-
- ** Wpisz / a nast阷nie wyra縠nie aby je znale兼. **
-
- 1. W trybie Normal wpisz / . Zauwa, 縠 znak ten, oraz kursor pojawi
- si na dole ekranu tak samo jak polecenie : .
-
- 2. Teraz wpisz b硂nd<ENTER> . To jest s硂wo, kt髍ego chcesz szuka.
-
- 3. By szuka tej samej frazy ponownie, po prostu wci秐ij n .
- Aby szuka tej frazy w przeciwnym, kierunku wci秐ij N .
-
- 4. Je秎i chcesz szuka frazy do ty硊, u縴j polecenia ? zamiast / .
-
- 5. Aby wr骳i gdzie by砮 wci秐ij CTRL-O. Powtarzaj by wr骳i dalej. CTRL-I
- idzie do przodu.
-
-Uwaga: 'b硂nd' to nie jest metoda by przeliterowa b潮d; 'b硂nd' to b潮d.
-Uwaga: Kiedy szukanie osi眊nie koniec pliku b阣zie kontynuowa硂 od pocz眛ku
- o ile opcja 'wrapscan' nie zosta砤 przestawiona.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.3.: W POSZUKIWANIU PARUJYCH NAWIAS覹
-
-
- ** Wpisz % by znale兼 paruj眂y ), ], lub } . **
-
- 1. Umie舵 kursor na kt髍ym z (, [, lub { w linii poni縠j oznaczonej --->.
-
- 2. Teraz wpisz znak % .
-
- 3. Kursor powinien si znale兼 na paruj眂ym nawiasie.
-
- 4. Wci秐ij % aby przenie舵 kursor z powrotem do paruj眂ego nawiasu.
-
- 5. Przenie kursor do innego (,),[,],{ lub } i zobacz co robi % .
-
----> To ( jest linia testowa z (, [, ] i {, } . ))
-
-Uwaga: Ta funkcja jest bardzo u縴teczna w debuggowaniu programu
- z niesparowanymi nawiasami!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.4.: POLECENIE SUBSTITUTE (zamiana)
-
-
- ** Wpisz :s/stary/nowy/g aby zamieni 'stary' na 'nowy'. **
-
- 1. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 2. Wpisz :s/czaas/czas<ENTER> . Zauwa, 縠 to polecenie zmienia
- tylko pierwsze wyst眕ienie 'czaas' w linii.
-
- 3. Teraz wpisz :s/czaas/czas/g . Dodane g oznacza zamian (substytucj)
- globalnie w ca砮j linii. Zmienia wszystkie wyst眕ienia 'czaas' w linii.
-
----> Najlepszy czaas na zobaczenie naj砤dniejszych kwiat體 to czaas wiosny.
-
- 4. Aby zmieni wszystkie wyst眕ienia 砤馽ucha znak體 pomi阣zy dwoma liniami,
- wpisz: :#,#s/stare/nowe/g gdzie #,# s numerami linii ograniczaj眂ych
- region gdzie ma nast眕i zamiana.
- wpisz :%s/stare/nowe/g by zmieni wszystkie wyst眕ienia w ca硑m pliku.
- wpisz :%s/stare/nowe/gc by zmieni wszystkie wyst眕ienia w ca硑m
- pliku, prosz眂 o potwierdzenie za ka縟ym razem
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 4. PODSUMOWANIE
-
- 1. CTRL-G poka縠 Twoj pozycj w pliku i status pliku. SHIFT-G przenosi
- ci do ko馽a pliku.
- G przenosi do ko馽a pliku.
- liczba G przenosi do linii [liczba].
- gg przenosi do pierwszej linii.
-
- 2. Wpisanie / a nast阷nie 砤馽ucha znak體 szuka 砤馽ucha DO PRZODU.
- Wpisanie ? a nast阷nie 砤馽ucha znak體 szuka 砤馽ucha DO TY.
- Po wyszukiwaniu wci秐ij n by znale兼 nast阷ne wyst眕ienie szukanej
- frazy tym samym kierunku lub N by szuka w kierunku przeciwnym.
- CTRL-O przenosi do starszych pozycji, CTRL-I do nowszych.
-
- 3. Wpisanie % gdy kursor znajduje si na (,),[,],{, lub } lokalizuje
- paruj眂y znak.
-
- 4. By zamieni pierwszy stary na nowy w linii wpisz :s/stary/nowy
- By zamieni wszystkie stary na nowy w linii wpisz :s/stary/nowy/g
- By zamieni frazy pomi阣zy dwoma liniami # wpisz :#,#s/stary/nowy/g
- By zamieni wszystkie wyst眕ienia w pliku wpisz :%s/stary/nowy/g
- By Vim prosi Ci o potwierdzenie dodaj 'c' :%s/stary/nowy/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.1.: JAK WYKONA POLECENIA ZEWN蔜RZNE
-
-
- ** Wpisz :! a nast阷nie zewn阾rzne polecenie by je wykona. **
-
- 1. Wpisz znajome polecenie : by ustawi kursor na dole ekranu. To pozwala
- na wprowadzenie komendy linii polece.
-
- 2. Teraz wstaw ! (wykrzyknik). To umo縧iwi Ci wykonanie dowolnego
- zewn阾rznego polecenia pow硂ki.
-
- 3. Jako przyk砤d wpisz ls za ! a nast阷nie wci秐ij <ENTER>. To polecenie
- poka縠 spis plik體 w Twoim katalogu, tak jakby by przy znaku zach阾y
- pow硂ki. Mo縠sz te u縴 :!dir je秎i ls nie dzia砤.
-
-Uwaga: W ten spos骲 mo縩a wykona wszystkie polecenia pow硂ki.
-Uwaga: Wszystkie polecenia : musz by zako馽zone <ENTER>.
- Od tego momentu nie zawsze b阣ziemy o tym wspomina.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.2.: WI蔆EJ O ZAPISYWANIU PLIK覹
-
-
- ** By zachowa zmiany w tek禼i wpisz :w NAZWA_PLIKU . **
-
- 1. Wpisz :!dir lub :!ls by zobaczy spis plik體 w katalogu.
- Ju wiesz, 縠 musisz wcisn辨 <ENTER> po tym.
-
- 2. Wybierz nazw pliku jaka jeszcze nie istnieje, np. TEST.
-
- 3. Teraz wpisz: :w TEST (gdzie TEST jest nazw pliku jak wybra砮.)
-
- 4. To polecenie zapami阾a ca硑 plik (Vim Tutor) pod nazw TEST.
- By to sprawdzi wpisz :!dir lub :!ls , 縠by znowu zobaczy list plik體.
-
-Uwaga: Zauwa, 縠 gdyby teraz wyszed z Vima, a nast阷nie wszed ponownie
- poleceniem vim TEST , plik by砨y dok砤dn kopi tutoriala kiedy go
- zapisywa砮.
-
- 5. Teraz usu plik wpisuj眂 (MS-DOS): :!del TEST
- lub (Unix): :!rm TEST
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.3.: WYBRANIE TEKSTU DO ZAPISU
-
-
- ** By zachowa cz甓 pliku wpisz v ruch :w NAZWA_PLIKU **
-
- 1. Przenie kursor do tego wiersza.
-
- 2. Wci秐ij v i przenie kursor do punktu 5. Zauwa, 縠 tekst zosta
- pod秝ietlony.
-
- 3. Wci秐ij znak : . Na dole ekranu pojawi si :'<,'> .
-
- 4. Wpisz w TEST , gdzie TEST to nazwa pliku, kt髍y jeszcze nie istnieje.
- Upewnij si, 縠 widzisz :'<,'>w TEST zanim wci秐iesz Enter.
-
- 5. Vim zapisze wybrane linie do pliku TEST. U縴j :!dir lub :!ls , 縠by to
- zobaczy. Jeszcze go nie usuwaj! U縴jemy go w nast阷nej lekcji.
-
-UWAGA: Wci秐i阠ie v zaczyna tryb Wizualny. Mo縠sz porusza kursorem by
- zmieni rozmiary zaznaczenia. Mo縠sz te u縴 operatora by zrobi co
- z tekstem. Na przyk砤d d usuwa tekst.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.4.: WSTAWIANIE I !CZENIE PLIK覹
-
-
- ** By wstawi zawarto舵 pliku wpisz :r NAZWA_PLIKU **
-
- 1. Umie舵 kursor tu powy縠j tej linii.
-
-UWAGA: Po wykonaniu kroku 2. zobaczysz tekst z Lekcji 5.3. Potem przejd
- do DO by zobaczy ponownie t lekcj.
-
- 2. Teraz wczytaj plik TEST u縴waj眂 polecenia :r TEST , gdzie TEST
- jest nazw pliku.
- Wczytany plik jest umieszczony poni縠j linii z kursorem.
-
- 3. By sprawdzi czy plik zosta wczytany cofnij kursor i zobacz, 縠
- teraz s dwie kopie Lekcji 5.3., orygina i kopia z pliku.
-
-UWAGA: Mo縠sz te wczyta wyj禼ie zewn阾rznego polecenia. Na przyk砤d
- :r !ls wczytuje wyj禼ie polecenia ls i umieszcza je pod poni縠j
- kursora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 5. PODSUMOWANIE
-
-
- 1. :!polecenie wykonuje polecenie zewn阾rzne.
-
- U縴tecznymi przyk砤dami s:
-
- :!dir - pokazuje spis plik體 w katalogu.
-
- :!rm NAZWA_PLIKU - usuwa plik NAZWA_PLIKU.
-
- 2. :w NAZWA_PLIKU zapisuje obecny plik Vima na dysk z nazw NAZWA_PLIKU.
-
- 3. v ruch :w NAZWA_PLIKU zapisuje Wizualnie wybrane linie do NAZWA_PLIKU.
-
- 4. :r NAZWA_PLIKU wczytuje z dysku plik NAZWA_PLIKU i wstawia go do
- bie勘cego pliku poni縠j kursora.
-
- 5. :r !dir wczytuje wyj禼ie polecenia dir i umieszcza je poni縠j kursora.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.1.: POLECENIE OPEN (otw髍z)
-
-
- ** Wpisz o by otworzy lini poni縠j kursora i przenie舵 si do
- trybu Insert (wprowadzanie). **
-
- 1. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 2. Wpisz o (ma砮) by otworzy lini PONI疎J kursora i przenie舵 si
- do trybu Insert (wprowadzanie).
-
- 3. Wpisz troch tekstu i wci秐ij <ESC> by wyj舵 z trybu Insert (wprowadzanie).
-
----> Po wci秐i阠iu o kursor znajdzie si w otwartej linii w trybie Insert.
-
- 4. By otworzy lini POWY疎J kursora wci秐ij wielkie O zamiast ma砮go
- o . Wypr骲uj to na linii poni縠j.
-
----> Otw髍z lini powy縠j wciskaj眂 SHIFT-O gdy kursor b阣zie na tej linii.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.2.: POLECENIE APPEND (dodaj)
-
-
- ** Wpisz a by doda tekst ZA kursorem. **
-
- 1. Przenie kursor do pocz眛ku pierwszej linii poni縠j oznaczonej --->
-
- 2. Wciskaj e dop髃i kursor nie b阣zie na ko馽u li .
-
- 3. Wpisz a (ma砮) aby doda tekst ZA znakiem pod kursorem.
-
- 4. Doko馽z wyraz tak jak w linii poni縠j. Wci秐ij <ESC> aby opu禼i tryb
- Insert.
-
- 5. U縴j e by przej舵 do kolejnego niedoko馽zonego wyrazu i powtarzaj kroki
- 3. i 4.
-
----> Ta li poz Ci 鎤i dodaw teks do ko lin
----> Ta linia pozwoli Ci 鎤iczy dodawanie tekstu do ko馽a linii.
-
-Uwaga: a , i oraz A prowadz do trybu Insert, jedyn r罂nic jest miejsce
- gdzie nowe znaki b阣 dodawane.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.3.: INNA WERSJA REPLACE (zamiana)
-
-
- ** Wpisz wielkie R by zamieni wi阠ej ni jeden znak. **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->. Przenie
- kursor do pierwszego xxx .
-
- 2. Wci秐ij R i wpisz numer poni縠j w drugiej linii, tak, 縠 zast眕i on
- xxx.
-
- 3. Wci秐ij <ESC> by opu禼i tryb Replace. Zauwa, 縠 reszta linii pozostaje
- niezmieniona.
-
- 5. Powtarzaj kroki by wymieni wszystkie xxx.
-
----> Dodanie 123 do xxx daje xxx.
----> Dodanie 123 do 456 daje 579.
-
-UWAGA: Tryb Replace jest jak tryb Insert, ale ka縟y znak usuwa istniej眂y
- znak.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.4.: KOPIOWANIE I WKLEJANIE TEKSTU
-
-
- ** u縴j operatora y aby skopiowa tekst i p aby go wklei **
-
- 1. Przejd do linii oznaczonej ---> i umie舵 kursor za "a)".
-
- 2. Wejd w tryb Visual v i przenie kursor na pocz眛ek "pierwszy".
-
- 3. Wci秐ij y aby yankowa (kopiowa) pod秝ietlony tekst.
-
- 4. Przenie kursor do ko馽a nast阷nej linii: j$
-
- 5. Wci秐ij p aby wpakowa (paste) tekst. Dodaj: a drugi<ESC> .
-
- 6. U縴j trybu Wizualnego aby wybra " element.", yankuj go y , przejd do
- ko馽a nast阷nej linii j$ i upakuj tam tekst z p .
-
----> a) to jest pierwszy element.
- b)
-Uwaga: mo縠sz u縴 y jako operatora; yw kopiuje jeden wyraz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.5.: USTAWIANIE OPCJI
-
-
-** Ustawianie opcji tak by szukaj lub substytucja ignorowa硑 wielko舵 liter **
-
- 1. Szukaj 'ignore' wpisuj眂: /ignore<ENTER>
- Powt髍z szukanie kilka razy naciskaj眂 klawisz n .
-
- 2. Ustaw opcj 'ic' (Ignore case -- ignoruj wielko舵 liter) poprzez
- wpisanie: :set ic
-
- 3. Teraz szukaj 'ignore' ponownie wciskaj眂: n
- Zauwa, 縠 Ignore i IGNORE tak縠 s teraz znalezione.
-
- 4. Ustaw opcje 'hlsearch' i 'incsearch': :set hls is
-
- 5. Teraz wprowad polecenie szukaj ponownie i zobacz co si zdarzy:
- /ignore<ENTER>
-
- 6. Aby wy潮czy ignorowanie wielko禼i liter: :set noic
-
-Uwaga: Aby usun辨 pod秝ietlanie dopasowa wpisz: :nohlsearch
-Uwaga: Aby ignorowa wielko舵 liter dla jednego wyszukiwania: /ignore\c<ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 6. PODSUMOWANIE
-
-
- 1. Wpisanie o otwiera lini PONI疎J kursora.
- Wpisanie O otwiera lini POWY疎J kursora.
-
- 2. Wpisanie a by wstawi tekst ZA znakiem na, kt髍ym jest kursor.
- Wpisanie A dodaje tekst na ko馽u linii.
-
- 3. Polecenie e przenosi do ko馽a wyrazu.
- 4. Operator y yankuje (kopiuje) tekst, p pakuje (wkleja, paste) go.
- 5. Wpisanie wielkiego R wprowadza w tryb Replace (zamiana) dop髃i
- nie zostanie wci秐i阾y <ESC>.
- 6. Wpisanie ":set xxx" ustawia opcj "xxx". Nietk髍e opcje:
- 'ic' 'ignorecase' ignoruj wielko舵 znak體
- 'is' 'incsearch' poka cz甓ciowe dopasowania
- 'hls' 'hlsearch' pod秝ietl wszystkie dopasowania
- Mo縠sz u縴 zar體no d硊giej jak i kr髏kiej formy.
- 7. Dodaj "no" aby wy潮czy opcj: :set noic
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 7.1. JAK UZYSKA POMOC
-
- ** U縴cie systemu pomocy on-line **
-
- Vim posiada bardzo dobry system pomocy on-line. By zacz辨 spr骲uj jednej
- z trzech mo縧iwo禼i:
- - wci秐ij klawisz <HELP> (je秎i taki masz)
- - wci秐ij klawisz <F1> (je秎i taki masz)
- - wpisz :help<ENTER>
-
- Przeczytaj tekst w oknie pomocy aby dowiedzie si jak dzia砤 pomoc.
- wpisz CTRL-W CTRL-W aby przeskoczy z jednego okna do innego
- wpisz :q<ENTER> aby zamkn辨 okno pomocy.
-
- Mo縠sz te znale兼 pomoc na ka縟y temat podaj眂 argument polecenia ":help".
- Spr骲uj tych (nie zapomnij wcisn辨 <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 7.2. TWORZENIE SKRYPTU STARTOWEGO
-
- ** W潮cz mo縧iwo禼i Vima **
-
- Vim ma o wiele wi阠ej mo縧iwo禼i ni Vi, ale wi阫szo舵 z nich jest domy秎nie
- wy潮czona. Je秎i chcesz w潮czy te mo縧iwo禼i na starcie musisz utworzy
- plik "vimrc".
-
- 1. Pocz眛ek edycji pliku "vimrc" zale縴 od Twojego systemu:
- :edit ~/.vimrc dla Uniksa
- :edit $VIM/_vimrc dla MS-Windows
- 2. Teraz wczytaj przyk砤dowy plik "vimrc":
- :read $VIMRUNTIME/vimrc_example.vim
- 3. Zapisz plik:
- :w
-
- Nast阷nym razem gdy zaczniesz prac w Vimie b阣zie on u縴wa pod秝ietlania
- sk砤dni. Mo縠sz doda wszystkie swoje ulubione ustawienia do tego pliku
- "vimrc".
- Aby uzyska wi阠ej informacji wpisz :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 7.3.: UZUPEIANIE
-
-
- ** Uzupe硁ianie linii polece z CTRL-D i <TAB> **
-
- 1. Upewnij si, 縠 Vim nie jest w trybie kompatybilno禼i: :set nocp
-
- 2. Zerknij jakie pliki s w bie勘cm katalogu: :!ls lub :!dir
-
- 3. Wpisz pocz眛ek polecenia: :e
-
- 4. Wci秐ij CTRL-D i Vim poka縠 list polece jakie zaczynaj si na "e".
-
- 5. Wci秐ij <TAB> i Vim uzupe硁i polecenie do ":edit".
-
- 6. Dodaj spacj i zacznij wpisywa nazw istniej眂ego pliku: :edit FIL
-
- 7. Wci秐ij <TAB>. Vim uzupe硁i nazw (je秎i jest niepowtarzalna).
-
-UWAGA: Uzupe硁ianie dzia砤 dla wielu polece. Spr骲uj wcisn辨 CTRL-D i <TAB>.
- U縴teczne zw砤szcza przy :help .
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 7. PODSUMOWANIE
-
-
- 1. Wpisz :help lub wci秐ij <F1> lub <Help> aby otworzy okno pomocy.
-
- 2. Wpisz :help cmd aby uzyska pomoc o cmd .
-
- 3. Wpisz CTRL-W CTRL-W aby przeskoczy do innego okna.
-
- 4. Wpisz :q aby zamkn辨 okno pomocy.
-
- 5. Utw髍z plik startowy vimrc aby zachowa wybrane ustawienia.
-
- 6. Po poleceniu : , wci秐ij CTRL-D aby zobaczy mo縧iwe uzupe硁ienia.
- Wci秐ij <TAB> aby u縴 jednego z nich.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Tutaj si ko馽zy tutorial Vima. Zosta on pomy秎any tak aby da kr髏ki
- przegl眃 jego mo縧iwo禼i, wystarczaj眂y by m骻 go u縴wa. Jest on
- daleki od kompletno禼i poniewa Vim ma o wiele, wiele wi阠ej polece.
-
- Dla dalszej nauki rekomendujemy ksi笨k:
- Vim - Vi Improved - autor Steve Oualline
- Wydawca: New Riders
- Pierwsza ksi眤ka ca砶owicie po秝i阠ona Vimowi. U縴teczna zw砤szcza dla
- pocz眛kuj眂ych. Zawiera wiele przyk砤d體 i ilustracji.
- Zobacz http://iccf-holland.org./click5.html
-
- Starsza pozycja i bardziej o Vi ni o Vimie, ale tak縠 warta
- polecenia:
- Learning the Vi Editor - autor Linda Lamb
- Wydawca: O'Reilly & Associates Inc.
- To dobra ksi笨ka by dowiedzie si niemal wszystkiego co chcia砨y zrobi
- z Vi. Sz髎ta edycja zawiera te informacje o Vimie.
-
- Po polsku wydano:
- Edytor vi. Leksykon kieszonkowy - autor Arnold Robbins
- Wydawca: Helion 2001 (O'Reilly).
- ISBN: 83-7197-472-8
- http://helion.pl/ksiazki/vilek.htm
- Jest to ksi笨eczka zawieraj眂a spis polece vi i jego najwa縩iejszych
- klon體 (mi阣zy innymi Vima).
-
- Edytor vi - autorzy Linda Lamb i Arnold Robbins
- Wydawca: Helion 2001 (O'Reilly) - wg 6. ang. wydania
- ISBN: 83-7197-539-2
- http://helion.pl/ksiazki/viedyt.htm
- Rozszerzona wersja Learning the Vi Editor w polskim t硊maczeniu.
-
- Ten tutorial zosta napisany przez Michaela C. Pierce'a i Roberta K. Ware'a,
- Colorado School of Mines korzystaj眂 z pomocy Charlesa Smitha,
- Colorado State University.
- E-mail: bware@mines.colorado.edu.
-
- Zmodyfikowane dla Vima przez Brama Moolenaara.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Przet硊maczone przez Miko砤ja Machowskiego,
- Sierpie 2001,
- rev. Marzec 2002
- 2nd rev. Wrzesie 2004
- 3rd rev. Marzec 2006
- Wszelkie uwagi prosz kierowa na: mikmach@wp.pl
diff --git a/runtime/tutor/tutor.pl.cp1250 b/runtime/tutor/tutor.pl.cp1250
deleted file mode 100644
index 2c62b75d1..000000000
--- a/runtime/tutor/tutor.pl.cp1250
+++ /dev/null
@@ -1,994 +0,0 @@
-===============================================================================
-= W i t a j w t u t o r i a l u V I M - a - Wersja 1.7. =
-===============================================================================
-
- Vim to pot昕ny edytor, kt髍y posiada wiele polece, zbyt du縪 by
- wyja渘i je wszystkie w tym tutorialu. Ten przewodnik ma nauczy
- Ci pos硊giwa si wystarczaj筩o wieloma komendami by m骻 砤two
- u縴wa Vima jako edytora og髄nego przeznaczenia.
-
- Czas potrzebny na uko馽zenie tutoriala to 25 do 30 minut i zale縴
- od tego jak wiele czasu sp阣zisz na eksperymentowaniu.
-
- UWAGA:
- Polecenia wykonywane w czasie lekcji zmodyfikuj tekst. Zr骲
- wcze渘iej kopi tego pliku do 鎤icze (je渓i zacz钩e komend
- "vimtutor" to ju pracujesz na kopii).
-
- Pami阾aj 縠 przewodnik ten zosta zaprojektowany do nauki poprzez
- 鎤iczenia. Oznacza to, 縠 musisz wykonywa polecenia by nauczy si ich
- prawid硂wo. Je渓i b阣ziesz jedynie czyta tekst szybko zapomnisz wiele
- polece!
-
- Teraz upewnij si, 縠 nie masz wci渘i阾ego CapsLocka i wciskaj j
- tak d硊go dop髃i Lekcja 1.1. nie wype硁i ca砶owicie ekranu.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.1.: PORUSZANIE SI KURSOREM
-
- ** By wykona ruch kursorem, wci渘ij h, j, k, l jak pokazano. **
-
- ^
- k Wskaz體ka: h jest po lewej
- < h l > l jest po prawej
- j j wygl筪a jak strza砶a w d蟪
- v
- 1. Poruszaj kursorem dop髃i nie b阣ziesz pewien, 縠 pami阾asz polecenia.
-
- 2. Trzymaj j tak d硊go a b阣zie si powtarza.
- Teraz wiesz jak doj滄 do nast阷nej lekcji.
-
- 3. U縴waj筩 strza砶i w d蟪 przejd do nast阷nej lekcji.
-
-Uwaga: Je渓i nie jeste pewien czego co wpisa砮, wci渘ij <ESC> by wr骳i do
- trybu Normal. Wtedy powt髍z polecenie.
-
-Uwaga: Klawisze kursora tak縠 powinny dzia砤, ale u縴waj筩 hjkl b阣ziesz
- w stanie porusza si o wiele szybciej jak si tylko przyzwyczaisz.
- Naprawd!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.2.: WYCHODZENIE Z VIM-a
-
- !! UWAGA: Przed wykonaniem jakiegokolwiek polecenia przeczytaj ca彻 lekcj.!!
-
- 1. Wci渘ij <ESC> (aby upewni si, 縠 jeste w trybie Normal).
- 2. Wpisz: :q!<ENTER>.
- To spowoduje wyj渃ie z edytora PORZUCAJ wszelkie zmiany jakie
- zd箍y砮 zrobi. Je渓i chcesz zapami阾a zmiany i wyj滄
- wpisz: :wq<ENTER>
-
- 3. Kiedy widzisz znak zach阾y pow硂ki wpisz komend, 縠by wr骳i
- do tutoriala. Czyli: vimtutor<ENTER>
-
- 4. Je渓i chcesz zapami阾a polecenia, wykonaj kroki 1. do 3. aby
- wyj滄 i wr骳i do edytora.
-
-UWAGA: :q!<ENTER> porzuca wszelkie zmiany jakie zrobi砮. W nast阷nych
- lekcjach dowiesz si jak je zapami阾ywa.
-
- 5. Przenie kursor do lekcji 1.3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.3.: EDYCJA TEKSTU - KASOWANIE
-
- ** Wci渘ij x aby usun规 znak pod kursorem. **
-
- 1. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 2. By poprawi b酬dy, naprowad kursor na znak do usuni阠ia.
-
- 3. Wci渘ij x aby usun规 niechciany znak.
-
- 4. Powtarzaj kroki 2. do 4. dop髃i zdanie nie jest poprawne.
-
----> Kkrowa prrzeskoczy砤 prrzez ksii昕ycc.
-
- 5. Teraz kiedy zdanie jest poprawione przejd do Lekcji 1.4.
-
-UWAGA: Ucz si przez 鎤iczenie, nie wkuwanie.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.4.: EDYCJA TEKSTU - INSERT (wprowadzanie)
-
-
- ** Wci渘ij i aby wstawi tekst. **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->.
-
- 2. Aby poprawi pierwszy wiersz, ustaw kursor na pierwszym znaku PO tym
- gdzie tekst ma by wstawiony.
-
- 3. Wci渘ij i a nast阷nie wpisz konieczne poprawki.
-
- 4. Po poprawieniu b酬du wci渘ij <ESC> by wr骳i do trybu Normal.
- Powtarzaj kroki 2. do 4. aby poprawi ca砮 zdanie.
-
----> W tej brkje troch .
----> W tej linii brakuje troch tekstu.
-
- 5. Kiedy czujesz si swobodnie wstawiaj筩 tekst przejd do
- podsumowania poni縠j.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.5.: EDYCJA TEKSTU - APPENDING (dodawanie)
-
-
- ** Wci渘ij A by doda tekst. **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->.
- Nie ma znaczenia, kt髍y to b阣zie znak.
-
- 2. Wci渘ij A i wpisz odpowiednie dodatki.
-
- 3. Kiedy tekst zosta dodany, wci渘ij <ESC> i wr箧 do trybu Normalnego.
-
- 4. Przenie kursor do drugiej linii oznaczonej ---> i powt髍z kroki 2 i 3
- aby poprawi zdanie.
-
----> Brakuje tu tro
- Brakuje tu troch tekstu.
----> Tu te troch bra
- Tu te troch brakuje.
-
- 5. Kiedy ju utrwali砮 鎤iczenie przejd do lekcji 1.6.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.6.: EDYCJA PLIKU
-
-
- ** U縴j :wq aby zapisa plik i wyj滄. **
-
- !! UWAGA: zanim wykonasz jakiekolwiek polecenia przeczyaj ca彻 lekcj !!
-
- 1. Zako馽z tutorial tak jak w lekcji 1.2.: :q!
-
- 2. W pow硂ce wydaj polecenie: vim tutor<ENTER>
- "vim" jest poleceniem uruchamiaj筩ym edytor Vim. 'tutor' to nazwa pliku
- jaki chcesz edytowa. U縴j pliku jaki mo縠 zosta zmieniony.
-
- 3. Dodaj i usu tekst tak jak si nauczy砮 w poprzednich lekcjach.
-
- 4. Zapisz plik ze zmianami i opu滄 Vima: :wq<ENTER>
-
- 5. Uruchom ponownie vimtutor i przejd do podsumowania lekcji.
-
- 6. Po przeczytaniu wszystkich krok體 i ich zrozumieniu: wykonaj je.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 1. PODSUMOWANIE
-
- 1. Poruszasz kursorem u縴waj筩 "strza砮k" i klawiszy hjkl .
- h (w lewo) j (w d蟪) k (do g髍y) l (w prawo)
-
- 2. By wej滄 do Vima (z pow硂ki) wpisz:
- vim NAZWA_PLIKU<ENTER>
-
- 3. By wyj滄 z Vima wpisz:
- <ESC> :q!<ENTER> by usun筩 wszystkie zmiany.
- LUB: <ESC> :wq<ENTER> by zmiany zachowa.
-
- 4. By usun规 znak pod kursorem wci渘ij: x
-
- 5. By wstawi tekst przed kursorem lub doda:
- i wpisz tekst <ESC> wstawi przed kursorem
- A wpisz tekst <ESC> doda na ko馽u linii
-
-UWAGA: Wci渘i阠ie <ESC> przeniesie Ci z powrotem do trybu Normal
- lub odwo砤 niechciane lub cz隃ciowo wprowadzone polecenia.
-
-Teraz mo縠my kontynuowa i przej滄 do Lekcji 2.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.1.: POLECENIE DELETE (usuwanie)
-
-
- ** Wpisz dw by usun筩 wyraz. **
-
- 1. Wci渘ij <ESC> by upewni si, 縠 jeste w trybie Normal.
-
- 2. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 3. Przesu kursor na pocz箃ek wyrazu, kt髍e chcesz usun规.
-
- 4. Wpisz dw by usun规 wyraz.
-
- UWAGA: Litera d pojawi si na dole ekranu. Vim czeka na wpisanie w .
- Je渓i zobaczysz inny znak oznacza to, 縠 wpisa砮 co 焞e, wci渘ij
- <ESC> i zacznij od pocz箃ku.
-
----> Jest tu par papier wyraz體, kt髍e kamie nie nale抗 do no縴ce tego zdania.
-
- 5. Powtarzaj kroki 3. i 4. dop髃i zdanie nie b阣zie poprawne, potem
- przejd do Lekcji 2.2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.2.: WI蔆EJ POLECE USUWAJYCH
-
-
- ** Wpisz d$ aby usun规 tekst do ko馽a linii. **
-
- 1. Wci渘ij <ESC> aby si upewni, 縠 jeste w trybie Normal.
-
- 2. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 3. Przenie kursor do ko馽a poprawnego zdania (PO pierwszej . ).
-
- 4. Wpisz d$ aby usun规 reszt linii.
-
----> Kto wpisa koniec tego zdania dwukrotnie. zdania dwukrotnie.
-
-
- 5. Przejd do Lekcji 2.3. by zrozumie co si sta硂.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.3.: O OPERATORACH I RUCHACH
-
-
- Wiele polece zmieniaj筩ych tekst s z硂縪ne z operatora i ruchu.
- Format dla polecenia usuwaj筩ego z operatorem d jest taki:
-
- d ruch
-
- Gdzie:
- d - operator usuwania.
- ruch - na czym polecenie b阣zie wykonywane (lista poni縠j).
-
- Kr髏ka lista ruch體:
- w - do pocz箃ku nast阷nego wyrazu WY%CZAJ pierwszy znak.
- e - do ko馽a bie抗cego wyrazu, W%CZAJ ostatni znak.
- $ - do ko馽a linii, W%CZAJ ostatni znak.
-
-W ten spos骲 wpisanie de usunie znaki od kursora do ko馽a wyrazu.
-
-UWAGA: Wpisanie tylko ruchu w trybie Normal bez operatora przeniesie kursor
- tak jak to okre渓ono.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.4.: U痀CIE MNO疦IKA DLA RUCHU
-
-
- ** Wpisanie liczby przed ruchem powtarza ruch odpowiedni ilo滄 razy. **
-
- 1. Przenie kursor na pocz箃ek linii poni縠j zaznaczonej --->.
-
- 2. Wpisz 2w aby przenie滄 kursor o dwa wyrazy do przodu.
-
- 3. Wpisz 3e aby przenie滄 kursor do ko馽a trzeciego wyrazu w prz骴.
-
- 4. Wpisz 0 (zero) aby przenie滄 kursor do pocz箃ku linii.
-
- 5. Powt髍z kroki 2. i 3. z innymi liczbami.
-
-
- ---> To jest zwyk硑 wiersz z wyrazami po kt髍ych mo縠sz si porusza.
-
- 6. Przejd do lekcji 2.5.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.5.: U痀CIE MNO疦IKA BY WI蔆EJ USUNテ
-
-
- ** Wpisanie liczby z operatorem powtarza go odpowiedni ilo滄 razy. **
-
- W wy縠j wspomnianej kombinacji operatora usuwania i ruchu podaj mno縩ik
- przed ruchem by wi阠ej usun规:
- d liczba ruch
-
- 1. Przenie kursor do pierwszego wyrazu KAPITALIKAMI w linii zaznaczonej --->.
-
- 2. Wpisz 2dw aby usun规 dwa wyrazy KAPITALIKAMI.
-
- 3. Powtarzaj kroki 1. i 2. z innymi mno縩ikami aby usun规 kolejne wyrazy
- KAPITALIKAMI jednym poleceniem
-
----> ta ASD WE linia QWE ASDF ZXCV FG wyraz體 zosta砤 ERT FGH CF oczyszczona.
-
-UWAGA: Mno縩ik pomi阣zy operatorem d i ruchem dzia砤 podobnie do ruchu bez
- operatora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.6.: OPEROWANIE NA LINIACH
-
-
- ** Wpisz dd aby usun规 ca彻 lini. **
-
- Z powodu cz阺to渃i usuwania ca硑ch linii, projektanci Vi zdecydowali, 縠
- b阣zie 砤twiej wpisa dwa razy d aby usun规 lini.
-
- 1. Przenie kursor do drugiego zdania z wierszyka poni縠j.
- 2. Wpisz dd aby usun规 wiersz.
- 3. Teraz przenie si do czwartego wiersza.
- 4. Wpisz 2dd aby usun筩 dwa wiersze.
-
----> 1) R罂e s czerwone,
----> 2) B硂to jest fajne,
----> 3) Fio砶i s niebieskie,
----> 4) Mam samoch骴,
----> 5) Zegar podaje czas,
----> 6) Cukier jest s硂dki,
----> 7) I ty te.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.7.: POLECENIE UNDO (cofnij)
-
-
- ** Wci渘ij u aby cofn规 skutki ostatniego polecenia.
- U za, by cofn规 skutki dla ca砮j linii. **
-
- 1. Przenie kursor do zdania poni縠j oznaczonego ---> i umie滄 go na
- pierwszym b酬dzie.
- 2. Wpisz x aby usun规 pierwszy niechciany znak.
- 3. Teraz wci渘ij u aby cofn规 skutki ostatniego polecenia.
- 4. Tym razem popraw wszystkie b酬dy w linii u縴waj筩 polecenia x .
- 5. Teraz wci渘ij wielkie U aby przywr骳i lini do oryginalnego stanu.
- 6. Teraz wci渘ij u kilka razy by cofn规 U i poprzednie polecenia.
- 7. Teraz wpisz CTRL-R (trzymaj r體nocze渘ie wci渘i阾e klawisze CTRL i R)
- kilka razy, by cofn规 cofni阠ia.
-
----> Poopraw bl阣yyy w teej liniii i zaamiie je prrzez coofnij.
-
- 8. To s bardzo po縴teczne polecenia.
-
- Przejd teraz do podsumowania Lekcji 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 2. PODSUMOWANIE
-
-
- 1. By usun规 znaki od kursora do nast阷nego wyrazu wpisz: dw
- 2. By usun规 znaki od kursora do ko馽a linii wpisz: d$
- 3. By usun规 ca彻 lini: dd
- 4. By powt髍zy ruch poprzed go liczb: 2w
- 5. Format polecenia zmiany to:
- operator [liczba] ruch
- gdzie:
- operator - to co trzeba zrobi (np. d dla usuwania)
- [liczba] - opcjonalne, ile razy powt髍zy ruch
- ruch - przenosi nad tekstem do operowania, takim jak w (wyraz),
- $ (do ko馽a linii), etc.
-
- 6. By przej滄 do pocz箃ku linii u縴j zera: 0
- 7. By cofn规 poprzednie polecenie, wpisz: u (ma砮 u)
- By cofn规 wszystkie zmiany w linii wpisz: U (wielkie U)
- By cofn规 cofni阠ia wpisz: CTRL-R
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.1.: POLECENIE PUT (wstaw)
-
-
- ** Wpisz p by wstawi ostatnie usuni阠ia za kursorem. **
-
- 1. Przenie kursor do pierwszej linii ---> poni縠j.
-
- 2. Wpisz dd aby usun规 lini i przechowa j w rejestrze Vima.
-
- 3. Przenie kursor do linii c), POWY疎J tej gdzie usuni阾a linia powinna
- si znajdowa.
-
- 4. Wci渘ij p by wstawi lini poni縠j kursora.
-
- 5. Powtarzaj kroki 2. do 4. a znajd si w odpowiednim porz筪ku.
-
----> d) Jak dwa anio砶i.
----> b) Na dole fio砶i,
----> c) A my si kochamy,
----> a) Na g髍ze r罂e,
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.2.: POLECENIE REPLACE (zast筽)
-
-
- ** Wpisz rx aby zast筽i znak pod kursorem na x . **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->
-
- 2. Ustaw kursor na pierwszym b酬dzie.
-
- 3. Wpisz r a potem znak jaki powinien go zast筽i.
-
- 4. Powtarzaj kroki 2. i 3. dop髃i pierwsza linia nie b阣zie taka jak druga.
-
----> Kjedy ten wiersz bi wst髃iwany kto wcizn钩 per z硑ch klawirzy!
----> Kiedy ten wiersz by wstukiwany kto wcisn钩 par z硑ch klawiszy!
-
- 5. Teraz czas na Lekcj 3.3.
-
-
-UWAGA: Pami阾aj by uczy si 鎤icz筩, a nie pami阠iowo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.3.: OPERATOR CHANGE (zmie)
-
- ** By zmieni do ko馽a wyrazu wpisz ce . **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->.
-
- 2. Umie滄 kursor na u w lunos.
-
- 3. Wpisz ce i popraw wyraz (w tym wypadku wstaw inia ).
-
- 4. Wci渘ij <ESC> i przejd do nast阷nej planowanej zmiany.
-
- 5. Powtarzaj kroki 3. i 4. dop髃i pierwsze zdanie nie b阣zie takie same
- jak drugie.
-
----> Ta lunos ma pire s丑w, kt髍e t縤na zbnic u縤fajonc pcmazu zmie.
----> Ta linia ma par s丑w, kt髍e trzeba zmieni u縴waj筩 polecenia zmie.
-
- Zauwa, 縠 ce nie tylko zamienia wyraz, ale tak縠 zmienia tryb na
- Insert (wprowadzanie).
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.4.: WI蔆EJ ZMIAN U痀WAJ c
-
-
- ** Polecenie change u縴wa takich samych ruch體 jak delete. **
-
- 1. Operator change dzia砤 tak samo jak delete. Format wygl筪a tak:
-
- c [liczba] ruch
-
- 2. Ruchy s tak縠 takie same, np.: w (wyraz), $ (koniec linii), etc.
-
- 3. Przenie si do pierwszej linii poni縠j oznaczonej --->
-
- 4. Ustaw kursor na pierwszym b酬dzie.
-
- 5. Wpisz c$ , popraw koniec wiersza i wci渘ij <ESC>.
-
----> Koniec tego wiersza musi by poprawiony aby wygl筪a tak jak drugi.
----> Koniec tego wiersza musi by poprawiony u縴waj筩 polecenia c$ .
-
-UWAGA: Mo縠sz u縴wa <BS> aby poprawia b酬dy w czasie pisania.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 3. PODSUMOWANIE
-
-
- 1. Aby wstawi tekst, kt髍y zosta wcze渘iej usuni阾y wci渘ij p . To
- polecenie wstawia skasowany tekst PO kursorze (je渓i ca砤 linia
- zosta砤 usuni阾a, zostanie ona umieszczona w linii poni縠j kursora).
-
- 2. By zamieni znak pod kursorem wci渘ij r a potem znak, kt髍y ma zast筽i
- oryginalny.
-
- 3. Operator change pozwala Ci na zast筽ienie od kursora do miejsca gdzie
- zabra砨y ci ruch. Np. wpisz ce aby zamieni tekst od kursora do ko馽a
- wyrazu, c$ aby zmieni tekst do ko馽a linii.
-
- 4. Format do polecenia change (zmie):
-
- c [liczba] obiekt
-
- Teraz przejd do nast阷nej lekcji.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.1.: PO疎NIE KURSORA ORAZ STATUS PLIKU
-
- ** Naci渘ij CTRL-G aby zobaczy swoje po硂縠nie w pliku i status
- pliku. Naci渘ij G aby przej滄 do linii w pliku. **
-
- UWAGA: Przeczytaj ca彻 lekcj zanim wykonasz jakie polecenia!!!
-
- 1. Przytrzymaj klawisz CTRL i wci渘ij g . U縴wamy notacji CTRL-G.
- Na dole strony pojawi si pasek statusu z nazw pliku i pozycj w pliku.
- Zapami阾aj numer linii dla potrzeb kroku 3.
-
-UWAGA: Mo縠sz te zobaczy pozycj kursora w prawym, dolnym rogu ekranu.
- Dzieje si tak kiedy ustawiona jest opcja 'ruler' (wyja渘ione w lekcji 6.).
-
- 2. Wci渘ij G aby przej滄 na koniec pliku.
- Wci渘ij gg aby przej滄 do pocz箃ku pliku.
-
- 3. Wpisz numer linii, w kt髍ej by砮 a potem G . To przeniesie ci
- z powrotem do linii, w kt髍ej by砮 kiedy wcisn钩e CTRL-G.
-
- 4. Je渓i czujesz si wystarczaj筩o pewnie, wykonaj kroki 1-3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.2.: POLECENIE SZUKAJ
-
-
- ** Wpisz / a nast阷nie wyra縠nie aby je znale熸. **
-
- 1. W trybie Normal wpisz / . Zauwa, 縠 znak ten, oraz kursor pojawi
- si na dole ekranu tak samo jak polecenie : .
-
- 2. Teraz wpisz b硂nd<ENTER> . To jest s硂wo, kt髍ego chcesz szuka.
-
- 3. By szuka tej samej frazy ponownie, po prostu wci渘ij n .
- Aby szuka tej frazy w przeciwnym, kierunku wci渘ij N .
-
- 4. Je渓i chcesz szuka frazy do ty硊, u縴j polecenia ? zamiast / .
-
- 5. Aby wr骳i gdzie by砮 wci渘ij CTRL-O. Powtarzaj by wr骳i dalej. CTRL-I
- idzie do przodu.
-
-Uwaga: 'b硂nd' to nie jest metoda by przeliterowa b彻d; 'b硂nd' to b彻d.
-Uwaga: Kiedy szukanie osi筭nie koniec pliku b阣zie kontynuowa硂 od pocz箃ku
- o ile opcja 'wrapscan' nie zosta砤 przestawiona.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.3.: W POSZUKIWANIU PARUJYCH NAWIAS覹
-
-
- ** Wpisz % by znale熸 paruj筩y ), ], lub } . **
-
- 1. Umie滄 kursor na kt髍ym z (, [, lub { w linii poni縠j oznaczonej --->.
-
- 2. Teraz wpisz znak % .
-
- 3. Kursor powinien si znale熸 na paruj筩ym nawiasie.
-
- 4. Wci渘ij % aby przenie滄 kursor z powrotem do paruj筩ego nawiasu.
-
- 5. Przenie kursor do innego (,),[,],{ lub } i zobacz co robi % .
-
----> To ( jest linia testowa z (, [, ] i {, } . ))
-
-Uwaga: Ta funkcja jest bardzo u縴teczna w debuggowaniu programu
- z niesparowanymi nawiasami!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.4.: POLECENIE SUBSTITUTE (zamiana)
-
-
- ** Wpisz :s/stary/nowy/g aby zamieni 'stary' na 'nowy'. **
-
- 1. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 2. Wpisz :s/czaas/czas<ENTER> . Zauwa, 縠 to polecenie zmienia
- tylko pierwsze wyst筽ienie 'czaas' w linii.
-
- 3. Teraz wpisz :s/czaas/czas/g . Dodane g oznacza zamian (substytucj)
- globalnie w ca砮j linii. Zmienia wszystkie wyst筽ienia 'czaas' w linii.
-
----> Najlepszy czaas na zobaczenie naj砤dniejszych kwiat體 to czaas wiosny.
-
- 4. Aby zmieni wszystkie wyst筽ienia 砤馽ucha znak體 pomi阣zy dwoma liniami,
- wpisz: :#,#s/stare/nowe/g gdzie #,# s numerami linii ograniczaj筩ych
- region gdzie ma nast筽i zamiana.
- wpisz :%s/stare/nowe/g by zmieni wszystkie wyst筽ienia w ca硑m pliku.
- wpisz :%s/stare/nowe/gc by zmieni wszystkie wyst筽ienia w ca硑m
- pliku, prosz筩 o potwierdzenie za ka縟ym razem
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 4. PODSUMOWANIE
-
- 1. CTRL-G poka縠 Twoj pozycj w pliku i status pliku. SHIFT-G przenosi
- ci do ko馽a pliku.
- G przenosi do ko馽a pliku.
- liczba G przenosi do linii [liczba].
- gg przenosi do pierwszej linii.
-
- 2. Wpisanie / a nast阷nie 砤馽ucha znak體 szuka 砤馽ucha DO PRZODU.
- Wpisanie ? a nast阷nie 砤馽ucha znak體 szuka 砤馽ucha DO TY.
- Po wyszukiwaniu wci渘ij n by znale熸 nast阷ne wyst筽ienie szukanej
- frazy tym samym kierunku lub N by szuka w kierunku przeciwnym.
- CTRL-O przenosi do starszych pozycji, CTRL-I do nowszych.
-
- 3. Wpisanie % gdy kursor znajduje si na (,),[,],{, lub } lokalizuje
- paruj筩y znak.
-
- 4. By zamieni pierwszy stary na nowy w linii wpisz :s/stary/nowy
- By zamieni wszystkie stary na nowy w linii wpisz :s/stary/nowy/g
- By zamieni frazy pomi阣zy dwoma liniami # wpisz :#,#s/stary/nowy/g
- By zamieni wszystkie wyst筽ienia w pliku wpisz :%s/stary/nowy/g
- By Vim prosi Ci o potwierdzenie dodaj 'c' :%s/stary/nowy/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.1.: JAK WYKONA POLECENIA ZEWN蔜RZNE
-
-
- ** Wpisz :! a nast阷nie zewn阾rzne polecenie by je wykona. **
-
- 1. Wpisz znajome polecenie : by ustawi kursor na dole ekranu. To pozwala
- na wprowadzenie komendy linii polece.
-
- 2. Teraz wstaw ! (wykrzyknik). To umo縧iwi Ci wykonanie dowolnego
- zewn阾rznego polecenia pow硂ki.
-
- 3. Jako przyk砤d wpisz ls za ! a nast阷nie wci渘ij <ENTER>. To polecenie
- poka縠 spis plik體 w Twoim katalogu, tak jakby by przy znaku zach阾y
- pow硂ki. Mo縠sz te u縴 :!dir je渓i ls nie dzia砤.
-
-Uwaga: W ten spos骲 mo縩a wykona wszystkie polecenia pow硂ki.
-Uwaga: Wszystkie polecenia : musz by zako馽zone <ENTER>.
- Od tego momentu nie zawsze b阣ziemy o tym wspomina.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.2.: WI蔆EJ O ZAPISYWANIU PLIK覹
-
-
- ** By zachowa zmiany w tek渃i wpisz :w NAZWA_PLIKU . **
-
- 1. Wpisz :!dir lub :!ls by zobaczy spis plik體 w katalogu.
- Ju wiesz, 縠 musisz wcisn规 <ENTER> po tym.
-
- 2. Wybierz nazw pliku jaka jeszcze nie istnieje, np. TEST.
-
- 3. Teraz wpisz: :w TEST (gdzie TEST jest nazw pliku jak wybra砮.)
-
- 4. To polecenie zapami阾a ca硑 plik (Vim Tutor) pod nazw TEST.
- By to sprawdzi wpisz :!dir lub :!ls , 縠by znowu zobaczy list plik體.
-
-Uwaga: Zauwa, 縠 gdyby teraz wyszed z Vima, a nast阷nie wszed ponownie
- poleceniem vim TEST , plik by砨y dok砤dn kopi tutoriala kiedy go
- zapisywa砮.
-
- 5. Teraz usu plik wpisuj筩 (MS-DOS): :!del TEST
- lub (Unix): :!rm TEST
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.3.: WYBRANIE TEKSTU DO ZAPISU
-
-
- ** By zachowa cz隃 pliku wpisz v ruch :w NAZWA_PLIKU **
-
- 1. Przenie kursor do tego wiersza.
-
- 2. Wci渘ij v i przenie kursor do punktu 5. Zauwa, 縠 tekst zosta
- pod渨ietlony.
-
- 3. Wci渘ij znak : . Na dole ekranu pojawi si :'<,'> .
-
- 4. Wpisz w TEST , gdzie TEST to nazwa pliku, kt髍y jeszcze nie istnieje.
- Upewnij si, 縠 widzisz :'<,'>w TEST zanim wci渘iesz Enter.
-
- 5. Vim zapisze wybrane linie do pliku TEST. U縴j :!dir lub :!ls , 縠by to
- zobaczy. Jeszcze go nie usuwaj! U縴jemy go w nast阷nej lekcji.
-
-UWAGA: Wci渘i阠ie v zaczyna tryb Wizualny. Mo縠sz porusza kursorem by
- zmieni rozmiary zaznaczenia. Mo縠sz te u縴 operatora by zrobi co
- z tekstem. Na przyk砤d d usuwa tekst.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.4.: WSTAWIANIE I %CZENIE PLIK覹
-
-
- ** By wstawi zawarto滄 pliku wpisz :r NAZWA_PLIKU **
-
- 1. Umie滄 kursor tu powy縠j tej linii.
-
-UWAGA: Po wykonaniu kroku 2. zobaczysz tekst z Lekcji 5.3. Potem przejd
- do DO by zobaczy ponownie t lekcj.
-
- 2. Teraz wczytaj plik TEST u縴waj筩 polecenia :r TEST , gdzie TEST
- jest nazw pliku.
- Wczytany plik jest umieszczony poni縠j linii z kursorem.
-
- 3. By sprawdzi czy plik zosta wczytany cofnij kursor i zobacz, 縠
- teraz s dwie kopie Lekcji 5.3., orygina i kopia z pliku.
-
-UWAGA: Mo縠sz te wczyta wyj渃ie zewn阾rznego polecenia. Na przyk砤d
- :r !ls wczytuje wyj渃ie polecenia ls i umieszcza je pod poni縠j
- kursora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 5. PODSUMOWANIE
-
-
- 1. :!polecenie wykonuje polecenie zewn阾rzne.
-
- U縴tecznymi przyk砤dami s:
-
- :!dir - pokazuje spis plik體 w katalogu.
-
- :!rm NAZWA_PLIKU - usuwa plik NAZWA_PLIKU.
-
- 2. :w NAZWA_PLIKU zapisuje obecny plik Vima na dysk z nazw NAZWA_PLIKU.
-
- 3. v ruch :w NAZWA_PLIKU zapisuje Wizualnie wybrane linie do NAZWA_PLIKU.
-
- 4. :r NAZWA_PLIKU wczytuje z dysku plik NAZWA_PLIKU i wstawia go do
- bie抗cego pliku poni縠j kursora.
-
- 5. :r !dir wczytuje wyj渃ie polecenia dir i umieszcza je poni縠j kursora.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.1.: POLECENIE OPEN (otw髍z)
-
-
- ** Wpisz o by otworzy lini poni縠j kursora i przenie滄 si do
- trybu Insert (wprowadzanie). **
-
- 1. Przenie kursor do linii poni縠j oznaczonej --->.
-
- 2. Wpisz o (ma砮) by otworzy lini PONI疎J kursora i przenie滄 si
- do trybu Insert (wprowadzanie).
-
- 3. Wpisz troch tekstu i wci渘ij <ESC> by wyj滄 z trybu Insert (wprowadzanie).
-
----> Po wci渘i阠iu o kursor znajdzie si w otwartej linii w trybie Insert.
-
- 4. By otworzy lini POWY疎J kursora wci渘ij wielkie O zamiast ma砮go
- o . Wypr骲uj to na linii poni縠j.
-
----> Otw髍z lini powy縠j wciskaj筩 SHIFT-O gdy kursor b阣zie na tej linii.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.2.: POLECENIE APPEND (dodaj)
-
-
- ** Wpisz a by doda tekst ZA kursorem. **
-
- 1. Przenie kursor do pocz箃ku pierwszej linii poni縠j oznaczonej --->
-
- 2. Wciskaj e dop髃i kursor nie b阣zie na ko馽u li .
-
- 3. Wpisz a (ma砮) aby doda tekst ZA znakiem pod kursorem.
-
- 4. Doko馽z wyraz tak jak w linii poni縠j. Wci渘ij <ESC> aby opu渃i tryb
- Insert.
-
- 5. U縴j e by przej滄 do kolejnego niedoko馽zonego wyrazu i powtarzaj kroki
- 3. i 4.
-
----> Ta li poz Ci 鎤i dodaw teks do ko lin
----> Ta linia pozwoli Ci 鎤iczy dodawanie tekstu do ko馽a linii.
-
-Uwaga: a , i oraz A prowadz do trybu Insert, jedyn r罂nic jest miejsce
- gdzie nowe znaki b阣 dodawane.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.3.: INNA WERSJA REPLACE (zamiana)
-
-
- ** Wpisz wielkie R by zamieni wi阠ej ni jeden znak. **
-
- 1. Przenie kursor do pierwszej linii poni縠j oznaczonej --->. Przenie
- kursor do pierwszego xxx .
-
- 2. Wci渘ij R i wpisz numer poni縠j w drugiej linii, tak, 縠 zast筽i on
- xxx.
-
- 3. Wci渘ij <ESC> by opu渃i tryb Replace. Zauwa, 縠 reszta linii pozostaje
- niezmieniona.
-
- 5. Powtarzaj kroki by wymieni wszystkie xxx.
-
----> Dodanie 123 do xxx daje xxx.
----> Dodanie 123 do 456 daje 579.
-
-UWAGA: Tryb Replace jest jak tryb Insert, ale ka縟y znak usuwa istniej筩y
- znak.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.4.: KOPIOWANIE I WKLEJANIE TEKSTU
-
-
- ** u縴j operatora y aby skopiowa tekst i p aby go wklei **
-
- 1. Przejd do linii oznaczonej ---> i umie滄 kursor za "a)".
-
- 2. Wejd w tryb Visual v i przenie kursor na pocz箃ek "pierwszy".
-
- 3. Wci渘ij y aby yankowa (kopiowa) pod渨ietlony tekst.
-
- 4. Przenie kursor do ko馽a nast阷nej linii: j$
-
- 5. Wci渘ij p aby wpakowa (paste) tekst. Dodaj: a drugi<ESC> .
-
- 6. U縴j trybu Wizualnego aby wybra " element.", yankuj go y , przejd do
- ko馽a nast阷nej linii j$ i upakuj tam tekst z p .
-
----> a) to jest pierwszy element.
- b)
-Uwaga: mo縠sz u縴 y jako operatora; yw kopiuje jeden wyraz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.5.: USTAWIANIE OPCJI
-
-
-** Ustawianie opcji tak by szukaj lub substytucja ignorowa硑 wielko滄 liter **
-
- 1. Szukaj 'ignore' wpisuj筩: /ignore<ENTER>
- Powt髍z szukanie kilka razy naciskaj筩 klawisz n .
-
- 2. Ustaw opcj 'ic' (Ignore case -- ignoruj wielko滄 liter) poprzez
- wpisanie: :set ic
-
- 3. Teraz szukaj 'ignore' ponownie wciskaj筩: n
- Zauwa, 縠 Ignore i IGNORE tak縠 s teraz znalezione.
-
- 4. Ustaw opcje 'hlsearch' i 'incsearch': :set hls is
-
- 5. Teraz wprowad polecenie szukaj ponownie i zobacz co si zdarzy:
- /ignore<ENTER>
-
- 6. Aby wy彻czy ignorowanie wielko渃i liter: :set noic
-
-Uwaga: Aby usun规 pod渨ietlanie dopasowa wpisz: :nohlsearch
-Uwaga: Aby ignorowa wielko滄 liter dla jednego wyszukiwania: /ignore\c<ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 6. PODSUMOWANIE
-
-
- 1. Wpisanie o otwiera lini PONI疎J kursora.
- Wpisanie O otwiera lini POWY疎J kursora.
-
- 2. Wpisanie a by wstawi tekst ZA znakiem na, kt髍ym jest kursor.
- Wpisanie A dodaje tekst na ko馽u linii.
-
- 3. Polecenie e przenosi do ko馽a wyrazu.
- 4. Operator y yankuje (kopiuje) tekst, p pakuje (wkleja, paste) go.
- 5. Wpisanie wielkiego R wprowadza w tryb Replace (zamiana) dop髃i
- nie zostanie wci渘i阾y <ESC>.
- 6. Wpisanie ":set xxx" ustawia opcj "xxx". Nietk髍e opcje:
- 'ic' 'ignorecase' ignoruj wielko滄 znak體
- 'is' 'incsearch' poka cz隃ciowe dopasowania
- 'hls' 'hlsearch' pod渨ietl wszystkie dopasowania
- Mo縠sz u縴 zar體no d硊giej jak i kr髏kiej formy.
- 7. Dodaj "no" aby wy彻czy opcj: :set noic
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 7.1. JAK UZYSKA POMOC
-
- ** U縴cie systemu pomocy on-line **
-
- Vim posiada bardzo dobry system pomocy on-line. By zacz规 spr骲uj jednej
- z trzech mo縧iwo渃i:
- - wci渘ij klawisz <HELP> (je渓i taki masz)
- - wci渘ij klawisz <F1> (je渓i taki masz)
- - wpisz :help<ENTER>
-
- Przeczytaj tekst w oknie pomocy aby dowiedzie si jak dzia砤 pomoc.
- wpisz CTRL-W CTRL-W aby przeskoczy z jednego okna do innego
- wpisz :q<ENTER> aby zamkn规 okno pomocy.
-
- Mo縠sz te znale熸 pomoc na ka縟y temat podaj筩 argument polecenia ":help".
- Spr骲uj tych (nie zapomnij wcisn规 <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 7.2. TWORZENIE SKRYPTU STARTOWEGO
-
- ** W彻cz mo縧iwo渃i Vima **
-
- Vim ma o wiele wi阠ej mo縧iwo渃i ni Vi, ale wi阫szo滄 z nich jest domy渓nie
- wy彻czona. Je渓i chcesz w彻czy te mo縧iwo渃i na starcie musisz utworzy
- plik "vimrc".
-
- 1. Pocz箃ek edycji pliku "vimrc" zale縴 od Twojego systemu:
- :edit ~/.vimrc dla Uniksa
- :edit $VIM/_vimrc dla MS-Windows
- 2. Teraz wczytaj przyk砤dowy plik "vimrc":
- :read $VIMRUNTIME/vimrc_example.vim
- 3. Zapisz plik:
- :w
-
- Nast阷nym razem gdy zaczniesz prac w Vimie b阣zie on u縴wa pod渨ietlania
- sk砤dni. Mo縠sz doda wszystkie swoje ulubione ustawienia do tego pliku
- "vimrc".
- Aby uzyska wi阠ej informacji wpisz :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 7.3.: UZUPEIANIE
-
-
- ** Uzupe硁ianie linii polece z CTRL-D i <TAB> **
-
- 1. Upewnij si, 縠 Vim nie jest w trybie kompatybilno渃i: :set nocp
-
- 2. Zerknij jakie pliki s w bie抗cm katalogu: :!ls lub :!dir
-
- 3. Wpisz pocz箃ek polecenia: :e
-
- 4. Wci渘ij CTRL-D i Vim poka縠 list polece jakie zaczynaj si na "e".
-
- 5. Wci渘ij <TAB> i Vim uzupe硁i polecenie do ":edit".
-
- 6. Dodaj spacj i zacznij wpisywa nazw istniej筩ego pliku: :edit FIL
-
- 7. Wci渘ij <TAB>. Vim uzupe硁i nazw (je渓i jest niepowtarzalna).
-
-UWAGA: Uzupe硁ianie dzia砤 dla wielu polece. Spr骲uj wcisn规 CTRL-D i <TAB>.
- U縴teczne zw砤szcza przy :help .
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 7. PODSUMOWANIE
-
-
- 1. Wpisz :help lub wci渘ij <F1> lub <Help> aby otworzy okno pomocy.
-
- 2. Wpisz :help cmd aby uzyska pomoc o cmd .
-
- 3. Wpisz CTRL-W CTRL-W aby przeskoczy do innego okna.
-
- 4. Wpisz :q aby zamkn规 okno pomocy.
-
- 5. Utw髍z plik startowy vimrc aby zachowa wybrane ustawienia.
-
- 6. Po poleceniu : , wci渘ij CTRL-D aby zobaczy mo縧iwe uzupe硁ienia.
- Wci渘ij <TAB> aby u縴 jednego z nich.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Tutaj si ko馽zy tutorial Vima. Zosta on pomy渓any tak aby da kr髏ki
- przegl筪 jego mo縧iwo渃i, wystarczaj筩y by m骻 go u縴wa. Jest on
- daleki od kompletno渃i poniewa Vim ma o wiele, wiele wi阠ej polece.
-
- Dla dalszej nauki rekomendujemy ksi箍k:
- Vim - Vi Improved - autor Steve Oualline
- Wydawca: New Riders
- Pierwsza ksi箊ka ca砶owicie po渨i阠ona Vimowi. U縴teczna zw砤szcza dla
- pocz箃kuj筩ych. Zawiera wiele przyk砤d體 i ilustracji.
- Zobacz http://iccf-holland.org./click5.html
-
- Starsza pozycja i bardziej o Vi ni o Vimie, ale tak縠 warta
- polecenia:
- Learning the Vi Editor - autor Linda Lamb
- Wydawca: O'Reilly & Associates Inc.
- To dobra ksi箍ka by dowiedzie si niemal wszystkiego co chcia砨y zrobi
- z Vi. Sz髎ta edycja zawiera te informacje o Vimie.
-
- Po polsku wydano:
- Edytor vi. Leksykon kieszonkowy - autor Arnold Robbins
- Wydawca: Helion 2001 (O'Reilly).
- ISBN: 83-7197-472-8
- http://helion.pl/ksiazki/vilek.htm
- Jest to ksi箍eczka zawieraj筩a spis polece vi i jego najwa縩iejszych
- klon體 (mi阣zy innymi Vima).
-
- Edytor vi - autorzy Linda Lamb i Arnold Robbins
- Wydawca: Helion 2001 (O'Reilly) - wg 6. ang. wydania
- ISBN: 83-7197-539-2
- http://helion.pl/ksiazki/viedyt.htm
- Rozszerzona wersja Learning the Vi Editor w polskim t硊maczeniu.
-
- Ten tutorial zosta napisany przez Michaela C. Pierce'a i Roberta K. Ware'a,
- Colorado School of Mines korzystaj筩 z pomocy Charlesa Smitha,
- Colorado State University.
- E-mail: bware@mines.colorado.edu.
-
- Zmodyfikowane dla Vima przez Brama Moolenaara.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Przet硊maczone przez Miko砤ja Machowskiego,
- Sierpie 2001,
- rev. Marzec 2002
- 2nd rev. Wrzesie 2004
- 3rd rev. Marzec 2006
- Wszelkie uwagi prosz kierowa na: mikmach@wp.pl
diff --git a/runtime/tutor/tutor.pl.utf-8 b/runtime/tutor/tutor.pl.utf-8
deleted file mode 100644
index 4590c4551..000000000
--- a/runtime/tutor/tutor.pl.utf-8
+++ /dev/null
@@ -1,994 +0,0 @@
-===============================================================================
-= W i t a j w t u t o r i a l u V I M - a - Wersja 1.7. =
-===============================================================================
-
- Vim to pot臋偶ny edytor, kt贸ry posiada wiele polece艅, zbyt du偶o by
- wyja艣ni膰 je wszystkie w tym tutorialu. Ten przewodnik ma nauczy膰
- Ci臋 pos艂ugiwa膰 si臋 wystarczaj膮co wieloma komendami by艣 m贸g艂 艂atwo
- u偶ywa膰 Vima jako edytora og贸lnego przeznaczenia.
-
- Czas potrzebny na uko艅czenie tutoriala to 25 do 30 minut i zale偶y
- od tego jak wiele czasu sp臋dzisz na eksperymentowaniu.
-
- UWAGA:
- Polecenia wykonywane w czasie lekcji zmodyfikuj膮 tekst. Zr贸b
- wcze艣niej kopi臋 tego pliku do 膰wicze艅 (je艣li zacz膮艂e艣 komend膮
- "vimtutor" to ju偶 pracujesz na kopii).
-
- Pami臋taj 偶e przewodnik ten zosta艂 zaprojektowany do nauki poprzez
- 膰wiczenia. Oznacza to, 偶e musisz wykonywa膰 polecenia by nauczy膰 si臋 ich
- prawid艂owo. Je艣li b臋dziesz jedynie czyta艂 tekst szybko zapomnisz wiele
- polece艅!
-
- Teraz upewnij si臋, 偶e nie masz wci艣ni臋tego CapsLocka i wciskaj j
- tak d艂ugo dop贸ki Lekcja 1.1. nie wype艂ni ca艂kowicie ekranu.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.1.: PORUSZANIE SI臉 KURSOREM
-
- ** By wykona膰 ruch kursorem, wci艣nij h, j, k, l jak pokazano. **
-
- ^
- k Wskaz贸wka: h jest po lewej
- < h l > l jest po prawej
- j j wygl膮da jak strza艂ka w d贸艂
- v
- 1. Poruszaj kursorem dop贸ki nie b臋dziesz pewien, 偶e pami臋tasz polecenia.
-
- 2. Trzymaj j tak d艂ugo a偶 b臋dzie si臋 powtarza艂.
- Teraz wiesz jak doj艣膰 do nast臋pnej lekcji.
-
- 3. U偶ywaj膮c strza艂ki w d贸艂 przejd藕 do nast臋pnej lekcji.
-
-Uwaga: Je艣li nie jeste艣 pewien czego艣 co wpisa艂e艣, wci艣nij <ESC> by wr贸ci膰 do
- trybu Normal. Wtedy powt贸rz polecenie.
-
-Uwaga: Klawisze kursora tak偶e powinny dzia艂a膰, ale u偶ywaj膮c hjkl b臋dziesz
- w stanie porusza膰 si臋 o wiele szybciej jak si臋 tylko przyzwyczaisz.
- Naprawd臋!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.2.: WYCHODZENIE Z VIM-a
-
- !! UWAGA: Przed wykonaniem jakiegokolwiek polecenia przeczytaj ca艂膮 lekcj臋.!!
-
- 1. Wci艣nij <ESC> (aby upewni膰 si臋, 偶e jeste艣 w trybie Normal).
- 2. Wpisz: :q!<ENTER>.
- To spowoduje wyj艣cie z edytora PORZUCAJ膭C wszelkie zmiany jakie
- zd膮偶y艂e艣 zrobi膰. Je艣li chcesz zapami臋ta膰 zmiany i wyj艣膰
- wpisz: :wq<ENTER>
-
- 3. Kiedy widzisz znak zach臋ty pow艂oki wpisz komend臋, 偶eby wr贸ci膰
- do tutoriala. Czyli: vimtutor<ENTER>
-
- 4. Je艣li chcesz zapami臋ta膰 polecenia, wykonaj kroki 1. do 3. aby
- wyj艣膰 i wr贸ci膰 do edytora.
-
-UWAGA: :q!<ENTER> porzuca wszelkie zmiany jakie zrobi艂e艣. W nast臋pnych
- lekcjach dowiesz si臋 jak je zapami臋tywa膰.
-
- 5. Przenie艣 kursor do lekcji 1.3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.3.: EDYCJA TEKSTU - KASOWANIE
-
- ** Wci艣nij x aby usun膮膰 znak pod kursorem. **
-
- 1. Przenie艣 kursor do linii poni偶ej oznaczonej --->.
-
- 2. By poprawi膰 b艂臋dy, naprowad藕 kursor na znak do usuni臋cia.
-
- 3. Wci艣nij x aby usun膮膰 niechciany znak.
-
- 4. Powtarzaj kroki 2. do 4. dop贸ki zdanie nie jest poprawne.
-
----> Kkrowa prrzeskoczy艂a prrzez ksii臋偶ycc.
-
- 5. Teraz kiedy zdanie jest poprawione przejd藕 do Lekcji 1.4.
-
-UWAGA: Ucz si臋 przez 膰wiczenie, nie wkuwanie.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.4.: EDYCJA TEKSTU - INSERT (wprowadzanie)
-
-
- ** Wci艣nij i aby wstawi膰 tekst. **
-
- 1. Przenie艣 kursor do pierwszej linii poni偶ej oznaczonej --->.
-
- 2. Aby poprawi膰 pierwszy wiersz, ustaw kursor na pierwszym znaku PO tym
- gdzie tekst ma by膰 wstawiony.
-
- 3. Wci艣nij i a nast臋pnie wpisz konieczne poprawki.
-
- 4. Po poprawieniu b艂臋du wci艣nij <ESC> by wr贸ci膰 do trybu Normal.
- Powtarzaj kroki 2. do 4. aby poprawi膰 ca艂e zdanie.
-
----> W tej brkje troch臋 .
----> W tej linii brakuje troch臋 tekstu.
-
- 5. Kiedy czujesz si臋 swobodnie wstawiaj膮c tekst przejd藕 do
- podsumowania poni偶ej.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.5.: EDYCJA TEKSTU - APPENDING (dodawanie)
-
-
- ** Wci艣nij A by doda膰 tekst. **
-
- 1. Przenie艣 kursor do pierwszej linii poni偶ej oznaczonej --->.
- Nie ma znaczenia, kt贸ry to b臋dzie znak.
-
- 2. Wci艣nij A i wpisz odpowiednie dodatki.
-
- 3. Kiedy tekst zosta艂 dodany, wci艣nij <ESC> i wr贸膰 do trybu Normalnego.
-
- 4. Przenie艣 kursor do drugiej linii oznaczonej ---> i powt贸rz kroki 2 i 3
- aby poprawi膰 zdanie.
-
----> Brakuje tu tro
- Brakuje tu troch臋 tekstu.
----> Tu te偶 troch臋 bra
- Tu te偶 troch臋 brakuje.
-
- 5. Kiedy ju偶 utrwali艂e艣 膰wiczenie przejd藕 do lekcji 1.6.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 1.6.: EDYCJA PLIKU
-
-
- ** U偶yj :wq aby zapisa膰 plik i wyj艣膰. **
-
- !! UWAGA: zanim wykonasz jakiekolwiek polecenia przeczyaj ca艂膮 lekcj臋 !!
-
- 1. Zako艅cz tutorial tak jak w lekcji 1.2.: :q!
-
- 2. W pow艂oce wydaj polecenie: vim tutor<ENTER>
- "vim" jest poleceniem uruchamiaj膮cym edytor Vim. 'tutor' to nazwa pliku
- jaki chcesz edytowa膰. U偶yj pliku jaki mo偶e zosta膰 zmieniony.
-
- 3. Dodaj i usu艅 tekst tak jak si臋 nauczy艂e艣 w poprzednich lekcjach.
-
- 4. Zapisz plik ze zmianami i opu艣膰 Vima: :wq<ENTER>
-
- 5. Uruchom ponownie vimtutor i przejd藕 do podsumowania lekcji.
-
- 6. Po przeczytaniu wszystkich krok贸w i ich zrozumieniu: wykonaj je.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 1. PODSUMOWANIE
-
- 1. Poruszasz kursorem u偶ywaj膮c "strza艂ek" i klawiszy hjkl .
- h (w lewo) j (w d贸艂) k (do g贸ry) l (w prawo)
-
- 2. By wej艣膰 do Vima (z pow艂oki) wpisz:
- vim NAZWA_PLIKU<ENTER>
-
- 3. By wyj艣膰 z Vima wpisz:
- <ESC> :q!<ENTER> by usun膮c wszystkie zmiany.
- LUB: <ESC> :wq<ENTER> by zmiany zachowa膰.
-
- 4. By usun膮膰 znak pod kursorem wci艣nij: x
-
- 5. By wstawi膰 tekst przed kursorem lub doda膰:
- i wpisz tekst <ESC> wstawi przed kursorem
- A wpisz tekst <ESC> doda na ko艅cu linii
-
-UWAGA: Wci艣ni臋cie <ESC> przeniesie Ci臋 z powrotem do trybu Normal
- lub odwo艂a niechciane lub cz臋艣ciowo wprowadzone polecenia.
-
-Teraz mo偶emy kontynuowa膰 i przej艣膰 do Lekcji 2.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.1.: POLECENIE DELETE (usuwanie)
-
-
- ** Wpisz dw by usun膮c wyraz. **
-
- 1. Wci艣nij <ESC> by upewni膰 si臋, 偶e jeste艣 w trybie Normal.
-
- 2. Przenie艣 kursor do linii poni偶ej oznaczonej --->.
-
- 3. Przesu艅 kursor na pocz膮tek wyrazu, kt贸re chcesz usun膮膰.
-
- 4. Wpisz dw by usun膮膰 wyraz.
-
- UWAGA: Litera d pojawi si臋 na dole ekranu. Vim czeka na wpisanie w .
- Je艣li zobaczysz inny znak oznacza to, 偶e wpisa艂e艣 co艣 藕le, wci艣nij
- <ESC> i zacznij od pocz膮tku.
-
----> Jest tu par臋 papier wyraz贸w, kt贸re kamie艅 nie nale偶膮 do no偶yce tego zdania.
-
- 5. Powtarzaj kroki 3. i 4. dop贸ki zdanie nie b臋dzie poprawne, potem
- przejd藕 do Lekcji 2.2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.2.: WI臉CEJ POLECE艃 USUWAJ膭CYCH
-
-
- ** Wpisz d$ aby usun膮膰 tekst do ko艅ca linii. **
-
- 1. Wci艣nij <ESC> aby si臋 upewni膰, 偶e jeste艣 w trybie Normal.
-
- 2. Przenie艣 kursor do linii poni偶ej oznaczonej --->.
-
- 3. Przenie艣 kursor do ko艅ca poprawnego zdania (PO pierwszej . ).
-
- 4. Wpisz d$ aby usun膮膰 reszt臋 linii.
-
----> Kto艣 wpisa艂 koniec tego zdania dwukrotnie. zdania dwukrotnie.
-
-
- 5. Przejd藕 do Lekcji 2.3. by zrozumie膰 co si臋 sta艂o.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.3.: O OPERATORACH I RUCHACH
-
-
- Wiele polece艅 zmieniaj膮cych tekst s膮 z艂o偶one z operatora i ruchu.
- Format dla polecenia usuwaj膮cego z operatorem d jest taki:
-
- d ruch
-
- Gdzie:
- d - operator usuwania.
- ruch - na czym polecenie b臋dzie wykonywane (lista poni偶ej).
-
- Kr贸tka lista ruch贸w:
- w - do pocz膮tku nast臋pnego wyrazu WY艁膭CZAJ膭C pierwszy znak.
- e - do ko艅ca bie偶膮cego wyrazu, W艁膭CZAJ膭C ostatni znak.
- $ - do ko艅ca linii, W艁膭CZAJ膭C ostatni znak.
-
-W ten spos贸b wpisanie de usunie znaki od kursora do ko艅ca wyrazu.
-
-UWAGA: Wpisanie tylko ruchu w trybie Normal bez operatora przeniesie kursor
- tak jak to okre艣lono.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.4.: U呕YCIE MNO呕NIKA DLA RUCHU
-
-
- ** Wpisanie liczby przed ruchem powtarza ruch odpowiedni膮 ilo艣膰 razy. **
-
- 1. Przenie艣 kursor na pocz膮tek linii poni偶ej zaznaczonej --->.
-
- 2. Wpisz 2w aby przenie艣膰 kursor o dwa wyrazy do przodu.
-
- 3. Wpisz 3e aby przenie艣膰 kursor do ko艅ca trzeciego wyrazu w prz贸d.
-
- 4. Wpisz 0 (zero) aby przenie艣膰 kursor do pocz膮tku linii.
-
- 5. Powt贸rz kroki 2. i 3. z innymi liczbami.
-
-
- ---> To jest zwyk艂y wiersz z wyrazami po kt贸rych mo偶esz si臋 porusza膰.
-
- 6. Przejd藕 do lekcji 2.5.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.5.: U呕YCIE MNO呕NIKA BY WI臉CEJ USUN膭膯
-
-
- ** Wpisanie liczby z operatorem powtarza go odpowiedni膮 ilo艣膰 razy. **
-
- W wy偶ej wspomnianej kombinacji operatora usuwania i ruchu podaj mno偶nik
- przed ruchem by wi臋cej usun膮膰:
- d liczba ruch
-
- 1. Przenie艣 kursor do pierwszego wyrazu KAPITALIKAMI w linii zaznaczonej --->.
-
- 2. Wpisz 2dw aby usun膮膰 dwa wyrazy KAPITALIKAMI.
-
- 3. Powtarzaj kroki 1. i 2. z innymi mno偶nikami aby usun膮膰 kolejne wyrazy
- KAPITALIKAMI jednym poleceniem
-
----> ta ASD WE linia QWE ASDF ZXCV FG wyraz贸w zosta艂a ERT FGH CF oczyszczona.
-
-UWAGA: Mno偶nik pomi臋dzy operatorem d i ruchem dzia艂a podobnie do ruchu bez
- operatora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.6.: OPEROWANIE NA LINIACH
-
-
- ** Wpisz dd aby usun膮膰 ca艂膮 lini臋. **
-
- Z powodu cz臋sto艣ci usuwania ca艂ych linii, projektanci Vi zdecydowali, 偶e
- b臋dzie 艂atwiej wpisa膰 dwa razy d aby usun膮膰 lini臋.
-
- 1. Przenie艣 kursor do drugiego zdania z wierszyka poni偶ej.
- 2. Wpisz dd aby usun膮膰 wiersz.
- 3. Teraz przenie艣 si臋 do czwartego wiersza.
- 4. Wpisz 2dd aby usun膮c dwa wiersze.
-
----> 1) R贸偶e s膮 czerwone,
----> 2) B艂oto jest fajne,
----> 3) Fio艂ki s膮 niebieskie,
----> 4) Mam samoch贸d,
----> 5) Zegar podaje czas,
----> 6) Cukier jest s艂odki,
----> 7) I ty te偶.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 2.7.: POLECENIE UNDO (cofnij)
-
-
- ** Wci艣nij u aby cofn膮膰 skutki ostatniego polecenia.
- U za艣, by cofn膮膰 skutki dla ca艂ej linii. **
-
- 1. Przenie艣 kursor do zdania poni偶ej oznaczonego ---> i umie艣膰 go na
- pierwszym b艂臋dzie.
- 2. Wpisz x aby usun膮膰 pierwszy niechciany znak.
- 3. Teraz wci艣nij u aby cofn膮膰 skutki ostatniego polecenia.
- 4. Tym razem popraw wszystkie b艂臋dy w linii u偶ywaj膮c polecenia x .
- 5. Teraz wci艣nij wielkie U aby przywr贸ci膰 lini臋 do oryginalnego stanu.
- 6. Teraz wci艣nij u kilka razy by cofn膮膰 U i poprzednie polecenia.
- 7. Teraz wpisz CTRL-R (trzymaj r贸wnocze艣nie wci艣ni臋te klawisze CTRL i R)
- kilka razy, by cofn膮膰 cofni臋cia.
-
----> Poopraw bl臋dyyy w teej liniii i zaamiie艅 je prrzez coofnij.
-
- 8. To s膮 bardzo po偶yteczne polecenia.
-
- Przejd藕 teraz do podsumowania Lekcji 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 2. PODSUMOWANIE
-
-
- 1. By usun膮膰 znaki od kursora do nast臋pnego wyrazu wpisz: dw
- 2. By usun膮膰 znaki od kursora do ko艅ca linii wpisz: d$
- 3. By usun膮膰 ca艂膮 lini臋: dd
- 4. By powt贸rzy膰 ruch poprzed藕 go liczb膮: 2w
- 5. Format polecenia zmiany to:
- operator [liczba] ruch
- gdzie:
- operator - to co trzeba zrobi膰 (np. d dla usuwania)
- [liczba] - opcjonalne, ile razy powt贸rzy膰 ruch
- ruch - przenosi nad tekstem do operowania, takim jak w (wyraz),
- $ (do ko艅ca linii), etc.
-
- 6. By przej艣膰 do pocz膮tku linii u偶yj zera: 0
- 7. By cofn膮膰 poprzednie polecenie, wpisz: u (ma艂e u)
- By cofn膮膰 wszystkie zmiany w linii wpisz: U (wielkie U)
- By cofn膮膰 cofni臋cia wpisz: CTRL-R
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.1.: POLECENIE PUT (wstaw)
-
-
- ** Wpisz p by wstawi膰 ostatnie usuni臋cia za kursorem. **
-
- 1. Przenie艣 kursor do pierwszej linii ---> poni偶ej.
-
- 2. Wpisz dd aby usun膮膰 lini臋 i przechowa膰 j膮 w rejestrze Vima.
-
- 3. Przenie艣 kursor do linii c), POWY呕EJ tej gdzie usuni臋ta linia powinna
- si臋 znajdowa膰.
-
- 4. Wci艣nij p by wstawi膰 lini臋 poni偶ej kursora.
-
- 5. Powtarzaj kroki 2. do 4. a偶 znajd膮 si臋 w odpowiednim porz膮dku.
-
----> d) Jak dwa anio艂ki.
----> b) Na dole fio艂ki,
----> c) A my si臋 kochamy,
----> a) Na g贸rze r贸偶e,
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.2.: POLECENIE REPLACE (zast膮p)
-
-
- ** Wpisz rx aby zast膮pi膰 znak pod kursorem na x . **
-
- 1. Przenie艣 kursor do pierwszej linii poni偶ej oznaczonej --->
-
- 2. Ustaw kursor na pierwszym b艂臋dzie.
-
- 3. Wpisz r a potem znak jaki powinien go zast膮pi膰.
-
- 4. Powtarzaj kroki 2. i 3. dop贸ki pierwsza linia nie b臋dzie taka jak druga.
-
----> Kjedy ten wiersz bi艂 wst贸kiwany kto艣 wcizn膮艂 per臋 z艂ych klawirzy!
----> Kiedy ten wiersz by艂 wstukiwany kto艣 wcisn膮艂 par臋 z艂ych klawiszy!
-
- 5. Teraz czas na Lekcj臋 3.3.
-
-
-UWAGA: Pami臋taj by uczy膰 si臋 膰wicz膮c, a nie pami臋ciowo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.3.: OPERATOR CHANGE (zmie艅)
-
- ** By zmieni膰 do ko艅ca wyrazu wpisz ce . **
-
- 1. Przenie艣 kursor do pierwszej linii poni偶ej oznaczonej --->.
-
- 2. Umie艣膰 kursor na u w lunos.
-
- 3. Wpisz ce i popraw wyraz (w tym wypadku wstaw inia ).
-
- 4. Wci艣nij <ESC> i przejd藕 do nast臋pnej planowanej zmiany.
-
- 5. Powtarzaj kroki 3. i 4. dop贸ki pierwsze zdanie nie b臋dzie takie same
- jak drugie.
-
----> Ta lunos ma pire s艂贸w, kt贸re t偶ina zbnic u偶ifajonc pcmazu zmie艅.
----> Ta linia ma par臋 s艂贸w, kt贸re trzeba zmieni膰 u偶ywaj膮c polecenia zmie艅.
-
- Zauwa偶, 偶e ce nie tylko zamienia wyraz, ale tak偶e zmienia tryb na
- Insert (wprowadzanie).
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 3.4.: WI臉CEJ ZMIAN U呕YWAJ膭C c
-
-
- ** Polecenie change u偶ywa takich samych ruch贸w jak delete. **
-
- 1. Operator change dzia艂a tak samo jak delete. Format wygl膮da tak:
-
- c [liczba] ruch
-
- 2. Ruchy s膮 tak偶e takie same, np.: w (wyraz), $ (koniec linii), etc.
-
- 3. Przenie艣 si臋 do pierwszej linii poni偶ej oznaczonej --->
-
- 4. Ustaw kursor na pierwszym b艂臋dzie.
-
- 5. Wpisz c$ , popraw koniec wiersza i wci艣nij <ESC>.
-
----> Koniec tego wiersza musi by膰 poprawiony aby wygl膮da艂 tak jak drugi.
----> Koniec tego wiersza musi by膰 poprawiony u偶ywaj膮c polecenia c$ .
-
-UWAGA: Mo偶esz u偶ywa膰 <BS> aby poprawia膰 b艂臋dy w czasie pisania.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 3. PODSUMOWANIE
-
-
- 1. Aby wstawi膰 tekst, kt贸ry zosta艂 wcze艣niej usuni臋ty wci艣nij p . To
- polecenie wstawia skasowany tekst PO kursorze (je艣li ca艂a linia
- zosta艂a usuni臋ta, zostanie ona umieszczona w linii poni偶ej kursora).
-
- 2. By zamieni膰 znak pod kursorem wci艣nij r a potem znak, kt贸ry ma zast膮pi膰
- oryginalny.
-
- 3. Operator change pozwala Ci na zast膮pienie od kursora do miejsca gdzie
- zabra艂by ci臋 ruch. Np. wpisz ce aby zamieni膰 tekst od kursora do ko艅ca
- wyrazu, c$ aby zmieni膰 tekst do ko艅ca linii.
-
- 4. Format do polecenia change (zmie艅):
-
- c [liczba] obiekt
-
- Teraz przejd藕 do nast臋pnej lekcji.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.1.: PO艁O呕ENIE KURSORA ORAZ STATUS PLIKU
-
- ** Naci艣nij CTRL-G aby zobaczy膰 swoje po艂o偶enie w pliku i status
- pliku. Naci艣nij G aby przej艣膰 do linii w pliku. **
-
- UWAGA: Przeczytaj ca艂膮 lekcj臋 zanim wykonasz jakie艣 polecenia!!!
-
- 1. Przytrzymaj klawisz CTRL i wci艣nij g . U偶ywamy notacji CTRL-G.
- Na dole strony pojawi si臋 pasek statusu z nazw膮 pliku i pozycj膮 w pliku.
- Zapami臋taj numer linii dla potrzeb kroku 3.
-
-UWAGA: Mo偶esz te偶 zobaczy膰 pozycj臋 kursora w prawym, dolnym rogu ekranu.
- Dzieje si臋 tak kiedy ustawiona jest opcja 'ruler' (wyja艣nione w lekcji 6.).
-
- 2. Wci艣nij G aby przej艣膰 na koniec pliku.
- Wci艣nij gg aby przej艣膰 do pocz膮tku pliku.
-
- 3. Wpisz numer linii, w kt贸rej by艂e艣 a potem G . To przeniesie ci臋
- z powrotem do linii, w kt贸rej by艂e艣 kiedy wcisn膮艂e艣 CTRL-G.
-
- 4. Je艣li czujesz si臋 wystarczaj膮co pewnie, wykonaj kroki 1-3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.2.: POLECENIE SZUKAJ
-
-
- ** Wpisz / a nast臋pnie wyra偶enie aby je znale藕膰. **
-
- 1. W trybie Normal wpisz / . Zauwa偶, 偶e znak ten, oraz kursor pojawi膮
- si臋 na dole ekranu tak samo jak polecenie : .
-
- 2. Teraz wpisz b艂ond<ENTER> . To jest s艂owo, kt贸rego chcesz szuka膰.
-
- 3. By szuka膰 tej samej frazy ponownie, po prostu wci艣nij n .
- Aby szuka膰 tej frazy w przeciwnym, kierunku wci艣nij N .
-
- 4. Je艣li chcesz szuka膰 frazy do ty艂u, u偶yj polecenia ? zamiast / .
-
- 5. Aby wr贸ci膰 gdzie by艂e艣 wci艣nij CTRL-O. Powtarzaj by wr贸ci膰 dalej. CTRL-I
- idzie do przodu.
-
-Uwaga: 'b艂ond' to nie jest metoda by przeliterowa膰 b艂膮d; 'b艂ond' to b艂膮d.
-Uwaga: Kiedy szukanie osi膮gnie koniec pliku b臋dzie kontynuowa艂o od pocz膮tku
- o ile opcja 'wrapscan' nie zosta艂a przestawiona.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.3.: W POSZUKIWANIU PARUJ膭CYCH NAWIAS脫W
-
-
- ** Wpisz % by znale藕膰 paruj膮cy ), ], lub } . **
-
- 1. Umie艣膰 kursor na kt贸rym艣 z (, [, lub { w linii poni偶ej oznaczonej --->.
-
- 2. Teraz wpisz znak % .
-
- 3. Kursor powinien si臋 znale藕膰 na paruj膮cym nawiasie.
-
- 4. Wci艣nij % aby przenie艣膰 kursor z powrotem do paruj膮cego nawiasu.
-
- 5. Przenie艣 kursor do innego (,),[,],{ lub } i zobacz co robi % .
-
----> To ( jest linia testowa z (, [, ] i {, } . ))
-
-Uwaga: Ta funkcja jest bardzo u偶yteczna w debuggowaniu programu
- z niesparowanymi nawiasami!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 4.4.: POLECENIE SUBSTITUTE (zamiana)
-
-
- ** Wpisz :s/stary/nowy/g aby zamieni膰 'stary' na 'nowy'. **
-
- 1. Przenie艣 kursor do linii poni偶ej oznaczonej --->.
-
- 2. Wpisz :s/czaas/czas<ENTER> . Zauwa偶, 偶e to polecenie zmienia
- tylko pierwsze wyst膮pienie 'czaas' w linii.
-
- 3. Teraz wpisz :s/czaas/czas/g . Dodane g oznacza zamian臋 (substytucj臋)
- globalnie w ca艂ej linii. Zmienia wszystkie wyst膮pienia 'czaas' w linii.
-
----> Najlepszy czaas na zobaczenie naj艂adniejszych kwiat贸w to czaas wiosny.
-
- 4. Aby zmieni膰 wszystkie wyst膮pienia 艂a艅cucha znak贸w pomi臋dzy dwoma liniami,
- wpisz: :#,#s/stare/nowe/g gdzie #,# s膮 numerami linii ograniczaj膮cych
- region gdzie ma nast膮pi膰 zamiana.
- wpisz :%s/stare/nowe/g by zmieni膰 wszystkie wyst膮pienia w ca艂ym pliku.
- wpisz :%s/stare/nowe/gc by zmieni膰 wszystkie wyst膮pienia w ca艂ym
- pliku, prosz膮c o potwierdzenie za ka偶dym razem
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 4. PODSUMOWANIE
-
- 1. CTRL-G poka偶e Twoj膮 pozycj臋 w pliku i status pliku. SHIFT-G przenosi
- ci臋 do ko艅ca pliku.
- G przenosi do ko艅ca pliku.
- liczba G przenosi do linii [liczba].
- gg przenosi do pierwszej linii.
-
- 2. Wpisanie / a nast臋pnie 艂a艅cucha znak贸w szuka 艂a艅cucha DO PRZODU.
- Wpisanie ? a nast臋pnie 艂a艅cucha znak贸w szuka 艂a艅cucha DO TY艁U.
- Po wyszukiwaniu wci艣nij n by znale藕膰 nast臋pne wyst膮pienie szukanej
- frazy tym samym kierunku lub N by szuka膰 w kierunku przeciwnym.
- CTRL-O przenosi do starszych pozycji, CTRL-I do nowszych.
-
- 3. Wpisanie % gdy kursor znajduje si臋 na (,),[,],{, lub } lokalizuje
- paruj膮cy znak.
-
- 4. By zamieni膰 pierwszy stary na nowy w linii wpisz :s/stary/nowy
- By zamieni膰 wszystkie stary na nowy w linii wpisz :s/stary/nowy/g
- By zamieni膰 frazy pomi臋dzy dwoma liniami # wpisz :#,#s/stary/nowy/g
- By zamieni膰 wszystkie wyst膮pienia w pliku wpisz :%s/stary/nowy/g
- By Vim prosi艂 Ci臋 o potwierdzenie dodaj 'c' :%s/stary/nowy/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.1.: JAK WYKONA膯 POLECENIA ZEWN臉TRZNE
-
-
- ** Wpisz :! a nast臋pnie zewn臋trzne polecenie by je wykona膰. **
-
- 1. Wpisz znajome polecenie : by ustawi膰 kursor na dole ekranu. To pozwala
- na wprowadzenie komendy linii polece艅.
-
- 2. Teraz wstaw ! (wykrzyknik). To umo偶liwi Ci wykonanie dowolnego
- zewn臋trznego polecenia pow艂oki.
-
- 3. Jako przyk艂ad wpisz ls za ! a nast臋pnie wci艣nij <ENTER>. To polecenie
- poka偶e spis plik贸w w Twoim katalogu, tak jakby艣 by艂 przy znaku zach臋ty
- pow艂oki. Mo偶esz te偶 u偶y膰 :!dir je艣li ls nie dzia艂a.
-
-Uwaga: W ten spos贸b mo偶na wykona膰 wszystkie polecenia pow艂oki.
-Uwaga: Wszystkie polecenia : musz膮 by膰 zako艅czone <ENTER>.
- Od tego momentu nie zawsze b臋dziemy o tym wspomina膰.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.2.: WI臉CEJ O ZAPISYWANIU PLIK脫W
-
-
- ** By zachowa膰 zmiany w tek艣ci wpisz :w NAZWA_PLIKU . **
-
- 1. Wpisz :!dir lub :!ls by zobaczy膰 spis plik贸w w katalogu.
- Ju偶 wiesz, 偶e musisz wcisn膮膰 <ENTER> po tym.
-
- 2. Wybierz nazw臋 pliku jaka jeszcze nie istnieje, np. TEST.
-
- 3. Teraz wpisz: :w TEST (gdzie TEST jest nazw膮 pliku jak膮 wybra艂e艣.)
-
- 4. To polecenie zapami臋ta ca艂y plik (Vim Tutor) pod nazw膮 TEST.
- By to sprawdzi膰 wpisz :!dir lub :!ls , 偶eby znowu zobaczy膰 list臋 plik贸w.
-
-Uwaga: Zauwa偶, 偶e gdyby艣 teraz wyszed艂 z Vima, a nast臋pnie wszed艂 ponownie
- poleceniem vim TEST , plik by艂by dok艂adn膮 kopi膮 tutoriala kiedy go
- zapisywa艂e艣.
-
- 5. Teraz usu艅 plik wpisuj膮c (MS-DOS): :!del TEST
- lub (Unix): :!rm TEST
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.3.: WYBRANIE TEKSTU DO ZAPISU
-
-
- ** By zachowa膰 cz臋艣膰 pliku wpisz v ruch :w NAZWA_PLIKU **
-
- 1. Przenie艣 kursor do tego wiersza.
-
- 2. Wci艣nij v i przenie艣 kursor do punktu 5. Zauwa偶, 偶e tekst zosta艂
- pod艣wietlony.
-
- 3. Wci艣nij znak : . Na dole ekranu pojawi si臋 :'<,'> .
-
- 4. Wpisz w TEST , gdzie TEST to nazwa pliku, kt贸ry jeszcze nie istnieje.
- Upewnij si臋, 偶e widzisz :'<,'>w TEST zanim wci艣niesz Enter.
-
- 5. Vim zapisze wybrane linie do pliku TEST. U偶yj :!dir lub :!ls , 偶eby to
- zobaczy膰. Jeszcze go nie usuwaj! U偶yjemy go w nast臋pnej lekcji.
-
-UWAGA: Wci艣ni臋cie v zaczyna tryb Wizualny. Mo偶esz porusza膰 kursorem by
- zmieni膰 rozmiary zaznaczenia. Mo偶esz te偶 u偶y膰 operatora by zrobi膰 co艣
- z tekstem. Na przyk艂ad d usuwa tekst.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 5.4.: WSTAWIANIE I 艁膭CZENIE PLIK脫W
-
-
- ** By wstawi膰 zawarto艣膰 pliku wpisz :r NAZWA_PLIKU **
-
- 1. Umie艣膰 kursor tu偶 powy偶ej tej linii.
-
-UWAGA: Po wykonaniu kroku 2. zobaczysz tekst z Lekcji 5.3. Potem przejd藕
- do DO艁U by zobaczy膰 ponownie t臋 lekcj臋.
-
- 2. Teraz wczytaj plik TEST u偶ywaj膮c polecenia :r TEST , gdzie TEST
- jest nazw膮 pliku.
- Wczytany plik jest umieszczony poni偶ej linii z kursorem.
-
- 3. By sprawdzi膰 czy plik zosta艂 wczytany cofnij kursor i zobacz, 偶e
- teraz s膮 dwie kopie Lekcji 5.3., orygina艂 i kopia z pliku.
-
-UWAGA: Mo偶esz te偶 wczyta膰 wyj艣cie zewn臋trznego polecenia. Na przyk艂ad
- :r !ls wczytuje wyj艣cie polecenia ls i umieszcza je pod poni偶ej
- kursora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 5. PODSUMOWANIE
-
-
- 1. :!polecenie wykonuje polecenie zewn臋trzne.
-
- U偶ytecznymi przyk艂adami s膮:
-
- :!dir - pokazuje spis plik贸w w katalogu.
-
- :!rm NAZWA_PLIKU - usuwa plik NAZWA_PLIKU.
-
- 2. :w NAZWA_PLIKU zapisuje obecny plik Vima na dysk z nazw膮 NAZWA_PLIKU.
-
- 3. v ruch :w NAZWA_PLIKU zapisuje Wizualnie wybrane linie do NAZWA_PLIKU.
-
- 4. :r NAZWA_PLIKU wczytuje z dysku plik NAZWA_PLIKU i wstawia go do
- bie偶膮cego pliku poni偶ej kursora.
-
- 5. :r !dir wczytuje wyj艣cie polecenia dir i umieszcza je poni偶ej kursora.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.1.: POLECENIE OPEN (otw贸rz)
-
-
- ** Wpisz o by otworzy膰 lini臋 poni偶ej kursora i przenie艣膰 si臋 do
- trybu Insert (wprowadzanie). **
-
- 1. Przenie艣 kursor do linii poni偶ej oznaczonej --->.
-
- 2. Wpisz o (ma艂e) by otworzy膰 lini臋 PONI呕EJ kursora i przenie艣膰 si臋
- do trybu Insert (wprowadzanie).
-
- 3. Wpisz troch臋 tekstu i wci艣nij <ESC> by wyj艣膰 z trybu Insert (wprowadzanie).
-
----> Po wci艣ni臋ciu o kursor znajdzie si臋 w otwartej linii w trybie Insert.
-
- 4. By otworzy膰 lini臋 POWY呕EJ kursora wci艣nij wielkie O zamiast ma艂ego
- o . Wypr贸buj to na linii poni偶ej.
-
----> Otw贸rz lini臋 powy偶ej wciskaj膮c SHIFT-O gdy kursor b臋dzie na tej linii.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.2.: POLECENIE APPEND (dodaj)
-
-
- ** Wpisz a by doda膰 tekst ZA kursorem. **
-
- 1. Przenie艣 kursor do pocz膮tku pierwszej linii poni偶ej oznaczonej --->
-
- 2. Wciskaj e dop贸ki kursor nie b臋dzie na ko艅cu li .
-
- 3. Wpisz a (ma艂e) aby doda膰 tekst ZA znakiem pod kursorem.
-
- 4. Doko艅cz wyraz tak jak w linii poni偶ej. Wci艣nij <ESC> aby opu艣ci膰 tryb
- Insert.
-
- 5. U偶yj e by przej艣膰 do kolejnego niedoko艅czonego wyrazu i powtarzaj kroki
- 3. i 4.
-
----> Ta li poz Ci 膰wi dodaw teks do ko艅 lin
----> Ta linia pozwoli Ci 膰wiczy膰 dodawanie tekstu do ko艅ca linii.
-
-Uwaga: a , i oraz A prowadz膮 do trybu Insert, jedyn膮 r贸偶nic膮 jest miejsce
- gdzie nowe znaki b臋d膮 dodawane.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.3.: INNA WERSJA REPLACE (zamiana)
-
-
- ** Wpisz wielkie R by zamieni膰 wi臋cej ni偶 jeden znak. **
-
- 1. Przenie艣 kursor do pierwszej linii poni偶ej oznaczonej --->. Przenie艣
- kursor do pierwszego xxx .
-
- 2. Wci艣nij R i wpisz numer poni偶ej w drugiej linii, tak, 偶e zast膮pi on
- xxx.
-
- 3. Wci艣nij <ESC> by opu艣ci膰 tryb Replace. Zauwa偶, 偶e reszta linii pozostaje
- niezmieniona.
-
- 5. Powtarzaj kroki by wymieni膰 wszystkie xxx.
-
----> Dodanie 123 do xxx daje xxx.
----> Dodanie 123 do 456 daje 579.
-
-UWAGA: Tryb Replace jest jak tryb Insert, ale ka偶dy znak usuwa istniej膮cy
- znak.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.4.: KOPIOWANIE I WKLEJANIE TEKSTU
-
-
- ** u偶yj operatora y aby skopiowa膰 tekst i p aby go wklei膰 **
-
- 1. Przejd藕 do linii oznaczonej ---> i umie艣膰 kursor za "a)".
-
- 2. Wejd藕 w tryb Visual v i przenie艣 kursor na pocz膮tek "pierwszy".
-
- 3. Wci艣nij y aby yankowa膰 (kopiowa膰) pod艣wietlony tekst.
-
- 4. Przenie艣 kursor do ko艅ca nast臋pnej linii: j$
-
- 5. Wci艣nij p aby wpakowa膰 (paste) tekst. Dodaj: a drugi<ESC> .
-
- 6. U偶yj trybu Wizualnego aby wybra膰 " element.", yankuj go y , przejd藕 do
- ko艅ca nast臋pnej linii j$ i upakuj tam tekst z p .
-
----> a) to jest pierwszy element.
- b)
-Uwaga: mo偶esz u偶y膰 y jako operatora; yw kopiuje jeden wyraz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 6.5.: USTAWIANIE OPCJI
-
-
-** Ustawianie opcji tak by szukaj lub substytucja ignorowa艂y wielko艣膰 liter **
-
- 1. Szukaj 'ignore' wpisuj膮c: /ignore<ENTER>
- Powt贸rz szukanie kilka razy naciskaj膮c klawisz n .
-
- 2. Ustaw opcj臋 'ic' (Ignore case -- ignoruj wielko艣膰 liter) poprzez
- wpisanie: :set ic
-
- 3. Teraz szukaj 'ignore' ponownie wciskaj膮c: n
- Zauwa偶, 偶e Ignore i IGNORE tak偶e s膮 teraz znalezione.
-
- 4. Ustaw opcje 'hlsearch' i 'incsearch': :set hls is
-
- 5. Teraz wprowad藕 polecenie szukaj ponownie i zobacz co si臋 zdarzy:
- /ignore<ENTER>
-
- 6. Aby wy艂膮czy膰 ignorowanie wielko艣ci liter: :set noic
-
-Uwaga: Aby usun膮膰 pod艣wietlanie dopasowa艅 wpisz: :nohlsearch
-Uwaga: Aby ignorowa膰 wielko艣膰 liter dla jednego wyszukiwania: /ignore\c<ENTER>
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 6. PODSUMOWANIE
-
-
- 1. Wpisanie o otwiera lini臋 PONI呕EJ kursora.
- Wpisanie O otwiera lini臋 POWY呕EJ kursora.
-
- 2. Wpisanie a by wstawi膰 tekst ZA znakiem na, kt贸rym jest kursor.
- Wpisanie A dodaje tekst na ko艅cu linii.
-
- 3. Polecenie e przenosi do ko艅ca wyrazu.
- 4. Operator y yankuje (kopiuje) tekst, p pakuje (wkleja, paste) go.
- 5. Wpisanie wielkiego R wprowadza w tryb Replace (zamiana) dop贸ki
- nie zostanie wci艣ni臋ty <ESC>.
- 6. Wpisanie ":set xxx" ustawia opcj臋 "xxx". Nietk贸re opcje:
- 'ic' 'ignorecase' ignoruj wielko艣膰 znak贸w
- 'is' 'incsearch' poka偶 cz臋艣ciowe dopasowania
- 'hls' 'hlsearch' pod艣wietl wszystkie dopasowania
- Mo偶esz u偶y膰 zar贸wno d艂ugiej jak i kr贸tkiej formy.
- 7. Dodaj "no" aby wy艂膮czy膰 opcj臋: :set noic
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 7.1. JAK UZYSKA膯 POMOC
-
- ** U偶ycie systemu pomocy on-line **
-
- Vim posiada bardzo dobry system pomocy on-line. By zacz膮膰 spr贸buj jednej
- z trzech mo偶liwo艣ci:
- - wci艣nij klawisz <HELP> (je艣li taki masz)
- - wci艣nij klawisz <F1> (je艣li taki masz)
- - wpisz :help<ENTER>
-
- Przeczytaj tekst w oknie pomocy aby dowiedzie膰 si臋 jak dzia艂a pomoc.
- wpisz CTRL-W CTRL-W aby przeskoczy膰 z jednego okna do innego
- wpisz :q<ENTER> aby zamkn膮膰 okno pomocy.
-
- Mo偶esz te偶 znale藕膰 pomoc na ka偶dy temat podaj膮c argument polecenia ":help".
- Spr贸buj tych (nie zapomnij wcisn膮膰 <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCJA 7.2. TWORZENIE SKRYPTU STARTOWEGO
-
- ** W艂膮cz mo偶liwo艣ci Vima **
-
- Vim ma o wiele wi臋cej mo偶liwo艣ci ni偶 Vi, ale wi臋kszo艣膰 z nich jest domy艣lnie
- wy艂膮czona. Je艣li chcesz w艂膮czy膰 te mo偶liwo艣ci na starcie musisz utworzy膰
- plik "vimrc".
-
- 1. Pocz膮tek edycji pliku "vimrc" zale偶y od Twojego systemu:
- :edit ~/.vimrc dla Uniksa
- :edit $VIM/_vimrc dla MS-Windows
- 2. Teraz wczytaj przyk艂adowy plik "vimrc":
- :read $VIMRUNTIME/vimrc_example.vim
- 3. Zapisz plik:
- :w
-
- Nast臋pnym razem gdy zaczniesz prac臋 w Vimie b臋dzie on u偶ywa膰 pod艣wietlania
- sk艂adni. Mo偶esz doda膰 wszystkie swoje ulubione ustawienia do tego pliku
- "vimrc".
- Aby uzyska膰 wi臋cej informacji wpisz :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 7.3.: UZUPE艁NIANIE
-
-
- ** Uzupe艂nianie linii polece艅 z CTRL-D i <TAB> **
-
- 1. Upewnij si臋, 偶e Vim nie jest w trybie kompatybilno艣ci: :set nocp
-
- 2. Zerknij jakie pliki s膮 w bie偶膮cm katalogu: :!ls lub :!dir
-
- 3. Wpisz pocz膮tek polecenia: :e
-
- 4. Wci艣nij CTRL-D i Vim poka偶e list臋 polece艅 jakie zaczynaj膮 si臋 na "e".
-
- 5. Wci艣nij <TAB> i Vim uzupe艂ni polecenie do ":edit".
-
- 6. Dodaj spacj臋 i zacznij wpisywa膰 nazw臋 istniej膮cego pliku: :edit FIL
-
- 7. Wci艣nij <TAB>. Vim uzupe艂ni nazw臋 (je艣li jest niepowtarzalna).
-
-UWAGA: Uzupe艂nianie dzia艂a dla wielu polece艅. Spr贸buj wcisn膮膰 CTRL-D i <TAB>.
- U偶yteczne zw艂aszcza przy :help .
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcja 7. PODSUMOWANIE
-
-
- 1. Wpisz :help lub wci艣nij <F1> lub <Help> aby otworzy膰 okno pomocy.
-
- 2. Wpisz :help cmd aby uzyska膰 pomoc o cmd .
-
- 3. Wpisz CTRL-W CTRL-W aby przeskoczy膰 do innego okna.
-
- 4. Wpisz :q aby zamkn膮膰 okno pomocy.
-
- 5. Utw贸rz plik startowy vimrc aby zachowa膰 wybrane ustawienia.
-
- 6. Po poleceniu : , wci艣nij CTRL-D aby zobaczy膰 mo偶liwe uzupe艂nienia.
- Wci艣nij <TAB> aby u偶y膰 jednego z nich.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Tutaj si臋 ko艅czy tutorial Vima. Zosta艂 on pomy艣lany tak aby da膰 kr贸tki
- przegl膮d jego mo偶liwo艣ci, wystarczaj膮cy by艣 m贸g艂 go u偶ywa膰. Jest on
- daleki od kompletno艣ci poniewa偶 Vim ma o wiele, wiele wi臋cej polece艅.
-
- Dla dalszej nauki rekomendujemy ksi膮偶k臋:
- Vim - Vi Improved - autor Steve Oualline
- Wydawca: New Riders
- Pierwsza ksi膮zka ca艂kowicie po艣wi臋cona Vimowi. U偶yteczna zw艂aszcza dla
- pocz膮tkuj膮cych. Zawiera wiele przyk艂ad贸w i ilustracji.
- Zobacz http://iccf-holland.org./click5.html
-
- Starsza pozycja i bardziej o Vi ni偶 o Vimie, ale tak偶e warta
- polecenia:
- Learning the Vi Editor - autor Linda Lamb
- Wydawca: O'Reilly & Associates Inc.
- To dobra ksi膮偶ka by dowiedzie膰 si臋 niemal wszystkiego co chcia艂by艣 zrobi膰
- z Vi. Sz贸sta edycja zawiera te偶 informacje o Vimie.
-
- Po polsku wydano:
- Edytor vi. Leksykon kieszonkowy - autor Arnold Robbins
- Wydawca: Helion 2001 (O'Reilly).
- ISBN: 83-7197-472-8
- http://helion.pl/ksiazki/vilek.htm
- Jest to ksi膮偶eczka zawieraj膮ca spis polece艅 vi i jego najwa偶niejszych
- klon贸w (mi臋dzy innymi Vima).
-
- Edytor vi - autorzy Linda Lamb i Arnold Robbins
- Wydawca: Helion 2001 (O'Reilly) - wg 6. ang. wydania
- ISBN: 83-7197-539-2
- http://helion.pl/ksiazki/viedyt.htm
- Rozszerzona wersja Learning the Vi Editor w polskim t艂umaczeniu.
-
- Ten tutorial zosta艂 napisany przez Michaela C. Pierce'a i Roberta K. Ware'a,
- Colorado School of Mines korzystaj膮c z pomocy Charlesa Smitha,
- Colorado State University.
- E-mail: bware@mines.colorado.edu.
-
- Zmodyfikowane dla Vima przez Brama Moolenaara.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Przet艂umaczone przez Miko艂aja Machowskiego,
- Sierpie艅 2001,
- rev. Marzec 2002
- 2nd rev. Wrzesie艅 2004
- 3rd rev. Marzec 2006
- Wszelkie uwagi prosz臋 kierowa膰 na: mikmach@wp.pl
diff --git a/runtime/tutor/tutor.ru b/runtime/tutor/tutor.ru
deleted file mode 100644
index 6fd74cf08..000000000
--- a/runtime/tutor/tutor.ru
+++ /dev/null
@@ -1,834 +0,0 @@
-===============================================================================
-= VIM - 髋矣裳 1.5 =
-===============================================================================
- Vim --- 茉 限盼 拖菸偈 遗牧嗽弦, 赏爬萆 臀现庞宰 讼土文, 犹邵讼
- 臀锨 奶 韵窍, 拊下 扇 子 拖治 沦滔 闲捎猎 粤讼 辙怕紊伺, 肆
- 茉显. 显 辙怕紊 幸哨琢 下哐游稍 南釉猎限蜗 奚犹 讼土文 奶 韵窍,
- 拊下 髻 拖翘 膛撬嫌载 捎邢特谙琢载 Vim 肆夼釉着 遗牧嗽弦 下菖窍
- 瘟谖赁盼裳.
-
- 髁 邢砸怕张杂 幸陕躺谏耘特蜗 25-30 蜕握 瘟 嫌紫盼膳 牧挝锨 辙怕紊肆
- 诹咨由拖釉 显 韵窍, 铀咸厮 滓磐盼 髻 邢砸猎稍 瘟 芩有乓赏盼再.
-
- 胂土文 找纤寥 抡恼 拖纳粕蒙蚁琢载 耘擞. 笙谀潦耘 讼猩 茉锨 屏侍,
- 拊下 邢幸了陨讼琢载友 瘟 闻 (庞躺 髻 诹姓釉商 "vimtutor", 韵 茉 罩
- 讼猩).
-
- 髁治 邢臀稍, 拊 茉显 辙怕紊 幸拍瘟谖赁盼 奶 下辙盼裳 幸厦庞优
- 捎邢特谙琢紊.  馅瘟蘖旁, 拊 髻 南讨钨 诹姓铀猎 讼土文 奶 韵窍,
- 拊下 肆 犹拍张 扇 哨辙稍. 逵躺 髻 幸嫌韵 幸限稍僚耘 耘擞, 韵
- 诹抡呐耘 讼土文!
-
- 襞信邑 章拍稍庞 韵, 拊 颂磷邵 CapsLock 闻 姿汤夼瘟 瘟滞稍
- 颂磷邵 j 闻铀咸厮 伊, 粤, 拊下 跻纤 1.1 邢涛嫌载 邢团釉商友 瘟
- 芩伊闻.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 1.1: 疱蝈礤铋 膈蝮矧
-
-** 涮 信遗团菖紊 苏矣弦 瘟滞稍 颂磷邵 h,j,k,l 粤, 肆 邢肆诹蜗 紊峙. **
- ^
- k 笙着再: 胩磷邵 h 瘟认纳杂 犹抛 信遗团萘旁 滋抛.
- < h l > 胩磷邵 l 瘟认纳杂 有伊琢 信遗团萘旁 仔伊紫.
- j 胩磷邵 j 邢认至 瘟 釉遗趟 `孜哨'.
- v
- 1. 鹣淖汕潦耘 苏矣弦 邢 芩伊握, 邢肆 闻 邢拚子宰张耘 优卵 兆乓盼蜗.
-
- 2. 盍牧咨耘 颂磷邵 `孜哨' (j) 邢肆 衔 闻 瘟尬旁 邢自弦言赜.
----> 襞信邑 髻 谖僚耘, 肆 信遗试 犹拍绽菖驼 找纤.
-
- 3. 橛邢特谡 颂磷邵 `孜哨' 信遗誓稍 跻纤 1.2.
-
-团蘖紊: 逵躺 踪 邢肆 闻 兆乓盼 韵, 拊 瘟律伊旁, 瘟滞稍 <ESC> 奶
- 信遗认牧 下俎钨 遗稚 (Normal mode). 鹣犹 茉锨 信遗瘟屡疑耘
- 砸怕张驼 讼土文.
-
-团蘖紊: 锫俎钨 颂磷邵 招伊滋盼裳 苏矣弦贤 (釉遗趟) 粤酥 南讨钨
- 伊孪粤载. 锬瘟讼, 颂磷邵 hjkl 邢谧咸言 髁 信遗团萘载友
- 谖赁稍盘匚 沦釉遗, 肆 韵特讼 髻 瘟辙稍庞 赏 邢特谙琢载友.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 1.2: 瘐箅 麇螓孱殄 蜥怙豉 VIM
-
-!! 黝轫犷殄! 鹨胖呐, 夼 踪邢涛言 汤孪 哨 闲捎廖钨 紊峙 哿窍, 幸限陨耘
- 找纤 门躺讼 !!
-
- 1. 盍滞稍 颂磷邵 <ESC> (奶 韵窍, 拊下 漳嫌韵着疑载友, 拊 髻 下俎蜗
- 遗稚团 (Normal mode)).
-
- 2. 盍屡疑耘: :q! <ENTER>.
-
---->  邢谧咸稍 髁 踪试 哨 遗牧嗽弦 忮 箫栩犷孱轳 汤沦 幽盘廖钨
- 哨团闻紊. 逵躺 髻 认陨耘 酉纫廖稍 哨团闻紊 踪试:
- :wq <ENTER>
-
- 3. 胂悄 髻 兆赡稍 幸汕塘叟紊 讼土文蜗 下咸限松, 瘟屡疑耘 讼土文,
- 讼韵伊 幸勺盘 髁 茉显 辙怕紊.  拖峙 沦载
- vimtutor ru <ENTER>
- 锫俎蜗 拖治 捎邢特谙琢载: vim tutor.ru <ENTER>
-
----> 'vim' 邢谧咸雅 诹姓釉稍 遗牧嗽弦 vim, 'tutor.ru' --- 茉 屏侍, 讼韵屹
- 髻 抡呐耘 遗牧嗽梢献猎.
-
- 4. 逵躺 髻 兆乓盼 韵, 拊 诹邢臀商 茉 哿巧, 踪邢涛稍 哿巧 显 1 南 3
- 拊下 踪试 游献 诹姓釉稍 遗牧嗽弦. 耘 信遗团釉稍 苏矣弦 孜哨
- 跻纤 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 1.3: 蝈溽媵轵秣犷殄 翦塍翎 - 蹁犰孱殄
-
-
-** 盍认难迂 下俎蜗 遗稚团 瘟滞稍 x, 拊下 漳撂稍 由妥咸 邢 苏矣弦贤. **
-
- 1. 鹋遗团釉稍 苏矣弦 釉蚁伺 孜哨, 邢团夼挝鲜 --->.
-
- 2. 涮 捎幸磷膛紊 羡陕纤, 信遗团釉稍 苏矣弦, 邢肆 衔 闻 纤林旁友 瘟
- 漳撂雅唾 由妥咸贤.
-
- 3. 盍滞稍 颂磷邵 x 奶 漳撂盼裳 砸怕张拖窍 由妥咸.
-
- 4. 鹣自弦稍 哿巧 2--4 邢肆 釉蚁肆 闻 抡呐 捎幸磷膛瘟.
-
----> 镌 栽韵邢粤 讼匈栽 行匈特 行 行邢汤 膛栽稍.
-
- 5. 襞信邑, 讼悄 釉蚁肆 显讼乙潘陨蚁琢瘟, 信遗认纳耘 找纤 1.4.
-
-礤铋: 认呐 嫌紫盼裳 茉锨 辙怕紊肆 闻 匈粤试庞 诹邢蜕瘟载, 辙稍
- 幸厦庞优 捎邢特谙琢紊.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 1.4: 蝈溽媵轵秣犷殄 翦塍翎 - 黧翎麟
-
-
- ** 盍认难迂 下俎蜗 遗稚团 (Normal mode), 瘟滞稍 i 奶 子粤姿 耘擞粤. **
-
- 1. 鹋遗团釉稍 苏矣弦 信易鲜 釉蚁伺 孜哨, 邢团夼挝鲜 --->.
-
- 2. 涮 韵窍, 拊下 幽盘猎 信易绽 釉蚁苏 赡盼陨尬鲜 自弦鲜, 邢团釉稍
- 苏矣弦 瘟 由妥咸 疱蝈 讼韵屹 犹拍张 子粤咨载 耘擞.
-
- 3. 盍滞稍 i 瘟屡疑耘 砸怕张唾 南铝滋盼裳.
-
- 4. 鹣犹 捎幸磷膛紊 子湃 羡陕纤 瘟滞稍 <ESC> 奶 紫谧伊粤 下俎钨 遗稚.
- 鹣自弦稍 哿巧 2--4, 邢肆 埔邻 闻 抡呐 捎幸磷膛瘟 邢涛嫌载.
-
----> 釉 耘擞粤 釉蚁伺 屡犹拍蜗 .
----> 釉 耘擞粤 茉鲜 釉蚁伺 屡佑膛奈 幸闲撂.
-
- 5. 胂悄 嫌紫稍 子粤姿 耘擞粤, 信遗认纳耘 牧特叟 蚺诶团.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 蝈礤 躜镫 1
-
- 1. 胝矣弦 信遗团萘旁友 躺孪 颂磷邵镣 酉 釉遗趟镣, 躺孪 颂磷邵镣 hjkl.
- h (滋抛) j (孜哨) k (鬃乓) l (仔伊紫)
-
- 2. 涮 诹姓铀 Vim (哨 幸汕塘叟紊 % 讼土文蜗 下咸限松) 瘟屡疑耘:
- vim 轫馹驷觎 <ENTER>
-
- 3. 涮 诹着役盼裳 伊孪再 Vim 瘟屡疑耘:
- <ESC> :q! <ENTER> 拊下 显肆诹载友 显 酉纫廖盼裳 哨团闻紊.
- 樘 瘟屡疑耘:
- <ESC> :wq <ENTER> 拊下 酉纫廖稍 哨团闻紊.
-
- 4. 涮 漳撂盼裳 由妥咸 邢 苏矣弦贤 下俎蜗 遗稚团, 瘟屡疑耘: x
-
- 5. 下 子粤咨载 耘擞 信遗 苏矣弦贤 下俎蜗 遗稚团, 瘟屡疑耘:
- i 鬃夏稍 耘擞 <ESC>
-
-礤铋: 盍至陨 <ESC> 信遗团釉稍 髁 下俎钨 遗稚 (Normal mode) 躺孪
- 幸乓着 闻峙塘耘特握 蘖釉赊蜗 诹着役盼握 讼土文.
-
-襞信邑 信遗认纳 跻纤 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 2.1: 腼磲钿 蹁犰孱轳
-
-
- ** 盍屡疑耘 dw 奶 漳撂盼裳 辙劣运 耘擞粤 南 讼蚊 犹献. **
-
- 1. 盍滞稍 <ESC>, 拊下 信遗试 下俎钨 遗稚.
-
- 2. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 3. 鹋遗团釉稍 苏矣弦 瘟蘖滔 犹献, 讼韵蚁 犹拍张 漳撂稍.
-
- 4. 盍屡疑耘 dw , 拊下 漳撂稍 茉 犹献.
-
-礤铋: 飨 滓磐 瘟孪伊 抡俗 dw 邢炎言友 邢犹拍闻 釉蚁伺 芩伊瘟. 逵躺
- 髻 拊-韵 瘟屡遗耘 闻幸磷商匚, 瘟滞稍 <ESC> 瘟尬稍 游赁撂.
-
----> 钆铀咸厮 犹献 伊粕瘟 茉贤 幸拍滔峙紊 磷韵艘廖 哨躺畚.
-
- 5. 鹣自弦稍 哿巧 3 4, 邢肆 闻 捎幸磷稍 子 羡陕松 信遗认纳耘
- 跻纤 2.2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 2.2: 滹痫祛轸屐 腼磲钿 蹁犰孱轳
-
-
- ** 盍屡疑耘 d$ 奶 漳撂盼裳 耘擞粤 南 讼蚊 釉蚁松. **
-
- 1. 盍滞稍 <ESC>, 拊下 信遗试 下俎钨 遗稚.
-
- 2. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 3. 鹋遗团釉稍 苏矣弦 讼蚊 幸磷商匚鲜 釉蚁松 (痫箪 信易鲜 . ).
-
- 4. 下 漳撂稍 嫌粤韵 釉蚁松, 瘟屡疑耘 d$ .
-
----> 朐-韵 瘟乱撂 纤衔蘖紊 茉鲜 釉蚁松 淖林馁. 纤衔蘖紊 茉鲜 釉蚁松 淖林馁.
-
-
- 5.下 陶捋 伊谙乱猎赜 茉贤, 信遗认纳耘 跻纤 2.3.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 2.3: 腼磲钿 镡咫豉
-
-
- 嫦彝猎 讼土文 `漳撂盼膳' d 粤讼:
-
- [奚犹蟏 d 下吲嗽 殪 d [奚犹蟏 下吲嗽
- 庞:
- 奚犹 - 铀咸厮 伊 捎邢涛稍 讼土文 (闻下掩猎盘匚, 邢 胀咸蘖紊=1).
- d - 讼土文 漳撂盼裳.
- 下吲嗽 - 夼 讼土文 南讨瘟 沦载 踪邢涛盼 (信遗奚犹盼 紊峙).
-
- 胍猎松 有捎纤 下吲嗽献:
- w - 显 苏矣弦 南 讼蚊 犹献, 姿汤蘖 诹着役晾萆 幸下盘.
- e - 显 苏矣弦 南 讼蚊 犹献, 铄 姿汤蘖 诹着役晾萆 幸下盘.
- $ - 显 苏矣弦 南 讼蚊 釉蚁松.
- ^ - 显 苏矣弦 南 瘟蘖塘 釉蚁松.
-
-礤铋: 鹨嫌韵 瘟至陨 瘟 由妥咸 下吲嗽 下俎蜗 遗稚团 (Normal mode)
- 屡 南邢涛稍盘匚偃 讼土文 信遗淖晌旁 苏矣弦 粤, 肆 账邻廖
- 有捎伺 下吲嗽献.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 2.4: 轶腱帼孱殄 辁 痱狩殪 `腼磲钿-镡咫'
-
-
- ** 盍屡疑耘 dd 奶 漳撂盼裳 子攀 釉蚁松. **
-
- 饔膛挠宰膳 蘖釉锨 幸赏盼盼裳 闲乓撩缮 漳撂盼裳 子攀 釉蚁松, 伊谝谅显奚松
- Vim 遗凵躺, 拊 奶 茉锨 幸陷 子徘 幸嫌韵 瘟乱猎 d 淖林馁.
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 讼 自弦鲜 釉蚁伺 埔邻.
- 2. 盍屡疑耘 dd 奶 漳撂盼裳 釉蚁松.
- 3. 襞信邑 信遗团釉稍庞 夼宰乓韵 釉蚁伺.
- 4. 盍屡疑耘 2dd (子邢臀稍 幸磷商 `奚犹-讼土文-下吲嗽'), 拊下 漳撂稍
- 淖 釉蚁松.
-
- 1) 炫韵 认终 瘟 釉聊上,
- 2) , 肆 孜炮列蜗 讼无商友 纳琢!
- 3) 孪膛 诹 ``紊'', ``紊'' --- 夼托上!
- 4) 鹋蘖特蜗 翘阎 瘟 瘟叟 邢讼膛紊!
- 5) 迩 且涯蛰排 商 姓釉 商 耘臀...
- 6) 由终 瘟 铀镣攀伺 滔峙 `'
- 7) 汕伊 瘟 孪特巯 峙釉盐鲜 砸章.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 2.5: 腼磲钿 `雉脶'
-
-
- ** 盍滞稍 u 奶 显团钨 遗谡特粤粤 伊孪再 幸拍倌蛰攀 讼土文, U 奶 显团钨
- 捎幸磷膛紊 紫 子攀 釉蚁伺. **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 ---> 沼粤蜗咨耘 徘 瘟
- 信易绽 羡陕苏.
- 2. 盍滞稍 x 奶 漳撂盼裳 信易锨 闻幸磷商匚锨 由妥咸.
- 3. 襞信邑 瘟滞稍 u 奶 显团钨 (显肆粤) 邢犹拍闻 踪邢涛盼蜗 讼土文.
- 4. 橛幸磷卦 子 羡陕松 釉蚁伺, 捎邢特谡 讼土文 x .
- 5. 襞信邑 瘟滞稍 诹翘磷握 U 奶 韵窍, 拊下 着椅赵 子 釉蚁苏 捎认奈吓
- 酉釉涎紊.
- 6. 盍滞稍 u 闻铀咸厮 伊 奶 显团钨 讼土文 U 幸拍倌蛰扇 讼土文.
- 7. 盍滞稍 耘信邑 CTRL-R (漳乓稚琢试 颂磷邵 CTRL 瘟至韵 拖团卧 瘟至陨
- R) 闻铀咸厮 伊 奶 紫谧伊粤 讼土文 (显肆 显肆粤).
-
----> 橛幸伊棕耘 舷凵滤 茉鲜 釉蚁伺 着椅稍耘 扇 佑 邢拖葚乩 `显肆粤'.
-
- 8.  沦躺 限盼 邢膛谖倥 讼土文. 淞膛 信遗认纳耘 蚺诶团 跻纤 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 蝈礤 躜镫 2
-
-
- 1. 涮 漳撂盼裳 耘擞粤 显 苏矣弦 南 讼蚊 犹献 瘟屡疑耘: dw
-
- 2. 涮 漳撂盼裳 耘擞粤 显 苏矣弦 南 讼蚊 釉蚁松 瘟屡疑耘: d$
-
- 3. 涮 漳撂盼裳 子攀 釉蚁松 瘟屡疑耘: dd
-
- 4. 嫦彝猎 讼土文 下俎蜗 遗稚团 赏排 咨:
-
- [奚犹蟏 讼土文 下吲嗽 殪 讼土文 [奚犹蟏 下吲嗽
- 悄:
- 奚犹 - 铀咸厮 伊 邢自弦稍 踪邢涛盼膳 讼土文
- 讼土文 - 拊 踪邢涛稍, 瘟幸赏乓 d 奶 漳撂盼裳
- 下吲嗽 - 瘟 拊 南讨瘟 紫谀攀釉紫琢载 讼土文, 瘟幸赏乓 w (犹献),
- $ (南 讼蚊 釉蚁松), ..
-
- 5. 涮 显团钨 (显肆粤) 幸拍叟釉渍垒扇 呐视宰墒 瘟屡疑耘: u (釉蚁尬裂 u)
- 涮 显团钨 (显肆粤) 子湃 哨团闻紊 釉蚁伺 瘟屡疑耘: U (幸闲捎瘟 U)
- 涮 显团钨 显肆粤 瘟屡疑耘: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 3.1: 腼磲钿 黧翎麟
-
-
- ** 盍屡疑耘 p 奶 子粤姿 邢犹拍闻窍 漳撂盼蜗窍 耘擞粤 邢犹 苏矣弦. **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨 邢犹拍闻 釉蚁伺 哨 瘟孪伊.
-
- 2. 盍屡疑耘 dd 奶 漳撂盼裳 釉蚁松 排 酉纫廖盼裳 抡婆遗 Vim'.
-
- 3. 鹋遗团釉稍 苏矣弦 釉蚁伺 钺 耘 团釉贤, 苏牧 犹拍张 子粤咨载
- 漳撂盼握 釉蚁苏.
-
- 4. 盍认难迂 下俎蜗 遗稚团 瘟屡疑耘 p 奶 诹团钨 釉蚁松.
-
- 5. 鹣自弦稍 哿巧 2--4, 邢肆 闻 伊佑粤咨耘 子 釉蚁松 握治贤 邢已乃.
-
- ) 陶捋 踪恼土载 闻 拖.
- ) 胂悄 闻 壅运 诹闻拖,
- ) 镂 兆林猎 优卵 诹釉磷商
- ) 硐 难难 恿唾 夼釉钨 幸磷商
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 3.2: 腼磲钿 礤铢
-
-
- ** 盍屡疑耘 r 由妥咸, 诹团窝垒墒 由妥咸 邢 苏矣弦贤. **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 2. 跤粤蜗咨耘 苏矣弦 粤, 拊下 衔 瘟认纳逃 瘟 信易鲜 羡陕讼.
-
- 3. 盍屡疑耘 r 诹耘 由妥咸, 捎幸磷萄垒墒 羡陕苏.
-
- 4. 鹣自弦稍 哿巧 2 3, 邢肆 信易裂 釉蚁肆 闻 抡呐 捎幸磷膛瘟.
-
----> 拖团窃 瘟略伊 茉鲜 拊蚁松 讼0嗽 砸漳贤 邢凶牧 邢 颂琢邵镣!
----> 拖团卧 瘟孪伊 茉鲜 釉蚁松 讼-嗽 砸漳贤 邢辛牧 邢 颂磷邵镣!
-
- 5. 襞信邑 信遗认纳耘 跻纤 3.2.
-
-礤铋: 鹣臀稍, 拊 踪 南讨钨 辙稍赜 幸厦庞优 伊孪再, 闻 幸嫌韵
- 诹邢蜕瘟.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 3.3: 腼磲钿 辁礤铄铋
-
-
- ** 涮 哨团闻紊 蘖釉 犹献 瘟屡疑耘 cw . **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 2. 蛄有咸现稍 苏矣弦 瘟 抡俗鲜 `o' 犹献 `酉塘'.
-
- 3. 盍屡疑耘 cw 捎幸磷卦 犹献 ( 牧挝贤 犹辙僚, 瘟屡疑耘 `滔'.)
-
- 4. 盍滞稍 <ESC> 信遗认纳耘 犹拍绽菖 羡陕伺 ( 信易贤 由妥咸, 讼韵屹
- 瘟南 哨团紊载.)
-
- 5. 鹣自弦稍 哿巧 3--4 邢肆 信易吓 幸拍滔峙紊 闻 釉廖旁 赡盼陨尬偻 自弦贤.
-
----> 钆铀咸厮 酉塘 茇敲 釉蚁伺 孕芹寐 遗牧腾苏郎庞兹.
----> 钆铀咸厮 犹献 茉鲜 釉蚁伺 砸怕绽 遗牧嗽梢献廖裳.
-
-锫伊陨耘 孜赏廖膳, 拊 cw 闻 韵特讼 诹团窝旁 犹献, 蜗 信遗紫纳 琢 遗稚
-子粤姿.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 3.4: 痱镤镬鲠屙 辁礤铖豇 腼磲钿镪 c
-
-
-** 胂土文 诹团钨 捎邢特谡旁友 耘蜕 峙 下吲嗽镣, 拊 讼土文 漳撂盼裳. **
-
- 1. 胂土文 哨团闻紊 幸赏盼雅杂 粤松 峙 下伊谙, 肆 讼土文 漳撂盼裳.
- 迮 葡彝猎 粤讼:
-
- [奚犹蟏 c 下吲嗽 殪 c [奚犹蟏 下吲嗽
-
- 2. 锫吲嗽 粤酥 酉仔聊晾: w (犹献), $ (讼闻 釉蚁松) ..
-
- 3. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 4. 鹋遗誓稍 信易鲜 羡陕伺.
-
- 5. 盍屡疑耘 c$ 显遗牧嗽梢帐耘 信易绽 釉蚁苏 粤, 拊下 衔 酉仔聊撂 酉
- 自弦鲜, 邢犹 夼窍 瘟滞稍 <ESC>.
-
----> 胂闻 茉鲜 釉蚁松 握帜僚杂 邢拖萆, 拊下 釉猎 邢认稚 瘟 自弦鲜.
----> 胂闻 茉鲜 釉蚁松 握帜僚杂 邢拖萆 讼土文 c$ .
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 蝈礤 躜镫 3
-
-
- 1. 涮 子粤姿 耘擞粤, 讼韵屹 韵特讼 拊 沦 漳撂盼, 瘟屡疑耘 p . 
- 讼土文 子粤咨 漳撂盼钨 耘擞 痫箪 苏矣弦 (庞躺 沦塘 漳撂盼 釉蚁肆,
- 韵 衔 抡呐 邢团菖瘟 釉蚁伺 邢 苏矣弦贤).
-
- 2. 涮 诹团钨 由妥咸 邢 苏矣弦贤 瘟屡疑耘 r 诹耘 诹团窝垒墒 由妥咸.
-
- 3. 胂土文 哨团闻紊 邢谧咸雅 髁 哨团紊载 账邻廖钨 下吲嗽 显 苏矣弦 南
- 讼蚊 茉锨 下吲嗽. 盍幸赏乓, 瘟屡疑耘 cw 奶 诹团钨 显 苏矣弦 南
- 讼蚊 犹献, c$ 奶 哨团闻紊 南 讼蚊 釉蚁松.
-
- 4. 嫦彝猎 讼土文 哨团闻紊 粤讼:
-
- [奚犹蟏 c 下吲嗽 殪 c [奚犹蟏 下吲嗽
-
-襞信邑 显幸磷萄试庞 犹拍绽菖驼 找纤.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 4.1: 轭骘蝽徙轳 驷觎 蜥箴镬秭孱殄 铄
-
-
- ** 盍屡疑耘 CTRL-g 拊下 兆赡旁 髁叟 团釉弦劣邢滔峙紊 屏侍 晌葡彝撩衫
- 闻.
- 盍屡疑耘 SHIFT-G 奶 信遗团菖紊 诹牧挝鲜 釉蚁伺 屏侍. **
-
- 团蘖紊: 鹨限稍潦耘 着迂 找纤 幸胖呐 夼 踪邢涛言 汤沦 讼土文!!
-
- 1. 跄乓稚琢 颂磷邵 Ctrl 瘟滞稍 g . 魑哨 芩伊瘟 邢炎稍友 釉蚁肆 釉猎沼
- 赏盼磐 屏侍 蜗团蚁 釉蚁松, 讼韵蚁 髻 瘟认纳耘迂. 邢臀稍 蜗团
- 釉蚁松, 衔 邢砸怕张杂 瘟 桥 3.
-
- 2. 盍滞稍 shift-G 奶 信遗团菖紊 讼蚊 屏侍.
-
- 3. 盍屡疑耘 蜗团 釉蚁松, 讼韵蚁 踪 瘟认纳躺迂 诹耘 shift-G. 
- 着椅旁 髁 釉蚁伺, 讼韵蚁 髻 沦躺, 讼悄 信易偈 伊 瘟至躺 Ctrl-g.
- (胂悄 髻 抡呐耘 瘟律伊载 蒙埔, 衔 铄 显下伊谘杂 瘟 芩伊闻.)
-
- 4. 逵躺 髻 诹邢臀商 子 踪叟铀邻廖蜗, 踪邢涛稍 哿巧 1--3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 4.2: 腼磲钿 痫轶脶
-
- ** 盍屡疑耘 / 诹耘 鬃拍稍 捎讼驼 埔邻. **
-
- 1. 下俎蜗 遗稚团 (Normal mode) 瘟屡疑耘 由妥咸 / . 锫伊陨耘 孜赏廖膳,
- 拊 衔 淄庞耘 苏矣弦贤 邢炎稍友 孜哨 芩伊瘟, 肆 茉 幸仙尤夏稍
- 讼土文鲜 : .
-
- 2. 襞信邑 瘟屡疑耘 '羡圹陕肆' <ENTER>.  韵 犹献, 讼韵蚁 髻 抡呐耘
- 捎肆载.
-
- 3. 涮 韵窍, 拊下 邢自弦稍 邢捎, 幸嫌韵 瘟滞稍 n .
- 涮 邢捎肆 茉鲜 埔邻 下伊晕贤 瘟幸磷膛紊, 瘟滞稍 Shift-N .
-
- 4. 逵躺 髻 峙塘旁 右邻 捎肆载 下伊晕贤 瘟幸磷膛紊, 捎邢特谡试
- 讼土文 ? 淄庞韵 / .
-
----> 胂悄 髻 幸 邢捎伺 南釉汕闻耘 讼蚊 屏侍, 邢捎 抡呐 幸夏咸峙
- 瘟蘖塘.
-
- "羡圹陕肆" 茉 闻 有嫌下 幸仙谖庞盼裳 犹献 `羡陕肆'; 羡圹陕肆 茉 羡陕肆.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 4.3: 痫轶 疳蝾 箅镡镫
-
-
- ** 盍屡疑耘 % 奶 邢捎肆 辛椅偃 ),] 商 } . **
-
- 1. 鹣团釉稍 苏矣弦 瘟 汤孪 哨 (, [ 商 { 釉蚁伺 孜哨, 邢团夼挝鲜 --->.
-
- 2. 襞信邑 瘟屡疑耘 由妥咸 % .
-
- 3. 胝矣弦 南讨盼 信遗铀限稍 瘟 辛椅绽 铀下苏.
-
- 4. 盍屡疑耘 % 奶 紫谧伊粤 苏矣弦 瘟诹 信易鲜 铀下伺.
-
---->  ( 釉蚁肆, 酉呐抑凛裂 粤松 (, 粤松 [ ] 粤松 { } 铀下松. ))
-
-团蘖紊:  限盼 漳下蜗 幸 显塘乃 幸锨伊屯 幸闲蛰盼钨蜕 铀下肆蜕!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 4.4: 箴矬镡 轶痱狩戾铋 稃殁镫
-
-
- ** 盍屡疑耘 :s/沦滔/釉撂/g 奶 诹团钨 '沦滔' 瘟 '釉撂'. **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 2. 盍屡疑耘 :s/兆夏/兆现 <ENTER> . 锫伊陨耘 孜赏廖膳 瘟 韵, 拊 茉 讼土文
- 诹团紊 韵特讼 信易吓 瘟誓盼蜗 兹现呐紊 釉蚁伺.
-
- 3. 襞信邑 瘟屡疑耘 :s/兆夏/兆现/g , 馅瘟蘖垒排 邢挠粤蜗姿 翘下撂匚 紫
- 子攀 釉蚁伺.  诹团紊 子 瘟誓盼钨 釉蚁伺 兹现呐紊.
-
----> 兆夏 显着抑盼钨 优膛呜淹, 兆夏 铀紫谪 着讼着尬偈 釉衔, 兆夏
- 诹沦再 邢讼膛呜淹.
-
- 4. 涮 诹团钨 子湃 兹现呐紊 邢犹拍献猎盘匚嫌陨 由妥咸献 团帜 淖胀
- 釉蚁肆蜕,
- 瘟屡疑耘 :#,#s/沦滔/釉撂/g 悄 #,# --- 蜗团伊 茉扇 釉蚁.
- 盍屡疑耘 :%s/沦滔/釉撂/g 奶 诹团钨 子湃 兹现呐紊 紫 子磐 屏侍.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 蝈礤 躜镫 4
- 1. Ctrl-g 邢肆谫琢旁 琢叟 邢滔峙紊 屏侍 晌葡彝撩衫 闻.
- Shift-G 信遗团萘旁 髁 讼闻 屏侍. 钕团, 诹 讼韵屹 犹拍张 Shift-G
- 邢谧咸雅 信遗试 釉蚁伺 茉赏 蜗团蚁.
-
- 2. 盍至陨 / 诹耘 鬃夏 釉蚁松 邢谧咸雅 幸仙谧庞陨 邢捎 茉鲜 釉蚁松
- 黟弪邃 邢 耘擞哉.
- 盍至陨 ? 诹耘 鬃夏 釉蚁松 邢谧咸雅 幸仙谧庞陨 邢捎 茉鲜 釉蚁松
- 钺 邢 耘擞哉.
- 鹣犹 邢捎肆 瘟屡疑耘 n 奶 信遗认牧 犹拍绽菖驼 兹现呐紊 捎讼拖
- 釉蚁松 韵 峙 瘟幸磷膛紊 商 Shift-N 奶 信遗认牧 幸显勺闲咸现蜗
- 瘟幸磷膛紊.
-
- 3. 盍至陨 % , 讼悄 苏矣弦 瘟认纳杂 瘟 (,),[,],{, 商 } 邢谧咸雅 瘟试
- 辛椅绽 铀下苏.
-
- 4. 涮 邢挠粤蜗姿 `釉撂' 淄庞韵 信易锨 `沦滔' 釉蚁伺, 瘟屡疑耘
- :s/old/new
- 涮 邢挠粤蜗姿 `釉撂' 淄庞韵 子湃 `沦滔' 釉蚁伺, 瘟屡疑耘
- :s/old/new/g
- 涮 诹团钨 晌耘易撂 团帜 淖胀 釉蚁肆蜕, 瘟屡疑耘
- :#,#s/old/new/g
- 涮 诹团钨 子湃 兹现呐紊 `沦滔' 瘟 `釉撂' 屏侍, 瘟屡疑耘
- :%s/old/new/g
- 下 遗牧嗽弦 肆帜偈 伊 诹幸鳞勺撂 邢脑着抑呐紊, 南铝棕耘 'c'
- :%s/old/new/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 5.1: 脶 鼯痫祛轸 黝妍钹 腼磲钿
-
-
- ** 盍屡疑耘 :! 诹耘 孜袍卫 讼土文, 讼韵艺 犹拍张 踪邢涛稍. **
-
- 1. 盍屡疑耘 罩 谖了贤绽 髁 讼土文 : 奶 沼粤蜗姿 苏矣弦 讼土文握
- 釉蚁苏 遗牧嗽弦.  邢谧咸稍 髁 鬃庞陨 讼土文.
-
- 2. 襞信邑 瘟屡疑耘 由妥咸 ! (紫铀躺昧耘特钨 谖了). 襞信邑 拖治 捎邢涛稍
- 孜袍卫 讼土文, 捎邢特谡 讼土文握 下咸限苏.
-
- 3. 涮 幸赏乓 瘟屡疑耘 ls 邢犹 ! 瘟滞稍 <ENTER>.  讼土文 踪着呐
- 有捎纤 屏侍献 耘苏菖 肆粤滔桥, 韵尬 粤酥, 肆 庞躺 沦 髻 鬃盘 茉
- 讼土文 幸汕塘叟紊 下咸限松. 樘 邢幸下帐耘 :!dir , 庞躺 幸拍倌蛰裂
- 讼土文 闻 右谅显撂.
-
----> 团蘖紊: 袅松 有嫌下贤 拖治 踪邢涛稍 汤抡 孜袍卫 讼土文.
-
----> 团蘖紊: 饔 讼土文, 瘟奚瘟垒膳友 : , 南讨钨 诹着役猎赜 瘟至陨磐
- <ENTER>.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 5.2: 脶 痖筢豇 驷觎
-
-
-** 涮 酉纫廖盼裳 哨团闻紊, 幸仙谧拍盼钨 屏侍, 瘟屡疑耘 :w 轫馹驷觎. **
-
- 1. 盍屡疑耘 :!dir 商 :!ls 奶 邢陶夼紊 有捎肆 屏侍献 耘苏菖 肆粤滔桥.
- 肓 髁 罩 哨着釉蜗, 髻 南讨钨 瘟至载 <ENTER> 邢犹 鬃夏 茉扇 讼土文.
-
- 2. 鹨赡胀潦耘 瘟谧廖膳 奶 屏侍, 讼韵蚁 泡 闻 诱菖釉渍旁, 瘟幸赏乓 TEST.
-
- 3. 襞信邑 瘟屡疑耘 :w TEST (悄 TEST --- 茉 赏 屏侍, 幸赡胀廖蜗 髁蜕.)
-
- 4.  讼土文 酉纫廖稍 着迂 屏侍 (蹀怕紊 邢 Vim) 邢 赏盼磐 TEST. 下
- 漳嫌韵着疑载友 茉贤, 游献 瘟屡疑耘 :!dir 幸嫌拖砸稍 肆粤滔.
-
----> 团载耘, 拊 庞躺 髻 踪誓旁 哨 Vim 诹耘 诹姓釉稍 徘 游献
- 屏侍贤 TEST, 茉显 屏侍 抡呐 韵尬鲜 讼猩攀 辙怕紊肆 韵 拖团卧, 讼悄
- 髻 徘 酉纫廖商.
-
- 5. 襞信邑 漳撂稍 茉显 屏侍, 瘟乱磷 :!del TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 5.3: 鼯怙蝻镥 箫栩犷孱殄
-
-
- ** 涮 酉纫廖盼裳 蘖釉 屏侍, 瘟屡疑耘 :#,# w 轫馹驷觎 **
-
- 1. 遢 伊 瘟屡疑耘 :!dir 商 :!ls 奶 邢陶夼紊 有捎肆 屏侍献 耘苏菖
- 肆粤滔桥 踪屡疑耘 邢娜夏演排 赏, 瘟幸赏乓 TEST.
-
- 2. 鹋遗团釉稍 苏矣弦 瘟蘖陶 茉鲜 釉伊紊觅 瘟滞稍 Ctrl-g 奶 瘟认帜盼裳
- 蜗团伊 釉蚁松to. 痫眍轸 雉 铒礤!
-
- 3. 襞信邑 信遗团釉稍庞 讼闻 釉伊紊觅 孜献 瘟屡疑耘 Ctrl-g. 痫眍轸
- 雉 铒礤 麸鲥!
-
- 4. 涮 酉纫廖盼裳 麸禅腼 篝 屏侍 瘟屡疑耘 :#,# w TEST , 悄 #,# --- 茉
- 蜗团伊, 讼韵屹 髻 诹邢臀商 (瘟蘖滔, 讼闻), TEST --- 赏 琢叟窍 屏侍.
-
- 5. 肓 幸胖呐, 章拍稍庞 瘟躺奚 茉锨 屏侍 讼土文鲜 :!dir , 蜗 铄
- 蹁犰耜翦 徘.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 5.4: 孱殄 镡邃轭孱殄 驷觎秣
-
- ** 涮 子粤姿 酉呐抑赏锨 屏侍, 瘟屡疑耘 :r FILENAME **
-
- 1. 盍屡疑耘 :!dir 奶 韵窍, 拊下 章拍稍赜 韵, 拊 屏侍 TEST 子 泡
- 诱菖釉渍旁.
-
- 2. 跤粤蜗咨耘 苏矣弦 着胰闻 蘖釉 茉鲜 釉伊紊觅.
-
-团蘖紊: 鹣犹 踪邢涛盼裳 哿橇 3 髻 兆赡稍 跻纤 5.3. 鹣犹 茉锨
- 信遗团萘试庞 黝辁, 游献 茉贤 找纤.
-
- 3. 襞信邑 幸限稍潦耘 髁 屏侍 TEST, 捎邢特谡 讼土文 :r TEST , 悄
- TEST --- 茉 赏 屏侍.
-
-团蘖紊: 鹨限稍廖钨 髁蜕 屏侍 抡呐 子粤滋盼 韵 团釉, 悄 瘟认纳杂
- 苏矣弦.
-
- 4. 下 章拍稍赜 韵, 拊 屏侍 幸限稍廖, 信遗团釉稍庞 闻臀锨 瘟诹 邢
- 耘擞哉 诹团载耘, 拊 耘信邑 诱菖釉渍涝 淖 讼猩 跻纤 5.3, 捎认奈裂
- 邢陶夼挝裂 哨 屏侍.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 蝈礤 躜镫 5
-
-
- 1. :!讼土文 捎邢涛雅 孜袍卫 讼土文.
-
- 钆讼韵屹 邢膛谖倥 幸赏乓:
- :!dir --- 踪紫纳 有捎纤 屏侍献 肆粤滔桥.
- :!del FILENAME --- 漳撂雅 屏侍 FILENAME.
-
- 2. :w FILENAME 诹猩淤琢旁 耘苏萆 遗牧嗽梢张唾 屏侍 瘟 纳铀
- 邢 赏盼磐 FILENAME.
-
- 3. :#,#w FILENAME 酉纫廖雅 釉蚁松 显 # 南 # 屏侍 FILENAME.
-
- 4. :r FILENAME 愚稍僮僚 纳铀 屏侍 FILENAME 邢团萘旁 徘 耘苏萆
- 屏侍 犹拍贤 诹 邢谏蒙攀 苏矣弦.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 6.1: 腼磲钿 箫犷轳
-
-
- ** 盍屡疑耘 o 拊下 酉谀猎 姓釉绽 釉蚁苏 邢 苏矣弦贤 信遗试 遗稚
- 子粤姿 (Insert mode) **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 2. 盍屡疑耘 o ( 紊治磐 遗巧釉遗) 奶 韵窍, 拊下 酉谀猎 姓釉绽 釉蚁苏
- 铋鲥 苏矣弦 信遗试 遗稚 子粤姿 (Insert mode).
-
- 3. 襞信邑 铀闲梢帐耘 邢团夼挝绽 ---> 釉蚁苏 瘟滞稍 <ESC> 奶 踪认牧 哨
- 遗稚土 子粤姿.
-
----> 鹣犹 瘟至陨 o 苏矣弦 信遗誓旁 瘟 蜗渍 姓釉绽 釉蚁苏 遗稚团 子粤姿.
-
- 4. 涮 酉谀廖裳 釉蚁松 鼯 苏矣弦, 幸嫌韵 瘟屡疑耘 诹翘磷握 O, 淄庞韵
- 釉蚁尬鲜 o. 鹣幸下帐耘 幸夏盘猎 茉 紊峙犹拍绽菖 釉蚁讼.
-笙谀潦耘 蜗渍 釉蚁苏 瘟 茉鲜, 瘟至 Shift-O, 邢团釉勺 苏矣弦 瘟 茉 釉蚁苏.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 6.2: 腼磲钿 滹忉黛孱轳
-
- ** 盍屡疑耘 a , 拊下 子粤咨载 耘擞 痫箪 苏矣弦. **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 讼闻 信易鲜 釉蚁松, 邢团夼挝鲜 ---> ,
- 瘟乱磷 $ 下俎蜗 遗稚团 (Normal mode).
-
- 2. 盍屡疑耘 a ( 紊治磐 遗巧釉遗) 奶 南铝滋盼裳 耘擞粤 痫箪 由妥咸,
- 瘟认难菖窍友 邢 苏矣弦贤. (翘磷瘟 A 邢谧咸雅 南铝咨载 讼闻
- 釉蚁松.)
-
-团蘖紊:  邢谧咸雅 哨屡至载 瘟至陨 i , 邢犹拍闻窍 由妥咸, 耘擞粤 奶
- 子粤姿, <ESC>, 苏矣弦-仔伊紫, , 瘟讼闻, x , 幸嫌韵 奶 韵窍,
- 拊下 南铝咨载 耘釉 讼闻 釉蚁松!
-
- 3. 襞信邑 诹着役稍 信易绽 釉蚁苏. 团载耘 粤酥, 拊 南铝滋盼膳 茉
- 韵尬嫌陨 韵 峙 恿拖, 拊 遗稚 子粤姿, 诹 捎颂擂盼膳 邢谏蒙,
- 讼韵艺 抡呐 子粤滋盼 耘擞.
-
---->  釉蚁匏 邢谧咸稍 髁 邢幸了陨讼琢载友
---->  釉蚁匏 邢谧咸稍 髁 邢幸了陨讼琢载友 南铝滋盼缮 耘擞粤 讼闻
- 釉蚁松.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 6.3: 妪 镤轭 箴矬镡 礤铢
-
-
- ** 盍屡疑耘 诹翘磷握 R 奶 诹团钨 孪膛, 夼 夏蜗窍 由妥咸. **
-
- 1. 鹋遗团釉稍 苏矣弦 孜哨, 釉蚁伺, 邢团夼挝鲜 --->.
-
- 2. 蛄有咸现稍 苏矣弦 瘟蘖膛 信易锨 犹献, 显躺蘖垒徘嫌 显
- 酉显着杂宰绽菖窍 犹拍绽菖 釉蚁伺, 邢团夼挝鲜 ---> (犹献 '邢犹拍闻').
-
- 3. 襞信邑 瘟屡疑耘 R 诹团紊耘 嫌粤韵 耘擞粤 信易鲜 釉蚁伺, 瘟乱磷
- 邢着胰 釉烈锨 耘擞粤 粤, 拊下 下 釉蚁松 釉撂 夏晌了献偻.
-
----> 鹋易绽 釉蚁苏 拖治 右磷窝载 邢犹拍闻, 捎邢特谡 颂磷邵.
----> 鹋易绽 釉蚁苏 拖治 右磷窝载 自弦鲜, 捎邢特谡 R 瘟乱磷 蜗踪 耘擞.
-
- 4. 锫伊陨耘 孜赏廖膳, 拊 幸 瘟至陨 <ESC> 奶 诹着役盼裳, 汤孪
- 闻 哨团闻挝偈 耘擞 酉纫廖稍友.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 6.4: 躞翎铒麟 疳蜥礤趄秣
-
-
-** 跤粤蜗咨 辛伊团砸 粤, 拊下 汕蜗疑蚁琢载 遗巧釉 幸 邢捎伺 商 诹团闻 **
-
-
- 1. 鹣奢稍 犹献 '汕蜗疑蚁琢载', 瘟乱磷:
- /汕蜗疑蚁琢载
- 鹣自弦稍 邢捎 闻铀咸厮 伊, 瘟稚土 颂磷邵 n
-
- 2. 魉汤奚耘 辛伊团砸 'ic' (榍蜗疑蚁琢载 遗巧釉), 瘟乱磷:
- :set ic
-
- 3. 襞信邑 游献 幽盘潦耘 邢捎 犹献 '汕蜗疑蚁琢载', 瘟至: n
- 鹣自弦稍 邢捎 闻铀咸厮 伊, 瘟稚土 颂磷邵 n
-
- 4. 魉汤奚耘 辛伊团砸 'hlsearch' 'incsearch':
- :set hls is
-
- 5. 襞信邑 闲言 鬃拍稍 讼土文 邢捎肆 邢油显疑耘, 拊 邢陶奚杂:
- /汕蜗疑蚁琢载
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 蝈礤 躜镫 6
-
-
- 1. 盍至陨 o 酉谀僚 釉蚁苏 铋鲥 苏矣弦 信遗团萘旁 苏矣弦 闻 遗稚团
- 子粤姿.
- 盍至陨 诹翘磷蜗 O 酉谀僚 釉蚁苏 鼯 釉蚁松, 讼韵蚁 瘟认纳杂
- 苏矣弦.
-
- 2. 盍屡疑耘 a 奶 子粤姿 耘擞粤 痫箪 由妥咸, 瘟 讼韵蚁 瘟认纳杂 苏矣弦.
- 盍至陨 诹翘磷蜗 A 磷韵土陨夼铀 信遗团萘旁 髁 奶 南铝滋盼裳 耘擞粤
- 讼闻 釉蚁松.
-
- 3. 盍至陨 诹翘磷蜗 R 信遗紫纳 髁 遗稚 诹团钨 南 耘 邢, 邢肆 闻
- 抡呐 瘟至粤 颂磷邵 <ESC> 奶 诹着役盼裳.
-
- 4. 盍乱磷 ":set xxx" 踪 油现旁 姿汤奚载 辛伊团砸 "xxx"
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 7: 腼磲钿 痫祯铋 黧趄镥铑镪 箴蜥麟
-
- ** 橛邢特谡试 子砸吓挝绽 有伊紫尬绽 由釉磐 **
-
- Vim 下塘牧旁 拖菸鲜 子砸吓挝鲜 有伊紫尬鲜 由釉磐鲜. 涮 瘟蘖塘 邢幸下帐耘
- 夏晌 哨 砸湃 琢疑廖韵:
- - 瘟滞稍 颂磷邵 <HELP> (庞躺 粤讼琢 赏排杂 瘟 颂磷闪哉遗)
- - 瘟滞稍 颂磷邵 <F1> (庞躺 粤讼琢 赏排杂 瘟 颂磷闪哉遗)
- - 瘟屡疑耘 :help <ENTER>
-
- 盍屡疑耘 :q <ENTER> 拊下 诹艘僭 纤蜗 有伊姿.
-
- 髻 拖峙耘 瘟试 有伊姿 奶 汤孪窍 邢窝陨 商 讼土文, 幸嫌韵 诹牧
- 酉显着杂宰绽萆 烈钦团卧 讼土文 ":help". 鹣幸下帐耘 犹拍绽菖 (闻 诹抡呢耘
- 瘟至载 <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 跻纤 8: 箫犷殄 篝狎麸黠顼 箅蜷痿
-
- ** 魉汤奚 紫谕现蜗釉 Vim **
-
- Vim 赏排 瘟臀锨 孪特叟 紫谕现蜗釉攀, 夼 Vi, 夏瘟讼 孪特凵斡宰料 哨 紊
- 踪颂擂盼 邢 胀咸蘖紊. 涮 韵窍, 拊下 瘟蘖载 捎邢特谙琢载 蜗踪
- 紫谕现蜗釉 髁 犹拍张 酉谀猎 屏侍 "vimrc".
-
- 1. 镌遗牧嗽梢帐耘 屏侍 "vimrc", 徘 伊有咸现盼膳 诹咨由 显 捎邢特谡磐鲜
- 由釉磐:
-
- :edit ~/.vimrc 奶 Unix
- :edit $VIM/_vimrc 奶 MS-Windows
-
- 2. 襞信邑 幸限稍潦耘 幸赏乓 屏侍 "vimrc":
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 猩凵耘 屏侍:
-
- :write
-
- 襞信邑 幸 犹拍绽菖 诹姓铀 Vim 抡呐 姿汤夼瘟 邢挠着运 由卧了由恿. 饔
- 瘟釉蚁仕, 幸拍邢奚粤磐倥 髁蜕, 拖钦 沦载 南铝滋盼 屏侍 "vimrc".
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 盍 茉贤 诹着役僚杂 蹀怕紊 Vim. 镂 沦 幸拍瘟谖赁盼 奶 韵窍, 拊下 牧载
- 下菖 幸拍釉磷膛紊 遗牧嗽弦 Vim, 南釉猎限蜗 奶 韵窍, 拊下 膛撬嫌载
- 捎邢特谙琢载 徘. 蹀怕紊 牧膛 显 邢涛显, 邢铀咸厮 Vim 赏排 限盼 臀锨
- 讼土文. 鹨限稍潦耘 耘信邑 艺讼紫挠宰 邢特谙琢耘萄: ":help user-manual".
-
- 涮 牧特闻售徘 拊盼裳 遗讼团文张杂 宋汕:
- Vim - Vi Improved - 嶙韵: Steve Oualline
- 橼牧耘特: New Riders
-  宋汕 邢涛嫌载 邢幼演盼 Vim. 镉下盼蜗 邢膛谖 蜗咨匏镣. 笙呐抑稍
- 臀现庞宰 幸赏乓献 商汤釉伊蒙.
- 髭翘盐稍 瘟 See http://iccf-holland.org/click5.html
-
- 筇拍绽萘 宋汕 孪膛 邢拊盼蜗窍 紫谝劣粤 邢幼演盼 孪特叟 Vi, 夼 Vim,
- 夏瘟讼 粤酥 遗讼团文张杂:
- Learning the Vi Editor - 嶙韵: Linda Lamb
- 橼牧耘特: O'Reilly & Associates Inc.
-  认蚁哿 宋汕 奶 韵窍, 拊下 遮瘟载 子, 拊 韵特讼 拖治 幸夏盘僮猎
- Vi. 釉吓 哨牧紊 粤酥 姿汤蘖旁 晌葡彝撩衫 Vim.
-
- 显 辙怕紊 沦 瘟猩恿 Michael C. Pierce Robert K. Ware, Colorado School
- of Mines 捎邢特谙琢紊磐 赡攀, 幸拍滔峙挝偃 Charles Smith, Colorado State
- University. E-mail: bware@mines.colorado.edu.
-
- 湎伊孪粤蜗 奶 Vim Bram Moolenaar.
-
- 鹋遗紫: 嵛囊攀 肷优膛 <a_kissel@eudoramail.com>, 2002.
- Translator: Andrey Kiselev <a_kissel@eudoramail.com>, 2002.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.ru.cp1251 b/runtime/tutor/tutor.ru.cp1251
deleted file mode 100644
index 024ca526b..000000000
--- a/runtime/tutor/tutor.ru.cp1251
+++ /dev/null
@@ -1,834 +0,0 @@
-===============================================================================
-= VIM - 洛瘃 1.5 =
-===============================================================================
- Vim ---  铟屙 祛 疱溧牝铕, 桁妣 祉铈羼蜮 觐爨礓, 耠桫觐
- 祉钽 潆 蝾泐, 黩钺 桴 怦 祛骓 猁腩 铒桉囹 蜞觐 篦遽龛赍, 赅
- 铗. 蒡铗 篦遽龛 镳桤忄 钺耥栩 漕耱囹铟眍 麒耠 觐爨礓 潆 蝾泐,
- 黩钺 蔓 祛汶 脲汴铖螯 桉镱朦珙忄螯 Vim 赅麇耱忮 疱溧牝铕 钺泐
- 磬珥圜屙.
-
- 锣 镱蝠遽箦蝰 镳栳腓玷蝈朦眍 25-30 扈眢 磬 铖忸屙桢 溧眄钽 篦遽龛赅
- 玎忤耔祛耱 铗 蝾泐, 耜铍 怵屐屙 蔓 镱蝠囹栩 磬 耧屦桁屙螓.
-
- 暑爨礓 箴铌圊 狍潴 祛滂翳鲨痤忄螯 蝈犟. 杨玟嚅蝈 觐镨 钽 羿殡,
- 黩钺 镱镳嚓蜩觐忄螯 磬 礤 (羼腓 蔓 玎矬耱桦 "vimtutor", 蝾  箧
- 觐镨).
-
- 锣骓 镱祉栩, 黩 铗 篦遽龛 镳邃磬珥圜屙 潆 钺篦屙 镳铞羼皴
- 桉镱朦珙忄龛. 蒡 铉磬鬣弪, 黩 蔓 漕腈睇 玎矬耜囹 觐爨礓 潆 蝾泐,
- 黩钺 赅 耠邃箦 桴 桤篦栩. 篷腓 蔓 镳铖蝾 镳铟栩噱蝈 蝈犟, 蝾
- 玎狍溴蝈 觐爨礓!
-
- 义镥瘘 筢邃栩羼 蝾, 黩 觌噔桫 CapsLock 礤 怅膻麇磬 磬骒栩
- 觌噔桫 j 礤耜铍 疣, 蜞, 黩钺 羽铌 1.1 镱腠铖螯 镱戾耱桦 磬
- 疣礤.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 1.1: 吓信膛倥腿 视醒涡
-
-** 碾 镥疱戾龛 牦瘃铕 磬骒栩 觌噔桫 h,j,k,l 蜞, 赅 镱赅玎眍 龛驽. **
- ^
- k 杨忮螓: 孰噔桫 h 磬躅滂蝰 耠邂 镥疱戾弪 怆邂.
- < h l > 孰噔桫 l 磬躅滂蝰 耧疣忄 镥疱戾弪 怙疣忸.
- j 孰噔桫 j 镱躅驵 磬 耱疱腙 `忭桤'.
- v
- 1. 项溻桡嚅蝈 牦瘃铕 镱 疣眢, 镱赅 礤 镱黧怦蜮箦蝈 皴 筲屦屙眍.
-
- 2. 袜溧忤蝈 觌噔桫 `忭桤' (j) 镱赅 铐 礤 磬黜弪 镱怛铕螯.
----> 义镥瘘 蔓 珥噱蝈, 赅 镥疱轵 耠邃簋祗 箴铌.
-
- 3. 锐镱朦珞 觌噔桫 `忭桤' 镥疱殇栩 羽铌 1.2.
-
-青戾鬣龛: 篷腓 恹 镱赅 礤 筲屦屙 蝾, 黩 磬徼疣弪, 磬骒栩 <ESC> 潆
- 镥疱躅溧 钺睇 疱骅 (Normal mode). 项耠 钽 镥疱磬徨痂蝈
- 蝠遽箦祗 觐爨礓.
-
-青戾鬣龛: 吾睇 觌噔桫 箫疣怆屙 牦瘃铕铎 (耱疱腙) 蜞赕 漕腈睇
- 疣犷蜞螯. 武磬觐, 觌噔桫 hjkl 镱玮铍 锣 镥疱戾螯
- 珥圜栩咫 猁耱疱, 赅 蝾朦觐 蔓 磬篦栩羼 桁 镱朦珙忄螯.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 1.2: 抢嫌咽 抢屡胸磐扰 欣廖役 VIM
-
-!! 峦忍劳扰! 橡彐溴, 麇 恹镱腠螯 膻犷 桤 铒桉囗睇 龛驽 泐, 镳铟蜩蝈
- 箴铌 鲥腓觐 !!
-
- 1. 袜骒栩 觌噔桫 <ESC> (潆 蝾泐, 黩钺 箐铖蝾忮痂螯, 黩 蔓 钺眍
- 疱骅戾 (Normal mode)).
-
- 2. 袜徨痂蝈: :q! <ENTER>.
-
----> 蒡 镱玮铍栩 锣 恹轵 桤 疱溧牝铕 僚 盐招劳磐冗 膻猁 皲咫囗睇
- 桤戾礤龛. 篷腓 蔓 躅蜩蝈 耦躔囗栩 桤戾礤龛 恹轵:
- :wq <ENTER>
-
- 3. 暑沅 蔓 筲桎栩 镳桡豚龛 觐爨礓眍 钺铍铟觇, 磬徨痂蝈 觐爨礓,
- 觐蝾疣 镳桠咫 锣 铗 篦遽龛. 蒡 祛驽 猁螯
- vimtutor ru <ENTER>
- 吾眍 祛骓 桉镱朦珙忄螯: vim tutor.ru <ENTER>
-
----> 'vim' 镱玮铍弪 玎矬耱栩 疱溧牝铕 vim, 'tutor.ru' ---  羿殡, 觐蝾瘥
- 蔓 狍溴蝈 疱溧牝桊钼囹.
-
- 4. 篷腓 蔓 筲屦屙 蝾, 黩 玎镱祉桦  汨, 恹镱腠栩 汨 铗 1 漕 3
- 黩钺 恹轵 耥钼 玎矬耱栩 疱溧牝铕. 青蝈 镥疱戾耱栩 牦瘃铕 忭桤
- 羽铌 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 1.3: 信睦室刃温劳扰 遗恃依 - 幽浪磐扰
-
-
-** 袜躅顸 钺眍 疱骅戾 磬骒栩 x, 黩钺 箐嚯栩 耔焘铍 镱 牦瘃铕铎. **
-
- 1. 襄疱戾耱栩 牦瘃铕 耱痤赍 忭桤, 镱戾麇眄铋 --->.
-
- 2. 碾 桉镳噔脲龛 铠栳铌, 镥疱戾耱栩 牦瘃铕, 镱赅 铐 礤 铌噫弪 磬
- 箐嚯屐 耔焘铍铎.
-
- 3. 袜骒栩 觌噔桫 x 潆 箐嚯屙 蝠遽箦祛泐 耔焘铍.
-
- 4. 项怛铕栩 汨 2--4 镱赅 耱痤赅 礤 狍溴 桉镳噔脲磬.
-
----> 悟 蝌蝾镱蜞 觐稃蝌 镲稃朦 镲 镲镱膻 脲蝌栩.
-
- 5. 义镥瘘, 觐沅 耱痤赅 铗觐痧尻蜩痤忄磬, 镥疱躅滂蝈 箴铌 1.4.
-
-抢膛桌腿: 躅溴 铖忸屙 钽 篦遽龛赅 礤 稃蜞轵羼 玎镱扈磬螯, 篦栩
- 镳铞羼皴 桉镱朦珙忄龛.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 1.4: 信睦室刃温劳扰 遗恃依 - 卵依率
-
-
- ** 袜躅顸 钺眍 疱骅戾 (Normal mode), 磬骒栩 i 潆 怦蜞怅 蝈犟蜞. **
-
- 1. 襄疱戾耱栩 牦瘃铕 镥疴铋 耱痤赍 忭桤, 镱戾麇眄铋 --->.
-
- 2. 碾 蝾泐, 黩钺 皲咫囹 镥疴簋 耱痤牦 桎屙蜩黜铋 怛铕铋, 镱戾耱栩
- 牦瘃铕 磬 耔焘铍 吓信 觐蝾瘥 耠邃箦 怦蜞忤螯 蝈犟.
-
- 3. 袜骒栩 i 磬徨痂蝈 蝠遽箦禧 漕徉怆屙.
-
- 4. 项耠 桉镳噔脲龛 怦艴 铠栳铌 磬骒栩 <ESC> 潆 忸玮疣蜞 钺睇 疱骅.
- 项怛铕栩 汨 2--4, 镱赅 麴噻 礤 狍溴 桉镳噔脲磬 镱腠铖螯.
-
----> 奏耱 蝈犟蜞 耱痤赍 徨耠邃眍 .
----> 奏耱 蝈犟蜞 铋 耱痤赍 徨耨脲漤 镳铒嚯.
-
- 5. 暑沅 铖忸栩 怦蜞怅 蝈犟蜞, 镥疱躅滂蝈 溧朦 绣琬戾.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 信寝膛 有问 1
-
- 1. 鼠瘃铕 镥疱戾弪 腓犷 觌噔桫囔 耦 耱疱腙囔, 腓犷 觌噔桫囔 hjkl.
- h (怆邂) j (忭桤) k (忖屦) l (怙疣忸)
-
- 2. 碾 玎矬耜 Vim (桤 镳桡豚龛 % 觐爨礓眍 钺铍铟觇) 磬徨痂蝈:
- vim 忍達岳伤 <ENTER>
-
- 3. 碾 玎忮瘌屙 疣犷螓 Vim 磬徨痂蝈:
- <ESC> :q! <ENTER> 黩钺 铗赅玎螯 铗 耦躔囗屙 桤戾礤龛.
- 入 磬徨痂蝈:
- <ESC> :wq <ENTER> 黩钺 耦躔囗栩 桤戾礤龛.
-
- 4. 碾 箐嚯屙 耔焘铍 镱 牦瘃铕铎 钺眍 疱骅戾, 磬徨痂蝈: x
-
- 5. 昨钺 怦蜞忤螯 蝈犟 镥疱 牦瘃铕铎 钺眍 疱骅戾, 磬徨痂蝈:
- i 忖钿栩 蝈犟 <ESC>
-
-抢膛桌腿: 袜驵蜩 <ESC> 镥疱戾耱栩 锣 钺睇 疱骅 (Normal mode) 腓犷
- 镳屦忮 礤驽豚蝈朦眢 鬣耱梓眍 玎忮瘌屙眢 觐爨礓.
-
-义镥瘘 镥疱躅滂 羽铌 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 2.1: 饰汤湍 幽浪磐冗
-
-
- ** 袜徨痂蝈 dw 潆 箐嚯屙 篦囫蜿 蝈犟蜞 漕 觐眦 耠钼. **
-
- 1. 袜骒栩 <ESC>, 黩钺 镥疱轵 钺睇 疱骅.
-
- 2. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 3. 襄疱戾耱栩 牦瘃铕 磬鬣腩 耠钼, 觐蝾痤 耠邃箦 箐嚯栩.
-
- 4. 袜徨痂蝈 dw , 黩钺 箐嚯栩  耠钼.
-
-抢膛桌腿: 骂 怵屐 磬犷疣 狍赈 dw 镱蝰 镱耠邃礤 耱痤赍 疣磬. 篷腓
- 蔓 黩-蝾 磬徨疱蝈 礤镳噔桦, 磬骒栩 <ESC> 磬黜栩 耥圜嚯.
-
----> 湾耜铍 耠钼 疣翳磬 铎 镳邃腩驽龛 噔蝾牮囗 桤腓.
-
- 5. 项怛铕栩 汨 3 4, 镱赅 礤 桉镳噔栩 怦 铠栳觇 镥疱躅滂蝈
- 羽铌 2.2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 2.2: 奈衔送纫潘芡叟 饰汤湍 幽浪磐冗
-
-
- ** 袜徨痂蝈 d$ 潆 箐嚯屙 蝈犟蜞 漕 觐眦 耱痤觇. **
-
- 1. 袜骒栩 <ESC>, 黩钺 镥疱轵 钺睇 疱骅.
-
- 2. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 3. 襄疱戾耱栩 牦瘃铕 觐眦 镳噔桦铋 耱痤觇 (衔阉 镥疴铋 . ).
-
- 4. 昨钺 箐嚯栩 铖蜞蝾 耱痤觇, 磬徨痂蝈 d$ .
-
----> 黍-蝾 磬狃嚯 铌铐鬣龛 铋 耱痤觇 溻噫潲. 铌铐鬣龛 铋 耱痤觇 溻噫潲.
-
-
- 5.昨钺 塍鼬 疣珙狃囹 铎, 镥疱躅滂蝈 羽铌 2.3.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 2.3: 饰汤湍 瘟谂室
-
-
- 灶痨囹 觐爨礓 `箐嚯屙桢' d 蜞觐:
-
- [麒耠頬 d 钺牝 人 d [麒耠頬 钺牝
- 卿羼:
- 麒耠 - 耜铍 疣 桉镱腠栩 觐爨礓 (礤钺玎蝈朦眍, 镱 箪铍鬣龛=1).
- d - 觐爨礓 箐嚯屙.
- 钺牝 - 麇 觐爨礓 漕腈磬 猁螯 恹镱腠屙 (镥疱麒耠屙 龛驽).
-
- 署囹觇 耧桉铌 钺牝钼:
- w - 铗 牦瘃铕 漕 觐眦 耠钼, 怅膻鬣 玎忮瘌帼 镳钺咫.
- e - 铗 牦瘃铕 漕 觐眦 耠钼, 团 怅膻鬣 玎忮瘌帼 镳钺咫.
- $ - 铗 牦瘃铕 漕 觐眦 耱痤觇.
- ^ - 铗 牦瘃铕 漕 磬鬣豚 耱痤觇.
-
-抢膛桌腿: 橡铖蝾 磬驵蜩 磬 耔焘铍 钺牝 钺眍 疱骅戾 (Normal mode)
- 徨 漕镱腠栩咫 觐爨礓 镥疱溻桧弪 牦瘃铕 蜞, 赅 箨噻囗
- 耧桉赍 钺牝钼.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 2.4: 妊仕拮磐扰 惹 闲缆人 `饰汤湍-瘟谂室'
-
-
- ** 袜徨痂蝈 dd 潆 箐嚯屙 怦彘 耱痤觇. **
-
- 埋脲漶蜮桢 鬣耱钽 镳桁屙屙 铒屦圉梃 箐嚯屙 怦彘 耱痤觇, 疣琊噌铗麒觇
- Vim 疱腓, 黩 潆 钽 镳铢 怦邈 镳铖蝾 磬狃囹 d 溻噫潲.
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 觐 怛铕铋 耱痤赍 麴噻.
- 2. 袜徨痂蝈 dd 潆 箐嚯屙 耱痤觇.
- 3. 义镥瘘 镥疱戾耱栩羼 麇蜮屦蝾 耱痤赍.
- 4. 袜徨痂蝈 2dd (怦镱祉栩 镳噔桦 `麒耠-觐爨礓-钺牝'), 黩钺 箐嚯栩
- 溻 耱痤觇.
-
- 1) 隋蝾 躅骟 磬 耱噤桀,
- 2) , 赅 忭彗囡眍 觐眵桦 滂忄!
- 3) 犷脲 玎 ``清龛'', ``清龛'' --- 麇祜桀!
- 4) 襄鬣朦眍 汶骟 磬 磬 镱觐脲龛!
- 5) 陪 沭潴 桦 矬耱 桦 蝈祉...
- 6) 耔骟 磬 耜囔彘赍 腩驽 `'
- 7) 桡疣 磬 犷朦 驽耱眍 蝠筢.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 2.5: 饰汤湍 `我世'
-
-
- ** 袜骒栩 u 潆 铗戾睇 疱珞朦蜞蜞 疣犷螓 镳邃簌彘 觐爨礓, U 潆 铗戾睇
- 桉镳噔脲龛 忸 怦彘 耱痤赍. **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 ---> 篑蜞眍忤蝈 邈 磬
- 镥疴簋 铠栳牦.
- 2. 袜骒栩 x 潆 箐嚯屙 镥疴钽 礤镳噔桦钽 耔焘铍.
- 3. 义镥瘘 磬骒栩 u 潆 铗戾睇 (铗赅蜞) 镱耠邃礤 恹镱腠屙眍 觐爨礓.
- 4. 锐镳噔 怦 铠栳觇 耱痤赍, 桉镱朦珞 觐爨礓 x .
- 5. 义镥瘘 磬骒栩 玎汶噔眢 U 潆 蝾泐, 黩钺 忮痦篁 怦 耱痤牦 桉躅漤铄
- 耦耱龛.
- 6. 袜骒栩 u 礤耜铍 疣 潆 铗戾睇 觐爨礓 U 镳邃簌桴 觐爨礓.
- 7. 袜骒栩 蝈镥瘘 CTRL-R (箐屦骅忄轵 觌噔桫 CTRL 磬驵蝾 祛戾眚 磬驵蜩
- R) 礤耜铍 疣 潆 忸玮疣蜞 觐爨礓 (铗赅 铗赅蜞).
-
----> 锐镳疣恻蝈 铑彡 铋 耱痤赍 忮痦栩蝈 桴 耨 镱祛 `铗赅蜞'.
-
- 8. 蒡 猁腓 铟屙 镱脲珥 觐爨礓. 泥脲 镥疱躅滂蝈 绣琬戾 羽铌 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 信寝膛 有问 2
-
-
- 1. 碾 箐嚯屙 蝈犟蜞 铗 牦瘃铕 漕 觐眦 耠钼 磬徨痂蝈: dw
-
- 2. 碾 箐嚯屙 蝈犟蜞 铗 牦瘃铕 漕 觐眦 耱痤觇 磬徨痂蝈: d$
-
- 3. 碾 箐嚯屙 怦彘 耱痤觇 磬徨痂蝈: dd
-
- 4. 灶痨囹 觐爨礓 钺眍 疱骅戾 桁邋 忤:
-
- [麒耠頬 觐爨礓 钺牝 人 觐爨礓 [麒耠頬 钺牝
- 沅:
- 麒耠 - 耜铍 疣 镱怛铕栩 恹镱腠屙桢 觐爨礓
- 觐爨礓 - 黩 恹镱腠栩, 磬镳桁屦 d 潆 箐嚯屙
- 钺牝 - 磬 黩 漕腈磬 忸玟彘耱忸忄螯 觐爨礓, 磬镳桁屦 w (耠钼),
- $ (漕 觐眦 耱痤觇), ..
-
- 5. 碾 铗戾睇 (铗赅蜞) 镳邃耱怏桴 溴轳蜮栝 磬徨痂蝈: u (耱痤黜 u)
- 碾 铗戾睇 (铗赅蜞) 怦艴 桤戾礤龛 耱痤赍 磬徨痂蝈: U (镳铒桉磬 U)
- 碾 铗戾睇 铗赅蜞 磬徨痂蝈: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 3.1: 饰汤湍 卵依率
-
-
- ** 袜徨痂蝈 p 潆 怦蜞怅 镱耠邃礤泐 箐嚯屙眍泐 蝈犟蜞 镱耠 牦瘃铕. **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤 镱耠邃礤 耱痤赍 桤 磬犷疣.
-
- 2. 袜徨痂蝈 dd 潆 箐嚯屙 耱痤觇 邋 耦躔囗屙 狍翦疱 Vim'.
-
- 3. 襄疱戾耱栩 牦瘃铕 耱痤赍 屠 蝈 戾耱铎, 牦溧 耠邃箦 怦蜞忤螯
- 箐嚯屙眢 耱痤牦.
-
- 4. 袜躅顸 钺眍 疱骅戾 磬徨痂蝈 p 潆 玎戾睇 耱痤觇.
-
- 5. 项怛铕栩 汨 2--4, 镱赅 礤 疣耨蜞忤蝈 怦 耱痤觇 眢骓铎 镱潢.
-
- ) 塍鼬 恹潴爨螯 礤 祛.
- ) 暑沅 礤 蜿 玎礤祛,
- ) 雾 筲噫囹 皴 玎耱噔桦
- ) 填 襦禧 麇耱睇 镳噔桦
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 3.2: 饰汤湍 抢膛哇
-
-
- ** 袜徨痂蝈 r 耔焘铍, 玎戾栝 耔焘铍 镱 牦瘃铕铎. **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 2. 玉蜞眍忤蝈 牦瘃铕 蜞, 黩钺 铐 磬躅滂腭 磬 镥疴铋 铠栳觐.
-
- 3. 袜徨痂蝈 r 玎蝈 耔焘铍, 桉镳噔栝 铠栳牦.
-
- 4. 项怛铕栩 汨 2 3, 镱赅 镥疴 耱痤赅 礤 狍溴 桉镳噔脲磬.
-
----> 祛戾泸 磬狎疣 铋 黩痤觇 觐0牝 蝠箐铎 镱镡溧 镱 觌忄桫囔!
----> 祛戾眚 磬犷疣 铋 耱痤觇 觐-牝 蝠箐铎 镱镟溧 镱 觌噔桫囔!
-
- 5. 义镥瘘 镥疱躅滂蝈 羽铌 3.2.
-
-抢膛桌腿: 项祉栩, 黩 恹 漕腈睇 篦栩 镳铞羼皴 疣犷螓, 礤 镳铖蝾
- 玎镱扈磬.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 3.3: 饰汤湍 惹膛团腿
-
-
- ** 碾 桤戾礤龛 鬣耱 耠钼 磬徨痂蝈 cw . **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 2. 朽耧铍铈栩 牦瘃铕 磬 狍赈铋 `o' 耠钼 `耦豚'.
-
- 3. 袜徨痂蝈 cw 桉镳噔 耠钼 ( 溧眄铎 耠篦噱, 磬徨痂蝈 `腩'.)
-
- 4. 袜骒栩 <ESC> 镥疱躅滂蝈 耠邃簋 铠栳赍 ( 镥疴铎 耔焘铍, 觐蝾瘥
- 磬漕 桤戾龛螯.)
-
- 5. 项怛铕栩 汨 3--4 镱赅 镥疴铄 镳邃腩驽龛 礤 耱囗弪 桎屙蜩黜 怛铕铎.
-
----> 湾耜铍 耦豚 泠 耱痤赍 蝻泺鲠 疱溧腌牦羼怩.
----> 湾耜铍 耠钼 铋 耱痤赍 蝠遽簋 疱溧牝桊钼囗.
-
-吾疣蜩蝈 忭桁囗桢, 黩 cw 礤 蝾朦觐 玎戾弪 耠钼, 眍 镥疱忸滂 忄 疱骅
-怦蜞怅.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 3.4: 闲文嗡评盘 惹膛瓦臆 饰汤湍紊 c
-
-
-** 暑爨礓 玎戾睇 桉镱朦珞弪 蝈扈 驽 钺牝囔, 黩 觐爨礓 箐嚯屙. **
-
- 1. 暑爨礓 桤戾礤龛 镳桁屙弪 蜞觇 驽 钺疣珙, 赅 觐爨礓 箐嚯屙.
- 佩 纛痨囹 蜞觐:
-
- [麒耠頬 c 钺牝 人 c [麒耠頬 钺牝
-
- 2. 吾牝 蜞赕 耦怙噤帼: w (耠钼), $ (觐礤 耱痤觇) ..
-
- 3. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 4. 襄疱殇栩 镥疴铋 铠栳赍.
-
- 5. 袜徨痂蝈 c$ 铗疱溧牝桊箝蝈 镥疴簋 耱痤牦 蜞, 黩钺 铐 耦怙噤嚯 耦
- 怛铕铋, 镱耠 麇泐 磬骒栩 <ESC>.
-
----> 暑礤 铋 耱痤觇 眢驿噱蝰 镱祛, 黩钺 耱囹 镱躅骅 磬 怛铕铋.
----> 暑礤 铋 耱痤觇 眢驿噱蝰 镱祛 觐爨礓 c$ .
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 信寝膛 有问 3
-
-
- 1. 碾 怦蜞怅 蝈犟蜞, 觐蝾瘥 蝾朦觐 黩 猁 箐嚯屙, 磬徨痂蝈 p . 蒡
- 觐爨礓 怦蜞忤 箐嚯屙睇 蝈犟 衔阉 牦瘃铕 (羼腓 猁豚 箐嚯屙 耱痤赅,
- 蝾 铐 狍溴 镱戾磬 耱痤赍 镱 牦瘃铕铎).
-
- 2. 碾 玎戾睇 耔焘铍 镱 牦瘃铕铎 磬徨痂蝈 r 玎蝈 玎戾栝 耔焘铍.
-
- 3. 暑爨礓 桤戾礤龛 镱玮铍弪 锣 桤戾龛螯 箨噻囗睇 钺牝 铗 牦瘃铕 漕
- 觐眦 钽 钺牝. 袜镳桁屦, 磬徨痂蝈 cw 潆 玎戾睇 铗 牦瘃铕 漕
- 觐眦 耠钼, c$ 潆 桤戾礤龛 漕 觐眦 耱痤觇.
-
- 4. 灶痨囹 觐爨礓 桤戾礤龛 蜞觐:
-
- [麒耠頬 c 钺牝 人 c [麒耠頬 钺牝
-
-义镥瘘 铗镳噔轵羼 耠邃簋祗 箴铌.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 4.1: 韧晕刑乐冗 岳伤 欣严嗡纹磐扰 团
-
-
- ** 袜徨痂蝈 CTRL-g 黩钺 筲桎弪 锣 戾耱铕囫镱腩驽龛 羿殡 桧纛痨圉棹
- 礤.
- 袜徨痂蝈 SHIFT-G 潆 镥疱戾龛 玎溧眄铋 耱痤赍 羿殡. **
-
- 青戾鬣龛: 橡铟栩嚅蝈 忮顸 箴铌 镳彐溴 麇 恹镱腠螯 膻猁 觐爨礓!!
-
- 1. 愉屦骅忄 觌噔桫 Ctrl 磬骒栩 g . 马桤 疣磬 镱忤蝰 耱痤赅 耱囹篑
- 桁屙屐 羿殡 眍戾痤 耱痤觇, 觐蝾痤 蔓 磬躅滂蝈顸. 青镱祉栩 眍戾
- 耱痤觇, 铐 镱蝠遽箦蝰 磬 剜沐 3.
-
- 2. 袜骒栩 shift-G 潆 镥疱戾龛 觐眦 羿殡.
-
- 3. 袜徨痂蝈 眍戾 耱痤觇, 觐蝾痤 恹 磬躅滂腓顸 玎蝈 shift-G. 蒡
- 忮痦弪 锣 耱痤赍, 觐蝾痤 蔓 猁腓, 觐沅 镥疴 疣 磬驵腓 Ctrl-g.
- (暑沅 蔓 狍溴蝈 磬徼疣螯 鲨麴, 铐 团 铗钺疣蝰 磬 疣礤.)
-
- 4. 篷腓 蔓 玎镱祉桦 怦 恹耜噻囗眍, 恹镱腠栩 汨 1--3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 4.2: 饰汤湍 衔妊世
-
- ** 袜徨痂蝈 / 玎蝈 忖邃栩 桉觐祗 麴噻. **
-
- 1. 钺眍 疱骅戾 (Normal mode) 磬徨痂蝈 耔焘铍 / . 吾疣蜩蝈 忭桁囗桢,
- 黩 铐 忪羼蝈 牦瘃铕铎 镱忤蝰 忭桤 疣磬, 赅  镳铊聃钿栩
- 觐爨礓铋 : .
-
- 2. 义镥瘘 磬徨痂蝈 '铠栳赅' <ENTER>. 蒡 蝾 耠钼, 觐蝾痤 蔓 狍溴蝈
- 桉赅螯.
-
- 3. 碾 蝾泐, 黩钺 镱怛铕栩 镱桉, 镳铖蝾 磬骒栩 n .
- 碾 镱桉赅 铋 麴噻 钺疣蝽铎 磬镳噔脲龛, 磬骒栩 Shift-N .
-
- 4. 篷腓 蔓 驽豚弪 耩噻 桉赅螯 钺疣蝽铎 磬镳噔脲龛, 桉镱朦珞轵
- 觐爨礓 ? 忪羼蝾 / .
-
----> 暑沅 蔓 镳 镱桉赍 漕耱桡礤蝈 觐眦 羿殡, 镱桉 狍溴 镳钿铍驽
- 磬鬣豚.
-
- "铠栳赅"  礤 耧铖钺 镳铊珥羼屙 耠钼 `铠栳赅'; 铠栳赅  铠栳赅.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 4.3: 衔妊 侠型壅 咽瘟问
-
-
- ** 袜徨痂蝈 % 潆 镱桉赅 镟痦 ),] 桦 } . **
-
- 1. 项戾耱栩 牦瘃铕 磬 膻犷 桤 (, [ 桦 { 耱痤赍 忭桤, 镱戾麇眄铋 --->.
-
- 2. 义镥瘘 磬徨痂蝈 耔焘铍 % .
-
- 3. 鼠瘃铕 漕腈屙 镥疱耜铟栩 磬 镟痦簋 耜钺牦.
-
- 4. 袜徨痂蝈 % 潆 忸玮疣蜞 牦瘃铕 磬玎 镥疴铋 耜钺赍.
-
----> 蒡 ( 耱痤赅, 耦溴疰帙 蜞觇 (, 蜞觇 [ ] 蜞觇 { } 耜钺觇. ))
-
-青戾鬣龛: 蒡 铟屙 箐钺眍 镳 铗豚潢 镳钽疣祆 镳铒簌屙睇扈 耜钺赅扈!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 4.4: 严窝瘟 妊闲缆伺腿 呜攘问
-
-
- ** 袜徨痂蝈 :s/猁腩/耱嚯/g 潆 玎戾睇 '猁腩' 磬 '耱嚯'. **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 2. 袜徨痂蝈 :s/筲钿/筲铈 <ENTER> . 吾疣蜩蝈 忭桁囗桢 磬 蝾, 黩  觐爨礓
- 玎戾龛 蝾朦觐 镥疴铄 磬殇屙眍 怩铈溴龛 耱痤赍.
-
- 3. 义镥瘘 磬徨痂蝈 :s/筲钿/筲铈/g , 铉磬鬣邋 镱漶蜞眍怅 汶钺嚯 忸
- 怦彘 耱痤赍. 蒡 玎戾龛 怦 磬殇屙睇 耱痤赍 怩铈溴龛.
-
----> 筲钿 铗忮疰屙睇 皴脲睃, 筲钿 耜忸琰 忮觐忮黜 耱铐, 筲钿
- 玎猁螓 镱觐脲睃.
-
- 4. 碾 玎戾睇 怦艴 怩铈溴龛 镱耠邃钼囹咫铖蜩 耔焘铍钼 戾驿 溻箪
- 耱痤赅扈,
- 磬徨痂蝈 :#,#s/猁腩/耱嚯/g 沅 #,# --- 眍戾疣 桴 耱痤.
- 袜徨痂蝈 :%s/猁腩/耱嚯/g 潆 玎戾睇 怦艴 怩铈溴龛 忸 怦屐 羿殡.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 信寝膛 有问 4
- 1. Ctrl-g 镱赅琨忄弪 忄 镱腩驽龛 羿殡 桧纛痨圉棹 礤.
- Shift-G 镥疱戾弪 锣 觐礤 羿殡. 皖戾, 玎 觐蝾瘥 耠邃箦 Shift-G
- 镱玮铍弪 镥疱轵 耱痤赍 桁 眍戾痤.
-
- 2. 袜驵蜩 / 玎蝈 忖钿 耱痤觇 镱玮铍弪 镳铊玮羼蜩 镱桉 铋 耱痤觇
- 孪判拍 镱 蝈犟蝮.
- 袜驵蜩 ? 玎蝈 忖钿 耱痤觇 镱玮铍弪 镳铊玮羼蜩 镱桉 铋 耱痤觇
- 屠抢 镱 蝈犟蝮.
- 项耠 镱桉赅 磬徨痂蝈 n 潆 镥疱躅溧 耠邃簋祗 怩铈溴龛 桉觐祛
- 耱痤觇 蝾 驽 磬镳噔脲龛 桦 Shift-N 潆 镥疱躅溧 镳铗桠铒铍铈眍
- 磬镳噔脲龛.
-
- 3. 袜驵蜩 % , 觐沅 牦瘃铕 磬躅滂蝰 磬 (,),[,],{, 桦 } 镱玮铍弪 磬轵
- 镟痦簋 耜钺牦.
-
- 4. 碾 镱漶蜞眍怅 `耱嚯' 忪羼蝾 镥疴钽 `猁腩' 耱痤赍, 磬徨痂蝈
- :s/old/new
- 碾 镱漶蜞眍怅 `耱嚯' 忪羼蝾 怦艴 `猁腩' 耱痤赍, 磬徨痂蝈
- :s/old/new/g
- 碾 玎戾睇 桧蝈疴嚯 戾驿 溻箪 耱痤赅扈, 磬徨痂蝈
- :#,#s/old/new/g
- 碾 玎戾睇 怦艴 怩铈溴龛 `猁腩' 磬 `耱嚯' 羿殡, 磬徨痂蝈
- :%s/old/new/g
- 昨钺 疱溧牝铕 赅驿 疣 玎镳帏桠嚯 镱潋忮疰溴龛, 漕徉恻蝈 'c'
- :%s/old/new/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 5.1: 世 论衔送纫 峦咆娃 饰汤湍
-
-
- ** 袜徨痂蝈 :! 玎蝈 忭屮睨 觐爨礓, 觐蝾痼 耠邃箦 恹镱腠栩. **
-
- 1. 袜徨痂蝈 箧 珥嚓铎簋 锣 觐爨礓 : 潆 篑蜞眍怅 牦瘃铕 觐爨礓眢
- 耱痤牦 疱溧牝铕. 蒡 镱玮铍栩 锣 忖羼蜩 觐爨礓.
-
- 2. 义镥瘘 磬徨痂蝈 耔焘铍 ! (忸耜腓鲟蝈朦睇 珥嚓). 义镥瘘 祛骓 桉镱腠栩
- 忭屮睨 觐爨礓, 桉镱朦珞 觐爨礓眢 钺铍铟牦.
-
- 3. 碾 镳桁屦 磬徨痂蝈 ls 镱耠 ! 磬骒栩 <ENTER>. 蒡 觐爨礓 恹忮溴
- 耧桉铌 羿殡钼 蝈牦 赅蜞腩沐, 蝾黜 蜞赕, 赅 羼腓 猁 蔓 忖咫 
- 觐爨礓 镳桡豚龛 钺铍铟觇. 入 镱镳钺箝蝈 :!dir , 羼腓 镳邃簌
- 觐爨礓 礤 耩噌铗嚯.
-
----> 青戾鬣龛: 亦觇 耧铖钺铎 祛骓 恹镱腠栩 膻狍 忭屮睨 觐爨礓.
-
----> 青戾鬣龛: 埋 觐爨礓, 磬麒磬桢 : , 漕腈睇 玎忮瘌囹 磬驵蜩屐
- <ENTER>.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 5.2: 世 抢先牙臆 岳伤
-
-
-** 碾 耦躔囗屙 桤戾礤龛, 镳铊玮邃屙睇 羿殡, 磬徨痂蝈 :w 忍達岳伤. **
-
- 1. 袜徨痂蝈 :!dir 桦 :!ls 潆 镱塍麇龛 耧桉赅 羿殡钼 蝈牦 赅蜞腩沐.
- 枢 锣 箧 桤忮耱眍, 蔓 漕腈睇 磬驵螯 <ENTER> 镱耠 忖钿 桴 觐爨礓.
-
- 2. 橡桎箪嚅蝈 磬玮囗桢 潆 羿殡, 觐蝾痤 妁 礤 耋耱怏弪, 磬镳桁屦 TEST.
-
- 3. 义镥瘘 磬徨痂蝈 :w TEST (沅 TEST ---  桁 羿殡, 镳桎箪囗眍 锣扈.)
-
- 4. 蒡 觐爨礓 耦躔囗栩 忮顸 羿殡 (喻遽龛 镱 Vim) 镱 桁屙屐 TEST. 昨钺
- 箐铖蝾忮痂螯 铎, 耥钼 磬徨痂蝈 :!dir 镳铖祛蝠栩 赅蜞腩.
-
----> 青戾螯蝈, 黩 羼腓 蔓 恹殇弪 桤 Vim 玎蝈 玎矬耱栩 邈 耥钼
- 羿殡铎 TEST, 铗 羿殡 狍溴 蝾黜铋 觐镨彘 篦遽龛赅 蝾 祛戾眚, 觐沅
- 蔓 邈 耦躔囗桦.
-
- 5. 义镥瘘 箐嚯栩 铗 羿殡, 磬狃噔 :!del TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 5.3: 论廖形淄闻 盐招劳磐扰
-
-
- ** 碾 耦躔囗屙 鬣耱 羿殡, 磬徨痂蝈 :#,# w 忍達岳伤 **
-
- 1. 霹 疣 磬徨痂蝈 :!dir 桦 :!ls 潆 镱塍麇龛 耧桉赅 羿殡钼 蝈牦
- 赅蜞腩沐 恹徨痂蝈 镱漉钿 桁, 磬镳桁屦 TEST.
-
- 2. 襄疱戾耱栩 牦瘃铕 磬鬣塍 铋 耱疣龛鳆 磬骒栩 Ctrl-g 潆 磬躅驿屙
- 眍戾疣 耱痤觇to. 抢衔掏纫 菀我 臀膛!
-
- 3. 义镥瘘 镥疱戾耱栩羼 觐礤 耱疣龛鳆 忭钼 磬徨痂蝈 Ctrl-g. 抢衔掏纫
- 菀我 臀膛 椅婆!
-
- 4. 碾 耦躔囗屙 椅塑饰 桌岩 羿殡 磬徨痂蝈 :#,# w TEST , 沅 #,# --- 
- 眍戾疣, 觐蝾瘥 蔓 玎镱祉桦 (磬鬣腩, 觐礤), TEST --- 桁 忄泐 羿殡.
-
- 5. 枢 镳彐溴, 筢邃栩羼 磬腓麒 钽 羿殡 觐爨礓铋 :!dir , 眍 团
- 幽浪呱遗 邈.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 5.4: 滓磐扰 瘟谂娜团腿 岳伤温
-
- ** 碾 怦蜞怅 耦溴疰桁钽 羿殡, 磬徨痂蝈 :r FILENAME **
-
- 1. 袜徨痂蝈 :!dir 潆 蝾泐, 黩钺 筢邃栩 蝾, 黩 羿殡 TEST 怦 妁
- 耋耱怏弪.
-
- 2. 玉蜞眍忤蝈 牦瘃铕 忮瘐礤 鬣耱 铋 耱疣龛鳆.
-
-青戾鬣龛: 项耠 恹镱腠屙 汔 3 蔓 筲桎栩 羽铌 5.3. 项耠 钽
- 镥疱戾轵羼 峦惹, 耥钼 铎 箴铌.
-
- 3. 义镥瘘 镳铟栩嚅蝈 锣 羿殡 TEST, 桉镱朦珞 觐爨礓 :r TEST , 沅
- TEST ---  桁 羿殡.
-
-青戾鬣龛: 橡铟栩囗睇 锣扈 羿殡 狍溴 怦蜞怆屙 蝾 戾耱, 沅 磬躅滂蝰
- 牦瘃铕.
-
- 4. 昨钺 筢邃栩 蝾, 黩 羿殡 镳铟栩囗, 镥疱戾耱栩羼 礤祉钽 磬玎 镱
- 蝈犟蝮 玎戾螯蝈, 黩 蝈镥瘘 耋耱怏 溻 觐镨 羽铌 5.3, 桉躅漤
- 镱塍麇眄 桤 羿殡.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 信寝膛 有问 5
-
-
- 1. :!觐爨礓 桉镱腠弪 忭屮睨 觐爨礓.
-
- 湾觐蝾瘥 镱脲珥 镳桁屦:
- :!dir --- 恹忸滂 耧桉铌 羿殡钼 赅蜞腩沐.
- :!del FILENAME --- 箐嚯弪 羿殡 FILENAME.
-
- 2. :w FILENAME 玎镨覃忄弪 蝈牦 疱溧牝桊箦禧 羿殡 磬 滂耜
- 镱 桁屙屐 FILENAME.
-
- 3. :#,#w FILENAME 耦躔囗弪 耱痤觇 铗 # 漕 # 羿殡 FILENAME.
-
- 4. :r FILENAME 聍栩噱 滂耜 羿殡 FILENAME 镱戾弪 邈 蝈牦
- 羿殡 耠邃铎 玎 镱玷鲨彘 牦瘃铕.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 6.1: 饰汤湍 盐悄劳冗
-
-
- ** 袜徨痂蝈 o 黩钺 耦玟囹 矬耱簋 耱痤牦 镱 牦瘃铕铎 镥疱轵 疱骅
- 怦蜞怅 (Insert mode) **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 2. 袜徨痂蝈 o ( 龛骓屐 疱汨耱疱) 潆 蝾泐, 黩钺 耦玟囹 矬耱簋 耱痤牦
- 腿婆 牦瘃铕 镥疱轵 疱骅 怦蜞怅 (Insert mode).
-
- 3. 义镥瘘 耜铒桊箝蝈 镱戾麇眄簋 ---> 耱痤牦 磬骒栩 <ESC> 潆 恹躅溧 桤
- 疱骅爨 怦蜞怅.
-
----> 项耠 磬驵蜩 o 牦瘃铕 镥疱殇弪 磬 眍怏 矬耱簋 耱痤牦 疱骅戾 怦蜞怅.
-
- 4. 碾 耦玟囗 耱痤觇 论嘏 牦瘃铕, 镳铖蝾 磬徨痂蝈 玎汶噔眢 O, 忪羼蝾
- 耱痤黜铋 o. 项镳钺箝蝈 镳钿咫囹  龛驽耠邃簋 耱痤觐.
-杨玟嚅蝈 眍怏 耱痤牦 磬 铋, 磬驵 Shift-O, 镱戾耱桠 牦瘃铕 磬  耱痤牦.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 6.2: 饰汤湍 奈晾滤磐冗
-
- ** 袜徨痂蝈 a , 黩钺 怦蜞忤螯 蝈犟 衔阉 牦瘃铕. **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 觐礤 镥疴铋 耱痤觇, 镱戾麇眄铋 ---> ,
- 磬狃噔 $ 钺眍 疱骅戾 (Normal mode).
-
- 2. 袜徨痂蝈 a ( 龛骓屐 疱汨耱疱) 潆 漕徉怆屙 蝈犟蜞 衔阉 耔焘铍,
- 磬躅泐 镱 牦瘃铕铎. (青汶噔磬 A 镱玮铍弪 漕徉忤螯 觐礤
- 耱痤觇.)
-
-青戾鬣龛: 蒡 镱玮铍弪 桤徨驵螯 磬驵蜩 i , 镱耠邃礤泐 耔焘铍, 蝈犟蜞 潆
- 怦蜞怅, <ESC>, 牦瘃铕-怙疣忸, , 磬觐礤, x , 镳铖蝾 潆 蝾泐,
- 黩钺 漕徉忤螯 蝈耱 觐礤 耱痤觇!
-
- 3. 义镥瘘 玎忮瘌栩 镥疴簋 耱痤牦. 青戾螯蝈 蜞赕, 黩 漕徉怆屙桢 
- 蝾黜铖蜩 蝾 驽 襦祛, 黩 疱骅 怦蜞怅, 玎 桉觌屙桢 镱玷鲨,
- 觐蝾痼 狍溴 怦蜞怆屙 蝈犟.
-
----> 蒡 耱痤麝 镱玮铍栩 锣 镱镳嚓蜩觐忄螯
----> 蒡 耱痤麝 镱玮铍栩 锣 镱镳嚓蜩觐忄螯 漕徉怆屙梃 蝈犟蜞 觐礤
- 耱痤觇.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 6.3: 刨 文韧 严窝瘟 抢膛哇
-
-
- ** 袜徨痂蝈 玎汶噔眢 R 潆 玎戾睇 犷脲, 麇 钿眍泐 耔焘铍. **
-
- 1. 襄疱戾耱栩 牦瘃铕 忭桤, 耱痤赍, 镱戾麇眄铋 --->.
-
- 2. 朽耧铍铈栩 牦瘃铕 磬鬣脲 镥疴钽 耠钼, 铗腓鬣邈铖 铗
- 耦铗忮蝰蜮簋泐 耠邃簋 耱痤赍, 镱戾麇眄铋 ---> (耠钼 '镱耠邃礤').
-
- 3. 义镥瘘 磬徨痂蝈 R 玎戾龛蝈 铖蜞蝾 蝈犟蜞 镥疴铋 耱痤赍, 磬狃噔
- 镱忮瘐 耱囵钽 蝈犟蜞 蜞, 黩钺 钺 耱痤觇 耱嚯 钿桧嚓钼.
-
----> 襄疴簋 耱痤牦 祛骓 耩噔螯 镱耠邃礤, 桉镱朦珞 觌噔桫.
----> 襄疴簋 耱痤牦 祛骓 耩噔螯 怛铕铋, 桉镱朦珞 R 磬狃噔 眍恹 蝈犟.
-
- 4. 吾疣蜩蝈 忭桁囗桢, 黩 镳 磬驵蜩 <ESC> 潆 玎忮瘌屙, 膻犷
- 礤 桤戾礤眄 蝈犟 耦躔囗栩.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 6.4: 友依臀率 侠欣膛倚温
-
-
-** 玉蜞眍忤 镟疣戾蝠 蜞, 黩钺 桡眍痂痤忄螯 疱汨耱 镳 镱桉赍 桦 玎戾礤 **
-
-
- 1. 项棂栩 耠钼 '桡眍痂痤忄螯', 磬狃噔:
- /桡眍痂痤忄螯
- 项怛铕栩 镱桉 礤耜铍 疣, 磬骅爨 觌噔桫 n
-
- 2. 玛膻麒蝈 镟疣戾蝠 'ic' (茹眍痂痤忄螯 疱汨耱), 磬狃噔:
- :set ic
-
- 3. 义镥瘘 耥钼 皲咫嚅蝈 镱桉 耠钼 '桡眍痂痤忄螯', 磬驵: n
- 项怛铕栩 镱桉 礤耜铍 疣, 磬骅爨 觌噔桫 n
-
- 4. 玛膻麒蝈 镟疣戾蝠 'hlsearch' 'incsearch':
- :set hls is
-
- 5. 义镥瘘 铒螯 忖邃栩 觐爨礓 镱桉赅 镱耢铗痂蝈, 黩 镱塍麒蝰:
- /桡眍痂痤忄螯
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 信寝膛 有问 6
-
-
- 1. 袜驵蜩 o 耦玟噱 耱痤牦 腿婆 牦瘃铕 镥疱戾弪 牦瘃铕 礤 疱骅戾
- 怦蜞怅.
- 袜驵蜩 玎汶噔眍 O 耦玟噱 耱痤牦 论嘏 耱痤觇, 觐蝾痤 磬躅滂蝰
- 牦瘃铕.
-
- 2. 袜徨痂蝈 a 潆 怦蜞怅 蝈犟蜞 衔阉 耔焘铍, 磬 觐蝾痤 磬躅滂蝰 牦瘃铕.
- 袜驵蜩 玎汶噔眍 A 噔蝾爨蜩麇耜 镥疱戾弪 锣 潆 漕徉怆屙 蝈犟蜞
- 觐礤 耱痤觇.
-
- 3. 袜驵蜩 玎汶噔眍 R 镥疱忸滂 锣 疱骅 玎戾睇 漕 蝈 镱, 镱赅 礤
- 狍溴 磬驵蜞 觌噔桫 <ESC> 潆 玎忮瘌屙.
-
- 4. 袜狃噔 ":set xxx" 恹 耢铈弪 怅膻麒螯 镟疣戾蝠 "xxx"
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 7: 饰汤湍 衔擞着腿 卵倚闻屯紊 严欣率
-
- ** 锐镱朦珞轵 怦蝠铄眄簋 耧疣忸黜簋 耔耱屐 **
-
- Vim 钺豚溧弪 祛铋 怦蝠铄眄铋 耧疣忸黜铋 耔耱屐铋. 碾 磬鬣豚 镱镳钺箝蝈
- 钿桧 桤 蝠艴 忄痂囗蝾:
- - 磬骒栩 觌噔桫 <HELP> (羼腓 蜞觐忄 桁邋蝰 磬 觌噔栲蝮疱)
- - 磬骒栩 觌噔桫 <F1> (羼腓 蜞觐忄 桁邋蝰 磬 觌噔栲蝮疱)
- - 磬徨痂蝈 :help <ENTER>
-
- 袜徨痂蝈 :q <ENTER> 黩钺 玎牮 铌眍 耧疣怅.
-
- 蔓 祛驽蝈 磬轵 耧疣怅 潆 膻犷泐 镱蜩 桦 觐爨礓, 镳铖蝾 玎溧
- 耦铗忮蝰蜮簋 囵泱戾眚 觐爨礓 ":help". 项镳钺箝蝈 耠邃簋 (礤 玎狍潼蝈
- 磬驵螯 <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 羽铌 8: 盐悄劳扰 岩佬椅挛梦 咽腥弦
-
- ** 玛膻麒 忸珈铈眍耱 Vim **
-
- Vim 桁邋 磬祉钽 犷朦 忸珈铈眍耱彘, 麇 Vi, 钿磬觐 犷朦眈蜮囝 桤 龛
- 恹觌屙 镱 箪铍鬣龛. 碾 蝾泐, 黩钺 磬鬣螯 桉镱朦珙忄螯 眍恹
- 忸珈铈眍耱 锣 耠邃箦 耦玟囹 羿殡 "vimrc".
-
- 1. 悟疱溧牝桊箝蝈 羿殡 "vimrc", 邈 疣耧铍铈屙桢 玎忤耔 铗 桉镱朦珞屐铋
- 耔耱屐:
-
- :edit ~/.vimrc 潆 Unix
- :edit $VIM/_vimrc 潆 MS-Windows
-
- 2. 义镥瘘 镳铟栩嚅蝈 镳桁屦 羿殡 "vimrc":
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 青镨蝈 羿殡:
-
- :write
-
- 义镥瘘 镳 耠邃簋 玎矬耜 Vim 狍溴 怅膻麇磬 镱漶忮蜿 耔眚嚓耔襦. 埋
- 磬耱痤殛, 镳邃镱麒蜞屐 锣扈, 祛泱 猁螯 漕徉怆屙 羿殡 "vimrc".
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袜 铎 玎忮瘌噱蝰 喻遽龛 Vim. 雾 猁 镳邃磬珥圜屙 潆 蝾泐, 黩钺 溧螯
- 钺 镳邃耱噔脲龛 疱溧牝铕 Vim, 漕耱囹铟眍 潆 蝾泐, 黩钺 脲汴铖螯
- 桉镱朦珙忄螯 邈. 喻遽龛 溧脲 铗 镱腠铗, 镱耜铍 Vim 桁邋 铟屙 祉钽
- 觐爨礓. 橡铟栩嚅蝈 蝈镥瘘 痼觐忸漶蜮 镱朦珙忄蝈: ":help user-manual".
-
- 碾 溧朦礤轼邈 黩屙 疱觐戾礓箦蝰 觏桡:
- Vim - Vi Improved - 棱蝾: Steve Oualline
- 如溧蝈朦: New Riders
- 蒡 觏桡 镱腠铖螯 镱疋磬 Vim. 务钺屙眍 镱脲珥 眍忤麝囔. 杨溴疰栩
- 祉铈羼蜮 镳桁屦钼 桦膻耱疣鲨.
- 络汶龛蝈 磬 See http://iccf-holland.org/click5.html
-
- 央邃簋 觏桡 犷脲 镱黩屙眍泐 忸琊囫蜞 镱疋磬 犷朦 Vi, 麇 Vim,
- 钿磬觐 蜞赕 疱觐戾礓箦蝰:
- Learning the Vi Editor - 棱蝾: Linda Lamb
- 如溧蝈朦: O'Reilly & Associates Inc.
- 蒡 躅痤 觏桡 潆 蝾泐, 黩钺 箸磬螯 怦, 黩 蝾朦觐 祛骓 镳钿咫囹
- Vi. 劐耱铄 桤溧龛 蜞赕 怅膻鬣弪 桧纛痨圉棹 Vim.
-
- 蒡铗 篦遽龛 猁 磬镨襦 Michael C. Pierce Robert K. Ware, Colorado School
- of Mines 桉镱朦珙忄龛屐 桎彘, 镳邃腩驽眄 Charles Smith, Colorado State
- University. E-mail: bware@mines.colorado.edu.
-
- 念疣犷蜞眍 潆 Vim Bram Moolenaar.
-
- 襄疱忸: 理漯彘 疏皴脲 <a_kissel@eudoramail.com>, 2002.
- Translator: Andrey Kiselev <a_kissel@eudoramail.com>, 2002.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.ru.utf-8 b/runtime/tutor/tutor.ru.utf-8
deleted file mode 100644
index c12de27d8..000000000
--- a/runtime/tutor/tutor.ru.utf-8
+++ /dev/null
@@ -1,834 +0,0 @@
-===============================================================================
-= 袛 芯 斜 褉 芯 锌 芯 卸 邪 谢 芯 胁 邪 褌 褜 胁 褍 褔 械 斜 薪 懈 泻 VIM - 袙械褉褋懈褟 1.5 =
-===============================================================================
- Vim --- 褝褌芯 芯褔械薪褜 屑芯褖薪褘泄 褉械写邪泻褌芯褉, 懈屑械褞褖懈泄 屑薪芯卸械褋褌胁芯 泻芯屑邪薪写, 褋谢懈褕泻芯屑
- 屑薪芯谐芯 写谢褟 褌芯谐芯, 褔褌芯斜褘 懈褏 胁褋械 屑芯卸薪芯 斜褘谢芯 芯锌懈褋邪褌褜 胁 褌邪泻芯屑 褍褔械斜薪懈泻械, 泻邪泻
- 褝褌芯褌. 协褌芯褌 褍褔械斜薪懈泻 锌褉懈蟹胁邪薪 芯斜褗褟褋薪懈褌褜 写芯褋褌邪褌芯褔薪芯械 褔懈褋谢芯 泻芯屑邪薪写 写谢褟 褌芯谐芯,
- 褔褌芯斜褘 袙褘 屑芯谐谢懈 褋 谢械谐泻芯褋褌褜褞 懈褋锌芯谢褜蟹芯胁邪褌褜 Vim 胁 泻邪褔械褋褌胁械 褉械写邪泻褌芯褉邪 芯斜褖械谐芯
- 薪邪蟹薪邪褔械薪懈褟.
-
- 袙邪屑 锌芯褌褉械斜褍械褌褋褟 锌褉懈斜谢懈蟹懈褌械谢褜薪芯 25-30 屑懈薪褍褌 薪邪 芯褋胁芯械薪懈械 写邪薪薪芯谐芯 褍褔械斜薪懈泻邪 胁
- 蟹邪胁懈褋懈屑芯褋褌懈 芯褌 褌芯谐芯, 褋泻芯谢褜泻芯 胁褉械屑械薪懈 袙褘 锌芯褌褉邪褌懈褌械 薪邪 褝泻褋锌械褉懈屑械薪褌褘.
-
- 袣芯屑邪薪写褘 胁 褍褉芯泻邪褏 斜褍写褍褌 屑芯写懈褎懈褑懈褉芯胁邪褌褜 褌械泻褋褌. 小芯蟹写邪泄褌械 泻芯锌懈褞 褝褌芯谐芯 褎邪泄谢邪,
- 褔褌芯斜褘 锌芯锌褉邪泻褌懈泻芯胁邪褌褜褋褟 薪邪 薪械泄 (械褋谢懈 袙褘 蟹邪锌褍褋褌懈谢懈 "vimtutor", 褌芯 褝褌芯 褍卸械
- 泻芯锌懈褟).
-
- 袙邪卸薪芯 锌芯屑薪懈褌褜, 褔褌芯 褝褌芯褌 褍褔械斜薪懈泻 锌褉械写薪邪蟹薪邪褔械薪 写谢褟 芯斜褍褔械薪懈褟 胁 锌褉芯褑械褋褋械
- 懈褋锌芯谢褜蟹芯胁邪薪懈褟. 协褌芯 芯蟹薪邪褔邪械褌, 褔褌芯 袙褘 写芯谢卸薪褘 蟹邪锌褍褋泻邪褌褜 泻芯屑邪薪写褘 写谢褟 褌芯谐芯,
- 褔褌芯斜褘 泻邪泻 褋谢械写褍械褌 懈褏 懈蟹褍褔懈褌褜. 袝褋谢懈 袙褘 锌褉芯褋褌芯 锌褉芯褔懈褌邪械褌械 褌械泻褋褌, 褌芯
- 蟹邪斜褍写械褌械 泻芯屑邪薪写褘!
-
- 孝械锌械褉褜 褍斜械写懈褌械褋褜 胁 褌芯屑, 褔褌芯 泻谢邪胁懈褕邪 CapsLock 薪械 胁泻谢褞褔械薪邪 懈 薪邪卸屑懈褌械
- 泻谢邪胁懈褕褍 j 薪械褋泻芯谢褜泻芯 褉邪蟹, 褌邪泻, 褔褌芯斜褘 校褉芯泻 1.1 锌芯谢薪芯褋褌褜褞 锌芯屑械褋褌懈谢褋褟 薪邪
- 褝泻褉邪薪械.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 1.1: 袩袝袪袝袦袝些袝袧袠袝 袣校袪小袨袪袗
-
-** 袛谢褟 锌械褉械屑械褖械薪懈褟 泻褍褉褋芯褉邪 薪邪卸屑懈褌械 泻谢邪胁懈褕懈 h,j,k,l 褌邪泻, 泻邪泻 锌芯泻邪蟹邪薪芯 薪懈卸械. **
- ^
- k 小芯胁械褌褘: 袣谢邪胁懈褕邪 h 薪邪褏芯写懈褌褋褟 褋谢械胁邪 懈 锌械褉械屑械褖邪械褌 胁谢械胁芯.
- < h l > 袣谢邪胁懈褕邪 l 薪邪褏芯写懈褌褋褟 褋锌褉邪胁邪 懈 锌械褉械屑械褖邪械褌 胁锌褉邪胁芯.
- j 袣谢邪胁懈褕邪 j 锌芯褏芯卸邪 薪邪 褋褌褉械谢泻褍 `胁薪懈蟹'.
- v
- 1. 袩芯写胁懈谐邪泄褌械 泻褍褉褋芯褉 锌芯 褝泻褉邪薪褍, 锌芯泻邪 薪械 锌芯褔褍胁褋褌胁褍械褌械 褋械斜褟 褍胁械褉械薪薪芯.
-
- 2. 袧邪写邪胁懈褌械 泻谢邪胁懈褕褍 `胁薪懈蟹' (j) 锌芯泻邪 芯薪邪 薪械 薪邪褔薪械褌 锌芯胁褌芯褉褟褌褜褋褟.
----> 孝械锌械褉褜 袙褘 蟹薪邪械褌械, 泻邪泻 锌械褉械泄褌懈 泻 褋谢械写褍褞褖械屑褍 褍褉芯泻褍.
-
- 3. 袠褋锌芯谢褜蟹褍褟 泻谢邪胁懈褕褍 `胁薪懈蟹' 锌械褉械泄写懈褌械 泻 校褉芯泻褍 1.2.
-
-袟邪屑械褔邪薪懈械: 袝褋谢懈 胁褘 锌芯泻邪 薪械 褍胁械褉械薪褘 胁 褌芯屑, 褔褌芯 薪邪斜懈褉邪械褌械, 薪邪卸屑懈褌械 <ESC> 写谢褟
- 锌械褉械褏芯写邪 胁 芯斜褘褔薪褘泄 褉械卸懈屑 (Normal mode). 袩芯褋谢械 褝褌芯谐芯 锌械褉械薪邪斜械褉懈褌械
- 褌褉械斜褍械屑褍褞 泻芯屑邪薪写褍.
-
-袟邪屑械褔邪薪懈械: 袨斜褘褔薪褘械 泻谢邪胁懈褕懈 褍锌褉邪胁谢械薪懈褟 泻褍褉褋芯褉芯屑 (褋褌褉械谢泻懈) 褌邪泻卸械 写芯谢卸薪褘
- 褉邪斜芯褌邪褌褜. 袨写薪邪泻芯, 泻谢邪胁懈褕懈 hjkl 锌芯蟹胁芯谢褟褌 袙邪屑 锌械褉械屑械褖邪褌褜褋褟
- 蟹薪邪褔懈褌械谢褜薪芯 斜褘褋褌褉械械, 泻邪泻 褌芯谢褜泻芯 袙褘 薪邪褍褔懈褌械褋褜 懈屑懈 锌芯谢褜蟹芯胁邪褌褜褋褟.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 1.2: 袟袗袩校小袣 袠 袟袗袙袝袪楔袝袧袠袝 袪袗袘袨孝蝎 小 VIM
-
-!! 袙袧袠袦袗袧袠袝! 袩褉械卸写械, 褔械屑 胁褘锌芯谢薪褟褌褜 谢褞斜芯泄 懈蟹 芯锌懈褋邪薪薪褘褏 薪懈卸械 褕邪谐芯胁, 锌褉芯褔褌懈褌械
- 褍褉芯泻 褑械谢懈泻芯屑 !!
-
- 1. 袧邪卸屑懈褌械 泻谢邪胁懈褕褍 <ESC> (写谢褟 褌芯谐芯, 褔褌芯斜褘 褍写芯褋褌芯胁械褉懈褌褜褋褟, 褔褌芯 袙褘 胁 芯斜褘褔薪芯屑
- 褉械卸懈屑械 (Normal mode)).
-
- 2. 袧邪斜械褉懈褌械: :q! <ENTER>.
-
----> 协褌芯 锌芯蟹胁芯谢懈褌 袙邪屑 胁褘泄褌懈 懈蟹 褉械写邪泻褌芯褉邪 袘袝袟 小袨啸袪袗袧袝袧袠携 谢褞斜褘褏 褋写械谢邪薪薪褘褏
- 懈蟹屑械薪械薪懈泄. 袝褋谢懈 袙褘 褏芯褌懈褌械 褋芯褏褉邪薪懈褌褜 懈蟹屑械薪械薪懈褟 懈 胁褘泄褌懈:
- :wq <ENTER>
-
- 3. 袣芯谐写邪 袙褘 褍胁懈写懈褌械 锌褉懈谐谢邪褕械薪懈械 泻芯屑邪薪写薪芯泄 芯斜芯谢芯褔泻懈, 薪邪斜械褉懈褌械 泻芯屑邪薪写褍,
- 泻芯褌芯褉邪褟 锌褉懈胁械谢邪 袙邪褋 胁 褝褌芯褌 褍褔械斜薪懈泻. 协褌芯 屑芯卸械褌 斜褘褌褜
- vimtutor ru <ENTER>
- 袨斜褘褔薪芯 屑芯卸薪芯 懈褋锌芯谢褜蟹芯胁邪褌褜: vim tutor.ru <ENTER>
-
----> 'vim' 锌芯蟹胁芯谢褟械褌 蟹邪锌褍褋褌懈褌褜 褉械写邪泻褌芯褉 vim, 'tutor.ru' --- 褝褌芯 褎邪泄谢, 泻芯褌芯褉褘泄
- 袙褘 斜褍写械褌械 褉械写邪泻褌懈褉芯胁邪褌褜.
-
- 4. 袝褋谢懈 袙褘 褍胁械褉械薪褘 胁 褌芯屑, 褔褌芯 蟹邪锌芯屑薪懈谢懈 褝褌懈 褕邪谐懈, 胁褘锌芯谢薪懈褌械 褕邪谐懈 芯褌 1 写芯 3
- 褔褌芯斜褘 胁褘泄褌懈 褋薪芯胁邪 蟹邪锌褍褋褌懈褌褜 褉械写邪泻褌芯褉. 袟邪褌械屑 锌械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹 泻
- 校褉芯泻褍 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 1.3: 袪袝袛袗袣孝袠袪袨袙袗袧袠袝 孝袝袣小孝袗 - 校袛袗袥袝袧袠袝
-
-
-** 袧邪褏芯写褟褋褜 胁 芯斜褘褔薪芯屑 褉械卸懈屑械 薪邪卸屑懈褌械 x, 褔褌芯斜褘 褍写邪谢懈褌褜 褋懈屑胁芯谢 锌芯写 泻褍褉褋芯褉芯屑. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 泻 褋褌褉芯泻械 胁薪懈蟹褍, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 袛谢褟 懈褋锌褉邪胁谢械薪懈褟 芯褕懈斜芯泻, 锌械褉械屑械褋褌懈褌械 泻褍褉褋芯褉, 锌芯泻邪 芯薪 薪械 芯泻邪卸械褌褋褟 薪邪写
- 褍写邪谢褟械屑褘屑 褋懈屑胁芯谢芯屑.
-
- 3. 袧邪卸屑懈褌械 泻谢邪胁懈褕褍 x 写谢褟 褍写邪谢械薪懈褟 褌褉械斜褍械屑芯谐芯 褋懈屑胁芯谢邪.
-
- 4. 袩芯胁褌芯褉懈褌械 褕邪谐懈 2--4 锌芯泻邪 褋褌褉芯泻邪 薪械 斜褍写械褌 懈褋锌褉邪胁谢械薪邪.
-
----> 袨褌 褌褌褌芯锌芯褌邪 泻芯锌褘褌褌 锌锌锌褘谢褜 锌锌芯 锌锌锌芯谢褞 谢械褌褌懈褌褌.
-
- 5. 孝械锌械褉褜, 泻芯谐写邪 褋褌褉芯泻邪 芯褌泻芯褉褉械泻褌懈褉芯胁邪薪邪, 锌械褉械褏芯写懈褌械 泻 褍褉芯泻褍 1.4.
-
-袟袗袦袝效袗袧袠袝: 袙 褏芯写械 芯褋胁芯械薪懈褟 褝褌芯谐芯 褍褔械斜薪懈泻邪 薪械 锌褘褌邪泄褌械褋褜 蟹邪锌芯屑懈薪邪褌褜, 褍褔懈褌械
- 胁 锌褉芯褑械褋褋械 懈褋锌芯谢褜蟹芯胁邪薪懈褟.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 1.4: 袪袝袛袗袣孝袠袪袨袙袗袧袠袝 孝袝袣小孝袗 - 袙小孝袗袙袣袗
-
-
- ** 袧邪褏芯写褟褋褜 胁 芯斜褘褔薪芯屑 褉械卸懈屑械 (Normal mode), 薪邪卸屑懈褌械 i 写谢褟 胁褋褌邪胁泻懈 褌械泻褋褌邪. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 泻 锌械褉胁芯泄 褋褌褉芯泻械 胁薪懈蟹褍, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 袛谢褟 褌芯谐芯, 褔褌芯斜褘 褋写械谢邪褌褜 锌械褉胁褍褞 褋褌褉芯泻褍 懈写械薪褌懈褔薪芯泄 胁褌芯褉芯泄, 锌芯屑械褋褌懈褌械
- 泻褍褉褋芯褉 薪邪 褋懈屑胁芯谢 袩袝袪袝袛 泻芯褌芯褉褘屑 褋谢械写褍械褌 胁褋褌邪胁懈褌褜 褌械泻褋褌.
-
- 3. 袧邪卸屑懈褌械 i 懈 薪邪斜械褉懈褌械 褌褉械斜褍械屑褘械 写芯斜邪胁谢械薪懈褟.
-
- 4. 袩芯褋谢械 懈褋锌褉邪胁谢械薪懈褟 胁褋械褏 芯褕懈斜芯泻 薪邪卸屑懈褌械 <ESC> 写谢褟 胁芯蟹胁褉邪褌邪 胁 芯斜褘褔薪褘泄 褉械卸懈屑.
- 袩芯胁褌芯褉懈褌械 褕邪谐懈 2--4, 锌芯泻邪 褎褉邪蟹邪 薪械 斜褍写械褌 懈褋锌褉邪胁谢械薪邪 锌芯谢薪芯褋褌褜褞.
-
----> 效邪褋褌褜 褌械泻褋褌邪 胁 褋褌褉芯泻械 斜械褋谢械写薪芯 .
----> 效邪褋褌褜 褌械泻褋褌邪 胁 褝褌芯泄 褋褌褉芯泻械 斜械褋褋谢械写薪芯 锌褉芯锌邪谢邪.
-
- 5. 袣芯谐写邪 芯褋胁芯懈褌械 胁褋褌邪胁泻褍 褌械泻褋褌邪, 锌械褉械褏芯写懈褌械 写邪谢褜褕械 泻 袪械蟹褞屑械.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袪袝袟挟袦袝 校袪袨袣袗 1
-
- 1. 袣褍褉褋芯褉 锌械褉械屑械褖邪械褌褋褟 谢懈斜芯 泻谢邪胁懈褕邪屑懈 褋芯 褋褌褉械谢泻邪屑懈, 谢懈斜芯 泻谢邪胁懈褕邪屑懈 hjkl.
- h (胁谢械胁芯) j (胁薪懈蟹) k (胁胁械褉褏) l (胁锌褉邪胁芯)
-
- 2. 袛谢褟 蟹邪锌褍褋泻邪 Vim (懈蟹 锌褉懈谐谢邪褕械薪懈褟 % 泻芯屑邪薪写薪芯泄 芯斜芯谢芯褔泻懈) 薪邪斜械褉懈褌械:
- vim 袠袦携_肖袗袡袥袗 <ENTER>
-
- 3. 袛谢褟 蟹邪胁械褉褕械薪懈褟 褉邪斜芯褌褘 褋 Vim 薪邪斜械褉懈褌械:
- <ESC> :q! <ENTER> 褔褌芯斜褘 芯褌泻邪蟹邪褌褜褋褟 芯褌 褋芯褏褉邪薪械薪懈褟 懈蟹屑械薪械薪懈泄.
- 袠谢懈 薪邪斜械褉懈褌械:
- <ESC> :wq <ENTER> 褔褌芯斜褘 褋芯褏褉邪薪懈褌褜 懈蟹屑械薪械薪懈褟.
-
- 4. 袛谢褟 褍写邪谢械薪懈褟 褋懈屑胁芯谢邪 锌芯写 泻褍褉褋芯褉芯屑 胁 芯斜褘褔薪芯屑 褉械卸懈屑械, 薪邪斜械褉懈褌械: x
-
- 5. 效褌芯斜褘 胁褋褌邪胁懈褌褜 褌械泻褋褌 锌械褉械写 泻褍褉褋芯褉芯屑 胁 芯斜褘褔薪芯屑 褉械卸懈屑械, 薪邪斜械褉懈褌械:
- i 胁胁芯写懈褌械 褌械泻褋褌 <ESC>
-
-袟袗袦袝效袗袧袠袝: 袧邪卸邪褌懈械 <ESC> 锌械褉械屑械褋褌懈褌 袙邪褋 胁 芯斜褘褔薪褘泄 褉械卸懈屑 (Normal mode) 谢懈斜芯
- 锌褉械褉胁械褌 薪械卸械谢邪褌械谢褜薪褍褞 懈 褔邪褋褌懈褔薪芯 蟹邪胁械褉褕械薪薪褍褞 泻芯屑邪薪写褍.
-
-孝械锌械褉褜 锌械褉械褏芯写懈屑 泻 校褉芯泻褍 2.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 2.1: 袣袨袦袗袧袛蝎 校袛袗袥袝袧袠携
-
-
- ** 袧邪斜械褉懈褌械 dw 写谢褟 褍写邪谢械薪懈褟 褍褔邪褋褌泻邪 褌械泻褋褌邪 写芯 泻芯薪褑邪 褋谢芯胁邪. **
-
- 1. 袧邪卸屑懈褌械 <ESC>, 褔褌芯斜褘 锌械褉械泄褌懈 胁 芯斜褘褔薪褘泄 褉械卸懈屑.
-
- 2. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 3. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁 薪邪褔邪谢芯 褋谢芯胁邪, 泻芯褌芯褉芯械 褋谢械写褍械褌 褍写邪谢懈褌褜.
-
- 4. 袧邪斜械褉懈褌械 dw , 褔褌芯斜褘 褍写邪谢懈褌褜 褝褌芯 褋谢芯胁芯.
-
-袟袗袦袝效袗袧袠袝: 袙芯 胁褉械屑褟 薪邪斜芯褉邪 斜褍泻胁褘 dw 锌芯褟胁褟褌褋褟 胁 锌芯褋谢械写薪械泄 褋褌褉芯泻械 褝泻褉邪薪邪. 袝褋谢懈
- 袙褘 褔褌芯-褌芯 薪邪斜械褉械褌械 薪械锌褉邪胁懈谢褜薪芯, 薪邪卸屑懈褌械 <ESC> 懈 薪邪褔薪懈褌械 褋薪邪褔邪谢邪.
-
----> 袧械褋泻芯谢褜泻芯 褋谢芯胁 褉邪褎懈薪邪写 胁 褝褌芯屑 锌褉械写谢芯卸械薪懈懈 邪胁褌芯泻褉邪薪 懈蟹谢懈褕薪懈.
-
- 5. 袩芯胁褌芯褉懈褌械 褕邪谐懈 3 懈 4, 锌芯泻邪 薪械 懈褋锌褉邪胁懈褌械 胁褋械 芯褕懈斜泻懈 懈 锌械褉械褏芯写懈褌械 泻
- 校褉芯泻褍 2.2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 2.2: 袛袨袩袨袥袧袠孝袝袥鞋袧蝎袝 袣袨袦袗袧袛蝎 校袛袗袥袝袧袠携
-
-
- ** 袧邪斜械褉懈褌械 d$ 写谢褟 褍写邪谢械薪懈褟 褌械泻褋褌邪 写芯 泻芯薪褑邪 褋褌褉芯泻懈. **
-
- 1. 袧邪卸屑懈褌械 <ESC>, 褔褌芯斜褘 锌械褉械泄褌懈 胁 芯斜褘褔薪褘泄 褉械卸懈屑.
-
- 2. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 3. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 泻 泻芯薪褑褍 锌褉邪胁懈谢褜薪芯泄 褋褌褉芯泻懈 (袩袨小袥袝 锌械褉胁芯泄 . ).
-
- 4. 效褌芯斜褘 褍写邪谢懈褌褜 芯褋褌邪褌芯泻 褋褌褉芯泻懈, 薪邪斜械褉懈褌械 d$ .
-
----> 袣褌芯-褌芯 薪邪斜褉邪谢 芯泻芯薪褔邪薪懈械 褝褌芯泄 褋褌褉芯泻懈 写胁邪卸写褘. 芯泻芯薪褔邪薪懈械 褝褌芯泄 褋褌褉芯泻懈 写胁邪卸写褘.
-
-
- 5.效褌芯斜褘 谢褍褔褕械 褉邪蟹芯斜褉邪褌褜褋褟 胁 褝褌芯屑, 锌械褉械褏芯写懈褌械 泻 校褉芯泻褍 2.3.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 2.3: 袣袨袦袗袧袛蝎 袠 袨袘歇袝袣孝蝎
-
-
- 肖芯褉屑邪褌 泻芯屑邪薪写褘 `褍写邪谢械薪懈械' d 褌邪泻芯胁:
-
- [褔懈褋谢芯] d 芯斜褗械泻褌 袠袥袠 d [褔懈褋谢芯] 芯斜褗械泻褌
- 袟写械褋褜:
- 褔懈褋谢芯 - 褋泻芯谢褜泻芯 褉邪蟹 懈褋锌芯谢薪懈褌褜 泻芯屑邪薪写褍 (薪械芯斜褟蟹邪褌械谢褜薪芯, 锌芯 褍屑芯谢褔邪薪懈褞=1).
- d - 泻芯屑邪薪写邪 褍写邪谢械薪懈褟.
- 芯斜褗械泻褌 - 褋 褔械屑 泻芯屑邪薪写邪 写芯谢卸薪邪 斜褘褌褜 胁褘锌芯谢薪械薪邪 (锌械褉械褔懈褋谢械薪芯 薪懈卸械).
-
- 袣褉邪褌泻懈泄 褋锌懈褋芯泻 芯斜褗械泻褌芯胁:
- w - 芯褌 泻褍褉褋芯褉邪 写芯 泻芯薪褑邪 褋谢芯胁邪, 胁泻谢褞褔邪褟 蟹邪胁械褉褕邪褞褖懈泄 锌褉芯斜械谢.
- e - 芯褌 泻褍褉褋芯褉邪 写芯 泻芯薪褑邪 褋谢芯胁邪, 袧袝 胁泻谢褞褔邪褟 蟹邪胁械褉褕邪褞褖懈泄 锌褉芯斜械谢.
- $ - 芯褌 泻褍褉褋芯褉邪 写芯 泻芯薪褑邪 褋褌褉芯泻懈.
- ^ - 芯褌 泻褍褉褋芯褉邪 写芯 薪邪褔邪谢邪 褋褌褉芯泻懈.
-
-袟袗袦袝效袗袧袠袝: 袩褉芯褋褌芯械 薪邪卸邪褌懈械 薪邪 褋懈屑胁芯谢 芯斜褗械泻褌邪 胁 芯斜褘褔薪芯屑 褉械卸懈屑械 (Normal mode)
- 斜械蟹 写芯锌芯谢薪懈褌械谢褜薪褘褏 泻芯屑邪薪写 锌械褉械写胁懈薪械褌 泻褍褉褋芯褉 褌邪泻, 泻邪泻 褍泻邪蟹邪薪芯 胁
- 褋锌懈褋泻械 芯斜褗械泻褌芯胁.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 2.4: 袠小袣袥挟效袝袧袠袝 袠袟 袩袪袗袙袠袥袗 `袣袨袦袗袧袛袗-袨袘歇袝袣孝'
-
-
- ** 袧邪斜械褉懈褌械 dd 写谢褟 褍写邪谢械薪懈褟 胁褋械泄 褋褌褉芯泻懈. **
-
- 袙褋谢械写褋褌胁懈械 褔邪褋褌芯谐芯 锌褉懈屑械薪械薪懈褟 芯锌械褉邪褑懈懈 褍写邪谢械薪懈褟 胁褋械泄 褋褌褉芯泻懈, 褉邪蟹褉邪斜芯褌褔懈泻懈
- Vim 褉械褕懈谢懈, 褔褌芯 写谢褟 褝褌芯谐芯 锌褉芯褖械 胁褋械谐芯 锌褉芯褋褌芯 薪邪斜褉邪褌褜 d 写胁邪卸写褘.
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻芯 胁褌芯褉芯泄 褋褌褉芯泻械 褎褉邪蟹褘.
- 2. 袧邪斜械褉懈褌械 dd 写谢褟 褍写邪谢械薪懈褟 褋褌褉芯泻懈.
- 3. 孝械锌械褉褜 锌械褉械屑械褋褌懈褌械褋褜 泻 褔械褌胁械褉褌芯泄 褋褌褉芯泻械.
- 4. 袧邪斜械褉懈褌械 2dd (胁褋锌芯屑薪懈褌械 锌褉邪胁懈谢芯 `褔懈褋谢芯-泻芯屑邪薪写邪-芯斜褗械泻褌'), 褔褌芯斜褘 褍写邪谢懈褌褜
- 写胁械 褋褌褉芯泻懈.
-
- 1) 袥械褌芯屑 褟 褏芯卸褍 薪邪 褋褌邪写懈芯薪,
- 2) 袨, 泻邪泻 胁薪械蟹邪锌薪芯 泻芯薪褔懈谢褋褟 写懈胁邪薪!
- 3) 携 斜芯谢械褞 蟹邪 ``袟械薪懈褌'', ``袟械薪懈褌'' --- 褔械屑锌懈芯薪!
- 4) 袩械褔邪谢褜薪芯 褟 谐谢褟卸褍 薪邪 薪邪褕械 锌芯泻芯谢械薪懈械!
- 5) 袝谐芯 谐褉褟写褍褖械械 懈谢褜 锌褍褋褌芯 懈谢褜 褌械屑薪芯...
- 6) 携 褋懈卸褍 薪邪 褋泻邪屑械泄泻械 胁 谢芯卸械 `袘'
- 7) 袠 懈谐褉邪褞 薪邪 斜芯谢褜褕芯泄 卸械褋褌褟薪芯泄 褌褉褍斜械.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 2.5: 袣袨袦袗袧袛袗 `袨孝袣袗孝'
-
-
- ** 袧邪卸屑懈褌械 u 写谢褟 芯褌屑械薪褘 褉械蟹褍谢褜褌邪褌邪 褉邪斜芯褌褘 锌褉械写褘写褍褖械泄 泻芯屑邪薪写褘, U 写谢褟 芯褌屑械薪褘
- 懈褋锌褉邪胁谢械薪懈泄 胁芯 胁褋械泄 褋褌褉芯泻械. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 ---> 懈 褍褋褌邪薪芯胁懈褌械 械谐芯 薪邪
- 锌械褉胁褍褞 芯褕懈斜泻褍.
- 2. 袧邪卸屑懈褌械 x 写谢褟 褍写邪谢械薪懈褟 锌械褉胁芯谐芯 薪械锌褉邪胁懈谢褜薪芯谐芯 褋懈屑胁芯谢邪.
- 3. 孝械锌械褉褜 薪邪卸屑懈褌械 u 写谢褟 芯褌屑械薪褘 (芯褌泻邪褌邪) 锌芯褋谢械写薪械泄 胁褘锌芯谢薪械薪薪芯泄 泻芯屑邪薪写褘.
- 4. 袠褋锌褉邪胁褜褌械 胁褋械 芯褕懈斜泻懈 胁 褋褌褉芯泻械, 懈褋锌芯谢褜蟹褍褟 泻芯屑邪薪写褍 x .
- 5. 孝械锌械褉褜 薪邪卸屑懈褌械 蟹邪谐谢邪胁薪褍褞 U 写谢褟 褌芯谐芯, 褔褌芯斜褘 胁械褉薪褍褌褜 胁褋褞 褋褌褉芯泻褍 胁 懈褋褏芯写薪芯械
- 褋芯褋褌芯褟薪懈械.
- 6. 袧邪卸屑懈褌械 u 薪械褋泻芯谢褜泻芯 褉邪蟹 写谢褟 芯褌屑械薪褘 泻芯屑邪薪写褘 U 懈 锌褉械写褘写褍褖懈褏 泻芯屑邪薪写.
- 7. 袧邪卸屑懈褌械 褌械锌械褉褜 CTRL-R (褍写械褉卸懈胁邪泄褌械 泻谢邪胁懈褕褍 CTRL 薪邪卸邪褌芯泄 胁 屑芯屑械薪褌 薪邪卸邪褌懈褟
- R) 薪械褋泻芯谢褜泻芯 褉邪蟹 写谢褟 胁芯蟹胁褉邪褌邪 泻芯屑邪薪写 (芯褌泻邪褌 芯褌泻邪褌邪).
-
----> 袠褋锌褉褉邪胁褜褌械 芯芯褕懈斜泻懈 胁 褝褌芯泄泄 褋褌褉芯泻械 懈 胁械褉薪懈褌褌械 懈褏 褋褋 锌芯屑芯褖褜褜褞 `芯褌泻邪褌邪'.
-
- 8. 协褌芯 斜褘谢懈 芯褔械薪褜 锌芯谢械蟹薪褘械 泻芯屑邪薪写褘. 袛邪谢械械 锌械褉械褏芯写懈褌械 泻 袪械蟹褞屑械 校褉芯泻邪 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袪袝袟挟袦袝 校袪袨袣袗 2
-
-
- 1. 袛谢褟 褍写邪谢械薪懈褟 褌械泻褋褌邪 芯褌 泻褍褉褋芯褉邪 写芯 泻芯薪褑邪 褋谢芯胁邪 薪邪斜械褉懈褌械: dw
-
- 2. 袛谢褟 褍写邪谢械薪懈褟 褌械泻褋褌邪 芯褌 泻褍褉褋芯褉邪 写芯 泻芯薪褑邪 褋褌褉芯泻懈 薪邪斜械褉懈褌械: d$
-
- 3. 袛谢褟 褍写邪谢械薪懈褟 胁褋械泄 褋褌褉芯泻懈 薪邪斜械褉懈褌械: dd
-
- 4. 肖芯褉屑邪褌 泻芯屑邪薪写褘 胁 芯斜褘褔薪芯屑 褉械卸懈屑械 懈屑械械褌 胁懈写:
-
- [褔懈褋谢芯] 泻芯屑邪薪写邪 芯斜褗械泻褌 袠袥袠 泻芯屑邪薪写邪 [褔懈褋谢芯] 芯斜褗械泻褌
- 谐写械:
- 褔懈褋谢芯 - 褋泻芯谢褜泻芯 褉邪蟹 锌芯胁褌芯褉懈褌褜 胁褘锌芯谢薪械薪懈械 泻芯屑邪薪写褘
- 泻芯屑邪薪写邪 - 褔褌芯 胁褘锌芯谢薪懈褌褜, 薪邪锌褉懈屑械褉 d 写谢褟 褍写邪谢械薪懈褟
- 芯斜褗械泻褌 - 薪邪 褔褌芯 写芯谢卸薪邪 胁芯蟹写械泄褋褌胁芯胁邪褌褜 泻芯屑邪薪写邪, 薪邪锌褉懈屑械褉 w (褋谢芯胁芯),
- $ (写芯 泻芯薪褑邪 褋褌褉芯泻懈), 懈 褌.写.
-
- 5. 袛谢褟 芯褌屑械薪褘 (芯褌泻邪褌邪) 锌褉械写褕械褋褌胁褍褞褖懈褏 写械泄褋褌胁懈泄 薪邪斜械褉懈褌械: u (褋褌褉芯褔薪邪褟 u)
- 袛谢褟 芯褌屑械薪褘 (芯褌泻邪褌邪) 胁褋械褏 懈蟹屑械薪械薪懈泄 胁 褋褌褉芯泻械 薪邪斜械褉懈褌械: U (锌褉芯锌懈褋薪邪褟 U)
- 袛谢褟 芯褌屑械薪褘 芯褌泻邪褌邪 薪邪斜械褉懈褌械: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 3.1: 袣袨袦袗袧袛袗 袙小孝袗袙袣袠
-
-
- ** 袧邪斜械褉懈褌械 p 写谢褟 胁褋褌邪胁泻懈 锌芯褋谢械写薪械谐芯 褍写邪谢械薪薪芯谐芯 褌械泻褋褌邪 锌芯褋谢械 泻褍褉褋芯褉邪. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹 泻 锌芯褋谢械写薪械泄 褋褌褉芯泻械 懈蟹 薪邪斜芯褉邪.
-
- 2. 袧邪斜械褉懈褌械 dd 写谢褟 褍写邪谢械薪懈褟 褋褌褉芯泻懈 懈 械械 褋芯褏褉邪薪械薪懈褟 胁 斜褍褎械褉械 Vim'邪.
-
- 3. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 泻 褋褌褉芯泻械 袧袗袛 褌械屑 屑械褋褌芯屑, 泻褍写邪 褋谢械写褍械褌 胁褋褌邪胁懈褌褜
- 褍写邪谢械薪薪褍褞 褋褌褉芯泻褍.
-
- 4. 袧邪褏芯写褟褋褜 胁 芯斜褘褔薪芯屑 褉械卸懈屑械 薪邪斜械褉懈褌械 p 写谢褟 蟹邪屑械薪褘 褋褌褉芯泻懈.
-
- 5. 袩芯胁褌芯褉懈褌械 褕邪谐懈 2--4, 锌芯泻邪 薪械 褉邪褋褋褌邪胁懈褌械 胁褋械 褋褌褉芯泻懈 胁 薪褍卸薪芯屑 锌芯褉褟写泻械.
-
- 谐) 袠 谢褍褔褕械 胁褘写褍屑邪褌褜 薪械 屑芯谐.
- 斜) 袣芯谐写邪 薪械 胁 褕褍褌泻褍 蟹邪薪械屑芯谐,
- 胁) 袨薪 褍胁邪卸邪褌褜 褋械斜褟 蟹邪褋褌邪胁懈谢
- 邪) 袦芯泄 写褟写褟 褋邪屑褘褏 褔械褋褌薪褘褏 锌褉邪胁懈谢
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 3.2: 袣袨袦袗袧袛袗 袟袗袦袝袧蝎
-
-
- ** 袧邪斜械褉懈褌械 r 懈 褋懈屑胁芯谢, 蟹邪屑械薪褟褞褖懈泄 褋懈屑胁芯谢 锌芯写 泻褍褉褋芯褉芯屑. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 校褋褌邪薪芯胁懈褌械 泻褍褉褋芯褉 褌邪泻, 褔褌芯斜褘 芯薪 薪邪褏芯写懈谢褋褟 薪邪写 锌械褉胁芯泄 芯褕懈斜泻芯泄.
-
- 3. 袧邪斜械褉懈褌械 r 懈 蟹邪褌械屑 褋懈屑胁芯谢, 懈褋锌褉邪胁谢褟褞褖懈泄 芯褕懈斜泻褍.
-
- 4. 袩芯胁褌芯褉懈褌械 褕邪谐懈 2 懈 3, 锌芯泻邪 锌械褉胁邪褟 褋褌褉芯泻邪 薪械 斜褍写械褌 懈褋锌褉邪胁谢械薪邪.
-
----> 袙 屑芯屑械谐褌 薪邪斜褌褉邪 褝褌芯泄 褔褌褉芯泻懈 泻芯械0泻褌芯 褋 褌褉褍写芯屑 锌芯锌胁写邪谢 锌芯 泻谢胁邪懈褕邪屑!
----> 袙 屑芯屑械薪褌 薪邪斜芯褉邪 褝褌芯泄 褋褌褉芯泻懈 泻芯械-泻褌芯 褋 褌褉褍写芯屑 锌芯锌邪写邪谢 锌芯 泻谢邪胁懈褕邪屑!
-
- 5. 孝械锌械褉褜 锌械褉械褏芯写懈褌械 泻 校褉芯泻褍 3.2.
-
-袟袗袦袝效袗袧袠袝: 袩芯屑薪懈褌械, 褔褌芯 胁褘 写芯谢卸薪褘 褍褔懈褌褜褋褟 胁 锌褉芯褑械褋褋械 褉邪斜芯褌褘, 邪 薪械 锌褉芯褋褌芯
- 蟹邪锌芯屑懈薪邪褟.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 3.3: 袣袨袦袗袧袛袗 袠袟袦袝袧袝袧袠携
-
-
- ** 袛谢褟 懈蟹屑械薪械薪懈褟 褔邪褋褌懈 褋谢芯胁邪 薪邪斜械褉懈褌械 cw . **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 袪邪褋锌芯谢芯卸懈褌械 泻褍褉褋芯褉 薪邪写 斜褍泻胁芯泄 `o' 胁 褋谢芯胁械 `褋芯谢邪'.
-
- 3. 袧邪斜械褉懈褌械 cw 懈 懈褋锌褉邪胁褜褌械 褋谢芯胁芯 (胁 写邪薪薪芯屑 褋谢褍褔邪械, 薪邪斜械褉懈褌械 `谢芯胁'.)
-
- 4. 袧邪卸屑懈褌械 <ESC> 懈 锌械褉械褏芯写懈褌械 泻 褋谢械写褍褞褖械泄 芯褕懈斜泻械 (泻 锌械褉胁芯屑褍 褋懈屑胁芯谢褍, 泻芯褌芯褉褘泄
- 薪邪写芯 懈蟹屑械薪懈褌褜.)
-
- 5. 袩芯胁褌芯褉懈褌械 褕邪谐懈 3--4 锌芯泻邪 锌械褉胁芯械 锌褉械写谢芯卸械薪懈械 薪械 褋褌邪薪械褌 懈写械薪褌懈褔薪褘屑 胁褌芯褉芯屑褍.
-
----> 袧械褋泻芯谢褜泻芯 褋芯谢邪 胁 褝褜谐褑 褋褌褉芯泻械 褌锌谐褕褑斜褜 褉械写邪谢蟹泻褍褞懈械褋胁褏.
----> 袧械褋泻芯谢褜泻芯 褋谢芯胁 胁 褝褌芯泄 褋褌褉芯泻械 褌褉械斜褍褞褌 褉械写邪泻褌懈褉芯胁邪薪懈褟.
-
-袨斜褉邪褌懈褌械 胁薪懈屑邪薪懈械, 褔褌芯 cw 薪械 褌芯谢褜泻芯 蟹邪屑械薪褟械褌 褋谢芯胁芯, 薪芯 懈 锌械褉械胁芯写懈褌 胁邪褋 胁 褉械卸懈屑
-胁褋褌邪胁泻懈.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 3.4: 袩袪袨袛袨袥袞袗袝袦 袠袟袦袝袧携孝鞋 小 袣袨袦袗袧袛袨袡 c
-
-
-** 袣芯屑邪薪写邪 蟹邪屑械薪褘 懈褋锌芯谢褜蟹褍械褌褋褟 褋 褌械屑懈 卸械 芯斜褗械泻褌邪屑懈, 褔褌芯 懈 泻芯屑邪薪写邪 褍写邪谢械薪懈褟. **
-
- 1. 袣芯屑邪薪写邪 懈蟹屑械薪械薪懈褟 锌褉懈屑械薪褟械褌褋褟 褌邪泻懈屑 卸械 芯斜褉邪蟹芯屑, 泻邪泻 懈 泻芯屑邪薪写邪 褍写邪谢械薪懈褟.
- 袝械 褎芯褉屑邪褌 褌邪泻芯胁:
-
- [褔懈褋谢芯] c 芯斜褗械泻褌 袠袥袠 c [褔懈褋谢芯] 芯斜褗械泻褌
-
- 2. 袨斜褗械泻褌褘 褌邪泻卸械 褋芯胁锌邪写邪褞褌: w (褋谢芯胁芯), $ (泻芯薪械褑 褋褌褉芯泻懈) 懈 褌.锌.
-
- 3. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 4. 袩械褉械泄写懈褌械 泻 锌械褉胁芯泄 芯褕懈斜泻械.
-
- 5. 袧邪斜械褉懈褌械 c$ 懈 芯褌褉械写邪泻褌懈褉褍泄褌械 锌械褉胁褍褞 褋褌褉芯泻褍 褌邪泻, 褔褌芯斜褘 芯薪邪 褋芯胁锌邪写邪谢邪 褋芯
- 胁褌芯褉芯泄, 锌芯褋谢械 褔械谐芯 薪邪卸屑懈褌械 <ESC>.
-
----> 袣芯薪械褑 褝褌芯泄 褋褌褉芯泻懈 薪褍卸写邪械褌褋褟 胁 锌芯屑芯褖懈, 褔褌芯斜褘 褋褌邪褌褜 锌芯褏芯卸懈屑 薪邪 胁褌芯褉芯泄.
----> 袣芯薪械褑 褝褌芯泄 褋褌褉芯泻懈 薪褍卸写邪械褌褋褟 胁 锌芯屑芯褖懈 泻芯屑邪薪写褘 c$ .
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袪袝袟挟袦袝 校袪袨袣袗 3
-
-
- 1. 袛谢褟 胁褋褌邪胁泻懈 褌械泻褋褌邪, 泻芯褌芯褉褘泄 褌芯谢褜泻芯 褔褌芯 斜褘谢 褍写邪谢械薪, 薪邪斜械褉懈褌械 p . 协褌邪
- 泻芯屑邪薪写邪 胁褋褌邪胁懈褌 褍写邪谢械薪薪褘泄 褌械泻褋褌 袩袨小袥袝 泻褍褉褋芯褉邪 (械褋谢懈 斜褘谢邪 褍写邪谢械薪邪 褋褌褉芯泻邪,
- 褌芯 芯薪邪 斜褍写械褌 锌芯屑械褖械薪邪 胁 褋褌褉芯泻械 锌芯写 泻褍褉褋芯褉芯屑).
-
- 2. 袛谢褟 蟹邪屑械薪褘 褋懈屑胁芯谢邪 锌芯写 泻褍褉褋芯褉芯屑 薪邪斜械褉懈褌械 r 懈 蟹邪褌械屑 蟹邪屑械薪褟褞褖懈泄 褋懈屑胁芯谢.
-
- 3. 袣芯屑邪薪写邪 懈蟹屑械薪械薪懈褟 锌芯蟹胁芯谢褟械褌 袙邪屑 懈蟹屑械薪懈褌褜 褍泻邪蟹邪薪薪褘泄 芯斜褗械泻褌 芯褌 泻褍褉褋芯褉邪 写芯
- 泻芯薪褑邪 褝褌芯谐芯 芯斜褗械泻褌邪. 袧邪锌褉懈屑械褉, 薪邪斜械褉懈褌械 cw 写谢褟 蟹邪屑械薪褘 芯褌 泻褍褉褋芯褉邪 写芯
- 泻芯薪褑邪 褋谢芯胁邪, c$ 写谢褟 懈蟹屑械薪械薪懈褟 写芯 泻芯薪褑邪 褋褌褉芯泻懈.
-
- 4. 肖芯褉屑邪褌 泻芯屑邪薪写褘 懈蟹屑械薪械薪懈褟 褌邪泻芯胁:
-
- [褔懈褋谢芯] c 芯斜褗械泻褌 袠袥袠 c [褔懈褋谢芯] 芯斜褗械泻褌
-
-孝械锌械褉褜 芯褌锌褉邪胁谢褟泄褌械褋褜 泻 褋谢械写褍褞褖械屑褍 褍褉芯泻褍.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 4.1: 袠袧肖袨袪袦袗笑袠携 袨 肖袗袡袥袝 袠 袪袗小袩袨袥袨袞袝袧袠袝 袙 袧袝袦
-
-
- ** 袧邪斜械褉懈褌械 CTRL-g 褔褌芯斜褘 褍胁懈写械褌褜 袙邪褕械 屑械褋褌芯褉邪褋锌芯谢芯卸械薪懈械 胁 褎邪泄谢械 懈 懈薪褎芯褉屑邪褑懈褞
- 芯 薪械屑.
- 袧邪斜械褉懈褌械 SHIFT-G 写谢褟 锌械褉械屑械褖械薪懈褟 泻 蟹邪写邪薪薪芯泄 褋褌褉芯泻械 胁 褎邪泄谢械. **
-
- 袟邪屑械褔邪薪懈械: 袩褉芯褔懈褌邪泄褌械 胁械褋褜 褍褉芯泻 锌褉械卸写械 褔械屑 胁褘锌芯谢薪褟褌褜 谢褞斜褘械 泻芯屑邪薪写褘!!
-
- 1. 校写械褉卸懈胁邪褟 泻谢邪胁懈褕褍 Ctrl 薪邪卸屑懈褌械 g . 袙薪懈蟹褍 褝泻褉邪薪邪 锌芯褟胁懈褌褋褟 褋褌褉芯泻邪 褋褌邪褌褍褋邪 褋
- 懈屑械薪械屑 褎邪泄谢邪 懈 薪芯屑械褉芯屑 褋褌褉芯泻懈, 胁 泻芯褌芯褉芯泄 袙褘 薪邪褏芯写懈褌械褋褜. 袟邪锌芯屑薪懈褌械 薪芯屑械褉
- 褋褌褉芯泻懈, 芯薪 锌芯褌褉械斜褍械褌褋褟 薪邪 楔邪谐械 3.
-
- 2. 袧邪卸屑懈褌械 shift-G 写谢褟 锌械褉械屑械褖械薪懈褟 泻 泻芯薪褑褍 褎邪泄谢邪.
-
- 3. 袧邪斜械褉懈褌械 薪芯屑械褉 褋褌褉芯泻懈, 胁 泻芯褌芯褉芯泄 胁褘 薪邪褏芯写懈谢懈褋褜 懈 蟹邪褌械屑 shift-G. 协褌芯
- 胁械褉薪械褌 袙邪褋 泻 褋褌褉芯泻械, 胁 泻芯褌芯褉芯泄 袙褘 斜褘谢懈, 泻芯谐写邪 胁 锌械褉胁褘泄 褉邪蟹 薪邪卸邪谢懈 Ctrl-g.
- (袣芯谐写邪 袙褘 斜褍写械褌械 薪邪斜懈褉邪褌褜 褑懈褎褉褘, 芯薪懈 袧袝 芯褌芯斜褉邪蟹褟褌褋褟 薪邪 褝泻褉邪薪械.)
-
- 4. 袝褋谢懈 袙褘 蟹邪锌芯屑薪懈谢懈 胁褋械 胁褘褕械褋泻邪蟹邪薪薪芯械, 胁褘锌芯谢薪懈褌械 褕邪谐懈 1--3.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 4.2: 袣袨袦袗袧袛袗 袩袨袠小袣袗
-
- ** 袧邪斜械褉懈褌械 / 懈 蟹邪褌械屑 胁胁械写懈褌械 懈褋泻芯屑褍褞 褎褉邪蟹褍. **
-
- 1. 袙 芯斜褘褔薪芯屑 褉械卸懈屑械 (Normal mode) 薪邪斜械褉懈褌械 褋懈屑胁芯谢 / . 袨斜褉邪褌懈褌械 胁薪懈屑邪薪懈械,
- 褔褌芯 芯薪 胁屑械褋褌械 褋 泻褍褉褋芯褉芯屑 锌芯褟胁懈褌褋褟 胁薪懈蟹褍 褝泻褉邪薪邪, 泻邪泻 褝褌芯 锌褉芯懈褋褏芯写懈褌 褋
- 泻芯屑邪薪写芯泄 : .
-
- 2. 孝械锌械褉褜 薪邪斜械褉懈褌械 '芯褕褕褕懈斜泻邪' <ENTER>. 协褌芯 褌芯 褋谢芯胁芯, 泻芯褌芯褉芯械 袙褘 斜褍写械褌械
- 懈褋泻邪褌褜.
-
- 3. 袛谢褟 褌芯谐芯, 褔褌芯斜褘 锌芯胁褌芯褉懈褌褜 锌芯懈褋泻, 锌褉芯褋褌芯 薪邪卸屑懈褌械 n .
- 袛谢褟 锌芯懈褋泻邪 褝褌芯泄 褎褉邪蟹褘 胁 芯斜褉邪褌薪芯屑 薪邪锌褉邪胁谢械薪懈懈, 薪邪卸屑懈褌械 Shift-N .
-
- 4. 袝褋谢懈 袙褘 卸械谢邪械褌械 褋褉邪蟹褍 懈褋泻邪褌褜 胁 芯斜褉邪褌薪芯屑 薪邪锌褉邪胁谢械薪懈懈, 懈褋锌芯谢褜蟹褍泄褌械
- 泻芯屑邪薪写褍 ? 胁屑械褋褌芯 / .
-
----> 袣芯谐写邪 袙褘 锌褉懈 锌芯懈褋泻械 写芯褋褌懈谐薪械褌械 泻芯薪褑邪 褎邪泄谢邪, 锌芯懈褋泻 斜褍写械褌 锌褉芯写芯谢卸械薪 褋
- 薪邪褔邪谢邪.
-
- "芯褕褕褕懈斜泻邪" 褝褌芯 薪械 褋锌芯褋芯斜 锌褉芯懈蟹薪械褋械薪懈褟 褋谢芯胁邪 `芯褕懈斜泻邪'; 芯褕褕褕懈斜泻邪 褝褌芯 芯褕懈斜泻邪.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 4.3: 袩袨袠小袣 袩袗袪袧蝎啸 小袣袨袘袨袣
-
-
- ** 袧邪斜械褉懈褌械 % 写谢褟 锌芯懈褋泻邪 锌邪褉薪褘褏 ),] 懈谢懈 } . **
-
- 1. 袩芯屑械褋褌懈褌械 泻褍褉褋芯褉 薪邪写 谢褞斜芯泄 懈蟹 (, [ 懈谢懈 { 胁 褋褌褉芯泻械 胁薪懈蟹褍, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 孝械锌械褉褜 薪邪斜械褉懈褌械 褋懈屑胁芯谢 % .
-
- 3. 袣褍褉褋芯褉 写芯谢卸械薪 锌械褉械褋泻芯褔懈褌褜 薪邪 锌邪褉薪褍褞 褋泻芯斜泻褍.
-
- 4. 袧邪斜械褉懈褌械 % 写谢褟 胁芯蟹胁褉邪褌邪 泻褍褉褋芯褉邪 薪邪蟹邪写 泻 锌械褉胁芯泄 褋泻芯斜泻械.
-
----> 协褌芯 ( 褋褌褉芯泻邪, 褋芯写械褉卸邪褖邪褟 褌邪泻懈械 (, 褌邪泻懈械 [ ] 懈 褌邪泻懈械 { } 褋泻芯斜泻懈. ))
-
-袟邪屑械褔邪薪懈械: 协褌芯 芯褔械薪褜 褍写芯斜薪芯 锌褉懈 芯褌谢邪写泻械 锌褉芯谐褉邪屑屑 褋 锌褉芯锌褍褖械薪薪褘屑懈 褋泻芯斜泻邪屑懈!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 4.4: 小袩袨小袨袘 袠小袩袪袗袙袥袝袧袠携 袨楔袠袘袨袣
-
-
- ** 袧邪斜械褉懈褌械 :s/斜褘谢芯/褋褌邪谢芯/g 写谢褟 蟹邪屑械薪褘 '斜褘谢芯' 薪邪 '褋褌邪谢芯'. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 袧邪斜械褉懈褌械 :s/褍胁芯写褞/褍胁芯卸褍 <ENTER> . 袨斜褉邪褌懈褌械 胁薪懈屑邪薪懈械 薪邪 褌芯, 褔褌芯 褝褌邪 泻芯屑邪薪写邪
- 蟹邪屑械薪懈褌 褌芯谢褜泻芯 锌械褉胁芯械 薪邪泄写械薪薪芯械 胁褏芯卸写械薪懈械 胁 褋褌褉芯泻械.
-
- 3. 孝械锌械褉褜 薪邪斜械褉懈褌械 :s/褍胁芯写褞/褍胁芯卸褍/g , 芯蟹薪邪褔邪褞褖械械 锌芯写褋褌邪薪芯胁泻褍 谐谢芯斜邪谢褜薪芯 胁芯
- 胁褋械泄 褋褌褉芯泻械. 协褌芯 蟹邪屑械薪懈褌 胁褋械 薪邪泄写械薪薪褘械 胁 褋褌褉芯泻械 胁褏芯卸写械薪懈褟.
-
----> 携 褍胁芯写褞 泻 芯褌胁械褉卸械薪薪褘屑 褋械谢械薪褜褟屑, 褟 褍胁芯写褞 褋泻胁芯蟹褜 胁械泻芯胁械褔薪褘泄 褋褌芯薪, 褟 褍胁芯写褞 泻
- 蟹邪斜褘褌褘屑 锌芯泻芯谢械薪褜褟屑.
-
- 4. 袛谢褟 蟹邪屑械薪褘 胁褋械褏 胁褏芯卸写械薪懈泄 锌芯褋谢械写芯胁邪褌械谢褜薪芯褋褌懈 褋懈屑胁芯谢芯胁 屑械卸写褍 写胁褍屑褟
- 褋褌褉芯泻邪屑懈,
- 薪邪斜械褉懈褌械 :#,#s/斜褘谢芯/褋褌邪谢芯/g 谐写械 #,# --- 薪芯屑械褉邪 褝褌懈褏 褋褌褉芯泻.
- 袧邪斜械褉懈褌械 :%s/斜褘谢芯/褋褌邪谢芯/g 写谢褟 蟹邪屑械薪褘 胁褋械褏 胁褏芯卸写械薪懈泄 胁芯 胁褋械屑 褎邪泄谢械.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袪袝袟挟袦袝 校袪袨袣袗 4
- 1. Ctrl-g 锌芯泻邪蟹褘胁邪械褌 胁邪褕械 锌芯谢芯卸械薪懈械 胁 褎邪泄谢械 懈 懈薪褎芯褉屑邪褑懈褞 芯 薪械屑.
- Shift-G 锌械褉械屑械褖邪械褌 袙邪褋 胁 泻芯薪械褑 褎邪泄谢邪. 袧芯屑械褉, 蟹邪 泻芯褌芯褉褘屑 褋谢械写褍械褌 Shift-G
- 锌芯蟹胁芯谢褟械褌 锌械褉械泄褌懈 泻 褋褌褉芯泻械 褋 褝褌懈屑 薪芯屑械褉芯屑.
-
- 2. 袧邪卸邪褌懈械 / 懈 蟹邪褌械屑 胁胁芯写 褋褌褉芯泻懈 锌芯蟹胁芯谢褟械褌 锌褉芯懈蟹胁械褋褌懈 锌芯懈褋泻 褝褌芯泄 褋褌褉芯泻懈
- 袙袩袝袪袝袛 锌芯 褌械泻褋褌褍.
- 袧邪卸邪褌懈械 ? 懈 蟹邪褌械屑 胁胁芯写 褋褌褉芯泻懈 锌芯蟹胁芯谢褟械褌 锌褉芯懈蟹胁械褋褌懈 锌芯懈褋泻 褝褌芯泄 褋褌褉芯泻懈
- 袧袗袟袗袛 锌芯 褌械泻褋褌褍.
- 袩芯褋谢械 锌芯懈褋泻邪 薪邪斜械褉懈褌械 n 写谢褟 锌械褉械褏芯写邪 泻 褋谢械写褍褞褖械屑褍 胁褏芯卸写械薪懈褞 懈褋泻芯屑芯泄
- 褋褌褉芯泻懈 胁 褌芯屑 卸械 薪邪锌褉邪胁谢械薪懈懈 懈谢懈 Shift-N 写谢褟 锌械褉械褏芯写邪 胁 锌褉芯褌懈胁芯锌芯谢芯卸薪芯屑
- 薪邪锌褉邪胁谢械薪懈懈.
-
- 3. 袧邪卸邪褌懈械 % , 泻芯谐写邪 泻褍褉褋芯褉 薪邪褏芯写懈褌褋褟 薪邪 (,),[,],{, 懈谢懈 } 锌芯蟹胁芯谢褟械褌 薪邪泄褌懈
- 锌邪褉薪褍褞 褋泻芯斜泻褍.
-
- 4. 袛谢褟 锌芯写褋褌邪薪芯胁泻懈 `褋褌邪谢芯' 胁屑械褋褌芯 锌械褉胁芯谐芯 `斜褘谢芯' 胁 褋褌褉芯泻械, 薪邪斜械褉懈褌械
- :s/old/new
- 袛谢褟 锌芯写褋褌邪薪芯胁泻懈 `褋褌邪谢芯' 胁屑械褋褌芯 胁褋械褏 `斜褘谢芯' 胁 褋褌褉芯泻械, 薪邪斜械褉懈褌械
- :s/old/new/g
- 袛谢褟 蟹邪屑械薪褘 胁 懈薪褌械褉胁邪谢械 屑械卸写褍 写胁褍屑褟 褋褌褉芯泻邪屑懈, 薪邪斜械褉懈褌械
- :#,#s/old/new/g
- 袛谢褟 蟹邪屑械薪褘 胁褋械褏 胁褏芯卸写械薪懈泄 `斜褘谢芯' 薪邪 `褋褌邪谢芯' 胁 褎邪泄谢械, 薪邪斜械褉懈褌械
- :%s/old/new/g
- 效褌芯斜褘 褉械写邪泻褌芯褉 泻邪卸写褘泄 褉邪蟹 蟹邪锌褉邪褕懈胁邪谢 锌芯写褌胁械褉卸写械薪懈械, 写芯斜邪胁褜褌械 'c'
- :%s/old/new/gc
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 5.1: 袣袗袣 袙蝎袩袨袥袧袠孝鞋 袙袧袝楔袧挟挟 袣袨袦袗袧袛校
-
-
- ** 袧邪斜械褉懈褌械 :! 懈 蟹邪褌械屑 胁薪械褕薪褞褞 泻芯屑邪薪写褍, 泻芯褌芯褉褍褞 褋谢械写褍械褌 胁褘锌芯谢薪懈褌褜. **
-
- 1. 袧邪斜械褉懈褌械 褍卸械 蟹薪邪泻芯屑褍褞 袙邪屑 泻芯屑邪薪写褍 : 写谢褟 褍褋褌邪薪芯胁泻懈 泻褍褉褋芯褉邪 胁 泻芯屑邪薪写薪褍褞
- 褋褌褉芯泻褍 褉械写邪泻褌芯褉邪. 协褌芯 锌芯蟹胁芯谢懈褌 袙邪屑 胁胁械褋褌懈 泻芯屑邪薪写褍.
-
- 2. 孝械锌械褉褜 薪邪斜械褉懈褌械 褋懈屑胁芯谢 ! (胁芯褋泻谢懈褑邪褌械谢褜薪褘泄 蟹薪邪泻). 孝械锌械褉褜 屑芯卸薪芯 懈褋锌芯谢薪懈褌褜
- 胁薪械褕薪褞褞 泻芯屑邪薪写褍, 懈褋锌芯谢褜蟹褍褟 泻芯屑邪薪写薪褍褞 芯斜芯谢芯褔泻褍.
-
- 3. 袛谢褟 锌褉懈屑械褉邪 薪邪斜械褉懈褌械 ls 锌芯褋谢械 ! 懈 薪邪卸屑懈褌械 <ENTER>. 协褌邪 泻芯屑邪薪写邪 胁褘胁械写械褌
- 褋锌懈褋芯泻 褎邪泄谢芯胁 胁 褌械泻褍褖械屑 泻邪褌邪谢芯谐械, 褌芯褔薪芯 褌邪泻卸械, 泻邪泻 械褋谢懈 斜褘 袙褘 胁胁械谢懈 褝褌褍
- 泻芯屑邪薪写褍 胁 锌褉懈谐谢邪褕械薪懈懈 芯斜芯谢芯褔泻懈. 袠谢懈 锌芯锌褉芯斜褍泄褌械 :!dir , 械褋谢懈 锌褉械写褘写褍褖邪褟
- 泻芯屑邪薪写邪 薪械 褋褉邪斜芯褌邪谢邪.
-
----> 袟邪屑械褔邪薪懈械: 孝邪泻懈屑 褋锌芯褋芯斜芯屑 屑芯卸薪芯 胁褘锌芯谢薪懈褌褜 谢褞斜褍褞 胁薪械褕薪褞褞 泻芯屑邪薪写褍.
-
----> 袟邪屑械褔邪薪懈械: 袙褋械 泻芯屑邪薪写褘, 薪邪褔懈薪邪褞褖懈械褋褟 褋 : , 写芯谢卸薪褘 蟹邪胁械褉褕邪褌褜褋褟 薪邪卸邪褌懈械屑
- <ENTER>.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 5.2: 袣袗袣 袟袗袩袠小袗孝鞋 肖袗袡袥
-
-
-** 袛谢褟 褋芯褏褉邪薪械薪懈褟 懈蟹屑械薪械薪懈泄, 锌褉芯懈蟹胁械写械薪薪褘褏 胁 褎邪泄谢械, 薪邪斜械褉懈褌械 :w 袠袦携_肖袗袡袥袗. **
-
- 1. 袧邪斜械褉懈褌械 :!dir 懈谢懈 :!ls 写谢褟 锌芯谢褍褔械薪懈褟 褋锌懈褋泻邪 褎邪泄谢芯胁 胁 褌械泻褍褖械屑 泻邪褌邪谢芯谐械.
- 袣邪泻 袙邪屑 褍卸械 懈蟹胁械褋褌薪芯, 袙褘 写芯谢卸薪褘 薪邪卸邪褌褜 <ENTER> 锌芯褋谢械 胁胁芯写邪 褝褌懈褏 泻芯屑邪薪写.
-
- 2. 袩褉懈写褍屑邪泄褌械 薪邪蟹胁邪薪懈械 写谢褟 褎邪泄谢邪, 泻芯褌芯褉芯械 械褖械 薪械 褋褍褖械褋褌胁褍械褌, 薪邪锌褉懈屑械褉 TEST.
-
- 3. 孝械锌械褉褜 薪邪斜械褉懈褌械 :w TEST (谐写械 TEST --- 褝褌芯 懈屑褟 褎邪泄谢邪, 锌褉懈写褍屑邪薪薪芯械 袙邪屑懈.)
-
- 4. 协褌邪 泻芯屑邪薪写邪 褋芯褏褉邪薪懈褌 胁械褋褜 褎邪泄谢 (校褔械斜薪懈泻 锌芯 Vim) 锌芯写 懈屑械薪械屑 TEST. 效褌芯斜褘
- 褍写芯褋褌芯胁械褉懈褌褜褋褟 胁 褝褌芯屑, 褋薪芯胁邪 薪邪斜械褉懈褌械 :!dir 懈 锌褉芯褋屑芯褌褉懈褌械 泻邪褌邪谢芯谐.
-
----> 袟邪屑械褌褜褌械, 褔褌芯 械褋谢懈 袙褘 胁褘泄写械褌械 懈蟹 Vim 懈 蟹邪褌械屑 蟹邪锌褍褋褌懈褌械 械谐芯 褋薪芯胁邪 褋
- 褎邪泄谢芯屑 TEST, 褝褌芯褌 褎邪泄谢 斜褍写械褌 褌芯褔薪芯泄 泻芯锌懈械泄 褍褔械斜薪懈泻邪 胁 褌芯褌 屑芯屑械薪褌, 泻芯谐写邪
- 袙褘 械谐芯 褋芯褏褉邪薪懈谢懈.
-
- 5. 孝械锌械褉褜 褍写邪谢懈褌械 褝褌芯褌 褎邪泄谢, 薪邪斜褉邪胁 :!del TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 5.3: 袙蝎袘袨袪袨效袧袨袝 小袨啸袪袗袧袝袧袠袝
-
-
- ** 袛谢褟 褋芯褏褉邪薪械薪懈褟 褔邪褋褌懈 褎邪泄谢邪, 薪邪斜械褉懈褌械 :#,# w 袠袦携_肖袗袡袥袗 **
-
- 1. 袝褖械 褉邪蟹 薪邪斜械褉懈褌械 :!dir 懈谢懈 :!ls 写谢褟 锌芯谢褍褔械薪懈褟 褋锌懈褋泻邪 褎邪泄谢芯胁 胁 褌械泻褍褖械屑
- 泻邪褌邪谢芯谐械 懈 胁褘斜械褉懈褌械 锌芯写褏芯写褟褖械械 懈屑褟, 薪邪锌褉懈屑械褉 TEST.
-
- 2. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 泻 薪邪褔邪谢褍 褝褌芯泄 褋褌褉邪薪懈褑褘 懈 薪邪卸屑懈褌械 Ctrl-g 写谢褟 薪邪褏芯卸写械薪懈褟
- 薪芯屑械褉邪 褋褌褉芯泻懈to. 袟袗袩袨袦袧袠孝袝 协孝袨孝 袧袨袦袝袪!
-
- 3. 孝械锌械褉褜 锌械褉械屑械褋褌懈褌械褋褜 胁 泻芯薪械褑 褋褌褉邪薪懈褑褘 懈 胁薪芯胁褜 薪邪斜械褉懈褌械 Ctrl-g. 袟袗袩袨袦袧袠孝袝
- 袠 协孝袨孝 袧袨袦袝袪 孝袨袞袝!
-
- 4. 袛谢褟 褋芯褏褉邪薪械薪懈褟 孝袨袥鞋袣袨 效袗小孝袠 褎邪泄谢邪 薪邪斜械褉懈褌械 :#,# w TEST , 谐写械 #,# --- 褝褌芯
- 薪芯屑械褉邪, 泻芯褌芯褉褘械 袙褘 蟹邪锌芯屑薪懈谢懈 (薪邪褔邪谢芯, 泻芯薪械褑), 邪 TEST --- 懈屑褟 胁邪褕械谐芯 褎邪泄谢邪.
-
- 5. 袣邪泻 懈 锌褉械卸写械, 褍斜械写懈褌械褋褜 胁 薪邪谢懈褔懈懈 褝褌芯谐芯 褎邪泄谢邪 泻芯屑邪薪写芯泄 :!dir , 薪芯 袧袝
- 校袛袗袥携袡孝袝 械谐芯.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 5.4: 效孝袝袧袠袝 袠 袨袘歇袝袛袠袧袝袧袠袝 肖袗袡袥袨袙
-
- ** 袛谢褟 胁褋褌邪胁泻懈 褋芯写械褉卸懈屑芯谐芯 褎邪泄谢邪, 薪邪斜械褉懈褌械 :r FILENAME **
-
- 1. 袧邪斜械褉懈褌械 :!dir 写谢褟 褌芯谐芯, 褔褌芯斜褘 褍斜械写懈褌褜褋褟 胁 褌芯屑, 褔褌芯 褎邪泄谢 TEST 胁褋械 械褖械
- 褋褍褖械褋褌胁褍械褌.
-
- 2. 校褋褌邪薪芯胁懈褌械 泻褍褉褋芯褉 胁 胁械褉褏薪械泄 褔邪褋褌懈 褝褌芯泄 褋褌褉邪薪懈褑褘.
-
-袟邪屑械褔邪薪懈械: 袩芯褋谢械 胁褘锌芯谢薪械薪懈褟 褕邪谐邪 3 袙褘 褍胁懈写懈褌械 校褉芯泻 5.3. 袩芯褋谢械 褝褌芯谐芯
- 锌械褉械屑械褖邪泄褌械褋褜 袙袧袠袟, 褋薪芯胁邪 泻 褝褌芯屑褍 褍褉芯泻褍.
-
- 3. 孝械锌械褉褜 锌褉芯褔懈褌邪泄褌械 袙邪褕 褎邪泄谢 TEST, 懈褋锌芯谢褜蟹褍褟 泻芯屑邪薪写褍 :r TEST , 谐写械
- TEST --- 褝褌芯 懈屑褟 褎邪泄谢邪.
-
-袟邪屑械褔邪薪懈械: 袩褉芯褔懈褌邪薪薪褘泄 袙邪屑懈 褎邪泄谢 斜褍写械褌 胁褋褌邪胁谢械薪 胁 褌芯屑 屑械褋褌械, 谐写械 薪邪褏芯写懈褌褋褟
- 泻褍褉褋芯褉.
-
- 4. 效褌芯斜褘 褍斜械写懈褌褜褋褟 胁 褌芯屑, 褔褌芯 褎邪泄谢 锌褉芯褔懈褌邪薪, 锌械褉械屑械褋褌懈褌械褋褜 薪械屑薪芯谐芯 薪邪蟹邪写 锌芯
- 褌械泻褋褌褍 懈 蟹邪屑械褌褜褌械, 褔褌芯 褌械锌械褉褜 褋褍褖械褋褌胁褍褞褌 写胁械 泻芯锌懈懈 校褉芯泻邪 5.3, 懈褋褏芯写薪邪褟
- 懈 锌芯谢褍褔械薪薪邪褟 懈蟹 褎邪泄谢邪.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袪袝袟挟袦袝 校袪袨袣袗 5
-
-
- 1. :!泻芯屑邪薪写邪 懈褋锌芯谢薪褟械褌 胁薪械褕薪褞褞 泻芯屑邪薪写褍.
-
- 袧械泻芯褌芯褉褘械 锌芯谢械蟹薪褘械 锌褉懈屑械褉褘:
- :!dir --- 胁褘胁芯写懈褌 褋锌懈褋芯泻 褎邪泄谢芯胁 胁 泻邪褌邪谢芯谐械.
- :!del FILENAME --- 褍写邪谢褟械褌 褎邪泄谢 FILENAME.
-
- 2. :w FILENAME 蟹邪锌懈褋褘胁邪械褌 褌械泻褍褖懈泄 褉械写邪泻褌懈褉褍械屑褘泄 褎邪泄谢 薪邪 写懈褋泻
- 锌芯写 懈屑械薪械屑 FILENAME.
-
- 3. :#,#w FILENAME 褋芯褏褉邪薪褟械褌 褋褌褉芯泻懈 芯褌 # 写芯 # 胁 褎邪泄谢 FILENAME.
-
- 4. :r FILENAME 褋褔懈褌褘胁邪械褌 褋 写懈褋泻邪 褎邪泄谢 FILENAME 懈 锌芯屑械褖邪械褌 械谐芯 胁 褌械泻褍褖懈泄
- 褎邪泄谢 褋谢械写芯屑 蟹邪 锌芯蟹懈褑懈械泄 泻褍褉褋芯褉邪.
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 6.1: 袣袨袦袗袧袛袗 小袨袟袛袗袧袠携
-
-
- ** 袧邪斜械褉懈褌械 o 褔褌芯斜褘 褋芯蟹写邪褌褜 锌褍褋褌褍褞 褋褌褉芯泻褍 锌芯写 泻褍褉褋芯褉芯屑 懈 锌械褉械泄褌懈 胁 褉械卸懈屑
- 胁褋褌邪胁泻懈 (Insert mode) **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 袧邪斜械褉懈褌械 o (胁 薪懈卸薪械屑 褉械谐懈褋褌褉械) 写谢褟 褌芯谐芯, 褔褌芯斜褘 褋芯蟹写邪褌褜 锌褍褋褌褍褞 褋褌褉芯泻褍
- 袧袠袞袝 泻褍褉褋芯褉邪 懈 锌械褉械泄褌懈 胁 褉械卸懈屑 胁褋褌邪胁泻懈 (Insert mode).
-
- 3. 孝械锌械褉褜 褋泻芯锌懈褉褍泄褌械 锌芯屑械褔械薪薪褍褞 ---> 褋褌褉芯泻褍 懈 薪邪卸屑懈褌械 <ESC> 写谢褟 胁褘褏芯写邪 懈蟹
- 褉械卸懈屑邪 胁褋褌邪胁泻懈.
-
----> 袩芯褋谢械 薪邪卸邪褌懈褟 o 泻褍褉褋芯褉 锌械褉械泄写械褌 薪邪 薪芯胁褍褞 锌褍褋褌褍褞 褋褌褉芯泻褍 胁 褉械卸懈屑械 胁褋褌邪胁泻懈.
-
- 4. 袛谢褟 褋芯蟹写邪薪懈褟 褋褌褉芯泻懈 袙蝎楔袝 泻褍褉褋芯褉邪, 锌褉芯褋褌芯 薪邪斜械褉懈褌械 蟹邪谐谢邪胁薪褍褞 O, 胁屑械褋褌芯
- 褋褌褉芯褔薪芯泄 o. 袩芯锌褉芯斜褍泄褌械 锌褉芯写械谢邪褌褜 褝褌芯 褋 薪懈卸械褋谢械写褍褞褖械泄 褋褌褉芯泻芯泄.
-小芯蟹写邪泄褌械 薪芯胁褍褞 褋褌褉芯泻褍 薪邪写 褝褌芯泄, 薪邪卸邪胁 Shift-O, 锌芯屑械褋褌懈胁 泻褍褉褋芯褉 薪邪 褝褌褍 褋褌褉芯泻褍.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 6.2: 袣袨袦袗袧袛袗 袛袨袘袗袙袥袝袧袠携
-
- ** 袧邪斜械褉懈褌械 a , 褔褌芯斜褘 胁褋褌邪胁懈褌褜 褌械泻褋褌 袩袨小袥袝 泻褍褉褋芯褉邪. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 胁 泻芯薪械褑 锌械褉胁芯泄 褋褌褉芯泻懈, 锌芯屑械褔械薪薪芯泄 ---> ,
- 薪邪斜褉邪胁 $ 胁 芯斜褘褔薪芯屑 褉械卸懈屑械 (Normal mode).
-
- 2. 袧邪斜械褉懈褌械 a (胁 薪懈卸薪械屑 褉械谐懈褋褌褉械) 写谢褟 写芯斜邪胁谢械薪懈褟 褌械泻褋褌邪 袩袨小袥袝 褋懈屑胁芯谢邪,
- 薪邪褏芯写褟褖械谐芯褋褟 锌芯写 泻褍褉褋芯褉芯屑. (袟邪谐谢邪胁薪邪褟 A 锌芯蟹胁芯谢褟械褌 写芯斜邪胁懈褌褜 胁 泻芯薪械褑
- 褋褌褉芯泻懈.)
-
-袟邪屑械褔邪薪懈械: 协褌芯 锌芯蟹胁芯谢褟械褌 懈蟹斜械卸邪褌褜 薪邪卸邪褌懈褟 i , 锌芯褋谢械写薪械谐芯 褋懈屑胁芯谢邪, 褌械泻褋褌邪 写谢褟
- 胁褋褌邪胁泻懈, <ESC>, 泻褍褉褋芯褉-胁锌褉邪胁芯, 懈, 薪邪泻芯薪械褑, x , 锌褉芯褋褌芯 写谢褟 褌芯谐芯,
- 褔褌芯斜褘 写芯斜邪胁懈褌褜 褌械褋褌 胁 泻芯薪械褑 褋褌褉芯泻懈!
-
- 3. 孝械锌械褉褜 蟹邪胁械褉褕懈褌械 锌械褉胁褍褞 褋褌褉芯泻褍. 袟邪屑械褌褜褌械 褌邪泻卸械, 褔褌芯 写芯斜邪胁谢械薪懈械 褝褌芯 胁
- 褌芯褔薪芯褋褌懈 褌芯 卸械 褋邪屑芯械, 褔褌芯 懈 褉械卸懈屑 胁褋褌邪胁泻懈, 蟹邪 懈褋泻谢褞褔械薪懈械屑 锌芯蟹懈褑懈懈, 胁
- 泻芯褌芯褉褍褞 斜褍写械褌 胁褋褌邪胁谢械薪 褌械泻褋褌.
-
----> 协褌邪 褋褌褉芯褔泻邪 锌芯蟹胁芯谢懈褌 袙邪屑 锌芯锌褉邪泻褌懈泻芯胁邪褌褜褋褟
----> 协褌邪 褋褌褉芯褔泻邪 锌芯蟹胁芯谢懈褌 袙邪屑 锌芯锌褉邪泻褌懈泻芯胁邪褌褜褋褟 胁 写芯斜邪胁谢械薪懈懈 褌械泻褋褌邪 胁 泻芯薪械褑
- 褋褌褉芯泻懈.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 6.3: 袝些袝 袨袛袠袧 小袩袨小袨袘 袟袗袦袝袧蝎
-
-
- ** 袧邪斜械褉懈褌械 蟹邪谐谢邪胁薪褍褞 R 写谢褟 蟹邪屑械薪褘 斜芯谢械械, 褔械屑 芯写薪芯谐芯 褋懈屑胁芯谢邪. **
-
- 1. 袩械褉械屑械褋褌懈褌械 泻褍褉褋芯褉 胁薪懈蟹, 泻 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 --->.
-
- 2. 袪邪褋锌芯谢芯卸懈褌械 泻褍褉褋芯褉 胁 薪邪褔邪谢械 锌械褉胁芯谐芯 褋谢芯胁邪, 芯褌谢懈褔邪褞褖械谐芯褋褟 芯褌
- 褋芯芯褌胁械褌褋褌胁褍褞褖械谐芯 胁 褋谢械写褍褞褖械泄 褋褌褉芯泻械, 锌芯屑械褔械薪薪芯泄 ---> (褋谢芯胁芯 '锌芯褋谢械写薪械泄').
-
- 3. 孝械锌械褉褜 薪邪斜械褉懈褌械 R 懈 蟹邪屑械薪懈褌械 芯褋褌邪褌芯泻 褌械泻褋褌邪 胁 锌械褉胁芯泄 褋褌褉芯泻械, 薪邪斜褉邪胁
- 锌芯胁械褉褏 褋褌邪褉芯谐芯 褌械泻褋褌邪 褌邪泻, 褔褌芯斜褘 芯斜械 褋褌褉芯泻懈 褋褌邪谢懈 芯写懈薪邪泻芯胁褘屑懈.
-
----> 袩械褉胁褍褞 褋褌褉芯泻褍 屑芯卸薪芯 褋褉邪胁薪褟褌褜 褋 锌芯褋谢械写薪械泄, 懈褋锌芯谢褜蟹褍褟 泻谢邪胁懈褕懈.
----> 袩械褉胁褍褞 褋褌褉芯泻褍 屑芯卸薪芯 褋褉邪胁薪褟褌褜 褋 胁褌芯褉芯泄, 懈褋锌芯谢褜蟹褍褟 R 懈 薪邪斜褉邪胁 薪芯胁褘泄 褌械泻褋褌.
-
- 4. 袨斜褉邪褌懈褌械 胁薪懈屑邪薪懈械, 褔褌芯 锌褉懈 薪邪卸邪褌懈懈 <ESC> 写谢褟 蟹邪胁械褉褕械薪懈褟, 谢褞斜芯泄
- 薪械 懈蟹屑械薪械薪薪褘泄 褌械泻褋褌 褋芯褏褉邪薪懈褌褋褟.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 6.4: 校小孝袗袧袨袙袣袗 袩袗袪袗袦袝孝袪袨袙
-
-
-** 校褋褌邪薪芯胁懈屑 锌邪褉邪屑械褌褉褘 褌邪泻, 褔褌芯斜褘 懈谐薪芯褉懈褉芯胁邪褌褜 褉械谐懈褋褌褉 锌褉懈 锌芯懈褋泻械 懈谢懈 蟹邪屑械薪械 **
-
-
- 1. 袩芯懈褖懈褌械 褋谢芯胁芯 '懈谐薪芯褉懈褉芯胁邪褌褜', 薪邪斜褉邪胁:
- /懈谐薪芯褉懈褉芯胁邪褌褜
- 袩芯胁褌芯褉懈褌械 锌芯懈褋泻 薪械褋泻芯谢褜泻芯 褉邪蟹, 薪邪卸懈屑邪褟 泻谢邪胁懈褕褍 n
-
- 2. 袙泻谢褞褔懈褌械 锌邪褉邪屑械褌褉 'ic' (袠谐薪芯褉懈褉芯胁邪褌褜 褉械谐懈褋褌褉), 薪邪斜褉邪胁:
- :set ic
-
- 3. 孝械锌械褉褜 褋薪芯胁邪 褋写械谢邪泄褌械 锌芯懈褋泻 褋谢芯胁邪 '懈谐薪芯褉懈褉芯胁邪褌褜', 薪邪卸邪胁: n
- 袩芯胁褌芯褉懈褌械 锌芯懈褋泻 薪械褋泻芯谢褜泻芯 褉邪蟹, 薪邪卸懈屑邪褟 泻谢邪胁懈褕褍 n
-
- 4. 袙泻谢褞褔懈褌械 锌邪褉邪屑械褌褉褘 'hlsearch' 懈 'incsearch':
- :set hls is
-
- 5. 孝械锌械褉褜 芯锌褟褌褜 胁胁械写懈褌械 泻芯屑邪薪写褍 锌芯懈褋泻邪 懈 锌芯褋屑芯褌褉懈褌械, 褔褌芯 锌芯谢褍褔懈褌褋褟:
- /懈谐薪芯褉懈褉芯胁邪褌褜
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袪袝袟挟袦袝 校袪袨袣袗 6
-
-
- 1. 袧邪卸邪褌懈械 o 褋芯蟹写邪械褌 褋褌褉芯泻褍 袧袠袞袝 泻褍褉褋芯褉邪 懈 锌械褉械屑械褖邪械褌 泻褍褉褋芯褉 胁 薪械械 胁 褉械卸懈屑械
- 胁褋褌邪胁泻懈.
- 袧邪卸邪褌懈械 蟹邪谐谢邪胁薪芯泄 O 褋芯蟹写邪械褌 褋褌褉芯泻褍 袙蝎楔袝 褋褌褉芯泻懈, 胁 泻芯褌芯褉芯泄 薪邪褏芯写懈褌褋褟
- 泻褍褉褋芯褉.
-
- 2. 袧邪斜械褉懈褌械 a 写谢褟 胁褋褌邪胁泻懈 褌械泻褋褌邪 袩袨小袥袝 褋懈屑胁芯谢邪, 薪邪 泻芯褌芯褉芯屑 薪邪褏芯写懈褌褋褟 泻褍褉褋芯褉.
- 袧邪卸邪褌懈械 蟹邪谐谢邪胁薪芯泄 A 邪胁褌芯屑邪褌懈褔械褋泻懈 锌械褉械屑械褖邪械褌 袙邪褋 写谢褟 写芯斜邪胁谢械薪懈褟 褌械泻褋褌邪
- 胁 泻芯薪械褑 褋褌褉芯泻懈.
-
- 3. 袧邪卸邪褌懈械 蟹邪谐谢邪胁薪芯泄 R 锌械褉械胁芯写懈褌 袙邪褋 胁 褉械卸懈屑 蟹邪屑械薪褘 写芯 褌械褏 锌芯褉, 锌芯泻邪 薪械
- 斜褍写械褌 薪邪卸邪褌邪 泻谢邪胁懈褕邪 <ESC> 写谢褟 蟹邪胁械褉褕械薪懈褟.
-
- 4. 袧邪斜褉邪胁 ":set xxx" 胁褘 褋屑芯卸械褌械 胁泻谢褞褔懈褌褜 锌邪褉邪屑械褌褉 "xxx"
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 7: 袣袨袦袗袧袛蝎 袩袨袥校效袝袧袠携 袙小孝袪袨袝袧袧袨袡 小袩袪袗袙袣袠
-
- ** 袠褋锌芯谢褜蟹褍泄褌械 胁褋褌褉芯械薪薪褍褞 褋锌褉邪胁芯褔薪褍褞 褋懈褋褌械屑褍 **
-
- Vim 芯斜谢邪写邪械褌 屑芯褖薪芯泄 胁褋褌褉芯械薪薪芯泄 褋锌褉邪胁芯褔薪芯泄 褋懈褋褌械屑芯泄. 袛谢褟 薪邪褔邪谢邪 锌芯锌褉芯斜褍泄褌械
- 芯写懈薪 懈蟹 褌褉械褏 胁邪褉懈邪薪褌芯胁:
- - 薪邪卸屑懈褌械 泻谢邪胁懈褕褍 <HELP> (械褋谢懈 褌邪泻芯胁邪褟 懈屑械械褌褋褟 薪邪 泻谢邪胁懈邪褌褍褉械)
- - 薪邪卸屑懈褌械 泻谢邪胁懈褕褍 <F1> (械褋谢懈 褌邪泻芯胁邪褟 懈屑械械褌褋褟 薪邪 泻谢邪胁懈邪褌褍褉械)
- - 薪邪斜械褉懈褌械 :help <ENTER>
-
- 袧邪斜械褉懈褌械 :q <ENTER> 褔褌芯斜褘 蟹邪泻褉褘褌褜 芯泻薪芯 褋锌褉邪胁泻懈.
-
- 袙褘 屑芯卸械褌械 薪邪泄褌懈 褋锌褉邪胁泻褍 写谢褟 谢褞斜芯谐芯 锌芯薪褟褌懈褟 懈谢懈 泻芯屑邪薪写褘, 锌褉芯褋褌芯 蟹邪写邪胁
- 褋芯芯褌胁械褌褋褌胁褍褞褖懈泄 邪褉谐褍屑械薪褌 泻芯屑邪薪写械 ":help". 袩芯锌褉芯斜褍泄褌械 褋谢械写褍褞褖械械 (薪械 蟹邪斜褍写褜褌械
- 薪邪卸邪褌褜 <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 校褉芯泻 8: 小袨袟袛袗袧袠袝 小孝袗袪孝袨袙袨袚袨 小袣袪袠袩孝袗
-
- ** 袙泻谢褞褔懈屑 胁芯蟹屑芯卸薪芯褋褌懈 Vim **
-
- Vim 懈屑械械褌 薪邪屑薪芯谐芯 斜芯谢褜褕械 胁芯蟹屑芯卸薪芯褋褌械泄, 褔械屑 Vi, 芯写薪邪泻芯 斜芯谢褜褕懈薪褋褌胁邪芯 懈蟹 薪懈褏
- 胁褘泻谢褞褔械薪褘 锌芯 褍屑芯谢褔邪薪懈褞. 袛谢褟 褌芯谐芯, 褔褌芯斜褘 薪邪褔邪褌褜 懈褋锌芯谢褜蟹芯胁邪褌褜 薪芯胁褘械
- 胁芯蟹屑芯卸薪芯褋褌懈 袙邪屑 褋谢械写褍械褌 褋芯蟹写邪褌褜 褎邪泄谢 "vimrc".
-
- 1. 袨褌褉械写邪泻褌懈褉褍泄褌械 褎邪泄谢 "vimrc", 械谐芯 褉邪褋锌芯谢芯卸械薪懈械 蟹邪胁懈褋懈褌 芯褌 懈褋锌芯谢褜蟹褍械屑芯泄
- 褋懈褋褌械屑褘:
-
- :edit ~/.vimrc 写谢褟 Unix
- :edit $VIM/_vimrc 写谢褟 MS-Windows
-
- 2. 孝械锌械褉褜 锌褉芯褔懈褌邪泄褌械 锌褉懈屑械褉 褎邪泄谢邪 "vimrc":
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 袟邪锌懈褕懈褌械 褎邪泄谢:
-
- :write
-
- 孝械锌械褉褜 锌褉懈 褋谢械写褍褞褖械屑 蟹邪锌褍褋泻械 Vim 斜褍写械褌 胁泻谢褞褔械薪邪 锌芯写褋胁械褌泻邪 褋懈薪褌邪泻褋懈褋邪. 袙褋械
- 薪邪褋褌褉芯泄泻懈, 锌褉械写锌芯褔懈褌邪械屑褘械 袙邪屑懈, 屑芯谐褍褌 斜褘褌褜 写芯斜邪胁谢械薪褘 胁 褎邪泄谢 "vimrc".
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 袧邪 褝褌芯屑 蟹邪胁械褉褕邪械褌褋褟 校褔械斜薪懈泻 Vim. 袨薪 斜褘谢 锌褉械写薪邪蟹薪邪褔械薪 写谢褟 褌芯谐芯, 褔褌芯斜褘 写邪褌褜
- 芯斜褖械械 锌褉械写褋褌邪胁谢械薪懈械 芯 褉械写邪泻褌芯褉械 Vim, 写芯褋褌邪褌芯褔薪芯械 写谢褟 褌芯谐芯, 褔褌芯斜褘 褋 谢械谐泻芯褋褌褜褞
- 懈褋锌芯谢褜蟹芯胁邪褌褜 械谐芯. 校褔械斜薪懈泻 写邪谢械泻 芯褌 锌芯谢薪芯褌褘, 锌芯褋泻芯谢褜泻褍 Vim 懈屑械械褌 芯褔械薪褜 屑薪芯谐芯
- 泻芯屑邪薪写. 袩褉芯褔懈褌邪泄褌械 褌械锌械褉褜 褉褍泻芯胁芯写褋褌胁芯 锌芯谢褜蟹芯胁邪褌械谢褟: ":help user-manual".
-
- 袛谢褟 写邪谢褜薪械泄褕械谐芯 褔褌械薪懈褟 褉械泻芯屑械薪写褍械褌褋褟 泻薪懈谐邪:
- Vim - Vi Improved - 袗胁褌芯褉: Steve Oualline
- 袠蟹写邪褌械谢褜: New Riders
- 协褌邪 泻薪懈谐邪 锌芯谢薪芯褋褌褜褞 锌芯褋胁褟褖械薪邪 Vim. 袨褋芯斜械薪薪芯 锌芯谢械蟹薪邪 薪芯胁懈褔泻邪屑. 小芯写械褉卸懈褌
- 屑薪芯卸械褋褌胁芯 锌褉懈屑械褉芯胁 懈 懈谢谢褞褋褌褉邪褑懈泄.
- 袙蟹谐谢褟薪懈褌械 薪邪 See http://iccf-holland.org/click5.html
-
- 小谢械写褍褞褖邪褟 泻薪懈谐邪 斜芯谢械械 锌芯褔褌械薪薪芯谐芯 胁芯蟹褉邪褋褌邪 懈 锌芯褋胁褟褖械薪邪 斜芯谢褜褕械 Vi, 褔械屑 Vim,
- 芯写薪邪泻芯 褌邪泻卸械 褉械泻芯屑械薪写褍械褌褋褟:
- Learning the Vi Editor - 袗胁褌芯褉: Linda Lamb
- 袠蟹写邪褌械谢褜: O'Reilly & Associates Inc.
- 协褌芯 褏芯褉芯褕邪褟 泻薪懈谐邪 写谢褟 褌芯谐芯, 褔褌芯斜褘 褍蟹薪邪褌褜 胁褋械, 褔褌芯 褌芯谢褜泻芯 屑芯卸薪芯 锌褉芯写械谢褘胁邪褌褜 褋
- Vi. 楔械褋褌芯械 懈蟹写邪薪懈械 褌邪泻卸械 胁泻谢褞褔邪械褌 懈薪褎芯褉屑邪褑懈褞 芯 Vim.
-
- 协褌芯褌 褍褔械斜薪懈泻 斜褘谢 薪邪锌懈褋邪薪 Michael C. Pierce 懈 Robert K. Ware, Colorado School
- of Mines 褋 懈褋锌芯谢褜蟹芯胁邪薪懈械屑 懈写械泄, 锌褉械写谢芯卸械薪薪褘褏 Charles Smith, Colorado State
- University. E-mail: bware@mines.colorado.edu.
-
- 袛芯褉邪斜芯褌邪薪芯 写谢褟 Vim Bram Moolenaar.
-
- 袩械褉械胁芯写: 袗薪写褉械泄 袣懈褋械谢械胁 <a_kissel@eudoramail.com>, 2002.
- Translator: Andrey Kiselev <a_kissel@eudoramail.com>, 2002.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.sk b/runtime/tutor/tutor.sk
deleted file mode 100644
index 2291aad61..000000000
--- a/runtime/tutor/tutor.sk
+++ /dev/null
@@ -1,1008 +0,0 @@
-===============================================================================
-= V i t a j t e v o V I M T u t o r i a l i - Verzia 1.7 =
-===============================================================================
-
- Vim je ve祄i v齥onn editor, ktor m pr韑i ve礱 pr韐azov na to aby
- mohli byt v筫tky pop韘an vo v齯ke akou je t醫o. T醫o v齯ka
- popisuje dostato鑞 mno緎tvo pr韐azov nato aby bolo mo緉 pou卷va
- Vim ako viacelov editor.
-
- Pribli緉 鑑s potrebn na prebratie tejto v齯ky je 25-30 min鷗,
- z醰is na tom, ko祂o je str醰en閔o 鑑su s preskavan韒.
-
- UPOZORNENIE:
- Pr韐azy v lekci醕h modifikuj text. Vytvor k髉iu tohto s鷅oru aby
- sa mohlo precvi鑟va na 騩m (pri 箃arte "vimtutor" je toto k髉ia).
-
- Je d鬺e緄t zapam鋞a si, 緀 t醫o v齯ka je vytvoren pre v齯ku
- pou卷van韒. To znamen, 緀 je potrebn si pr韐azy vyska, aby bolo
- u鑕nie spr醰ne. Ak len 鑙tas text, pr韐azy zabudne!
-
- Presved sa, 緀 Shift-Lock NIEJE stla鑕n a stla鑤 kl醰esu
- j nieko祂o kr醫, aby sa kurzor posunul nato祂o, 緀 lekcia 1.1
- celkom zapln obrazovku.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.1: POHYB KURZOROM
-
-
- ** Pre pohyb kurzorum stla kl醰esy h,j,k,l ako je zn醶ornen. **
- ^
- k Funkcia: Kl醰esa h je na礱vo a vykon pohyb do礱va.
- < h l > Kl醰esa l je napravo a vykon pohyb doprava.
- j Kl醰esa j vyzer ako 鬼pka dole
- v
- 1. Pohybuj kurzorom po obrazovke, k齧 si na to nezvykne.
-
- 2. Dr stla鑕n kl醰esu pre pohyb dole (j), k齧 sa jej funkcia nezopakuje.
----> Teraz sa u vie pohybova na nasleduj鷆u lekciu.
-
- 3. Pou緄t韒 kl醰esy pre pohyb dole prejdi na Lekciu 1.2.
-
-Pozn醡ka: Ak si niesi ist t齧 鑟 si nap韘al, stla <ESC>
- na prechod do norm醠neho m骴u.
-
-Pozn醡ka: Kurzorov kl醰esy s tie funk鑞. Ale pou卷van韒 hjkl sa bude
- schopn pohybova r齝hlej筰e, ke si zvykne ich pou卷va. Naozaj!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 1.2: ZATV罵ANIE VIMU
-
-
- !! POZN罬KA: Pred vykonan韒 t齝hto krokov si pre桧taj cel t鷗o lekciu !!
-
- 1. Stla kl醰esu <ESC> (aby si sa u鑙te nach醖zal v norm醠nom m骴e)
-
- 2. Nap砉: :q! <ENTER>.
- T齧 ukon桧 pr醕u s editorom BEZ ulo緀nia zmien, ktor si vykonal.
-
- 3. Ke sa dostane na pr韐azov riadok, nap砉 pr韐az, ktor齧 sa dostane
- spe do tejto v齯ky. To m艟e by: vimtutor <ENTER>
-
- 4. Ak si si tieto kroky spo礱hlivo zapam鋞al, vykonaj kroky 1 a 3, pre
- ukon鑕nie a znovu spustenie editora.
-
-POZN罬KA: :q! <ENTER> neulo卷 zmeny, ktor si vykonal. O nieko祂o lekci
- sa nau桧 ako ulo緄 zmeny do s鷅oru
-
- 5. presu kurzor dole na lekciu 1.3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.3: EDIT罜IA TEXTU - MAZANIE
-
-
-** Stla鑕nie kl醰esy x v norm醠nom m骴e zma緀 znak na mieste kurzora. **
-
- 1. Presu kurzor ni竟ie na riadok ozna鑕n zna鑛ou --->.
-
- 2. Aby si mohol odstr醤i chyby, pohybuj kurzorom k齧 neprejde na znak,
- ktor chce zmaza.
-
- 3. Stla kl醰esu x aby sa zmazal nechcen znak.
-
- 4. Zopakuj kroky 2 a 4 a k齧 veta nieje spr醰na.
-
----> Kraava skoo鑙lla ccezz mesiiac.
-
- 5. Ak je veta spr醰na, prejdi na lekciu 1.4.
-
-POZN罬KA: Neskaj si zapam鋞a obsah tejto v齯ky, ale sa u pou卷van韒.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.4: EDIT罜IA TEXTU - VKLADANIE
-
-
- ** Stla鑕nie kl醰esy i umo掘uje vkladanie textu. **
-
- 1. Presu kurzor ni竟ie na prv riadok za zna鑛u --->.
-
- 2. Pre upravenie prv閔o riadku do rovnak閔o tvaru ako je druh riadok,
- presu kurzor na prv znak za misto, kde m by text vlo緀n.
-
- 3. Stla kl醰esu i a nap砉 potrebn text.
-
- 4. Po opraven ka綿ej chyby, stla <ESC> pre n醰rat do norm醠neho m骴u.
- Zopakuj kroky 2 a 4 k齧 nieje veta spr醰na.
-
----> Tu je text ch齜aj鷆i tejto.
----> Tu je nejak text ch齜aj鷆i od tejto 鑙ary.
-
- 5. Ke sa dostato鑞e nau桧 vklada text, prejdi na nasleduj鷆e zhrnutie.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.5: EDIT罜IA TEXTU - PRID罺ANIE
-
-
- ** Stla鑕nie kl醰esy A umo掘uje prid醰a text. **
-
- 1. Presu kurozr ni竟ie na prv riadok za zna鑛ou --->.
- Nez醠e卷 na tom, na ktorom znaku sa kurzor v tom riadku nach醖za.
-
- 2. Stla kl醰esu A a nap砉 potrebn text.
-
- 3. Po pridan textu stla kl醰esu <ESC> pre n醰rat do Norm醠neho m骴u.
-
- 4. Presu kurozr na druh riadok ozna鑕n ---> a zopakuj
- kroky 2 a 3 k齧 nieje veta spr醰na.
-
----> Tu je nejak text ch齜aj鷆i o
- Tu je nejak text ch齜aj鷆i od tia祎o.
----> Tu tie ch齜a nej
- Tu tie ch齜a nejak text.
-
- 5. Ke sa dostato鑞e nau桧 prid醰a text, prejdi na lekciu 1.6.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.6: EDIT罜IA S贐ORU
-
-
- ** Nap韘an韒 :wq sa s鷅or ulo卷 a zavrie **
-
-!! POZN罬KA: Pred vykonan韒 t齝hto krokov si pre桧taj cel lekciu!!
-
-1. Opusti t鷗o v齯ku, ako si to urobil v lekcii 1.2: :q!
-
-2. Do pr韐azov閔o riadku nap砉 pr韐az: vim tutor <ENTER>
- 'vim' je pr韐az, ktor spust editor Vim, 'tutor' je meno s鷅oru,
- ktor chce editova. Pou緄 tak s鷅or, ktor m艟e meni.
-
-3. Vlo a zma text tak, ako si sa nau鑙l v predo筶齝h lekciach.
-
-4. Ulo s鷅or so zmenami a opusti Vim pr韐azom: :wq <ENTER>
-
-5. Re箃artuj vimtutor a presu sa dole na nasleduj鷆e zhrnutie.
-
-6. Urob tak po pre桧tan predo筶齝h krokov a porozumeniu im.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZHRNUTIE LEKCIE 1
-
-
- 1. Kurzor sa pohybuje pou緄t韒 kl醰es so 鬼pkami alebo kl醰esmi hjkl.
- h (do lava) j (dole) k (hore) l (doprava)
-
- 2. Pre spustenie Vimu (z pr韐azov閔o riadku) nap砉: vim FILENAME <ENTER>
-
- 3. Na ukon鑕nie Vimu nap砉: <ESC> :q! <ENTER> pre zru筫nie v筫tk齝h zmien
- alebo nap砉: <ESC> :wq <ENTER> pre ulo緀nie zmien.
-
- 4. Na zmazanie znaku na mieste kurzora nap砉: x
-
- 5. Pre vlo緀nie textu na mieste kurzora v norm醠nom m骴e nap砉:
- i nap砉 vkladan text <ESC> vkladanie pred kurzor
- A nap砉 prid醰an text <EXC> vkladanie za riadok
-
-POZN罬KA: Stla鑕nie <ESC> 籥 premiestn do norm醠neho m骴u alebo zru鬼
- nejak nechcen a 鑙asto鑞e dokon鑕n pr韐az.
-
-Teraz pokra鑥j lekciou 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.1: Mazacie pr韐azy
-
-
- ** Nap韘anie pr韐azu dw zma緀 znaky do konca slova. **
-
-1. Stla <ESC> aby si bol bezpe鑞e v norm醠nom m骴e.
-
-2. Presu kurzor ni竟ie na riadok ozna鑕n zna鑛ou --->.
-
-3. Presu kurzor na za鑙atok slova, ktor je potrebn zmaza.
-
-4. Nap砉 dw aby slovo zmizlo.
-
-POZN罬KA: P韘meno d sa zobraz na poslednom riadku obrazovky ke ho
- nap砉e. Vim na teba po鑛, aby si mohol nap韘a
- p韘meno w. Ak vid砉 nie鑟 in ako d , tak si nap韘al
- nespr醰ny znak; stla <ESC> a za鑞i znova.
-
----> Tu je nieko祂o slov z醔ava, ktor nie patria list do tejto vety.
-
-5. Zopakuj kroky 3 a 4 k齧 veta nieje spr醰na a prejdi na lekciu 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.2: VIAC MAZAC虲H PR蚄AZOV
-
-
- ** Nap韘anie pr韐azu d$ zma緀 znaky do konca riadku **
-
-1. Stla <ESC> aby si bol bezpe鑞e v norm醠nom m骴e.
-
-2. Presu kurzor ni竟ie na riadok ozna鑕n zna鑛ou --->.
-
-3. Presu kurzor na koniec spr醰nej vety (ZA prv bodku).
-
-4. Nap砉 d$ aby sa zmazali znaky do konca riadku.
-
----> Niekto nap韘al koniec tohto riadku dvakr醫. koniec tohot riadku dvakr醫.
-
-
-5. Prejdi na lekciu 2.3 pre pochopenie toho 鑟 sa stalo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.3: OPER罷ORY A POHYBY
-
- Ve礱 pr韐azov, ktor menia text s odvoden od oper醫orov a pohybov.
- Form醫 pre pr韐az mazania kl醰esou d je nasledovn:
-
- d pohyb
-
- kde:
- d - je mazac oper醫or
- pohyb - je to 鑟 oper醫or vykon醰a (vyp韘an ni竟ie)
-
- Kr醫ky list pohybov:
- w - do za鑙atku 颽l筰eho slova, okrem jeho prv閔o p韘mena.
- e - do konca teraj筰eho slova, vr醫ane posledn閔o znaku.
- $ - do konca riadku, vr醫ane posledn閔o znaku
-
- Tak緀 nap韘an韒 de sa zma緀 v筫tko od kurzora do konca slova.
-
-POZN罬KA: Stla鑕n韒 iba pohybu v norm醠nom m骴e bez oper醫ora
- sa presunie kurzor tak ako je to 筽ecivikovan.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.4: Pou緄tie viacn醩obn閔o pohybu
-
-
- ** Nap韘an韒 桧sla pred pohyb ho zopakuje zadn po鑕t kr醫 **
-
- 1. Presu kurozr ni竟ie na za鑙atok riadku ozna鑕n閔o --->.
-
- 2. Nap砉 2w a kurozr sa presunie o dve slov vpred.
-
- 3. Nap砉 3e a kurozr sa presunie vpred na koniec tretieho slova.
-
- 4. Nap砉 0 (nula) a kurozr sa presunie na za鑙atok riadku.
-
- 5. Zopakuj kroky 2 a 3 s r魖nymi 桧slami.
-
----> Toto je riadok so slovami po kotr齝h sa m艟ete pohybova.
-
- 6. Prejdi na lekciu 2.5.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.5: POU甀TIE VIACN罶OBN蒆O MAZANIA PRE HROMADN MAZANIE
-
-
- ** Nap韘anie 桧sla spolu s oper醫orom ho zopakuje zadan po鑕t kr醫 **
-
- V kombin醕ii oper醫orov mazania a pohybu spom韓an閔o vy构ie vlo po鑕t
- pred pohyb pre docielenie hromadn閔o mazania:
- d 桧slo pohyb
-
- 1. Presu kurzor na prv slovo p韘an VE軲I P蚐MENAMI
- v riadku ozna鑕nom --->.
-
- 2. Nap砉 2dw a zma緀 dve slov p韘an VE軲I P蚐MENAMI
-
- 3. Zopakuj kroky 1 a 2 s pou緄t韒 r魖neho 桧sla tak aby si zmazal slov
- p韘an ve祂齧i p韘menami jedn齧 pr韐azom.
-
----> Tento ABC DE riadok FGHI JK LMN OP so slovamI je Q RS TUV vycisteny.
-
-POZN罬KA: 软slo medzi oper醫orom d a pohybom funguje podobne ako pri
- pou緄t s pohybom bez oper醫ora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.6: OPER罜IE S RIADKAMI
-
-
- ** Nap韘anie pr韐azu dd zma緀 cel riadok. **
-
-Vzh礱dom na frekvenciu mazania cel閔o riadku, sa autori Vimu rozhodli,
-緀 bude jednoduch筰e maza cel riadok nap韘an韒 dvoch p韘men d.
-
-1. Presu kurzor na druh riadok v texte na spodu.
-2. Nap砉 dd aby si zmazal riadok.
-3. Prejdi na 箃vrt riadok.
-4. Nap砉 2dd aby si zmazal dva riadky.
-
- 1) Ru緀 s 鑕rven,
- 2) Blato je z醔avn,
- 3) Fialky s modr,
- 4) M醡 auto,
- 5) Hodinky ukazuj 鑑s,
- 6) Cukor je sladk,
- 7) A to si ty.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.7: PR蚄AZ UNDO
-
-
-** Stla u pre vr醫enie posledn閔o pr韐azu, U pre 鷓ravu cel閔o riadku. **
-
-1. Presu kurzor ni竟ie na riadok ozna鑕n zna鑛ou ---> a premiestni ho na
- prv chybu.
-2. Nap砉 x pre zmazanie prv閔o nechcen閔o riadku.
-3. Teraz nap砉 u 桧m vr醫砉 sp浠 posledne vykonan pr韐az.
-4. Teraz oprav v筫tky chyby na riadku pou緄t韒 pr韐azu x .
-5. Teraz nap砉 ve祂 U 桧m vr醫砉 riadok do p魐odn閔o stavu.
-6. Teraz nap砉 u nieko祂o kr醫, 桧m vr醫砉 sp浠 pr韐az U.
-7. Teraz nap砉 CTRL-R (dr kl醰esu CTRL stla鑕n k齧 stl徼a R) nieko祂o
- kr醫, 桧m vr醫砉 sp浠 predt齧 vr醫en pr韐azy (undo z undo).
-
----> Opprav chybby nna toomto riadku a zmee ich pommocou undo.
-
- 8. Tieto pr韐azy s 鑑sto pou卷van. Teraz prejdi na zhrnutie lekcie 2.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 2 ZHRNUTIE
-
-
- 1. Pre zmazanie znakov od kurzora do konca slova nap砉: dw
-
- 2. Pre zmazanie znakov od kurzora do konca riadku nap砉: d$
-
- 3. Pre zmazanie cel閔o riadku nap砉: dd
-
- 4. Pre zopakovanie pohybu, nap砉 pred neho 桧slo: 2w
-
- 5. Form醫 pre p韐az:
-
- oper醫or [桧slo] pohyb
- kde:
- oper醫or - 鑟 treba robi, napr韐lad d pre zmazanie
- [桧slo] - je volite祅 po鑕t pre opakovanie pohybu
- pohyb - pohyb po texte vzh礱dom na oper醫or, napr韐lad w (slovo),
- $ (do konca riadku), at.
-
- 6. Pre pohyb na za鑙atok riadku pou緄 nulu: 0
-
- 7. Pre vr醫enie sp浠 predo筶ej oper醕ie nap砉: u (mal u)
- Pre vr醫enie v筫tk齝h 鷓rav na riadku nap砉: U (ve祂 U)
- Pre vr醫enie vr醫en齝h 鷓rav nap砉: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.1: PR蚄AZ VLO甀
-
-
- ** Nap韘anie pr韐azu p vlo卷 psledn v齧az za kurzor. **
-
- 1. Presu kurzor ni竟ie na prv riadok textu.
-
- 2. Nap砉 dd 桧m zma緀 riadok a ulo卷 ho do buffera editora Vim.
-
- 3. Presu kurzor vy构ie tam, kam zmazan riadok patr.
-
- 4. Ak nap砉e v norm醠nom m骴e p zmazan riadk sa vlo卷.
-
- 5. Zopakuj kroky 2 a 4, k齧 riadky nies v spr醰nom porad.
-
----> d) Tie sa dok峋e vzdel醰a?
----> b) Fialky s modr,
----> c) Inteligencia sa vzdel醰a,
----> a) Ru緀 s 鑕rven,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.2: PR蚄AZ NAHRADENIA
-
-
- ** Nap韘an韒 rx sa nahrad znak na mieste kurzora znakom x . **
-
- 1. Presu kurzor ni竟ie na prv riadok textu ozna鑕n閔o zna鑛ou --->.
-
- 2. Presu kurzor na za鑙atok prvej chyby.
-
- 3. nap砉 r a potom znak, ktor tam m by.
-
- 4. Zopakuj kroky 2 a 3, k齧 prv riadok nieje zhodn s druh齧.
-
----> Ka bol tento riasok p韆an, niekro stla筰l nespr醔ne kl醰esy!
----> Ke bol tento riadok p韘an, niekto stla鑙l nespr醰ne kl醰esy!
-
- 5. Teraz prejdi na lekciu 3.2.
-
-POZN罬KA: Pam鋞aj si, 緀 nau鑙 sa m艟e len pou卷vanim, nie pam鋞an韒.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.3. PR蚄AZ 赑RAVY
-
-
- ** Ak chce zmeni 鑑s slova do konca slova, nap砉 ce . **
-
- 1. Presu kurzor ni竟ie na prv riadok ozna鑕n zna鑛ou --->.
-
- 2. Umiestni kurzor na p韘meno o v slove rosfpl.
-
- 3. Nap砉 ce a oprav slovo (v tomto pr韕ade nap砉 'iadok'.)
-
- 4. Stla <ESC> a prejdi na 颽l鬼 znak, ktor treba zmeni.
-
- 5. Zopakuj kroky 3 a 4, k齧 prv veta nieje rovnak ako druh.
-
----> Tento rosfpl m nieko祂o skic, ktor je pirewvb zmeni piy籾栳n pr韐azu.
----> Tento riadok m nieko祂o slov, ktor je potrebn zmeni pou緄t韒 pr韐azu.
-
-Pozn醡ka, 緀 ce zma緀 slovo a nastav vkladac m骴.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.4: VIAC ZMIEN POU甀T蚆 c
-
-
- ** Pr韐az pre 鷓ravy sa pou卷va s rovnak齧i pohybmi ako pre mazanie **
-
- 1. Pr韐az pre 鷓ravy pracuje rovnako ako pre mazanie. Form醫 je:
-
- c [桧slo] pohyb
-
- 2. Pohyby s rovnak, ako napr韐lad w (slovo) a $ (koniec riadku).
-
- 3. Presu kurzor ni竟ie na prv riadok ozna鑕n zna鑛ou --->.
-
- 4. Presu kurzor na prv chybu.
-
- 5. nap砉 c$ aby si mohol upravi zvy筼k riadku pod礱 druh閔o
- a stla <ESC>.
-
----> Koniec tohto riadku potrebuje pomoc, aby bol ako druhy.
----> Koniec tohto riadku potrebuje opravi pou緄t韒 pr韐azu c$ .
-
-POZN罬KA: M艟e pou緄 kl醰esu backspace na 鷓ravu zmien po鑑s p韘ania.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 3 ZHRNUTIE
-
-
- 1. Na vlo緀nie textu, ktor u bol zmazan, nap砉 p . To vlo卷 zmazan
- text ZA kurzor (ak bol riadok zmazan prejde na riadok pod kurzorom).
-
- 2. Pre naradenie znaku na mieste kurzora, nap砉 r a potom znak, ktor
- nahrad p魐odn znak.
-
- 3. Pr韐az na upravenie umo掘uje zmeni od kurzora a po miesto, ktor
- ur鑥je pohyb. napr. Nap砉 ce 桧m zmn砉 text od poz韈ie
- kurzora do konca slova, c$ zmen text do konca riadku.
-
- 4. Form醫 pre nahradenie je:
-
- c [桧slo] pohyb
-
-
-Teraz prejdi na nalseduj鷆u lekciu.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.1: POZ虲IA A STATUS S贐ORU
-
-
- ** Stla CTRL-g pre zobrazenie svojej poz韈ie v s鷅ore a statusu s鷅oru.
- Nap砉 G pre presun na riadok v s鷅ore. **
-
- Pozn醡ka: Pre桧taj si cel t鷗o lekciu sk魊 ako za鑞e vykon醰a kroky!!
-
- 1. Dr stla鑕n kl醰esu Ctrl a stla g . Toto naz齰ame CTRL-G.
- Na spodu obrazovky sa zobraz spr醰a s n醶vom s鷅oru a poz韈iou
- v s鷅ore. Zapam鋞ajsi si 桧slo riadku pre pou緄tie v kroku 3.
-
- 2. Stla G 桧m sa dostane na spodok s鷅oru.
- Nap砉 gg 桧m sa dostane na za鑙atok s鷅oru.
-
- 3. Nap砉 桧slo riadku na ktorom si sa nach醖zal a stla G. To 籥
- vr醫i na riadok, na ktorom si prv kr醫 stla鑙l CTRL-G.
-
- 4. Ak sa c韙砉 schopn vykona teto kroky, vykonaj kroky 1 a 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.2: PR蚄AZ VYHD罺ANIA
-
-
- ** Nap砉 / nasledovan re籥zcom pre vyh礱danie pr韘lu筺閔o re籥zca. **
-
- 1. Nap砉 znak / v norm醠nom m骴e. Pozn醡ka, 緀 tento znak sa spolu
- s kurzorom zobraz v dolnej 鑑sti obrazovky s : pr韐azom.
-
- 2. Teraz nap砉 'errroor' <ENTER>. To je slovo, ktor chce vyh礱da.
-
- 3. Pre vyh礱danie 颽l筰eho v齭kytu rovnak閔o re籥zca, stla jednoducho n.
- Pre vyh礱danie 颽l筰eho v齭kytu rovnak閔o re籥zca opa鑞齧 smerom,
- N.
-
- 4. Ak chce vyh礱da re籥zec v sp鋞nom smere, pou卷 pr韐az ? miesto
- pr韐azu /.
-
- 5. Pre n醰rat na miesto z ktor閔o si pri筰el stla CTRL-O (dr stla鑕n
- kl醰esu Ctrl po鑑s stla鑕nia kl醰esy o). Zopakuj pre 颽l鬼 n醰rat
- sp浠. CTRL-I ide vpred.
-
-POZN罬KA: "errroor" nieje sp魋ob hl醩kovania error; errroor je error.
-POZN罬KA: Ke vyh礱d醰anie dosiahne koniec tohto s鷅oru, bude pokra鑟va na
- za鑙atku, dokia nieje resetovan nastavenie 'wrapscan' .
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.3: VYHD罺ANIE ZODPOVEDAJ贑ICH Z罷AVORIEK
-
-
- ** Nap砉 % pre vyh礱danie pr韘lu筺閔o znaku ),], alebo } . **
-
- 1. Premiestni kurzor na hocak zo znakov (, [, alebo { v riadku ni竟ie
- ozna鑕n閔o zna鑛ou --->.
-
- 2. Teraz nap砉 znak % .
-
- 3. Kurzor sa premiestni na zodpovedaj鷆u z醫vorku.
-
- 4. Nap砉 % pre presun kurzoru sp浠 na otv醨aj鷆u z醫vorku.
-
- 5. Presu kurzor na in zo znakov (,),[,],{ alebo } a v筰mni si
- 鑟 % vykon醰a.
-
----> Toto ( je testovac riadok s ('s, ['s ] a {'s } v riadku. ))
-
-Pozn醡ka: Toto je ve祄i v齢odn pou卷 pri laden programu s ch齜aj鷆imi
- uzatv醨aj鷆imi z醫vorkami!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.4: PR蚄AZ NAHRADENIA
-
-
- ** Nap砉 :s/star/nov/g pre nahradenie slova 'star' za slovo 'nov'. **
-
- 1. Presu kurzor ni竟ie na riadok ozna鑕n zna鑛ou --->.
-
- 2. Nap砉 :s/thee/the <ENTER> . Poznamka, 緀 tento pr韐az zmen len prv
- v齭kyt "thee" v riadku.
-
- 3. Teraz nap砉 :s/thee/the/g 鑟 znamen celkov nahradenie v riadku.
- Toto nahrad v筫tky v齭kyty v riadku.
-
----> Thee best time to see thee flowers in thee spring.
-
- 4. Pre zmenu v筫tk齝h v齭kytov dan閔o re籥zca medzi dvomi ridakami,
- nap砉 :#,#s/star/nov/g kde #,# s 桧sla dvoch riadkov, v rozsahu
- ktor齝h sa nahradenie vykon.
- nap砉 :%s/star/nov/g pre zmenu v筫tk齝h v齭kytov v celom riadku
- nap砉 :%s/star/nov/gc n醞de v筫tky v齭kyty v celom s鷅ore,
- s ot醶kou 鑙 nahradi alebo nie
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 4 ZHRNUTIE
-
-
- 1. CTRL-g vyp砉e tvoju poz韈iu v s鷅ore a status s鷅oru.
- G 籥 premiestni na koniec riadku.
- 桧slo G 籥 premiestni na riadok s 桧slom.
- gg 籥 presunie na prv riadok
-
- 2. Nap韘anie / nasledovan re籥zcom vyh礱d re籥zec smerom DOPREDU.
- Nap韘anie ? nasledovan re籥zcom vyh礱da re籥zec smerom DOZADU.
- Nap韘anie n po vyh礱d醰an, vyh礱d nasleduj鷆i v齭kyt re籥zca
- v rovnakom smere, pri鑟m N vyh礱d v opa鑞om smere.
- CTRL-O 籥 vr醫i sp浠 na star筰u poz韈iu, CTRL-I na nov筰u poz韈iu.
-
- 3. Nap韘anie % ke kurzor je na (,),[,],{, alebo } n醞de zodpovdaj鷆u
- p醨nu z醫vorku.
-
- 4. Pre nahradenie nov閔o za prv star v riadku nap砉 :s/star/nov
- Pre nahradenie nov閔o za v筫tky star v riadku nap砉 :s/star/nov/g
- Pre nahradenie re籥zcov medzi dvoma riadkami 3 nap砉 :#,#/star/nov/g
- Pre nahradenie v筫tk齝h v齭kytov v s鷅ore nap砉 :%s/star/nov/g
- Pre potvrdenie ka綿閔o nahradenia pridaj 'c' :%s/star/nov/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.1 AKO SPUSTI VONKAJ┩ PR蚄AZ
-
-
- ** Nap砉 pr韐az :! nasledovan vonkaj鬼m pr韐azom pre spustenie pr韐azu **
-
- 1. Nap砉 obvykl p韐az : ktor nastav kurzor na spodok obrazovky.
- To umo緉 nap韘a pr韐az.
-
- 2. Teraz nap砉 ! (v齥ri鑞韐). To umo緉 spusti hociak vonkaj鬼 pr韐az
- z pr韐azov閔o riadku.
-
- 3. Ako pr韐lad nap砉 ls za ! a stla <ENTER>. Tento pr韐az
- zobraz obsah tvojho adres醨a rovnako ako na pr韐azovom riadku.
- Alebo pou緄 :!dir ak ls nefunguje.
-
-Pozn醡ka: Takto je mo緉 spusti hociak vonkaj鬼 pr韐az s argumentami.
-Pozn醡ka: V筫tky pr韐azy : musia by dokon鑕n stla鑕n韒 <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.2: VIAC O UKLADAN S贐OROV
-
-
- ** Pre ulo緀nie zmien v s鷅ore, nap砉 :w FILENAME. **
-
- 1. Nap砉 :!dir alebo :!ls pre v齪is aktu醠neho adres醨a.
- U vie, 緀 mus砉 za t齧to stla鑙 <ENTER> .
-
- 2. Vyber n醶ov s鷅oru, ktor e箃e neexistuje, ako napr. TEST.
-
- 3. Teraz nap砉: :w TEST (kde TEST je n醶ov vybrat閔o s鷅oru.)
-
- 4. To ulo卷 cel s鷅or (Vim Tutor) pod n醶ovm TEST.
- Pre overenie nap砉 :!dir , 桧m zobraz砉 obsah adres醨a.
-
-Pozn醡ka: 緀 ak ukon桧 pr醕u s editorom Vim a znovu ho spust砉 pr韐azom
- vim TEST, s鷅or bude k髉ia v齯ky, ke si ho ulo緄l.
-
- 5. Teraz odstr狎 s鷅or nap韘an韒 (MS-DOS): :!del TEST
- alebo (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.3 V軧ER TEXTU PRE ULO瓻NIE
-
-
- ** Pre ulo緀nie 鑑sti s鷅oru, nap砉 v pohyb :w FILENAME **
-
- 1. Presu kurozr na tento riadok.
-
- 2. Stla v a presu kurozr na piatu polo緆u dole. Pozn醡ka, 緀
- tento text je vyzna鑕n (highlighted).
-
- 3. Stla kl醰esu : . V spodnej 鑑sti okna sa objav :'<,'>.
-
- 4. Nap砉 w TEST , kde TEST je meno s鷅oru, ktor zatial neexistuje.
- Skontroluj, e vid砉 :'<,'>w TEST predt齧 ne stla桧 Enter.
-
- 5. Vim zap砉e ozna鑕n riadky do s鷅oru TEST. Pou緄 :!dir alebo !ls
- pre overenie. Zatial ho e箃e nema! Pou緄jeme ho v 颽l筫j lekcii.
-
-POZN罬KA: Stla鑕n韒 kl醰esy v sa spust vizu醠ne ozna鑟vanie.
- M艟e pohybova kurzorom pre upresnenie vyzna鑕n閔o textu.
- Potom m艟e pou緄 oper醫or pre vykonanie nejakej akcie
- s textom. Napr韐lad d zma緀 vyzna鑕n text.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.4: V軧ER A ZLU萇VANIE S贐OROV
-
-
- ** Pre vlo緀nie obsahu s鷅oru, nap砉 :r FILENAME **
-
- 1. Premiestni kurzor nad tento riadok.
-
-POZN罬KA: Po vykonan kroku 2 uvid砉 text z lekcie 5.3. Potom sa presu
- dole, aby si videl t鷗o lekciu.
-
- 3. Teraz vlo s鷅or TEST pou緄t韒 pr韐azu :r TEST kde TEST je n醶ov
- s鷅oru. S鷅or, ktor si pou緄l je umiestnen pod riadkom s kurzorom.
-
-POZN罬KA: M艟e tie na桧ta v齭tup vonkaj筰eho pr韐azu. Napr韐lad :r !ls
- na桧ta v齭tup pr韐azu ls a umiestni ho za poz韈iu kurzora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 5 ZHRNUTIE
-
-
- 1. :!pr韐az spust vonkaj鬼 pr韐az.
-
- Niektor vyu緄te祅 pr韐lady s:
- (MS_DOS) (UNIX)
- :!dir :!ls - zobraz obsah adres醨a
- :!del FILENAME :!rm FILENAME - odstr醤i s鷅or FILENAME
-
- 2. :w FILENAME ulo卷 aktu醠ny s鷅or na disk pod menom FILENAME.
-
- 3. v pohyb :w FILENAME ulo卷 vizu醠ne ozna鑕n riadky do
- s鷅oru FILENAME.
-
- 4. :r FILENAME vyberie z disku s鷅or FILENAME a vlo卷 ho do aktu醠neho
- s鷅oru za poz韈iou kurzora.
-
- 5. :r !dir na桧ta v齭tup z pr韐azu dir a vlo卷 ho za poz韈iu kurzora.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.1: PR蚄AZ OTVORI
-
-
-** Nap砉 o pre vlo緀nie riadku pod kurzor a prepnutie do vkladacieho m骴u **
-
- 1. Presu kurzor ni竟ie na riadok ozna鑕n zna鑛ou --->.
-
- 2. Nap砉 o (mal p韘meno) pre vlo緀nie 鑙st閔o riadku pod kurzorm
- a prepnutie do vkladacieho m骴u.
-
- 3. Teraz skop韗uj riadok ozna鑕n ---> a stla <ESC> pre ukon鑕nie
- vkladacieho m骴u.
-
----> Po nap韘an o sa kurzor premiestn na vlo緀n riadok do vkladacieho
- m骴u.
-
- 4. Pre otvorenie riadku nad kurzorom, jednotucho nap砉 ve祂 O ,
- namiesto mal閔o o. Vyskaj si to na riadku dole.
-
----> Vlo riadok nad t齧to nap韘an韒 O, ke kurzor je na tomto riadku.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.2: PR蚄AZ PRIDA
-
-
- ** Nap砉 a pre vlo緀nie textu ZA kurzor. **
-
- 1. Presu kurzor ni竟ie na koniec prv閔o riadku ozna鑕n閔o zna鑛ou --->
-
- 2. Stla kl醰esu e dokia kurozr nieje na konci riadku.
-
- 3. Nap砉 a (mal p韘meno) pre pridanie textu ZA kurzorom.
-
- 4. Dokon桧 slovo tak ako je to v druhom riadku. Stla <ESC> pre
- opustenie vkladacieho m骴u.
-
- 5. Pou緄 e na presun na 颽l筰e nedokon鑕n slovo a zopakuj kroky 3 a 4.
-
----> Tento ri ti dovo祏je n醕v pri醰an testu na koniec riadku.
----> Tento riadok ti dovo祏je n醕vik prid醰ania textu na koniec riadku.
-
-POZN罬KA: a, i, A 箃artuj rovnak vkladac m骴, jedin rozidel je, kde
- sa znaky vkladaj.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.3: IN SPOSOB NAHRADZOVANIA
-
-
- ** Nap砉 ve祂 R pre nahradenie viac ako jedn閔o znaku. **
-
- 1. Presu kurzor ni竟ie na prv riadok ozna鑕n zna鑛ou --->. Premiestni
- kurzor na za鑙atok prv閔o v齭kytu xxx.
-
- 2. Teraz nap砉 R a nap砉 桧slo uveden v druhom riadku, tak緀
- sa n韒 nahrad p魐odn xxx.
-
- 3. Stla <ESC> pre opustenie nahradzovacieho m骴u. Pozn醡ka, 緀 zvy筼k
- riadku zostane nezmenen.
-
- 4. Zopakuj tieto kroky pre nahradenie zvy筺齝h xxx.
-
----> Pridan韒 123 ku xxx dostane xxx.
----> Pridan韒 123 ku 456 dostane 579.
-
-POZN罬KA: Nahradzovac m骴 je ako vkladac m骴, ale ka綿 nap韘an znak
- zma緀 existuj鷆i znak.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Lekcia 6.4: Copy Paste textu
-
- ** pou卷 oper醫or y pre copy textku a p pre jeho paste **
-
- 1. Cho ni竟ie na riadok ozna鑕n ---> a umiestni kurozr za "a)".
-
- 2. Na箃artuj vizu醠ny m骴 pou緄t韒 v a presu kurozr pred "first".
-
- 3. Nap砉 y pre vystrihnutie (copy) ozna鑕n閔o textu.
-
- 4. Presu kurozr na koniec 颽l筰eho riadku: j$
-
- 5. Nap砉 p pre vlo緉ie (paste) textu. Potom nap砉: a druha <ESC>.
-
- 6. Pou緄 vizu醠ny m骴 pre ozna鑕nie "polo緆a.", vystrihni to
- pou緄t韒 y, presu sa na koniec nasleduj鷆eho riadku pou緄t韒 j$
- a vlo sem text pou緄t韒 p.
-
----> a) toto je prv polo緆a
----> b)
-
-POZN罬KA: M艟e pou緄 tie y ako oper醫or; yw vystrihne jedno slovo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.5: NASTAVENIE MO甆OST
-
-
-** Nastav mo緉osti, tak緀 vyh礱d醰anie alebo nahradzovanie ignoruje
- rozli筼vanie **
-
-
- 1. Vyh礱daj re籥zec 'ignore' nap韘an韒:
- /ignore <ENTER>
- Zopakuj vyh礱d醰anie nieko祂o kr醫 stla鑕n韒 kl醰esy n .
-
- 2. Nastav mo緉os 'ic' (Ignore case) nap韘an韒 pr韐azu:
- :set ic
-
- 3. Teraz vyh礱daj re籥zec 'ingore' znova stla鑕n韒 kl醰esy n
- Pozn醡ka, 緀 teraz s vyh礱dan aj Ignore a IGNORE.
-
- 4. Nastav mo緉os籭 'hlsearch' a 'incsearch':
- :set hls is
-
- 5. Teraz spusti vyh礱d醰ac pr韐az znovu, a pozri 鑟 sa stalo:
- /ignore <ENTER>
-
- 6. Pre opetovn zapnutie rozly筼vania ve祂齝h a mal齝h p韘men
- nap砉: :set noic
-
-POZN罬KA: Na odstr醤enie zv齬aznenia v齬azov nap砉: :nohlsearch
-POZN罬KA: Ak chce nerozly筼va ve祂os p韘men len pre jedno
- pou緄tie vyh礱d醰acieho pr韐azu, pou緄 \c: /ignore\c <ENTER>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 6 ZHRNUTIE
-
-
- 1. Nap砉 o pre otvorenie riadku pod kurzorom a 箃art vkladacieho m骴u.
- Nap砉 O pre otvorenie riadku nad kurzorom.
-
- 2. Nap砉 a pre vkladanie textu ZA kurzor.
- Nap砉 A pre vkladanie textu za koncom riadku.
-
- 3. Pr韐az e presunie kurozr na koniec slova
-
- 4. Oper醫or y vystrihne (skop韗uje) text, p ho vlo卷.
-
- 5. Nap韘anie ve祂閔o R prepne do nahradzovacieho m骴u, k齧 nieje
- stla鑕n <ESC>.
-
- 6. Nap韘anie ":set xxx" nastav mo緉os "xxx". Niektor nastavenia s:
- 'ic' 'ignorecase' ignoruje ve祂 a mal p韘men po鑑s vyh礱d醰ania.
- 'is' 'incsearch' zobrazuje 鑙asto鑞 re籥zce vyh礱d醰an閔o re籥zca.
- 'hls' 'hlsearch' vyzna桧 v筫tky vyh礱d醰an re籥zce.
- M艟e pou緄 hociktor z dlh齝h a kr醫kych n醶vov mo緉ost.
-
- 7. Vlo "no" pred nastavenie pre jeho vypnutie: :set noic
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 7.1: Z蚐KANIE N罰OVEDY
-
-
- ** Pou卷vaj on-line syst閙 n醦ovedy **
-
- Vim m obsiahly on-line syst閙 n醦ovedy. Pre od箃artovanie, vyskaj jeden
- z t齝hto troch:
- - stla kl醰esu <HELP> (ak nejak m峁)
- - stla kl醰esu <F1> (ak nejak m峁)
- - nap砉 :help <ENTER>
-
- 软taj text v okne n醦ovedy pre z韘kanie predstavy ako n醦oveda funguje.
- Nap砉 CTRL-W CTRL-W pre skok z jedn閔o okna do druh閔o.
- Nap砉 :q <ENTER> 桧m zatvor砉 okno n醦ovedy.
-
- M艟e n醞s help ku hociakej t閙e pridan韒 argumentu ku pr韐azu ":help".
- Vyskaj tieto (nezabudni stla鑙 <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 7.2: VYTVORENIE ㏕ARTOVACIEHO SKRIPTU
-
- ** Zapni funkcie editora Vim **
-
- Vim m omnoho viac funkcii ne Vi, ale ve韫ina z nich je implicitne
- vypnut. Pre pou卷vanie viac Vim funkcii vytvor "vimrc" s鷅or.
-
- 1. Za鑞i editova "vimrc" s鷅or, to z醰is na pou緄tom syst閙e:
- :e ~/.vimrc pre Unix
- :e $VIM/_vimrc pre MS-Windows
-
- 2. Teraz si pre桧taj text pr韐ladu "vimrc" s鷅oru:
-
- :r $VIMRUNTIME/vimrc_example.vim
-
- 3. Ulo s鷅or:
- :w
-
- Pri nasleduj鷆om 箃arte editora Vim sa pou緄je zv齬az騩vanie syntaxe.
- Do "vimrc" s鷅oru m艟e prida v筫tky svoje uprednost騩van nastavenia.
- Pre viac inform醕ii nap砉 :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- LEKCIA 7.3 DOKON菶NIE
-
- ** Dokon鑙 pr韐az na pr韐azovom riadku pou緄t韒 CTRL-D a <TAB> **
-
- 1. Uisti sa, 緀 Vim nieje v kompatibilnom m骴e: :set nocp
-
- 2. Pozri sa ak s鷅ory sa nach醖zaj v adres醨i: :!ls alebo :!dir
-
- 3. Nap砉 za鑙atok pr韐azu: :e
-
- 4. Stla CTRL-D a Vim zobraz zoznam pr韐azov za桧naj鷆ich "e".
-
- 5. Stla <TAB> a Vim dokon桧 meno pr韐azu na ":edit".
-
- 6. Teraz pridaj medzern韐 a za鑙atok mena existuj鷆eho s鷅oru:
- :edit FIL
-
- 7. Stla <TAB>. Vim dokon桧 meno (ak je jedine鑞).
-
-POZN罬KA: Dokon鑟vanie funguje pre ve礱 pr韐azov. Vyskaj stla鑕nie
- CTRL-D a <TAB>. ﹑eci醠ne je to u緄to鑞 pre pr韐az :help.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- LEKCIA 7 ZHRNUTIE
-
- 1. Nap砉 :help alebo stla <F1> alebo <Help> pre otvorenie okna n醦ovedy.
-
- 2. Nap砉 :help pr韐az pre vyh礱danie n醦ovedy ku pr韐azu pr韐az.
-
- 3. Nap砉 CTRL-W CTRL-W na presko鑕nie do in閔o okna.
-
- 4. Nap砉 :q pre zatvorenie okna n醦ovedy
-
- 5. Vytvor 箃artovac skript vimrc pre udr綼nie uprednost騩van齝h nastaven.
-
- 6. Po鑑s p韘ania pr韐azu : stla CTRL-D pre zobrazenie dokon鑕n.
- Stla <TAB> pre pou緄tie jedn閔o z dokon鑕n.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-
- Toto vymedzuje v齯ku Vimu. Toto je ur鑕n pre strucn preh礱d o editore
- Vim, 鷓lne posta鑥j鷆e pre 礱hk a obstojn pou卷vanie tohto editora.
- T醫o v齯ka je 颽leko od kompletnosti, preto緀 Vim m omnoho viacej pr韐azov.
- Ako 颽l筰e si pre桧taj u卷vat祍k manu醠: ":help user-manual".
-
- Pre 颽l筰e 桧tanie a 箃鷇ium je odporan kniha:
- Vim - Vi Improved - od Steve Oualline
- Vydavate: New Riders
- Prv kniha ur鑕n pre Vim. ﹑eci醠ne vhodn pre za鑙ato鑞韐ov.
- Obsahuje mno緎tvo pr韐ladov a obr醶kov.
- Pozri na http://iccf-holland.org/click5.html
-
- T醫o kniha je star筰a a je viac o Vi ako o Vim, ale je tie odporan:
- Learning the Vi Editor - od Linda Lamb
- Vydavate: O'Reilly & Associates Inc.
- Je to dobr kniha pre z韘kanie vedomost o pr醕i s editorom Vi.
- ﹊este vydanie obsahuje tie inform醕ie o editore Vim.
-
- T醫o v齯ka bola nap韘an autormi Michael C. Pierce a Robert K. Ware,
- Colorado School of Mines s pou緄t韒 my筶ienok dodan齧i od Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Modifikovan pre Vim od Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Preklad do Sloven鑙ny: bo 萫lko
- e-mail: celbos@inmail.sk
- Last Change: 2006 Apr 18
- encoding: iso8859-2
diff --git a/runtime/tutor/tutor.sk.cp1250 b/runtime/tutor/tutor.sk.cp1250
deleted file mode 100644
index f32c9b12a..000000000
--- a/runtime/tutor/tutor.sk.cp1250
+++ /dev/null
@@ -1,1008 +0,0 @@
-===============================================================================
-= V i t a j t e v o V I M T u t o r i a l i - Verzia 1.7 =
-===============================================================================
-
- Vim je ve緈i v齥onn editor, ktor m pr韑i ve綼 pr韐azov na to aby
- mohli byt v歟tky pop韘an vo v齯ke akou je t醫o. T醫o v齯ka
- popisuje dostato鑞 mno瀞tvo pr韐azov nato aby bolo mo瀗 pou烅va
- Vim ako viacelov editor.
-
- Pribli瀗 鑑s potrebn na prebratie tejto v齯ky je 25-30 min鷗,
- z醰is na tom, ko緆o je str醰en閔o 鑑su s presk鷼avan韒.
-
- UPOZORNENIE:
- Pr韐azy v lekci醕h modifikuj text. Vytvor k髉iu tohto s鷅oru aby
- sa mohlo precvi鑟va na 騩m (pri 歵arte "vimtutor" je toto k髉ia).
-
- Je d鬺e瀒t zapam鋞a si, 瀍 t醫o v齯ka je vytvoren pre v齯ku
- pou烅van韒. To znamen, 瀍 je potrebn si pr韐azy vysk鷼a, aby bolo
- u鑕nie spr醰ne. Ak len 鑙tas text, pr韐azy zabudne!
-
- Presved sa, 瀍 Shift-Lock NIEJE stla鑕n a stla鑤 kl醰esu
- j nieko緆o kr醫, aby sa kurzor posunul nato緆o, 瀍 lekcia 1.1
- celkom zapln obrazovku.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.1: POHYB KURZOROM
-
-
- ** Pre pohyb kurzorum stla kl醰esy h,j,k,l ako je zn醶ornen. **
- ^
- k Funkcia: Kl醰esa h je na綼vo a vykon pohyb do綼va.
- < h l > Kl醰esa l je napravo a vykon pohyb doprava.
- j Kl醰esa j vyzer ako 氻pka dole
- v
- 1. Pohybuj kurzorom po obrazovke, k齧 si na to nezvykne.
-
- 2. Dr stla鑕n kl醰esu pre pohyb dole (j), k齧 sa jej funkcia nezopakuje.
----> Teraz sa u vie pohybova na nasleduj鷆u lekciu.
-
- 3. Pou瀒t韒 kl醰esy pre pohyb dole prejdi na Lekciu 1.2.
-
-Pozn醡ka: Ak si niesi ist t齧 鑟 si nap韘al, stla <ESC>
- na prechod do norm醠neho m骴u.
-
-Pozn醡ka: Kurzorov kl醰esy s tie funk鑞. Ale pou烅van韒 hjkl sa bude
- schopn pohybova r齝hlej歩e, ke si zvykne ich pou烅va. Naozaj!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 1.2: ZATV罵ANIE VIMU
-
-
- !! POZN罬KA: Pred vykonan韒 t齝hto krokov si pre桧taj cel t鷗o lekciu !!
-
- 1. Stla kl醰esu <ESC> (aby si sa u鑙te nach醖zal v norm醠nom m骴e)
-
- 2. Nap須: :q! <ENTER>.
- T齧 ukon桧 pr醕u s editorom BEZ ulo瀍nia zmien, ktor si vykonal.
-
- 3. Ke sa dostane na pr韐azov riadok, nap須 pr韐az, ktor齧 sa dostane
- spe do tejto v齯ky. To m魹e by: vimtutor <ENTER>
-
- 4. Ak si si tieto kroky spo綼hlivo zapam鋞al, vykonaj kroky 1 a 3, pre
- ukon鑕nie a znovu spustenie editora.
-
-POZN罬KA: :q! <ENTER> neulo烅 zmeny, ktor si vykonal. O nieko緆o lekci
- sa nau桧 ako ulo瀒 zmeny do s鷅oru
-
- 5. presu kurzor dole na lekciu 1.3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.3: EDIT罜IA TEXTU - MAZANIE
-
-
-** Stla鑕nie kl醰esy x v norm醠nom m骴e zma瀍 znak na mieste kurzora. **
-
- 1. Presu kurzor ni灇ie na riadok ozna鑕n zna鑛ou --->.
-
- 2. Aby si mohol odstr醤i chyby, pohybuj kurzorom k齧 neprejde na znak,
- ktor chce zmaza.
-
- 3. Stla kl醰esu x aby sa zmazal nechcen znak.
-
- 4. Zopakuj kroky 2 a 4 a k齧 veta nieje spr醰na.
-
----> Kraava skoo鑙lla ccezz mesiiac.
-
- 5. Ak je veta spr醰na, prejdi na lekciu 1.4.
-
-POZN罬KA: Nesk鷼aj si zapam鋞a obsah tejto v齯ky, ale sa u pou烅van韒.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.4: EDIT罜IA TEXTU - VKLADANIE
-
-
- ** Stla鑕nie kl醰esy i umo烌uje vkladanie textu. **
-
- 1. Presu kurzor ni灇ie na prv riadok za zna鑛u --->.
-
- 2. Pre upravenie prv閔o riadku do rovnak閔o tvaru ako je druh riadok,
- presu kurzor na prv znak za misto, kde m by text vlo瀍n.
-
- 3. Stla kl醰esu i a nap須 potrebn text.
-
- 4. Po opraven ka瀌ej chyby, stla <ESC> pre n醰rat do norm醠neho m骴u.
- Zopakuj kroky 2 a 4 k齧 nieje veta spr醰na.
-
----> Tu je text ch齜aj鷆i tejto.
----> Tu je nejak text ch齜aj鷆i od tejto 鑙ary.
-
- 5. Ke sa dostato鑞e nau桧 vklada text, prejdi na nasleduj鷆e zhrnutie.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.5: EDIT罜IA TEXTU - PRID罺ANIE
-
-
- ** Stla鑕nie kl醰esy A umo烌uje prid醰a text. **
-
- 1. Presu kurozr ni灇ie na prv riadok za zna鑛ou --->.
- Nez醠e烅 na tom, na ktorom znaku sa kurzor v tom riadku nach醖za.
-
- 2. Stla kl醰esu A a nap須 potrebn text.
-
- 3. Po pridan textu stla kl醰esu <ESC> pre n醰rat do Norm醠neho m骴u.
-
- 4. Presu kurozr na druh riadok ozna鑕n ---> a zopakuj
- kroky 2 a 3 k齧 nieje veta spr醰na.
-
----> Tu je nejak text ch齜aj鷆i o
- Tu je nejak text ch齜aj鷆i od tia総o.
----> Tu tie ch齜a nej
- Tu tie ch齜a nejak text.
-
- 5. Ke sa dostato鑞e nau桧 prid醰a text, prejdi na lekciu 1.6.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.6: EDIT罜IA S贐ORU
-
-
- ** Nap韘an韒 :wq sa s鷅or ulo烅 a zavrie **
-
-!! POZN罬KA: Pred vykonan韒 t齝hto krokov si pre桧taj cel lekciu!!
-
-1. Opusti t鷗o v齯ku, ako si to urobil v lekcii 1.2: :q!
-
-2. Do pr韐azov閔o riadku nap須 pr韐az: vim tutor <ENTER>
- 'vim' je pr韐az, ktor spust editor Vim, 'tutor' je meno s鷅oru,
- ktor chce editova. Pou瀒 tak s鷅or, ktor m魹e meni.
-
-3. Vlo a zma text tak, ako si sa nau鑙l v predo歭齝h lekciach.
-
-4. Ulo s鷅or so zmenami a opusti Vim pr韐azom: :wq <ENTER>
-
-5. Re歵artuj vimtutor a presu sa dole na nasleduj鷆e zhrnutie.
-
-6. Urob tak po pre桧tan predo歭齝h krokov a porozumeniu im.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZHRNUTIE LEKCIE 1
-
-
- 1. Kurzor sa pohybuje pou瀒t韒 kl醰es so 氻pkami alebo kl醰esmi hjkl.
- h (do lava) j (dole) k (hore) l (doprava)
-
- 2. Pre spustenie Vimu (z pr韐azov閔o riadku) nap須: vim FILENAME <ENTER>
-
- 3. Na ukon鑕nie Vimu nap須: <ESC> :q! <ENTER> pre zru歟nie v歟tk齝h zmien
- alebo nap須: <ESC> :wq <ENTER> pre ulo瀍nie zmien.
-
- 4. Na zmazanie znaku na mieste kurzora nap須: x
-
- 5. Pre vlo瀍nie textu na mieste kurzora v norm醠nom m骴e nap須:
- i nap須 vkladan text <ESC> vkladanie pred kurzor
- A nap須 prid醰an text <EXC> vkladanie za riadok
-
-POZN罬KA: Stla鑕nie <ESC> 漚 premiestn do norm醠neho m骴u alebo zru氻
- nejak nechcen a 鑙asto鑞e dokon鑕n pr韐az.
-
-Teraz pokra鑥j lekciou 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.1: Mazacie pr韐azy
-
-
- ** Nap韘anie pr韐azu dw zma瀍 znaky do konca slova. **
-
-1. Stla <ESC> aby si bol bezpe鑞e v norm醠nom m骴e.
-
-2. Presu kurzor ni灇ie na riadok ozna鑕n zna鑛ou --->.
-
-3. Presu kurzor na za鑙atok slova, ktor je potrebn zmaza.
-
-4. Nap須 dw aby slovo zmizlo.
-
-POZN罬KA: P韘meno d sa zobraz na poslednom riadku obrazovky ke ho
- nap須e. Vim na teba po鑛, aby si mohol nap韘a
- p韘meno w. Ak vid須 nie鑟 in ako d , tak si nap韘al
- nespr醰ny znak; stla <ESC> a za鑞i znova.
-
----> Tu je nieko緆o slov z醔ava, ktor nie patria list do tejto vety.
-
-5. Zopakuj kroky 3 a 4 k齧 veta nieje spr醰na a prejdi na lekciu 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.2: VIAC MAZAC虲H PR蚄AZOV
-
-
- ** Nap韘anie pr韐azu d$ zma瀍 znaky do konca riadku **
-
-1. Stla <ESC> aby si bol bezpe鑞e v norm醠nom m骴e.
-
-2. Presu kurzor ni灇ie na riadok ozna鑕n zna鑛ou --->.
-
-3. Presu kurzor na koniec spr醰nej vety (ZA prv bodku).
-
-4. Nap須 d$ aby sa zmazali znaky do konca riadku.
-
----> Niekto nap韘al koniec tohto riadku dvakr醫. koniec tohot riadku dvakr醫.
-
-
-5. Prejdi na lekciu 2.3 pre pochopenie toho 鑟 sa stalo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.3: OPER罷ORY A POHYBY
-
- Ve綼 pr韐azov, ktor menia text s odvoden od oper醫orov a pohybov.
- Form醫 pre pr韐az mazania kl醰esou d je nasledovn:
-
- d pohyb
-
- kde:
- d - je mazac oper醫or
- pohyb - je to 鑟 oper醫or vykon醰a (vyp韘an ni灇ie)
-
- Kr醫ky list pohybov:
- w - do za鑙atku 颽l歩eho slova, okrem jeho prv閔o p韘mena.
- e - do konca teraj歩eho slova, vr醫ane posledn閔o znaku.
- $ - do konca riadku, vr醫ane posledn閔o znaku
-
- Tak瀍 nap韘an韒 de sa zma瀍 v歟tko od kurzora do konca slova.
-
-POZN罬KA: Stla鑕n韒 iba pohybu v norm醠nom m骴e bez oper醫ora
- sa presunie kurzor tak ako je to 歱ecivikovan.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.4: Pou瀒tie viacn醩obn閔o pohybu
-
-
- ** Nap韘an韒 桧sla pred pohyb ho zopakuje zadn po鑕t kr醫 **
-
- 1. Presu kurozr ni灇ie na za鑙atok riadku ozna鑕n閔o --->.
-
- 2. Nap須 2w a kurozr sa presunie o dve slov vpred.
-
- 3. Nap須 3e a kurozr sa presunie vpred na koniec tretieho slova.
-
- 4. Nap須 0 (nula) a kurozr sa presunie na za鑙atok riadku.
-
- 5. Zopakuj kroky 2 a 3 s r魖nymi 桧slami.
-
----> Toto je riadok so slovami po kotr齝h sa m魹ete pohybova.
-
- 6. Prejdi na lekciu 2.5.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.5: POU嶪TIE VIACN罶OBN蒆O MAZANIA PRE HROMADN MAZANIE
-
-
- ** Nap韘anie 桧sla spolu s oper醫orom ho zopakuje zadan po鑕t kr醫 **
-
- V kombin醕ii oper醫orov mazania a pohybu spom韓an閔o vy殮ie vlo po鑕t
- pred pohyb pre docielenie hromadn閔o mazania:
- d 桧slo pohyb
-
- 1. Presu kurzor na prv slovo p韘an VE糑軲I P蚐MENAMI
- v riadku ozna鑕nom --->.
-
- 2. Nap須 2dw a zma瀍 dve slov p韘an VE糑軲I P蚐MENAMI
-
- 3. Zopakuj kroky 1 a 2 s pou瀒t韒 r魖neho 桧sla tak aby si zmazal slov
- p韘an ve緆齧i p韘menami jedn齧 pr韐azom.
-
----> Tento ABC DE riadok FGHI JK LMN OP so slovamI je Q RS TUV vycisteny.
-
-POZN罬KA: 软slo medzi oper醫orom d a pohybom funguje podobne ako pri
- pou瀒t s pohybom bez oper醫ora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.6: OPER罜IE S RIADKAMI
-
-
- ** Nap韘anie pr韐azu dd zma瀍 cel riadok. **
-
-Vzh綼dom na frekvenciu mazania cel閔o riadku, sa autori Vimu rozhodli,
-瀍 bude jednoduch歩e maza cel riadok nap韘an韒 dvoch p韘men d.
-
-1. Presu kurzor na druh riadok v texte na spodu.
-2. Nap須 dd aby si zmazal riadok.
-3. Prejdi na 歵vrt riadok.
-4. Nap須 2dd aby si zmazal dva riadky.
-
- 1) Ru瀍 s 鑕rven,
- 2) Blato je z醔avn,
- 3) Fialky s modr,
- 4) M醡 auto,
- 5) Hodinky ukazuj 鑑s,
- 6) Cukor je sladk,
- 7) A to si ty.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.7: PR蚄AZ UNDO
-
-
-** Stla u pre vr醫enie posledn閔o pr韐azu, U pre 鷓ravu cel閔o riadku. **
-
-1. Presu kurzor ni灇ie na riadok ozna鑕n zna鑛ou ---> a premiestni ho na
- prv chybu.
-2. Nap須 x pre zmazanie prv閔o nechcen閔o riadku.
-3. Teraz nap須 u 桧m vr醫須 sp錆 posledne vykonan pr韐az.
-4. Teraz oprav v歟tky chyby na riadku pou瀒t韒 pr韐azu x .
-5. Teraz nap須 ve緆 U 桧m vr醫須 riadok do p魐odn閔o stavu.
-6. Teraz nap須 u nieko緆o kr醫, 桧m vr醫須 sp錆 pr韐az U.
-7. Teraz nap須 CTRL-R (dr kl醰esu CTRL stla鑕n k齧 stl徼a R) nieko緆o
- kr醫, 桧m vr醫須 sp錆 predt齧 vr醫en pr韐azy (undo z undo).
-
----> Opprav chybby nna toomto riadku a zmee ich pommocou undo.
-
- 8. Tieto pr韐azy s 鑑sto pou烅van. Teraz prejdi na zhrnutie lekcie 2.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 2 ZHRNUTIE
-
-
- 1. Pre zmazanie znakov od kurzora do konca slova nap須: dw
-
- 2. Pre zmazanie znakov od kurzora do konca riadku nap須: d$
-
- 3. Pre zmazanie cel閔o riadku nap須: dd
-
- 4. Pre zopakovanie pohybu, nap須 pred neho 桧slo: 2w
-
- 5. Form醫 pre p韐az:
-
- oper醫or [桧slo] pohyb
- kde:
- oper醫or - 鑟 treba robi, napr韐lad d pre zmazanie
- [桧slo] - je volite緉 po鑕t pre opakovanie pohybu
- pohyb - pohyb po texte vzh綼dom na oper醫or, napr韐lad w (slovo),
- $ (do konca riadku), at.
-
- 6. Pre pohyb na za鑙atok riadku pou瀒 nulu: 0
-
- 7. Pre vr醫enie sp錆 predo歭ej oper醕ie nap須: u (mal u)
- Pre vr醫enie v歟tk齝h 鷓rav na riadku nap須: U (ve緆 U)
- Pre vr醫enie vr醫en齝h 鷓rav nap須: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.1: PR蚄AZ VLO嶪
-
-
- ** Nap韘anie pr韐azu p vlo烅 psledn v齧az za kurzor. **
-
- 1. Presu kurzor ni灇ie na prv riadok textu.
-
- 2. Nap須 dd 桧m zma瀍 riadok a ulo烅 ho do buffera editora Vim.
-
- 3. Presu kurzor vy殮ie tam, kam zmazan riadok patr.
-
- 4. Ak nap須e v norm醠nom m骴e p zmazan riadk sa vlo烅.
-
- 5. Zopakuj kroky 2 a 4, k齧 riadky nies v spr醰nom porad.
-
----> d) Tie sa dok釣e vzdel醰a?
----> b) Fialky s modr,
----> c) Inteligencia sa vzdel醰a,
----> a) Ru瀍 s 鑕rven,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.2: PR蚄AZ NAHRADENIA
-
-
- ** Nap韘an韒 rx sa nahrad znak na mieste kurzora znakom x . **
-
- 1. Presu kurzor ni灇ie na prv riadok textu ozna鑕n閔o zna鑛ou --->.
-
- 2. Presu kurzor na za鑙atok prvej chyby.
-
- 3. nap須 r a potom znak, ktor tam m by.
-
- 4. Zopakuj kroky 2 a 3, k齧 prv riadok nieje zhodn s druh齧.
-
----> Ka bol tento riasok p韆an, niekro stla歩l nespr醔ne kl醰esy!
----> Ke bol tento riadok p韘an, niekto stla鑙l nespr醰ne kl醰esy!
-
- 5. Teraz prejdi na lekciu 3.2.
-
-POZN罬KA: Pam鋞aj si, 瀍 nau鑙 sa m魹e len pou烅vanim, nie pam鋞an韒.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.3. PR蚄AZ 赑RAVY
-
-
- ** Ak chce zmeni 鑑s slova do konca slova, nap須 ce . **
-
- 1. Presu kurzor ni灇ie na prv riadok ozna鑕n zna鑛ou --->.
-
- 2. Umiestni kurzor na p韘meno o v slove rosfpl.
-
- 3. Nap須 ce a oprav slovo (v tomto pr韕ade nap須 'iadok'.)
-
- 4. Stla <ESC> a prejdi na 颽l氻 znak, ktor treba zmeni.
-
- 5. Zopakuj kroky 3 a 4, k齧 prv veta nieje rovnak ako druh.
-
----> Tento rosfpl m nieko緆o skic, ktor je pirewvb zmeni piy漸栳n pr韐azu.
----> Tento riadok m nieko緆o slov, ktor je potrebn zmeni pou瀒t韒 pr韐azu.
-
-Pozn醡ka, 瀍 ce zma瀍 slovo a nastav vkladac m骴.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.4: VIAC ZMIEN POU嶪T蚆 c
-
-
- ** Pr韐az pre 鷓ravy sa pou烅va s rovnak齧i pohybmi ako pre mazanie **
-
- 1. Pr韐az pre 鷓ravy pracuje rovnako ako pre mazanie. Form醫 je:
-
- c [桧slo] pohyb
-
- 2. Pohyby s rovnak, ako napr韐lad w (slovo) a $ (koniec riadku).
-
- 3. Presu kurzor ni灇ie na prv riadok ozna鑕n zna鑛ou --->.
-
- 4. Presu kurzor na prv chybu.
-
- 5. nap須 c$ aby si mohol upravi zvy歰k riadku pod綼 druh閔o
- a stla <ESC>.
-
----> Koniec tohto riadku potrebuje pomoc, aby bol ako druhy.
----> Koniec tohto riadku potrebuje opravi pou瀒t韒 pr韐azu c$ .
-
-POZN罬KA: M魹e pou瀒 kl醰esu backspace na 鷓ravu zmien po鑑s p韘ania.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 3 ZHRNUTIE
-
-
- 1. Na vlo瀍nie textu, ktor u bol zmazan, nap須 p . To vlo烅 zmazan
- text ZA kurzor (ak bol riadok zmazan prejde na riadok pod kurzorom).
-
- 2. Pre naradenie znaku na mieste kurzora, nap須 r a potom znak, ktor
- nahrad p魐odn znak.
-
- 3. Pr韐az na upravenie umo烌uje zmeni od kurzora a po miesto, ktor
- ur鑥je pohyb. napr. Nap須 ce 桧m zmn須 text od poz韈ie
- kurzora do konca slova, c$ zmen text do konca riadku.
-
- 4. Form醫 pre nahradenie je:
-
- c [桧slo] pohyb
-
-
-Teraz prejdi na nalseduj鷆u lekciu.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.1: POZ虲IA A STATUS S贐ORU
-
-
- ** Stla CTRL-g pre zobrazenie svojej poz韈ie v s鷅ore a statusu s鷅oru.
- Nap須 G pre presun na riadok v s鷅ore. **
-
- Pozn醡ka: Pre桧taj si cel t鷗o lekciu sk魊 ako za鑞e vykon醰a kroky!!
-
- 1. Dr stla鑕n kl醰esu Ctrl a stla g . Toto naz齰ame CTRL-G.
- Na spodu obrazovky sa zobraz spr醰a s n醶vom s鷅oru a poz韈iou
- v s鷅ore. Zapam鋞ajsi si 桧slo riadku pre pou瀒tie v kroku 3.
-
- 2. Stla G 桧m sa dostane na spodok s鷅oru.
- Nap須 gg 桧m sa dostane na za鑙atok s鷅oru.
-
- 3. Nap須 桧slo riadku na ktorom si sa nach醖zal a stla G. To 漚
- vr醫i na riadok, na ktorom si prv kr醫 stla鑙l CTRL-G.
-
- 4. Ak sa c韙須 schopn vykona teto kroky, vykonaj kroky 1 a 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.2: PR蚄AZ VYH糀D罺ANIA
-
-
- ** Nap須 / nasledovan re漚zcom pre vyh綼danie pr韘lu歯閔o re漚zca. **
-
- 1. Nap須 znak / v norm醠nom m骴e. Pozn醡ka, 瀍 tento znak sa spolu
- s kurzorom zobraz v dolnej 鑑sti obrazovky s : pr韐azom.
-
- 2. Teraz nap須 'errroor' <ENTER>. To je slovo, ktor chce vyh綼da.
-
- 3. Pre vyh綼danie 颽l歩eho v齭kytu rovnak閔o re漚zca, stla jednoducho n.
- Pre vyh綼danie 颽l歩eho v齭kytu rovnak閔o re漚zca opa鑞齧 smerom,
- N.
-
- 4. Ak chce vyh綼da re漚zec v sp鋞nom smere, pou烅 pr韐az ? miesto
- pr韐azu /.
-
- 5. Pre n醰rat na miesto z ktor閔o si pri歩el stla CTRL-O (dr stla鑕n
- kl醰esu Ctrl po鑑s stla鑕nia kl醰esy o). Zopakuj pre 颽l氻 n醰rat
- sp錆. CTRL-I ide vpred.
-
-POZN罬KA: "errroor" nieje sp魋ob hl醩kovania error; errroor je error.
-POZN罬KA: Ke vyh綼d醰anie dosiahne koniec tohto s鷅oru, bude pokra鑟va na
- za鑙atku, dokia nieje resetovan nastavenie 'wrapscan' .
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.3: VYH糀D罺ANIE ZODPOVEDAJ贑ICH Z罷AVORIEK
-
-
- ** Nap須 % pre vyh綼danie pr韘lu歯閔o znaku ),], alebo } . **
-
- 1. Premiestni kurzor na hocak zo znakov (, [, alebo { v riadku ni灇ie
- ozna鑕n閔o zna鑛ou --->.
-
- 2. Teraz nap須 znak % .
-
- 3. Kurzor sa premiestni na zodpovedaj鷆u z醫vorku.
-
- 4. Nap須 % pre presun kurzoru sp錆 na otv醨aj鷆u z醫vorku.
-
- 5. Presu kurzor na in zo znakov (,),[,],{ alebo } a v歩mni si
- 鑟 % vykon醰a.
-
----> Toto ( je testovac riadok s ('s, ['s ] a {'s } v riadku. ))
-
-Pozn醡ka: Toto je ve緈i v齢odn pou烅 pri laden programu s ch齜aj鷆imi
- uzatv醨aj鷆imi z醫vorkami!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.4: PR蚄AZ NAHRADENIA
-
-
- ** Nap須 :s/star/nov/g pre nahradenie slova 'star' za slovo 'nov'. **
-
- 1. Presu kurzor ni灇ie na riadok ozna鑕n zna鑛ou --->.
-
- 2. Nap須 :s/thee/the <ENTER> . Poznamka, 瀍 tento pr韐az zmen len prv
- v齭kyt "thee" v riadku.
-
- 3. Teraz nap須 :s/thee/the/g 鑟 znamen celkov nahradenie v riadku.
- Toto nahrad v歟tky v齭kyty v riadku.
-
----> Thee best time to see thee flowers in thee spring.
-
- 4. Pre zmenu v歟tk齝h v齭kytov dan閔o re漚zca medzi dvomi ridakami,
- nap須 :#,#s/star/nov/g kde #,# s 桧sla dvoch riadkov, v rozsahu
- ktor齝h sa nahradenie vykon.
- nap須 :%s/star/nov/g pre zmenu v歟tk齝h v齭kytov v celom riadku
- nap須 :%s/star/nov/gc n醞de v歟tky v齭kyty v celom s鷅ore,
- s ot醶kou 鑙 nahradi alebo nie
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 4 ZHRNUTIE
-
-
- 1. CTRL-g vyp須e tvoju poz韈iu v s鷅ore a status s鷅oru.
- G 漚 premiestni na koniec riadku.
- 桧slo G 漚 premiestni na riadok s 桧slom.
- gg 漚 presunie na prv riadok
-
- 2. Nap韘anie / nasledovan re漚zcom vyh綼d re漚zec smerom DOPREDU.
- Nap韘anie ? nasledovan re漚zcom vyh綼da re漚zec smerom DOZADU.
- Nap韘anie n po vyh綼d醰an, vyh綼d nasleduj鷆i v齭kyt re漚zca
- v rovnakom smere, pri鑟m N vyh綼d v opa鑞om smere.
- CTRL-O 漚 vr醫i sp錆 na star歩u poz韈iu, CTRL-I na nov歩u poz韈iu.
-
- 3. Nap韘anie % ke kurzor je na (,),[,],{, alebo } n醞de zodpovdaj鷆u
- p醨nu z醫vorku.
-
- 4. Pre nahradenie nov閔o za prv star v riadku nap須 :s/star/nov
- Pre nahradenie nov閔o za v歟tky star v riadku nap須 :s/star/nov/g
- Pre nahradenie re漚zcov medzi dvoma riadkami 3 nap須 :#,#/star/nov/g
- Pre nahradenie v歟tk齝h v齭kytov v s鷅ore nap須 :%s/star/nov/g
- Pre potvrdenie ka瀌閔o nahradenia pridaj 'c' :%s/star/nov/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.1 AKO SPUSTI VONKAJ娡 PR蚄AZ
-
-
- ** Nap須 pr韐az :! nasledovan vonkaj氻m pr韐azom pre spustenie pr韐azu **
-
- 1. Nap須 obvykl p韐az : ktor nastav kurzor na spodok obrazovky.
- To umo瀗 nap韘a pr韐az.
-
- 2. Teraz nap須 ! (v齥ri鑞韐). To umo瀗 spusti hociak vonkaj氻 pr韐az
- z pr韐azov閔o riadku.
-
- 3. Ako pr韐lad nap須 ls za ! a stla <ENTER>. Tento pr韐az
- zobraz obsah tvojho adres醨a rovnako ako na pr韐azovom riadku.
- Alebo pou瀒 :!dir ak ls nefunguje.
-
-Pozn醡ka: Takto je mo瀗 spusti hociak vonkaj氻 pr韐az s argumentami.
-Pozn醡ka: V歟tky pr韐azy : musia by dokon鑕n stla鑕n韒 <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.2: VIAC O UKLADAN S贐OROV
-
-
- ** Pre ulo瀍nie zmien v s鷅ore, nap須 :w FILENAME. **
-
- 1. Nap須 :!dir alebo :!ls pre v齪is aktu醠neho adres醨a.
- U vie, 瀍 mus須 za t齧to stla鑙 <ENTER> .
-
- 2. Vyber n醶ov s鷅oru, ktor e歵e neexistuje, ako napr. TEST.
-
- 3. Teraz nap須: :w TEST (kde TEST je n醶ov vybrat閔o s鷅oru.)
-
- 4. To ulo烅 cel s鷅or (Vim Tutor) pod n醶ovm TEST.
- Pre overenie nap須 :!dir , 桧m zobraz須 obsah adres醨a.
-
-Pozn醡ka: 瀍 ak ukon桧 pr醕u s editorom Vim a znovu ho spust須 pr韐azom
- vim TEST, s鷅or bude k髉ia v齯ky, ke si ho ulo瀒l.
-
- 5. Teraz odstr狎 s鷅or nap韘an韒 (MS-DOS): :!del TEST
- alebo (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.3 V軧ER TEXTU PRE ULO嶦NIE
-
-
- ** Pre ulo瀍nie 鑑sti s鷅oru, nap須 v pohyb :w FILENAME **
-
- 1. Presu kurozr na tento riadok.
-
- 2. Stla v a presu kurozr na piatu polo瀔u dole. Pozn醡ka, 瀍
- tento text je vyzna鑕n (highlighted).
-
- 3. Stla kl醰esu : . V spodnej 鑑sti okna sa objav :'<,'>.
-
- 4. Nap須 w TEST , kde TEST je meno s鷅oru, ktor zatial neexistuje.
- Skontroluj, e vid須 :'<,'>w TEST predt齧 ne stla桧 Enter.
-
- 5. Vim zap須e ozna鑕n riadky do s鷅oru TEST. Pou瀒 :!dir alebo !ls
- pre overenie. Zatial ho e歵e nema! Pou瀒jeme ho v 颽l歟j lekcii.
-
-POZN罬KA: Stla鑕n韒 kl醰esy v sa spust vizu醠ne ozna鑟vanie.
- M魹e pohybova kurzorom pre upresnenie vyzna鑕n閔o textu.
- Potom m魹e pou瀒 oper醫or pre vykonanie nejakej akcie
- s textom. Napr韐lad d zma瀍 vyzna鑕n text.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.4: V軧ER A ZLU萇VANIE S贐OROV
-
-
- ** Pre vlo瀍nie obsahu s鷅oru, nap須 :r FILENAME **
-
- 1. Premiestni kurzor nad tento riadok.
-
-POZN罬KA: Po vykonan kroku 2 uvid須 text z lekcie 5.3. Potom sa presu
- dole, aby si videl t鷗o lekciu.
-
- 3. Teraz vlo s鷅or TEST pou瀒t韒 pr韐azu :r TEST kde TEST je n醶ov
- s鷅oru. S鷅or, ktor si pou瀒l je umiestnen pod riadkom s kurzorom.
-
-POZN罬KA: M魹e tie na桧ta v齭tup vonkaj歩eho pr韐azu. Napr韐lad :r !ls
- na桧ta v齭tup pr韐azu ls a umiestni ho za poz韈iu kurzora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 5 ZHRNUTIE
-
-
- 1. :!pr韐az spust vonkaj氻 pr韐az.
-
- Niektor vyu瀒te緉 pr韐lady s:
- (MS_DOS) (UNIX)
- :!dir :!ls - zobraz obsah adres醨a
- :!del FILENAME :!rm FILENAME - odstr醤i s鷅or FILENAME
-
- 2. :w FILENAME ulo烅 aktu醠ny s鷅or na disk pod menom FILENAME.
-
- 3. v pohyb :w FILENAME ulo烅 vizu醠ne ozna鑕n riadky do
- s鷅oru FILENAME.
-
- 4. :r FILENAME vyberie z disku s鷅or FILENAME a vlo烅 ho do aktu醠neho
- s鷅oru za poz韈iou kurzora.
-
- 5. :r !dir na桧ta v齭tup z pr韐azu dir a vlo烅 ho za poz韈iu kurzora.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.1: PR蚄AZ OTVORI
-
-
-** Nap須 o pre vlo瀍nie riadku pod kurzor a prepnutie do vkladacieho m骴u **
-
- 1. Presu kurzor ni灇ie na riadok ozna鑕n zna鑛ou --->.
-
- 2. Nap須 o (mal p韘meno) pre vlo瀍nie 鑙st閔o riadku pod kurzorm
- a prepnutie do vkladacieho m骴u.
-
- 3. Teraz skop韗uj riadok ozna鑕n ---> a stla <ESC> pre ukon鑕nie
- vkladacieho m骴u.
-
----> Po nap韘an o sa kurzor premiestn na vlo瀍n riadok do vkladacieho
- m骴u.
-
- 4. Pre otvorenie riadku nad kurzorom, jednotucho nap須 ve緆 O ,
- namiesto mal閔o o. Vysk鷼aj si to na riadku dole.
-
----> Vlo riadok nad t齧to nap韘an韒 O, ke kurzor je na tomto riadku.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.2: PR蚄AZ PRIDA
-
-
- ** Nap須 a pre vlo瀍nie textu ZA kurzor. **
-
- 1. Presu kurzor ni灇ie na koniec prv閔o riadku ozna鑕n閔o zna鑛ou --->
-
- 2. Stla kl醰esu e dokia kurozr nieje na konci riadku.
-
- 3. Nap須 a (mal p韘meno) pre pridanie textu ZA kurzorom.
-
- 4. Dokon桧 slovo tak ako je to v druhom riadku. Stla <ESC> pre
- opustenie vkladacieho m骴u.
-
- 5. Pou瀒 e na presun na 颽l歩e nedokon鑕n slovo a zopakuj kroky 3 a 4.
-
----> Tento ri ti dovo緐je n醕v pri醰an testu na koniec riadku.
----> Tento riadok ti dovo緐je n醕vik prid醰ania textu na koniec riadku.
-
-POZN罬KA: a, i, A 歵artuj rovnak vkladac m骴, jedin rozidel je, kde
- sa znaky vkladaj.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.3: IN SPOSOB NAHRADZOVANIA
-
-
- ** Nap須 ve緆 R pre nahradenie viac ako jedn閔o znaku. **
-
- 1. Presu kurzor ni灇ie na prv riadok ozna鑕n zna鑛ou --->. Premiestni
- kurzor na za鑙atok prv閔o v齭kytu xxx.
-
- 2. Teraz nap須 R a nap須 桧slo uveden v druhom riadku, tak瀍
- sa n韒 nahrad p魐odn xxx.
-
- 3. Stla <ESC> pre opustenie nahradzovacieho m骴u. Pozn醡ka, 瀍 zvy歰k
- riadku zostane nezmenen.
-
- 4. Zopakuj tieto kroky pre nahradenie zvy歯齝h xxx.
-
----> Pridan韒 123 ku xxx dostane xxx.
----> Pridan韒 123 ku 456 dostane 579.
-
-POZN罬KA: Nahradzovac m骴 je ako vkladac m骴, ale ka瀌 nap韘an znak
- zma瀍 existuj鷆i znak.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Lekcia 6.4: Copy Paste textu
-
- ** pou烅 oper醫or y pre copy textku a p pre jeho paste **
-
- 1. Cho ni灇ie na riadok ozna鑕n ---> a umiestni kurozr za "a)".
-
- 2. Na歵artuj vizu醠ny m骴 pou瀒t韒 v a presu kurozr pred "first".
-
- 3. Nap須 y pre vystrihnutie (copy) ozna鑕n閔o textu.
-
- 4. Presu kurozr na koniec 颽l歩eho riadku: j$
-
- 5. Nap須 p pre vlo瀗ie (paste) textu. Potom nap須: a druha <ESC>.
-
- 6. Pou瀒 vizu醠ny m骴 pre ozna鑕nie "polo瀔a.", vystrihni to
- pou瀒t韒 y, presu sa na koniec nasleduj鷆eho riadku pou瀒t韒 j$
- a vlo sem text pou瀒t韒 p.
-
----> a) toto je prv polo瀔a
----> b)
-
-POZN罬KA: M魹e pou瀒 tie y ako oper醫or; yw vystrihne jedno slovo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.5: NASTAVENIE MO嶯OST
-
-
-** Nastav mo瀗osti, tak瀍 vyh綼d醰anie alebo nahradzovanie ignoruje
- rozli歰vanie **
-
-
- 1. Vyh綼daj re漚zec 'ignore' nap韘an韒:
- /ignore <ENTER>
- Zopakuj vyh綼d醰anie nieko緆o kr醫 stla鑕n韒 kl醰esy n .
-
- 2. Nastav mo瀗os 'ic' (Ignore case) nap韘an韒 pr韐azu:
- :set ic
-
- 3. Teraz vyh綼daj re漚zec 'ingore' znova stla鑕n韒 kl醰esy n
- Pozn醡ka, 瀍 teraz s vyh綼dan aj Ignore a IGNORE.
-
- 4. Nastav mo瀗os漣 'hlsearch' a 'incsearch':
- :set hls is
-
- 5. Teraz spusti vyh綼d醰ac pr韐az znovu, a pozri 鑟 sa stalo:
- /ignore <ENTER>
-
- 6. Pre opetovn zapnutie rozly歰vania ve緆齝h a mal齝h p韘men
- nap須: :set noic
-
-POZN罬KA: Na odstr醤enie zv齬aznenia v齬azov nap須: :nohlsearch
-POZN罬KA: Ak chce nerozly歰va ve緆os p韘men len pre jedno
- pou瀒tie vyh綼d醰acieho pr韐azu, pou瀒 \c: /ignore\c <ENTER>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 6 ZHRNUTIE
-
-
- 1. Nap須 o pre otvorenie riadku pod kurzorom a 歵art vkladacieho m骴u.
- Nap須 O pre otvorenie riadku nad kurzorom.
-
- 2. Nap須 a pre vkladanie textu ZA kurzor.
- Nap須 A pre vkladanie textu za koncom riadku.
-
- 3. Pr韐az e presunie kurozr na koniec slova
-
- 4. Oper醫or y vystrihne (skop韗uje) text, p ho vlo烅.
-
- 5. Nap韘anie ve緆閔o R prepne do nahradzovacieho m骴u, k齧 nieje
- stla鑕n <ESC>.
-
- 6. Nap韘anie ":set xxx" nastav mo瀗os "xxx". Niektor nastavenia s:
- 'ic' 'ignorecase' ignoruje ve緆 a mal p韘men po鑑s vyh綼d醰ania.
- 'is' 'incsearch' zobrazuje 鑙asto鑞 re漚zce vyh綼d醰an閔o re漚zca.
- 'hls' 'hlsearch' vyzna桧 v歟tky vyh綼d醰an re漚zce.
- M魹e pou瀒 hociktor z dlh齝h a kr醫kych n醶vov mo瀗ost.
-
- 7. Vlo "no" pred nastavenie pre jeho vypnutie: :set noic
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 7.1: Z蚐KANIE N罰OVEDY
-
-
- ** Pou烅vaj on-line syst閙 n醦ovedy **
-
- Vim m obsiahly on-line syst閙 n醦ovedy. Pre od歵artovanie, vysk鷼aj jeden
- z t齝hto troch:
- - stla kl醰esu <HELP> (ak nejak m釟)
- - stla kl醰esu <F1> (ak nejak m釟)
- - nap須 :help <ENTER>
-
- 软taj text v okne n醦ovedy pre z韘kanie predstavy ako n醦oveda funguje.
- Nap須 CTRL-W CTRL-W pre skok z jedn閔o okna do druh閔o.
- Nap須 :q <ENTER> 桧m zatvor須 okno n醦ovedy.
-
- M魹e n醞s help ku hociakej t閙e pridan韒 argumentu ku pr韐azu ":help".
- Vysk鷼aj tieto (nezabudni stla鑙 <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 7.2: VYTVORENIE 奣ARTOVACIEHO SKRIPTU
-
- ** Zapni funkcie editora Vim **
-
- Vim m omnoho viac funkcii ne Vi, ale ve铓ina z nich je implicitne
- vypnut. Pre pou烅vanie viac Vim funkcii vytvor "vimrc" s鷅or.
-
- 1. Za鑞i editova "vimrc" s鷅or, to z醰is na pou瀒tom syst閙e:
- :e ~/.vimrc pre Unix
- :e $VIM/_vimrc pre MS-Windows
-
- 2. Teraz si pre桧taj text pr韐ladu "vimrc" s鷅oru:
-
- :r $VIMRUNTIME/vimrc_example.vim
-
- 3. Ulo s鷅or:
- :w
-
- Pri nasleduj鷆om 歵arte editora Vim sa pou瀒je zv齬az騩vanie syntaxe.
- Do "vimrc" s鷅oru m魹e prida v歟tky svoje uprednost騩van nastavenia.
- Pre viac inform醕ii nap須 :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- LEKCIA 7.3 DOKON菶NIE
-
- ** Dokon鑙 pr韐az na pr韐azovom riadku pou瀒t韒 CTRL-D a <TAB> **
-
- 1. Uisti sa, 瀍 Vim nieje v kompatibilnom m骴e: :set nocp
-
- 2. Pozri sa ak s鷅ory sa nach醖zaj v adres醨i: :!ls alebo :!dir
-
- 3. Nap須 za鑙atok pr韐azu: :e
-
- 4. Stla CTRL-D a Vim zobraz zoznam pr韐azov za桧naj鷆ich "e".
-
- 5. Stla <TAB> a Vim dokon桧 meno pr韐azu na ":edit".
-
- 6. Teraz pridaj medzern韐 a za鑙atok mena existuj鷆eho s鷅oru:
- :edit FIL
-
- 7. Stla <TAB>. Vim dokon桧 meno (ak je jedine鑞).
-
-POZN罬KA: Dokon鑟vanie funguje pre ve綼 pr韐azov. Vysk鷼aj stla鑕nie
- CTRL-D a <TAB>. 妏eci醠ne je to u瀒to鑞 pre pr韐az :help.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- LEKCIA 7 ZHRNUTIE
-
- 1. Nap須 :help alebo stla <F1> alebo <Help> pre otvorenie okna n醦ovedy.
-
- 2. Nap須 :help pr韐az pre vyh綼danie n醦ovedy ku pr韐azu pr韐az.
-
- 3. Nap須 CTRL-W CTRL-W na presko鑕nie do in閔o okna.
-
- 4. Nap須 :q pre zatvorenie okna n醦ovedy
-
- 5. Vytvor 歵artovac skript vimrc pre udr瀉nie uprednost騩van齝h nastaven.
-
- 6. Po鑑s p韘ania pr韐azu : stla CTRL-D pre zobrazenie dokon鑕n.
- Stla <TAB> pre pou瀒tie jedn閔o z dokon鑕n.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-
- Toto vymedzuje v齯ku Vimu. Toto je ur鑕n pre strucn preh綼d o editore
- Vim, 鷓lne posta鑥j鷆e pre 綼hk a obstojn pou烅vanie tohto editora.
- T醫o v齯ka je 颽leko od kompletnosti, preto瀍 Vim m omnoho viacej pr韐azov.
- Ako 颽l歩e si pre桧taj u烅vat緎k manu醠: ":help user-manual".
-
- Pre 颽l歩e 桧tanie a 歵鷇ium je odporan kniha:
- Vim - Vi Improved - od Steve Oualline
- Vydavate: New Riders
- Prv kniha ur鑕n pre Vim. 妏eci醠ne vhodn pre za鑙ato鑞韐ov.
- Obsahuje mno瀞tvo pr韐ladov a obr醶kov.
- Pozri na http://iccf-holland.org/click5.html
-
- T醫o kniha je star歩a a je viac o Vi ako o Vim, ale je tie odporan:
- Learning the Vi Editor - od Linda Lamb
- Vydavate: O'Reilly & Associates Inc.
- Je to dobr kniha pre z韘kanie vedomost o pr醕i s editorom Vi.
- 奿este vydanie obsahuje tie inform醕ie o editore Vim.
-
- T醫o v齯ka bola nap韘an autormi Michael C. Pierce a Robert K. Ware,
- Colorado School of Mines s pou瀒t韒 my歭ienok dodan齧i od Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Modifikovan pre Vim od Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Preklad do Sloven鑙ny: 紆bo 萫lko
- e-mail: celbos@inmail.sk
- Last Change: 2006 Apr 18
- encoding: cp1250
diff --git a/runtime/tutor/tutor.sk.utf-8 b/runtime/tutor/tutor.sk.utf-8
deleted file mode 100644
index c4e0c4f5d..000000000
--- a/runtime/tutor/tutor.sk.utf-8
+++ /dev/null
@@ -1,1008 +0,0 @@
-===============================================================================
-= V i t a j t e v o V I M T u t o r i a l i - Verzia 1.7 =
-===============================================================================
-
- Vim je ve木mi v媒konn媒 editor, ktor媒 m谩 pr铆li啪 ve木a pr铆kazov na to aby
- mohli byt v拧etky pop铆san茅 vo v媒uke akou je t谩to. T谩to v媒uka
- popisuje dostato膷n茅 mno啪stvo pr铆kazov nato aby bolo mo啪n茅 pou啪铆va钮
- Vim ako viac煤膷elov媒 editor.
-
- Pribli啪n媒 膷as potrebn媒 na prebratie tejto v媒uky je 25-30 min煤t,
- z谩vis铆 na tom, ko木ko je str谩ven茅ho 膷asu s presk煤拧avan铆m.
-
- UPOZORNENIE:
- Pr铆kazy v lekci谩ch modifikuj煤 text. Vytvor k贸piu tohto s煤boru aby
- sa mohlo precvi膷ova钮 na 艌om (pri 拧tarte "vimtutor" je toto k贸pia).
-
- Je d么le啪it茅 zapam盲ta钮 si, 啪e t谩to v媒uka je vytvoren谩 pre v媒uku
- pou啪铆van铆m. To znamen谩, 啪e je potrebn茅 si pr铆kazy vysk煤拧a钮, aby bolo
- u膷enie spr谩vne. Ak len 膷itas text, pr铆kazy zabudne拧!
-
- Presved膷 sa, 啪e Shift-Lock NIEJE stla膷en媒 a stla膷t kl谩vesu
- j nieko木ko kr谩t, aby sa kurzor posunul nato木ko, 啪e lekcia 1.1
- celkom zapln铆 obrazovku.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.1: POHYB KURZOROM
-
-
- ** Pre pohyb kurzorum stla膷 kl谩vesy h,j,k,l ako je zn谩zornen茅. **
- ^
- k Funkcia: Kl谩vesa h je na木avo a vykon谩 pohyb do木ava.
- < h l > Kl谩vesa l je napravo a vykon谩 pohyb doprava.
- j Kl谩vesa j vyzer谩 ako 拧铆pka dole
- v
- 1. Pohybuj kurzorom po obrazovke, k媒m si na to nezvykne拧.
-
- 2. Dr啪 stla膷en煤 kl谩vesu pre pohyb dole (j), k媒m sa jej funkcia nezopakuje.
----> Teraz sa u啪 vie拧 pohybova钮 na nasleduj煤cu lekciu.
-
- 3. Pou啪it铆m kl谩vesy pre pohyb dole prejdi na Lekciu 1.2.
-
-Pozn谩mka: Ak si niesi ist媒 t媒m 膷o si nap铆sal, stla膷 <ESC>
- na prechod do norm谩lneho m贸du.
-
-Pozn谩mka: Kurzorov茅 kl谩vesy s煤 tie啪 funk膷n茅. Ale pou啪铆van铆m hjkl sa bude拧
- schopn媒 pohybova钮 r媒chlej拧ie, ke膹 si zvykne拧 ich pou啪铆va钮. Naozaj!
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 1.2: ZATV脕RANIE VIMU
-
-
- !! POZN脕MKA: Pred vykonan铆m t媒chto krokov si pre膷铆taj cel煤 t煤to lekciu !!
-
- 1. Stla膷 kl谩vesu <ESC> (aby si sa u膷ite nach谩dzal v norm谩lnom m贸de)
-
- 2. Nap铆拧: :q! <ENTER>.
- T媒m ukon膷铆拧 pr谩cu s editorom BEZ ulo啪enia zmien, ktor茅 si vykonal.
-
- 3. Ke膹 sa dostane拧 na pr铆kazov媒 riadok, nap铆拧 pr铆kaz, ktor媒m sa dostane拧
- spe钮 do tejto v媒uky. To m么啪e by钮: vimtutor <ENTER>
-
- 4. Ak si si tieto kroky spo木ahlivo zapam盲tal, vykonaj kroky 1 a啪 3, pre
- ukon膷enie a znovu spustenie editora.
-
-POZN脕MKA: :q! <ENTER> neulo啪铆 zmeny, ktor茅 si vykonal. O nieko木ko lekci铆
- sa nau膷铆拧 ako ulo啪i钮 zmeny do s煤boru
-
- 5. presu艌 kurzor dole na lekciu 1.3.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.3: EDIT脕CIA TEXTU - MAZANIE
-
-
-** Stla膷enie kl谩vesy x v norm谩lnom m贸de zma啪e znak na mieste kurzora. **
-
- 1. Presu艌 kurzor ni啪拧ie na riadok ozna膷en媒 zna膷kou --->.
-
- 2. Aby si mohol odstr谩ni钮 chyby, pohybuj kurzorom k媒m neprejde na znak,
- ktor媒 chce拧 zmaza钮.
-
- 3. Stla膷 kl谩vesu x aby sa zmazal nechcen媒 znak.
-
- 4. Zopakuj kroky 2 a啪 4 a啪 k媒m veta nieje spr谩vna.
-
----> Kraava skoo膷illa ccezz mesiiac.
-
- 5. Ak je veta spr谩vna, prejdi na lekciu 1.4.
-
-POZN脕MKA: Nesk煤拧aj si zapam盲ta钮 obsah tejto v媒uky, ale sa u膷 pou啪铆van铆m.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.4: EDIT脕CIA TEXTU - VKLADANIE
-
-
- ** Stla膷enie kl谩vesy i umo啪艌uje vkladanie textu. **
-
- 1. Presu艌 kurzor ni啪拧ie na prv媒 riadok za zna膷ku --->.
-
- 2. Pre upravenie prv茅ho riadku do rovnak茅ho tvaru ako je druh媒 riadok,
- presu艌 kurzor na prv媒 znak za misto, kde m谩 by钮 text vlo啪en媒.
-
- 3. Stla膷 kl谩vesu i a nap铆拧 potrebn媒 text.
-
- 4. Po opraven铆 ka啪dej chyby, stla膷 <ESC> pre n谩vrat do norm谩lneho m贸du.
- Zopakuj kroky 2 a啪 4 k媒m nieje veta spr谩vna.
-
----> Tu je text ch媒baj煤ci tejto.
----> Tu je nejak媒 text ch媒baj煤ci od tejto 膷iary.
-
- 5. Ke膹 sa dostato膷ne nau膷铆拧 vklada钮 text, prejdi na nasleduj煤ce zhrnutie.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.5: EDIT脕CIA TEXTU - PRID脕VANIE
-
-
- ** Stla膷enie kl谩vesy A umo啪艌uje prid谩va钮 text. **
-
- 1. Presu艌 kurozr ni啪拧ie na prv媒 riadok za zna膷kou --->.
- Nez谩le啪铆 na tom, na ktorom znaku sa kurzor v tom riadku nach谩dza.
-
- 2. Stla膷 kl谩vesu A a nap铆拧 potrebn媒 text.
-
- 3. Po pridan铆 textu stla膷 kl谩vesu <ESC> pre n谩vrat do Norm谩lneho m贸du.
-
- 4. Presu艌 kurozr na druh媒 riadok ozna膷en媒 ---> a zopakuj
- kroky 2 a 3 k媒m nieje veta spr谩vna.
-
----> Tu je nejak媒 text ch媒baj煤ci o
- Tu je nejak媒 text ch媒baj煤ci od tia木to.
----> Tu tie啪 ch媒ba nej
- Tu tie啪 ch媒ba nejak媒 text.
-
- 5. Ke膹 sa dostato膷ne nau膷铆拧 prid谩va钮 text, prejdi na lekciu 1.6.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 1.6: EDIT脕CIA S脷BORU
-
-
- ** Nap铆san铆m :wq sa s煤bor ulo啪铆 a zavrie **
-
-!! POZN脕MKA: Pred vykonan铆m t媒chto krokov si pre膷铆taj cel煤 lekciu!!
-
-1. Opusti t煤to v媒uku, ako si to urobil v lekcii 1.2: :q!
-
-2. Do pr铆kazov茅ho riadku nap铆拧 pr铆kaz: vim tutor <ENTER>
- 'vim' je pr铆kaz, ktor媒 spust铆 editor Vim, 'tutor' je meno s煤boru,
- ktor媒 chce拧 editova钮. Pou啪i tak媒 s煤bor, ktor媒 m么啪e拧 meni钮.
-
-3. Vlo啪 a zma啪 text tak, ako si sa nau膷il v predo拧l媒ch lekciach.
-
-4. Ulo啪 s煤bor so zmenami a opusti Vim pr铆kazom: :wq <ENTER>
-
-5. Re拧tartuj vimtutor a presu艌 sa dole na nasleduj煤ce zhrnutie.
-
-6. Urob tak po pre膷铆tan铆 predo拧l媒ch krokov a porozumeniu im.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ZHRNUTIE LEKCIE 1
-
-
- 1. Kurzor sa pohybuje pou啪it铆m kl谩ves so 拧铆pkami alebo kl谩vesmi hjkl.
- h (do lava) j (dole) k (hore) l (doprava)
-
- 2. Pre spustenie Vimu (z pr铆kazov茅ho riadku) nap铆拧: vim FILENAME <ENTER>
-
- 3. Na ukon膷enie Vimu nap铆拧: <ESC> :q! <ENTER> pre zru拧enie v拧etk媒ch zmien
- alebo nap铆拧: <ESC> :wq <ENTER> pre ulo啪enie zmien.
-
- 4. Na zmazanie znaku na mieste kurzora nap铆拧: x
-
- 5. Pre vlo啪enie textu na mieste kurzora v norm谩lnom m贸de nap铆拧:
- i nap铆拧 vkladan媒 text <ESC> vkladanie pred kurzor
- A nap铆拧 prid谩van媒 text <EXC> vkladanie za riadok
-
-POZN脕MKA: Stla膷enie <ESC> 钮a premiestn铆 do norm谩lneho m贸du alebo zru拧铆
- nejak媒 nechcen媒 a 膷iasto膷ne dokon膷en媒 pr铆kaz.
-
-Teraz pokra膷uj lekciou 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.1: Mazacie pr铆kazy
-
-
- ** Nap铆sanie pr铆kazu dw zma啪e znaky do konca slova. **
-
-1. Stla膷 <ESC> aby si bol bezpe膷ne v norm谩lnom m贸de.
-
-2. Presu艌 kurzor ni啪拧ie na riadok ozna膷en媒 zna膷kou --->.
-
-3. Presu艌 kurzor na za膷iatok slova, ktor茅 je potrebn茅 zmaza钮.
-
-4. Nap铆拧 dw aby slovo zmizlo.
-
-POZN脕MKA: P铆smeno d sa zobraz铆 na poslednom riadku obrazovky ke膹 ho
- nap铆拧e拧. Vim na teba po膷k谩, aby si mohol nap铆sa钮
- p铆smeno w. Ak vid铆拧 nie膷o in茅 ako d , tak si nap铆sal
- nespr谩vny znak; stla膷 <ESC> a za膷ni znova.
-
----> Tu je nieko木ko slov z谩bava, ktor茅 nie patria list do tejto vety.
-
-5. Zopakuj kroky 3 a啪 4 k媒m veta nieje spr谩vna a prejdi na lekciu 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.2: VIAC MAZAC脥CH PR脥KAZOV
-
-
- ** Nap铆sanie pr铆kazu d$ zma啪e znaky do konca riadku **
-
-1. Stla膷 <ESC> aby si bol bezpe膷ne v norm谩lnom m贸de.
-
-2. Presu艌 kurzor ni啪拧ie na riadok ozna膷en媒 zna膷kou --->.
-
-3. Presu艌 kurzor na koniec spr谩vnej vety (ZA prv煤 bodku).
-
-4. Nap铆拧 d$ aby sa zmazali znaky do konca riadku.
-
----> Niekto nap铆sal koniec tohto riadku dvakr谩t. koniec tohot riadku dvakr谩t.
-
-
-5. Prejdi na lekciu 2.3 pre pochopenie toho 膷o sa stalo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.3: OPER脕TORY A POHYBY
-
- Ve木a pr铆kazov, ktor茅 menia text s煤 odvoden茅 od oper谩torov a pohybov.
- Form谩t pre pr铆kaz mazania kl谩vesou d je nasledovn媒:
-
- d pohyb
-
- kde:
- d - je mazac铆 oper谩tor
- pohyb - je to 膷o oper谩tor vykon谩va (vyp铆san茅 ni啪拧ie)
-
- Kr谩tky list pohybov:
- w - do za膷iatku 膹al拧ieho slova, okrem jeho prv茅ho p铆smena.
- e - do konca teraj拧ieho slova, vr谩tane posledn茅ho znaku.
- $ - do konca riadku, vr谩tane posledn茅ho znaku
-
- Tak啪e nap铆san铆m de sa zma啪e v拧etko od kurzora do konca slova.
-
-POZN脕MKA: Stla膷en铆m iba pohybu v norm谩lnom m贸de bez oper谩tora
- sa presunie kurzor tak ako je to 拧pecivikovan茅.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.4: Pou啪itie viacn谩sobn茅ho pohybu
-
-
- ** Nap铆san铆m 膷铆sla pred pohyb ho zopakuje zadn媒 po膷et kr谩t **
-
- 1. Presu艌 kurozr ni啪拧ie na za膷iatok riadku ozna膷en茅ho --->.
-
- 2. Nap铆拧 2w a kurozr sa presunie o dve slov谩 vpred.
-
- 3. Nap铆拧 3e a kurozr sa presunie vpred na koniec tretieho slova.
-
- 4. Nap铆拧 0 (nula) a kurozr sa presunie na za膷iatok riadku.
-
- 5. Zopakuj kroky 2 a 3 s r么znymi 膷铆slami.
-
----> Toto je riadok so slovami po kotr媒ch sa m么啪ete pohybova钮.
-
- 6. Prejdi na lekciu 2.5.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.5: POU沤ITIE VIACN脕SOBN脡HO MAZANIA PRE HROMADN脡 MAZANIE
-
-
- ** Nap铆sanie 膷铆sla spolu s oper谩torom ho zopakuje zadan媒 po膷et kr谩t **
-
- V kombin谩cii oper谩torov mazania a pohybu spom铆nan茅ho vy拧拧ie vlo啪 po膷et
- pred pohyb pre docielenie hromadn茅ho mazania:
- d 膷铆slo pohyb
-
- 1. Presu艌 kurzor na prv茅 slovo p铆san茅 VE慕K脻MI P脥SMENAMI
- v riadku ozna膷enom --->.
-
- 2. Nap铆拧 2dw a zma啪e拧 dve slov谩 p铆san茅 VE慕K脻MI P脥SMENAMI
-
- 3. Zopakuj kroky 1 a 2 s pou啪it铆m r么zneho 膷铆sla tak aby si zmazal slov谩
- p铆san茅 ve木k媒mi p铆smenami jedn媒m pr铆kazom.
-
----> Tento ABC DE riadok FGHI JK LMN OP so slovamI je Q RS TUV vycisteny.
-
-POZN脕MKA: 膶铆slo medzi oper谩torom d a pohybom funguje podobne ako pri
- pou啪it铆 s pohybom bez oper谩tora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.6: OPER脕CIE S RIADKAMI
-
-
- ** Nap铆sanie pr铆kazu dd zma啪e cel媒 riadok. **
-
-Vzh木adom na frekvenciu mazania cel茅ho riadku, sa autori Vimu rozhodli,
-啪e bude jednoduch拧ie maza钮 cel媒 riadok nap铆san铆m dvoch p铆smen d.
-
-1. Presu艌 kurzor na druh媒 riadok v texte na spodu.
-2. Nap铆拧 dd aby si zmazal riadok.
-3. Prejdi na 拧tvrt媒 riadok.
-4. Nap铆拧 2dd aby si zmazal dva riadky.
-
- 1) Ru啪e s煤 膷erven茅,
- 2) Blato je z谩bavn茅,
- 3) Fialky s煤 modr茅,
- 4) M谩m auto,
- 5) Hodinky ukazuj煤 膷as,
- 6) Cukor je sladk媒,
- 7) A to si ty.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 2.7: PR脥KAZ UNDO
-
-
-** Stla膷 u pre vr谩tenie posledn茅ho pr铆kazu, U pre 煤pravu cel茅ho riadku. **
-
-1. Presu艌 kurzor ni啪拧ie na riadok ozna膷en媒 zna膷kou ---> a premiestni ho na
- prv煤 chybu.
-2. Nap铆拧 x pre zmazanie prv茅ho nechcen茅ho riadku.
-3. Teraz nap铆拧 u 膷铆m vr谩t铆拧 sp盲钮 posledne vykonan媒 pr铆kaz.
-4. Teraz oprav v拧etky chyby na riadku pou啪it铆m pr铆kazu x .
-5. Teraz nap铆拧 ve木k茅 U 膷铆m vr谩t铆拧 riadok do p么vodn茅ho stavu.
-6. Teraz nap铆拧 u nieko木ko kr谩t, 膷铆m vr谩t铆拧 sp盲钮 pr铆kaz U.
-7. Teraz nap铆拧 CTRL-R (dr啪 kl谩vesu CTRL stla膷en煤 k媒m stl谩膷a拧 R) nieko木ko
- kr谩t, 膷铆m vr谩t铆拧 sp盲钮 predt媒m vr谩ten茅 pr铆kazy (undo z undo).
-
----> Opprav chybby nna toomto riadku a zmee艌 ich pommocou undo.
-
- 8. Tieto pr铆kazy s煤 膷asto pou啪铆van茅. Teraz prejdi na zhrnutie lekcie 2.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 2 ZHRNUTIE
-
-
- 1. Pre zmazanie znakov od kurzora do konca slova nap铆拧: dw
-
- 2. Pre zmazanie znakov od kurzora do konca riadku nap铆拧: d$
-
- 3. Pre zmazanie cel茅ho riadku nap铆拧: dd
-
- 4. Pre zopakovanie pohybu, nap铆拧 pred neho 膷铆slo: 2w
-
- 5. Form谩t pre p铆kaz:
-
- oper谩tor [膷铆slo] pohyb
- kde:
- oper谩tor - 膷o treba robi钮, napr铆klad d pre zmazanie
- [膷铆slo] - je volite木n媒 po膷et pre opakovanie pohybu
- pohyb - pohyb po texte vzh木adom na oper谩tor, napr铆klad w (slovo),
- $ (do konca riadku), at膹.
-
- 6. Pre pohyb na za膷iatok riadku pou啪i nulu: 0
-
- 7. Pre vr谩tenie sp盲钮 predo拧lej oper谩cie nap铆拧: u (mal茅 u)
- Pre vr谩tenie v拧etk媒ch 煤prav na riadku nap铆拧: U (ve木k茅 U)
- Pre vr谩tenie vr谩ten媒ch 煤prav nap铆拧: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.1: PR脥KAZ VLO沤I扭
-
-
- ** Nap铆sanie pr铆kazu p vlo啪铆 psledn媒 v媒maz za kurzor. **
-
- 1. Presu艌 kurzor ni啪拧ie na prv媒 riadok textu.
-
- 2. Nap铆拧 dd 膷铆m zma啪e拧 riadok a ulo啪铆拧 ho do buffera editora Vim.
-
- 3. Presu艌 kurzor vy拧拧ie tam, kam zmazan媒 riadok patr铆.
-
- 4. Ak nap铆拧e拧 v norm谩lnom m贸de p zmazan媒 riadk sa vlo啪铆.
-
- 5. Zopakuj kroky 2 a啪 4, k媒m riadky nies煤 v spr谩vnom porad铆.
-
----> d) Tie啪 sa dok谩啪e拧 vzdel谩va钮?
----> b) Fialky s煤 modr茅,
----> c) Inteligencia sa vzdel谩va,
----> a) Ru啪e s煤 膷erven茅,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.2: PR脥KAZ NAHRADENIA
-
-
- ** Nap铆san铆m rx sa nahrad铆 znak na mieste kurzora znakom x . **
-
- 1. Presu艌 kurzor ni啪拧ie na prv铆 riadok textu ozna膷en茅ho zna膷kou --->.
-
- 2. Presu艌 kurzor na za膷iatok prvej chyby.
-
- 3. nap铆拧 r a potom znak, ktor媒 tam m谩 by钮.
-
- 4. Zopakuj kroky 2 a 3, k媒m prv媒 riadok nieje zhodn媒 s druh媒m.
-
----> Ka膹 bol tento riasok p铆aan媒, niekro stla拧il nespr谩bne kl谩vesy!
----> Ke膹 bol tento riadok p铆san媒, niekto stla膷il nespr谩vne kl谩vesy!
-
- 5. Teraz prejdi na lekciu 3.2.
-
-POZN脕MKA: Pam盲taj si, 啪e nau膷i钮 sa m么啪e拧 len pou啪铆vanim, nie pam盲tan铆m.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.3. PR脥KAZ 脷PRAVY
-
-
- ** Ak chce拧 zmeni钮 膷as钮 slova do konca slova, nap铆拧 ce . **
-
- 1. Presu艌 kurzor ni啪拧ie na prv媒 riadok ozna膷en媒 zna膷kou --->.
-
- 2. Umiestni kurzor na p铆smeno o v slove rosfpl.
-
- 3. Nap铆拧 ce a oprav slovo (v tomto pr铆pade nap铆拧 'iadok'.)
-
- 4. Stla膷 <ESC> a prejdi na 膹al拧铆 znak, ktor媒 treba zmeni钮.
-
- 5. Zopakuj kroky 3 a 4, k媒m prv谩 veta nieje rovnak谩 ako druh谩.
-
----> Tento rosfpl m谩 nieko木ko skic, ktor茅 je pirewvb铆 zmeni钮 piy钮u膷谩n pr铆kazu.
----> Tento riadok m谩 nieko木ko slov, ktor茅 je potrebn茅 zmeni钮 pou啪it铆m pr铆kazu.
-
-Pozn谩mka, 啪e ce zma啪e slovo a nastav铆 vkladac铆 m贸d.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 3.4: VIAC ZMIEN POU沤IT脥M c
-
-
- ** Pr铆kaz pre 煤pravy sa pou啪铆va s rovnak媒mi pohybmi ako pre mazanie **
-
- 1. Pr铆kaz pre 煤pravy pracuje rovnako ako pre mazanie. Form谩t je:
-
- c [膷铆slo] pohyb
-
- 2. Pohyby s煤 rovnak茅, ako napr铆klad w (slovo) a $ (koniec riadku).
-
- 3. Presu艌 kurzor ni啪拧ie na prv媒 riadok ozna膷en媒 zna膷kou --->.
-
- 4. Presu艌 kurzor na prv煤 chybu.
-
- 5. nap铆拧 c$ aby si mohol upravi钮 zvy拧ok riadku pod木a druh茅ho
- a stla膷 <ESC>.
-
----> Koniec tohto riadku potrebuje pomoc, aby bol ako druhy.
----> Koniec tohto riadku potrebuje opravi钮 pou啪it铆m pr铆kazu c$ .
-
-POZN脕MKA: M么啪e拧 pou啪i钮 kl谩vesu backspace na 煤pravu zmien po膷as p铆sania.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 3 ZHRNUTIE
-
-
- 1. Na vlo啪enie textu, ktor媒 u啪 bol zmazan媒, nap铆拧 p . To vlo啪铆 zmazan媒
- text ZA kurzor (ak bol riadok zmazan媒 prejde na riadok pod kurzorom).
-
- 2. Pre naradenie znaku na mieste kurzora, nap铆拧 r a potom znak, ktor媒
- nahrad铆 p么vodn媒 znak.
-
- 3. Pr铆kaz na upravenie umo啪艌uje zmeni钮 od kurzora a啪 po miesto, ktor茅
- ur膷uje pohyb. napr. Nap铆拧 ce 膷铆m zmn铆拧 text od poz铆cie
- kurzora do konca slova, c$ zmen铆 text do konca riadku.
-
- 4. Form谩t pre nahradenie je:
-
- c [膷铆slo] pohyb
-
-
-Teraz prejdi na nalseduj煤cu lekciu.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.1: POZ脥CIA A STATUS S脷BORU
-
-
- ** Stla膷 CTRL-g pre zobrazenie svojej poz铆cie v s煤bore a statusu s煤boru.
- Nap铆拧 G pre presun na riadok v s煤bore. **
-
- Pozn谩mka: Pre膷铆taj si cel煤 t煤to lekciu sk么r ako za膷ne拧 vykon谩va钮 kroky!!
-
- 1. Dr啪 stla膷en煤 kl谩vesu Ctrl a stla膷 g . Toto naz媒vame CTRL-G.
- Na spodu obrazovky sa zobraz铆 spr谩va s n谩zvom s煤boru a poz铆ciou
- v s煤bore. Zapam盲tajsi si 膷铆slo riadku pre pou啪itie v kroku 3.
-
- 2. Stla膷 G 膷铆m sa dostane拧 na spodok s煤boru.
- Nap铆拧 gg 膷铆m sa dostane拧 na za膷iatok s煤boru.
-
- 3. Nap铆拧 膷铆slo riadku na ktorom si sa nach谩dzal a stla膷 G. To 钮a
- vr谩ti na riadok, na ktorom si prv媒 kr谩t stla膷il CTRL-G.
-
- 4. Ak sa c铆t铆拧 schopn媒 vykona钮 teto kroky, vykonaj kroky 1 a啪 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.2: PR脥KAZ VYH慕AD脕VANIA
-
-
- ** Nap铆拧 / nasledovan茅 re钮azcom pre vyh木adanie pr铆slu拧n茅ho re钮azca. **
-
- 1. Nap铆拧 znak / v norm谩lnom m贸de. Pozn谩mka, 啪e tento znak sa spolu
- s kurzorom zobraz铆 v dolnej 膷asti obrazovky s : pr铆kazom.
-
- 2. Teraz nap铆拧 'errroor' <ENTER>. To je slovo, ktor茅 chce拧 vyh木ada钮.
-
- 3. Pre vyh木adanie 膹al拧ieho v媒skytu rovnak茅ho re钮azca, stla膷 jednoducho n.
- Pre vyh木adanie 膹al拧ieho v媒skytu rovnak茅ho re钮azca opa膷n媒m smerom,
- N.
-
- 4. Ak chce拧 vyh木ada钮 re钮azec v sp盲tnom smere, pou啪铆 pr铆kaz ? miesto
- pr铆kazu /.
-
- 5. Pre n谩vrat na miesto z ktor茅ho si pri拧iel stla膷 CTRL-O (dr啪 stla膷en煤
- kl谩vesu Ctrl po膷as stla膷enia kl谩vesy o). Zopakuj pre 膹al拧铆 n谩vrat
- sp盲钮. CTRL-I ide vpred.
-
-POZN脕MKA: "errroor" nieje sp么sob hl谩skovania error; errroor je error.
-POZN脕MKA: Ke膹 vyh木ad谩vanie dosiahne koniec tohto s煤boru, bude pokra膷ova钮 na
- za膷iatku, dokia木 nieje resetovan茅 nastavenie 'wrapscan' .
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.3: VYH慕AD脕VANIE ZODPOVEDAJ脷CICH Z脕TAVORIEK
-
-
- ** Nap铆拧 % pre vyh木adanie pr铆slu拧n茅ho znaku ),], alebo } . **
-
- 1. Premiestni kurzor na hocak媒 zo znakov (, [, alebo { v riadku ni啪拧ie
- ozna膷en茅ho zna膷kou --->.
-
- 2. Teraz nap铆拧 znak % .
-
- 3. Kurzor sa premiestni na zodpovedaj煤cu z谩tvorku.
-
- 4. Nap铆拧 % pre presun kurzoru sp盲钮 na otv谩raj煤cu z谩tvorku.
-
- 5. Presu艌 kurzor na in媒 zo znakov (,),[,],{ alebo } a v拧imni si
- 膷o % vykon谩va.
-
----> Toto ( je testovac铆 riadok s ('s, ['s ] a {'s } v riadku. ))
-
-Pozn谩mka: Toto je ve木mi v媒hodn茅 pou啪铆钮 pri laden铆 programu s ch媒baj煤cimi
- uzatv谩raj煤cimi z谩tvorkami!
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 4.4: PR脥KAZ NAHRADENIA
-
-
- ** Nap铆拧 :s/star媒/nov媒/g pre nahradenie slova 'star媒' za slovo 'nov媒'. **
-
- 1. Presu艌 kurzor ni啪拧ie na riadok ozna膷en媒 zna膷kou --->.
-
- 2. Nap铆拧 :s/thee/the <ENTER> . Poznamka, 啪e tento pr铆kaz zmen铆 len prv媒
- v媒skyt "thee" v riadku.
-
- 3. Teraz nap铆拧 :s/thee/the/g 膷o znamen谩 celkov茅 nahradenie v riadku.
- Toto nahrad铆 v拧etky v媒skyty v riadku.
-
----> Thee best time to see thee flowers in thee spring.
-
- 4. Pre zmenu v拧etk媒ch v媒skytov dan茅ho re钮azca medzi dvomi ridakami,
- nap铆拧 :#,#s/star媒/nov媒/g kde #,# s煤 膷铆sla dvoch riadkov, v rozsahu
- ktor媒ch sa nahradenie vykon谩.
- nap铆拧 :%s/star媒/nov媒/g pre zmenu v拧etk媒ch v媒skytov v celom riadku
- nap铆拧 :%s/star媒/nov媒/gc n谩jde v拧etky v媒skyty v celom s煤bore,
- s ot谩zkou 膷i nahradi钮 alebo nie
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 4 ZHRNUTIE
-
-
- 1. CTRL-g vyp铆拧e tvoju poz铆ciu v s煤bore a status s煤boru.
- G 钮a premiestni na koniec riadku.
- 膷铆slo G 钮a premiestni na riadok s 膷铆slom.
- gg 钮a presunie na prv媒 riadok
-
- 2. Nap铆sanie / nasledovan茅 re钮azcom vyh木ad谩 re钮azec smerom DOPREDU.
- Nap铆sanie ? nasledovan茅 re钮azcom vyh木ada re钮azec smerom DOZADU.
- Nap铆sanie n po vyh木ad谩van铆, vyh木ad谩 nasleduj煤ci v媒skyt re钮azca
- v rovnakom smere, pri膷om N vyh木ad谩 v opa膷nom smere.
- CTRL-O 钮a vr谩ti sp盲钮 na star拧iu poz铆ciu, CTRL-I na nov拧iu poz铆ciu.
-
- 3. Nap铆sanie % ke膹 kurzor je na (,),[,],{, alebo } n谩jde zodpovdaj煤cu
- p谩rnu z谩tvorku.
-
- 4. Pre nahradenie nov茅ho za prv媒 star媒 v riadku nap铆拧 :s/star媒/nov媒
- Pre nahradenie nov茅ho za v拧etky star茅 v riadku nap铆拧 :s/star媒/nov媒/g
- Pre nahradenie re钮azcov medzi dvoma riadkami 3 nap铆拧 :#,#/star媒/nov媒/g
- Pre nahradenie v拧etk媒ch v媒skytov v s煤bore nap铆拧 :%s/star媒/nov媒/g
- Pre potvrdenie ka啪d茅ho nahradenia pridaj 'c' :%s/star媒/nov媒/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.1 AKO SPUSTI扭 VONKAJ艩脥 PR脥KAZ
-
-
- ** Nap铆拧 pr铆kaz :! nasledovan媒 vonkaj拧铆m pr铆kazom pre spustenie pr铆kazu **
-
- 1. Nap铆拧 obvykl媒 p铆kaz : ktor媒 nastav铆 kurzor na spodok obrazovky.
- To umo啪n铆 nap铆sa钮 pr铆kaz.
-
- 2. Teraz nap铆拧 ! (v媒kri膷n铆k). To umo啪n铆 spusti钮 hociak媒 vonkaj拧铆 pr铆kaz
- z pr铆kazov茅ho riadku.
-
- 3. Ako pr铆klad nap铆拧 ls za ! a stla膷 <ENTER>. Tento pr铆kaz
- zobraz铆 obsah tvojho adres谩ra rovnako ako na pr铆kazovom riadku.
- Alebo pou啪i :!dir ak ls nefunguje.
-
-Pozn谩mka: Takto je mo啪n茅 spusti钮 hociak媒 vonkaj拧铆 pr铆kaz s argumentami.
-Pozn谩mka: V拧etky pr铆kazy : musia by钮 dokon膷en茅 stla膷en铆m <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.2: VIAC O UKLADAN脥 S脷BOROV
-
-
- ** Pre ulo啪enie zmien v s煤bore, nap铆拧 :w FILENAME. **
-
- 1. Nap铆拧 :!dir alebo :!ls pre v媒pis aktu谩lneho adres谩ra.
- U啪 vie拧, 啪e mus铆拧 za t媒mto stla膷i钮 <ENTER> .
-
- 2. Vyber n谩zov s煤boru, ktor媒 e拧te neexistuje, ako napr. TEST.
-
- 3. Teraz nap铆拧: :w TEST (kde TEST je n谩zov vybrat茅ho s煤boru.)
-
- 4. To ulo啪铆 cel媒 s煤bor (Vim Tutor) pod n谩zovm TEST.
- Pre overenie nap铆拧 :!dir , 膷铆m zobraz铆拧 obsah adres谩ra.
-
-Pozn谩mka: 啪e ak ukon膷铆拧 pr谩cu s editorom Vim a znovu ho spust铆拧 pr铆kazom
- vim TEST, s煤bor bude k贸pia v媒uky, ke膹 si ho ulo啪il.
-
- 5. Teraz odstr谩艌 s煤bor nap铆san铆m (MS-DOS): :!del TEST
- alebo (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.3 V脻BER TEXTU PRE ULO沤ENIE
-
-
- ** Pre ulo啪enie 膷asti s煤boru, nap铆拧 v pohyb :w FILENAME **
-
- 1. Presu艌 kurozr na tento riadok.
-
- 2. Stla膷 v a presu艌 kurozr na piatu polo啪ku dole. Pozn谩mka, 啪e
- tento text je vyzna膷en媒 (highlighted).
-
- 3. Stla膷 kl谩vesu : . V spodnej 膷asti okna sa objav铆 :'<,'>.
-
- 4. Nap铆拧 w TEST , kde TEST je meno s煤boru, ktor媒 zatial neexistuje.
- Skontroluj, e vid铆拧 :'<,'>w TEST predt媒m ne啪 stla膷铆拧 Enter.
-
- 5. Vim zap铆拧e ozna膷en茅 riadky do s煤boru TEST. Pou啪i :!dir alebo !ls
- pre overenie. Zatial ho e拧te nema啪! Pou啪ijeme ho v 膹al拧ej lekcii.
-
-POZN脕MKA: Stla膷en铆m kl谩vesy v sa spust铆 vizu谩lne ozna膷ovanie.
- M么啪e拧 pohybova钮 kurzorom pre upresnenie vyzna膷en茅ho textu.
- Potom m么啪e拧 pou啪i钮 oper谩tor pre vykonanie nejakej akcie
- s textom. Napr铆klad d zma啪e vyzna膷en媒 text.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 5.4: V脻BER A ZLU膶OVANIE S脷BOROV
-
-
- ** Pre vlo啪enie obsahu s煤boru, nap铆拧 :r FILENAME **
-
- 1. Premiestni kurzor nad tento riadok.
-
-POZN脕MKA: Po vykonan铆 kroku 2 uvid铆拧 text z lekcie 5.3. Potom sa presu艌
- dole, aby si videl t煤to lekciu.
-
- 3. Teraz vlo啪 s煤bor TEST pou啪it铆m pr铆kazu :r TEST kde TEST je n谩zov
- s煤boru. S煤bor, ktor媒 si pou啪il je umiestnen媒 pod riadkom s kurzorom.
-
-POZN脕MKA: M么啪e拧 tie啪 na膷铆ta钮 v媒stup vonkaj拧ieho pr铆kazu. Napr铆klad :r !ls
- na膷铆ta v媒stup pr铆kazu ls a umiestni ho za poz铆ciu kurzora.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 5 ZHRNUTIE
-
-
- 1. :!pr铆kaz spust铆 vonkaj拧铆 pr铆kaz.
-
- Niektor茅 vyu啪ite木n茅 pr铆klady s煤:
- (MS_DOS) (UNIX)
- :!dir :!ls - zobraz铆 obsah adres谩ra
- :!del FILENAME :!rm FILENAME - odstr谩ni s煤bor FILENAME
-
- 2. :w FILENAME ulo啪铆 aktu谩lny s煤bor na disk pod menom FILENAME.
-
- 3. v pohyb :w FILENAME ulo啪铆 vizu谩lne ozna膷en茅 riadky do
- s煤boru FILENAME.
-
- 4. :r FILENAME vyberie z disku s煤bor FILENAME a vlo啪铆 ho do aktu谩lneho
- s煤boru za poz铆ciou kurzora.
-
- 5. :r !dir na膷铆ta v媒stup z pr铆kazu dir a vlo啪铆 ho za poz铆ciu kurzora.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.1: PR脥KAZ OTVORI扭
-
-
-** Nap铆拧 o pre vlo啪enie riadku pod kurzor a prepnutie do vkladacieho m贸du **
-
- 1. Presu艌 kurzor ni啪拧ie na riadok ozna膷en媒 zna膷kou --->.
-
- 2. Nap铆拧 o (mal茅 p铆smeno) pre vlo啪enie 膷ist茅ho riadku pod kurzorm
- a prepnutie do vkladacieho m贸du.
-
- 3. Teraz skop铆ruj riadok ozna膷en媒 ---> a stla膷 <ESC> pre ukon膷enie
- vkladacieho m贸du.
-
----> Po nap铆san铆 o sa kurzor premiestn铆 na vlo啪en媒 riadok do vkladacieho
- m贸du.
-
- 4. Pre otvorenie riadku nad kurzorom, jednotucho nap铆拧 ve木k茅 O ,
- namiesto mal茅ho o. Vysk煤拧aj si to na riadku dole.
-
----> Vlo啪 riadok nad t媒mto nap铆san铆m O, ke膹 kurzor je na tomto riadku.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.2: PR脥KAZ PRIDA扭
-
-
- ** Nap铆拧 a pre vlo啪enie textu ZA kurzor. **
-
- 1. Presu艌 kurzor ni啪拧ie na koniec prv茅ho riadku ozna膷en茅ho zna膷kou --->
-
- 2. Stla膷 kl谩vesu e dokia木 kurozr nieje na konci riadku.
-
- 3. Nap铆拧 a (mal茅 p铆smeno) pre pridanie textu ZA kurzorom.
-
- 4. Dokon膷铆 slovo tak ako je to v druhom riadku. Stla拧 <ESC> pre
- opustenie vkladacieho m贸du.
-
- 5. Pou啪i e na presun na 膹al拧ie nedokon膷en茅 slovo a zopakuj kroky 3 a 4.
-
----> Tento ri ti dovo木uje n谩cv pri谩van testu na koniec riadku.
----> Tento riadok ti dovo木uje n谩cvik prid谩vania textu na koniec riadku.
-
-POZN脕MKA: a, i, A 拧tartuj煤 rovnak媒 vkladac铆 m贸d, jedin媒 rozidel je, kde
- sa znaky vkladaj煤.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.3: IN脻 SPOSOB NAHRADZOVANIA
-
-
- ** Nap铆拧 ve木k茅 R pre nahradenie viac ako jedn茅ho znaku. **
-
- 1. Presu艌 kurzor ni啪拧ie na prv媒 riadok ozna膷en媒 zna膷kou --->. Premiestni
- kurzor na za膷iatok prv茅ho v媒skytu xxx.
-
- 2. Teraz nap铆拧 R a nap铆拧 膷铆slo uveden茅 v druhom riadku, tak啪e
- sa n铆m nahrad铆 p么vodn茅 xxx.
-
- 3. Stla膷 <ESC> pre opustenie nahradzovacieho m贸du. Pozn谩mka, 啪e zvy拧ok
- riadku zostane nezmenen媒.
-
- 4. Zopakuj tieto kroky pre nahradenie zvy拧n媒ch xxx.
-
----> Pridan铆m 123 ku xxx dostane拧 xxx.
----> Pridan铆m 123 ku 456 dostane拧 579.
-
-POZN脕MKA: Nahradzovac铆 m贸d je ako vkladac铆 m贸d, ale ka啪d媒 nap铆san媒 znak
- zma啪e existuj煤ci znak.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Lekcia 6.4: Copy Paste textu
-
- ** pou啪铆 oper谩tor y pre copy textku a p pre jeho paste **
-
- 1. Cho膹 ni啪拧ie na riadok ozna膷en媒 ---> a umiestni kurozr za "a)".
-
- 2. Na拧tartuj vizu谩lny m贸d pou啪it铆m v a presu艌 kurozr pred "first".
-
- 3. Nap铆拧 y pre vystrihnutie (copy) ozna膷en茅ho textu.
-
- 4. Presu艌 kurozr na koniec 膹al拧ieho riadku: j$
-
- 5. Nap铆拧 p pre vlo啪nie (paste) textu. Potom nap铆拧: a druha <ESC>.
-
- 6. Pou啪i vizu谩lny m贸d pre ozna膷enie "polo啪ka.", vystrihni to
- pou啪it铆m y, presu艌 sa na koniec nasleduj煤ceho riadku pou啪it铆m j$
- a vlo啪 sem text pou啪it铆m p.
-
----> a) toto je prv谩 polo啪ka
----> b)
-
-POZN脕MKA: M么啪e拧 pou啪i钮 tie啪 y ako oper谩tor; yw vystrihne jedno slovo.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lekcia 6.5: NASTAVENIE MO沤NOST脥
-
-
-** Nastav mo啪nosti, tak啪e vyh木ad谩vanie alebo nahradzovanie ignoruje
- rozli拧ovanie **
-
-
- 1. Vyh木adaj re钮azec 'ignore' nap铆san铆m:
- /ignore <ENTER>
- Zopakuj vyh木ad谩vanie nieko木ko kr谩t stla膷en铆m kl谩vesy n .
-
- 2. Nastav mo啪nos钮 'ic' (Ignore case) nap铆san铆m pr铆kazu:
- :set ic
-
- 3. Teraz vyh木adaj re钮azec 'ingore' znova stla膷en铆m kl谩vesy n
- Pozn谩mka, 啪e teraz s煤 vyh木adan茅 aj Ignore a IGNORE.
-
- 4. Nastav mo啪nos钮i 'hlsearch' a 'incsearch':
- :set hls is
-
- 5. Teraz spusti vyh木ad谩vac铆 pr铆kaz znovu, a pozri 膷o sa stalo:
- /ignore <ENTER>
-
- 6. Pre opetovn茅 zapnutie rozly拧ovania ve木k媒ch a mal媒ch p铆smen
- nap铆拧: :set noic
-
-POZN脕MKA: Na odstr谩nenie zv媒raznenia v媒razov nap铆拧: :nohlsearch
-POZN脕MKA: Ak chce拧 nerozly拧ova钮 ve木kos钮 p铆smen len pre jedno
- pou啪itie vyh木ad谩vacieho pr铆kazu, pou啪i \c: /ignore\c <ENTER>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 6 ZHRNUTIE
-
-
- 1. Nap铆拧 o pre otvorenie riadku pod kurzorom a 拧tart vkladacieho m贸du.
- Nap铆拧 O pre otvorenie riadku nad kurzorom.
-
- 2. Nap铆拧 a pre vkladanie textu ZA kurzor.
- Nap铆拧 A pre vkladanie textu za koncom riadku.
-
- 3. Pr铆kaz e presunie kurozr na koniec slova
-
- 4. Oper谩tor y vystrihne (skop铆ruje) text, p ho vlo啪铆.
-
- 5. Nap铆sanie ve木k茅ho R prepne do nahradzovacieho m贸du, k媒m nieje
- stla膷en茅 <ESC>.
-
- 6. Nap铆sanie ":set xxx" nastav铆 mo啪nos钮 "xxx". Niektor茅 nastavenia s煤:
- 'ic' 'ignorecase' ignoruje ve木k茅 a mal茅 p铆smen谩 po膷as vyh木ad谩vania.
- 'is' 'incsearch' zobrazuje 膷iasto膷n茅 re钮azce vyh木ad谩van茅ho re钮azca.
- 'hls' 'hlsearch' vyzna膷铆 v拧etky vyh木ad谩van茅 re钮azce.
- M么啪e拧 pou啪i钮 hociktor媒 z dlh媒ch a kr谩tkych n谩zvov mo啪nost铆.
-
- 7. Vlo啪 "no" pred nastavenie pre jeho vypnutie: :set noic
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 7.1: Z脥SKANIE N脕POVEDY
-
-
- ** Pou啪铆vaj on-line syst茅m n谩povedy **
-
- Vim m谩 obsiahly on-line syst茅m n谩povedy. Pre od拧tartovanie, vysk煤拧aj jeden
- z t媒chto troch:
- - stla膷 kl谩vesu <HELP> (ak nejak煤 m谩拧)
- - stla膷 kl谩vesu <F1> (ak nejak煤 m谩拧)
- - nap铆拧 :help <ENTER>
-
- 膶铆taj text v okne n谩povedy pre z铆skanie predstavy ako n谩poveda funguje.
- Nap铆拧 CTRL-W CTRL-W pre skok z jedn茅ho okna do druh茅ho.
- Nap铆拧 :q <ENTER> 膷铆m zatvor铆拧 okno n谩povedy.
-
- M么啪e拧 n谩js钮 help ku hociakej t茅me pridan铆m argumentu ku pr铆kazu ":help".
- Vysk煤拧aj tieto (nezabudni stla膷i钮 <ENTER>):
-
- :help w
- :help c_CTRL-D
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKCIA 7.2: VYTVORENIE 艩TARTOVACIEHO SKRIPTU
-
- ** Zapni funkcie editora Vim **
-
- Vim m谩 omnoho viac funkcii ne啪 Vi, ale ve膷拧ina z nich je implicitne
- vypnut谩. Pre pou啪铆vanie viac Vim funkcii vytvor "vimrc" s煤bor.
-
- 1. Za膷ni editova钮 "vimrc" s煤bor, to z谩vis铆 na pou啪itom syst茅me:
- :e ~/.vimrc pre Unix
- :e $VIM/_vimrc pre MS-Windows
-
- 2. Teraz si pre膷铆taj text pr铆kladu "vimrc" s煤boru:
-
- :r $VIMRUNTIME/vimrc_example.vim
-
- 3. Ulo啪 s煤bor:
- :w
-
- Pri nasleduj煤com 拧tarte editora Vim sa pou啪ije zv媒raz艌ovanie syntaxe.
- Do "vimrc" s煤boru m么啪e拧 prida钮 v拧etky svoje uprednost艌ovan茅 nastavenia.
- Pre viac inform谩cii nap铆拧 :help vimrc-intro
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- LEKCIA 7.3 DOKON膶ENIE
-
- ** Dokon膷i pr铆kaz na pr铆kazovom riadku pou啪it铆m CTRL-D a <TAB> **
-
- 1. Uisti sa, 啪e Vim nieje v kompatibilnom m贸de: :set nocp
-
- 2. Pozri sa ak茅 s煤bory sa nach谩dzaj煤 v adres谩ri: :!ls alebo :!dir
-
- 3. Nap铆拧 za膷iatok pr铆kazu: :e
-
- 4. Stla膷 CTRL-D a Vim zobraz铆 zoznam pr铆kazov za膷铆naj煤cich "e".
-
- 5. Stla膷 <TAB> a Vim dokon膷铆 meno pr铆kazu na ":edit".
-
- 6. Teraz pridaj medzern铆k a za膷iatok mena existuj煤ceho s煤boru:
- :edit FIL
-
- 7. Stla膷 <TAB>. Vim dokon膷铆 meno (ak je jedine膷n茅).
-
-POZN脕MKA: Dokon膷ovanie funguje pre ve木a pr铆kazov. Vysk煤拧aj stla膷enie
- CTRL-D a <TAB>. 艩peci谩lne je to u啪ito膷n茅 pre pr铆kaz :help.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- LEKCIA 7 ZHRNUTIE
-
- 1. Nap铆拧 :help alebo stla膷 <F1> alebo <Help> pre otvorenie okna n谩povedy.
-
- 2. Nap铆拧 :help pr铆kaz pre vyh木adanie n谩povedy ku pr铆kazu pr铆kaz.
-
- 3. Nap铆拧 CTRL-W CTRL-W na presko膷enie do in茅ho okna.
-
- 4. Nap铆拧 :q pre zatvorenie okna n谩povedy
-
- 5. Vytvor 拧tartovac铆 skript vimrc pre udr啪anie uprednost艌ovan媒ch nastaven铆.
-
- 6. Po膷as p铆sania pr铆kazu : stla膷 CTRL-D pre zobrazenie dokon膷en铆.
- Stla膷 <TAB> pre pou啪itie jedn茅ho z dokon膷en铆.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-
- Toto vymedzuje v媒uku Vimu. Toto je ur膷en茅 pre strucn媒 preh木ad o editore
- Vim, 煤plne posta膷uj煤ce pre 木ahk茅 a obstojn茅 pou啪铆vanie tohto editora.
- T谩to v媒uka je 膹aleko od kompletnosti, preto啪e Vim m谩 omnoho viacej pr铆kazov.
- Ako 膹al拧ie si pre膷铆taj u啪铆vat木sk媒 manu谩l: ":help user-manual".
-
- Pre 膹al拧ie 膷铆tanie a 拧t煤dium je odpor煤膷an谩 kniha:
- Vim - Vi Improved - od Steve Oualline
- Vydavate木: New Riders
- Prv谩 kniha ur膷en谩 pre Vim. 艩peci谩lne vhodn谩 pre za膷iato膷n铆kov.
- Obsahuje mno啪stvo pr铆kladov a obr谩zkov.
- Pozri na http://iccf-holland.org/click5.html
-
- T谩to kniha je star拧ia a je viac o Vi ako o Vim, ale je tie啪 odpor煤膷an谩:
- Learning the Vi Editor - od Linda Lamb
- Vydavate木: O'Reilly & Associates Inc.
- Je to dobr谩 kniha pre z铆skanie vedomost铆 o pr谩ci s editorom Vi.
- 艩ieste vydanie obsahuje tie啪 inform谩cie o editore Vim.
-
- T谩to v媒uka bola nap铆san谩 autormi Michael C. Pierce a Robert K. Ware,
- Colorado School of Mines s pou啪it铆m my拧lienok dodan媒mi od Charles Smith,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Modifikovan茅 pre Vim od Bram Moolenaar.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Preklad do Sloven膷iny: 慕ubo拧 膶elko
- e-mail: celbos@inmail.sk
- Last Change: 2006 Apr 18
- encoding: iso8859-2
diff --git a/runtime/tutor/tutor.sv b/runtime/tutor/tutor.sv
deleted file mode 100644
index 59f0f65f9..000000000
--- a/runtime/tutor/tutor.sv
+++ /dev/null
@@ -1,830 +0,0 @@
-===============================================================================
-= V l k o m m e n t i l l h a n d l e d n i n g e n i V i m - Ver. 1.5 =
-===============================================================================
-
- Vim 鋜 en v鋖digt kraftfull redigerare som har m錸ga kommandon, alltf鰎
- m錸ga att f鰎klara i en handledning som denna. Den h鋜 handledningen 鋜
- gjord f鰎 att f鰎klara tillr鋍kligt m錸ga kommandon s att du enkelt ska
- kunna anv鋘da Vim som en redigerare f鰎 alla 鋘dam錶.
-
- Den ber鋕nade tiden f鰎 att slutf鰎a denna handledning 鋜 25-30 minuter,
- beroende p hur mycket tid som l鋑gs ned p experimentering.
-
- Kommandona i lektionerna kommer att modifiera texten. G鰎 en kopia av den
- h鋜 filen att 鰒a p (om du startade "vimtutor 鋜 det h鋜 redan en kopia).
-
- Det 鋜 viktigt att komma ih錱 att den h鋜 handledningen 鋜 konstruerad
- att l鋜a vid anv鋘dning. Det betyder att du m錽te k鰎a kommandona f鰎 att
- l鋜a dig dem ordentligt. Om du bara l鋝er texten s kommer du att gl鰉ma
- kommandona!
-
- F鰎s鋕ra dig nu om att din Caps-Lock tangent INTE 鋜 aktiv och tryck p
- j-tangenten tillr鋍kligt m錸ga g錸ger f鰎 att f鰎flytta mark鰎en s att
- Lektion 1.1 fyller sk鋜men helt.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.1: FLYTTA MARK諶EN
-
-
- ** F鰎 att flytta mark鰎en, tryck p tangenterna h,j,k,l som indikerat. **
- ^
- k Tips:
- < h l > h-tangenten 鋜 till v鋘ster och flyttar till v鋘ster.
- j l-tangenten 鋜 till h鰃er och flyttar till h鰃er.
- v j-tangenten ser ut som en pil ned.
- 1. Flytta runt mark鰎en p sk鋜men tills du k鋘ner dig bekv鋗.
-
- 2. H錶l ned tangenten pil ned (j) tills att den repeterar.
----> Nu vet du hur du tar dig till n鋝ta lektion.
-
- 3. Flytta till Lektion 1.2, med hj鋖p av ned tangenten.
-
-Notera: Om du 鋜 os鋕er p n錱onting du skrev, tryck <ESC> f鰎 att placera dig
- dig i Normal-l鋑e. Skriv sedan om kommandot.
-
-Notera: Piltangenterna borde ocks fungera. Men om du anv鋘der hjkl s kommer
- du att kunna flytta omkring mycket snabbare, n鋜 du v鋖 vant dig vid
- det.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.2: STARTA OCH AVSLUTA VIM
-
-
- !! NOTERA: Innan du utf鰎 n錱on av punkterna nedan, l鋝 hela lektionen!!
-
- 1. Tryck <ESC>-tangenten (f鰎 att se till att du 鋜 i Normal-l鋑e).
-
- 2. Skriv: :q! <ENTER>.
-
----> Detta avslutar redigeraren UTAN att spara n錱ra 鋘dringar du gjort.
- Om du vill spara 鋘dringarna och avsluta skriv:
- :wq <ENTER>
-
- 3. N鋜 du ser skal-prompten, skriv kommandot som tog dig in i den h鋜
- handledningen. Det kan vara: vimtutor <ENTER>
- Normalt vill du anv鋘da: vim tutor <ENTER>
-
----> 'vim' betyder 鰌pna redigeraren vim, 'tutor' 鋜 filen du vill redigera.
-
- 4. Om du har memorerat dessa steg och k鋘ner dig sj鋖vs鋕er, k鰎 d stegen
- 1 till 3 f鰎 att avsluta och starta om redigeraren. Flytta sedan ned
- mark鰎en till Lektion 1.3.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.3: TEXT REDIGERING - BORTTAGNING
-
-
-** N鋜 du 鋜 i Normal-l鋑e tryck x f鰎 att ta bort tecknet under mark鰎en. **
-
- 1. Flytta mark鰎en till raden nedan med markeringen --->.
-
- 2. F鰎 att r鋞ta felen, flytta mark鰎en tills den st錼 p tecknet som ska
- tas bort. fix the errors, move the cursor until it is on top of the
-
- 3. Tryck p x-tangenten f鰎 att ta bort det felaktiga tecknet.
-
- 4. Upprepa steg 2 till 4 tills meningen 鋜 korrekt.
-
----> Kkon hoppadee 鰒verr m邋nen.
-
- 5. Nu n鋜 raden 鋜 korrekt, g till Lektion 1.4.
-
-NOTERA: N鋜 du g錼 igenom den h鋜 handledningen, f鰎s鰇 inte att memorera, l鋜
- genom anv鋘dning.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 1.4: TEXT REDIGERING - INFOGNING
-
-
- ** N鋜 du 鋜 i Normal-l鋑e tryck i f鰎 att infoga text. **
-
- 1. Flytta mark鰎en till den f鰎sta raden nedan med markeringen --->.
-
- 2. F鰎 att g鰎a den f鰎sta raden likadan som den andra, flytta mark鰎en till
- det f鰎sta tecknet EFTER d鋜 text ska infogas.
-
- 3. Tryck i och skriv in det som saknas.
-
- 4. N鋜 du r鋞tat ett fel tryck <ESC> f鰎 att 錿erg till Normal-l鋑e.
- Upprepa steg 2 till 4 f鰎 att r鋞ta meningen.
-
----> Det sakns h鋜 .
----> Det saknas lite text fr錸 den h鋜 raden.
-
- 5. N鋜 du k鋘ner dig bekv鋗 med att infoga text, g till sammanfattningen
- nedan.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 1 SAMMANFATTNING
-
-
- 1. Mark鰎en flyttas genom att anv鋘da piltangenterna eller hjkl-tangenterna.
- h (v鋘ster) j (ned) k (upp) l (h鰃er)
-
- 2. F鰎 att starta Vim (fr錸 %-prompten) skriv: vim FILNAMN <ENTER>
-
- 3. F鰎 att avsluta Vim skriv: <ESC> :q! <ENTER> f鰎 att kasta 鋘dringar.
- ELLER skriv: <ESC> :wq <ENTER> f鰎 att spara 鋘dringar.
-
- 4. F鰎 att ta bort tecknet under mark鰎en i Normal-l鋑e skriv: x
-
- 5. F鰎 att infoga text vid mark鰎en i Normal-l鋑e skriv:
- i skriv in text <ESC>
-
-NOTERA: Genom att trycka <ESC> kommer du att placeras i Normal-l鋑e eller
- avbryta ett delvis f鋜digskrivet kommando.
-
-Forts鋞t nu med Lektion 2.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.1: BORTTAGNINGSKOMMANDON
-
-
- ** Skriv dw f鰎 att radera till slutet av ett ord. **
-
- 1. Tryck <ESC> f鰎 att f鰎s鋕ra dig om att du 鋜 i Normal-l鋑e.
-
- 2. Flytta mark鰎en till raden nedan markerad --->.
-
- 3. Flytta mark鰎en till b鰎jan av ett ord som m錽te raderas.
-
- 4. Skriv dw f鰎 att radera ordet.
-
- NOTERA: Bokst鋠erna dw kommer att synas p den sista raden p sk鋜men n鋜
- du skriver dem. Om du skrev n錱ot fel, tryck <ESC> och b鰎ja om.
-
----> Det 鋜 ett n錱ra ord roliga att som inte h鰎 hemma i den h鋜 meningen.
-
- 5. Upprepa stegen 3 och 4 tills meningen 鋜 korrekt och g till Lektion 2.2.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.2: FLER BORTTAGNINGSKOMMANDON
-
-
- ** Skriv d$ f鰎 att radera till slutet p raden. **
-
- 1. Tryck <ESC> f鰎 att f鰎s鋕ra dig om att du 鋜 i Normal-l鋑e.
-
- 2. Flytta mark鰎en till raden nedan markerad --->.
-
- 3. Flytta mark鰎en till slutet p den r鋞ta raden (EFTER den f鰎sta . ).
-
- 4. Skriv d$ f鰎 att radera till slutet p raden.
-
----> N錱on skrev slutet p den h鋜 raden tv g錸ger. den h鋜 raden tv g錸ger.
-
-
- 5. G vidare till Lektion 2.3 f鰎 att f鰎st vad det 鋜 som h鋘der.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 2.3: KOMMANDON OCH OBJEKT
-
-
- Syntaxen f鰎 d raderingskommandot 鋜 f鰈jande:
-
- [nummer] d objekt ELLER d [nummer] objekt
- Var:
- nummer - 鋜 antalet upprepningar av kommandot (valfritt, standard=1).
- d - 鋜 kommandot f鰎 att radera.
- objekt - 鋜 vad kommandot kommer att operera p (listade nedan).
-
- En kort lista 鰒er objekt:
- w - fr錸 mark鰎en till slutet av ordet, inklusive blanksteget.
- e - fr錸 mark鰎en till slutet av ordet, EJ inklusive blanksteget.
- $ - fr錸 mark鰎en till slutet p raden.
-
-NOTERA: F鰎 den 鋠entyrslystne, genom att bara trycka p objektet i
- Normal-l鋑e (utan kommando) s kommer mark鰎en att flyttas som
- angivet i objektlistan.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.4: ETT UNDANTAG TILL 'KOMMANDO-OBJEKT'
-
-
- ** Skriv dd f鰎 att radera hela raden. **
-
- P grund av hur vanligt det 鋜 att ta bort hela rader, valde upphovsmannen
- till Vi att det skulle vara enklare att bara trycka d tv g錸ger i rad f鰎
- att ta bort en rad.
-
- 1. Flytta mark鰎en till den andra raden i frasen nedan.
- 2. Skriv dd f鰎 att radera raden.
- 3. Flytta nu till den fj鋜de raden.
- 4. Skriv 2dd (kom ih錱: nummer-kommando-objekt) f鰎 att radera de tv
- raderna.
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 2.5: 臢GRA-KOMMANDOT
-
-
-** Skriv u f鰎 att 錸gra det senaste kommandona, U f鰎 att fixa en hel rad. **
-
- 1. Flytta mark鰎en till slutet av raden nedan markerad ---> och placera den
- p det f鰎sta felet.
- 2. Skriv x f鰎 att radera den f鰎sta felaktiga tecknet.
- 3. Skriv nu u f鰎 att 錸gra det senaste k鰎da kommandot.
- 4. R鋞ta den h鋜 g錸gen alla felen p raden med x-kommandot.
- 5. Skriv nu U f鰎 att 錿erst鋖la raden till dess ursprungliga utseende.
- 6. Skriv nu u n錱ra g錸ger f鰎 att 錸gra U och tidigare kommandon.
- 7. Tryck nu CTRL-R (h錶l inne CTRL samtidigt som du trycker R) n錱ra g錸ger
- f鰎 att upprepa kommandona (錸gra 錸gringarna).
-
----> Fiixa felen pp deen h滗r meningen och 錿erskapa dem med 錸gra.
-
- 8. Det h鋜 鋜 v鋖digt anv鋘dbara kommandon. G nu vidare till
- Lektion 2 Sammanfattning.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 2 SAMMANFATTNING
-
-
- 1. F鰎 att radera fr錸 mark鰎en till slutet av ett ord skriv: dw
-
- 2. F鰎 att radera fr錸 mark鰎en till slutet av en rad skriv: d$
-
- 3. F鰎 att radera en hel rad skriv: dd
-
- 4. Syntaxen f鰎 ett kommando i Normal-l鋑e 鋜:
-
- [nummer] kommando objekt ELLER kommando [nummer] objekt
- d鋜:
- nummer - 鋜 hur m錸ga g錸ger kommandot kommandot ska repeteras
- kommando - 鋜 vad som ska g鰎as, t.ex. d f鰎 att radera
- objekt - 鋜 vad kommandot ska operera p, som t.ex. w (ord),
- $ (till slutet av raden), etc.
-
- 5. F鰎 att 錸gra tidigare kommandon, skriv: u (litet u)
- F鰎 att 錸gra alla tidigare 鋘dringar p en rad skriv: U (stort U)
- F鰎 att 錸gra 錸gringar tryck: CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.1: KLISTRA IN-KOMMANDOT
-
-
- ** Skriv p f鰎 att klistra in den senaste raderingen efter mark鰎en. **
-
- 1. Flytta mark鰎en till den f鰎sta raden i listan nedan.
-
- 2. Skriv dd f鰎 att radera raden och lagra den i Vims buffert.
-
- 3. Flytta mark鰎en till raden OVANF諶 d鋜 den raderade raden borde vara.
-
- 4. N鋜 du 鋜 i Normal-l鋑e, skriv p f鰎 att byta ut raden.
-
- 5. Repetera stegen 2 till 4 f鰎 att klistra in alla rader i r鋞t ordning.
-
- d) Kan du l鋜a dig ocks?
- b) Violetter 鋜 bl,
- c) Intelligens f錽 genom l鋜dom,
- a) Rosor 鋜 r鰀a,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lesson 3.2: ERS腡T-KOMMANDOT
-
-
- ** Skriv r och ett tecken f鰎 att ers鋞ta tecknet under mark鰎en. **
-
- 1. Flytta mark鰎en till den f鰎sta raden nedan markerad --->.
-
- 2. Flytta mark鰎en s att den st錼 p det f鰎sta felet.
-
- 3. Skriv r och sedan det tecken som borde ers鋞ta felet.
-
- 4. Repetera steg 2 och 3 tills den f鰎sta raden 鋜 korrekt.
-
----> N鋜 drn h鋜 ruden skrevs, trickte n錱on p fil knappar!
----> N鋜 den h鋜 raden skrevs, tryckte n錱on p fel knappar!
-
- 5. G nu vidare till Lektion 3.2.
-
-NOTERA: Kom ih錱 att du skall l鋜a dig genom anv鋘dning, inte genom memorering.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.3: 腘DRA-KOMMANDOT
-
-
- ** F鰎 att 鋘dra en del eller ett helt ord, skriv cw . **
-
- 1. Flytta mark鰎en till den f鰎sta redan nedan markerad --->.
-
- 2. Placera mark鰎en p d i rdrtn.
-
- 3. Skriv cw och det r鋞ta ordet (i det h鋜 fallet, skriv "aden".)
-
- 4. Tryck <ESC> och flytta mark鰎en till n鋝ta fel (det f鰎sta tecknet som
- ska 鋘dras.)
-
- 5. Repetera steg 3 och 4 tills den f鰎sta raden 鋜 likadan som den andra.
-
----> Den h鋜 rdrtn har n錱ra otf som brhotrt 鋘dras mrf 鋘dra-komjendit.
----> Den h鋜 raden har n錱ra ord som beh鰒er 鋘dras med 鋘dra-kommandot.
-
-Notera att cw inte bara 鋘drar ordet, utan 鋠en placerar dig i infogningsl鋑e.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 3.4: FLER 腘DRINGAR MED c
-
-
- ** 膎dra-kommandot anv鋘ds p samma objekt som radera. **
-
- 1. 膎dra-kommandot fungerar p samma s鋞t som radera. Syntaxen 鋜:
-
- [nummer] c objekt ELLER c [nummer] objekt
-
- 2. Objekten 鋜 ocks de samma, som t.ex. w (ord), $ (slutet av raden), etc.
-
- 3. Flytta till den f鰎sta raden nedan markerad -->.
-
- 4. Flytta mark鰎en till det f鰎sta felet.
-
- 5. Skriv c$ f鰎 att g鰎a resten av raden likadan som den andra och tryck
- <ESC>.
-
----> Slutet p den h鋜 raden beh鰒er hj鋖p med att f den att likna den andra.
----> Slutet p den h鋜 raden beh鰒er r鋞tas till med c$-kommandot.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 3 SAMMANFATTNING
-
-
- 1. F鰎 att ers鋞ta text som redan har blivit raderad, skriv p .
- Detta klistrar in den raderade texten EFTER mark鰎en (om en rad raderades
- kommer den att hamna p raden under mark鰎en.
-
- 2. F鰎 att ers鋞ta tecknet under mark鰎en, skriv r och sedan tecknet som
- kommer att ers鋞ta orginalet.
-
- 3. 膎dra-kommandot l錿er dig 鋘dra det angivna objektet fr錸 mark鰎en till
- slutet p objektet. eg. Skriv cw f鰎 att 鋘dra fr錸 mark鰎en till slutet
- p ordet, c$ f鰎 att 鋘dra till slutet p en rad.
-
- 4. Syntaxen f鰎 鋘dra-kommandot 鋜:
-
- [nummer] c objekt ELLER c [nummer] objekt
-
-G nu till n鋝ta lektion.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.1: POSITION OCH FILSTATUS
-
-
- ** Tryck CTRL-g f鰎 att visa din position i filen och filstatusen.
- Tryck SHIFT-G f鰎 att flytta till en rad i filen. **
-
- Notera: L鋝a hela den lektion innan du utf鰎 n錱ot av stegen!!
-
- 1. H錶l ned Ctrl-tangenten och tryck g . En statusrad med filnamn och raden
- du befinner dig p kommer att synas. Kom ih錱 radnummret till Steg 3.
-
- 2. Tryck shift-G f鰎 att flytta mark鰎en till slutet p filen.
-
- 3. Skriv in nummret p raden du var p och tryck sedan shift-G. Detta kommer
- att ta dig tillbaka till raden du var p n鋜 du f鰎st tryckte Ctrl-g.
- (N鋜 du skriver in nummren, kommer de INTE att visas p sk鋜men.)
-
- 4. Om du k鋘ner dig s鋕er p det h鋜, utf鰎 steg 1 till 3.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.2: S諯-KOMMANDOT
-
-
- ** Skriv / f鰈jt av en fras f鰎 att s鰇a efter frasen. **
-
- 1. I Normal-l鋑e skriv /-tecknet. Notera att det och mark鰎en blir synlig
- l鋘gst ned p sk鋜men precis som med :-kommandot.
-
- 2. Skriv nu "feeel" <ENTER>. Det h鋜 鋜 ordet du vill s鰇a efter.
-
- 3. F鰎 att s鰇a efter samma fras igen, tryck helt enkelt n .
- F鰎 att s鰇a efter samma fras igen i motsatt riktning, tryck Shift-N .
-
- 4. Om du vill s鰇a efter en fras bak錿 i filen, anv鋘d kommandot ? ist鋖let
- f鰎 /.
-
----> "feeel" 鋜 inte r鋞t s鋞t att stava fel: feeel 鋜 ett fel.
-
-Notera: N鋜 s鰇ningen n錼 slutet p filen kommer den att forts鋞ta vid b鰎jan.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.3: S諯NING EFTER MATCHANDE PARENTESER
-
-
- ** Skriv % f鰎 att hitta en matchande ),], or } . **
-
- 1. Placera mark鰎en p n錱on av (, [, or { p raden nedan markerad --->.
-
- 2. Skriv nu %-tecknet.
-
- 3. Mark鰎en borde vara p den matchande parentesen eller hakparentesen.
-
- 4. Skriv % f鰎 att flytta mark鰎en tillbaka till den f鰎sta hakparentesen
- (med matchning).
-
----> Det ( h鋜 鋜 en testrad med (, [ ] och { } i den. ))
-
-Notera: Det h鋜 鋜 v鋖digt anv鋘dbart vid avlusning av ett program med icke
- matchande parenteser!
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 4.4: ETT S腡T ATT 腘DRA FEL
-
-
- ** Skriv :s/gammalt/nytt/g f鰎 att ers鋞ta "gammalt" med "nytt". **
-
- 1. Flytta mark鰎en till raden nedan markerad --->.
-
- 2. Skriv :s/denn/den <ENTER> . Notera att det h鋜 kommandot bara 鋘drar den
- f鰎sta f鰎ekomsten p raden.
-
- 3. Skriv nu :s/denn/den/g vilket betyder ers鋞t globalt p raden.
- Det 鋘drar alla f鰎ekomster p raden.
-
----> denn b鋝ta tiden att se blommor blomma 鋜 denn p v錼en.
-
- 4. F鰎 att 鋘dra alla f鰎ekomster av en teckenstr鋘g mellan tv rader,
- skriv :#,#s/gammalt/nytt/g d鋜 #,# 鋜 de tv radernas radnummer.
- Skriv :%s/gammtl/nytt/g f鰎 att 鋘dra varje f鰎ekomst i hela filen.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 4 SAMMANFATTNING
-
-
- 1. Ctrl-g visar din position i filen och filstatusen.
- Shift-G flyttar till slutet av filen. Ett radnummer f鰈jt Shift-G
- flyttar till det radnummret.
-
- 2. Skriver man / f鰈jt av en fras s鰇s det FRAMM臫 efter frasen.
- Skriver man ? f鰈jt av en fras s鰇s det BAK臫 efter frasen.
- Efter en s鰇ning skriv n f鰎 att hitta n鋝ta f鰎ekomst i samma riktning
- eller Shift-N f鰎 att s鰇a i den motsatta riktningen.
-
- 3. Skriver man % n鋜 mark鰎en 鋜 p ett (,),[,],{, eller } hittas dess
- matchande par.
-
- 4. F鰎 att ers鋞ta den f鰎sta gammalt med nytt p en rad skriv :s/gammlt/nytt
- F鰎 att ers鋞ta alla gammlt med nytt p en rad skriv :s/gammlt/nytt/g
- F鰎 att ers鋞ta fraser mellan rad # och rad # skriv :#,#s/gammlt/nytt/g
- F鰎 att ers鋞ta alla f鰎ekomster i filen skriv :%s/gammlt/nytt/g
- F鰎 att bekr鋐ta varje g錸g l鋑g till "c" :%s/gammlt/nytt/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.1: HUR MAN K諶 ETT EXTERNT KOMMANDO
-
-
- ** Skriv :! f鰈jt av ett externt kommando f鰎 att k鰎a det kommandot. **
-
- 1. Skriv det v鋖bekanta kommandot : f鰎 att placera mark鰎en l鋘gst ned
- p sk鋜men p sk鋜men. Detta l錿er dig skriva in ett kommando.
-
- 2. Skriv nu ! (utropstecken). Detta l錿er dig k鰎a ett godtyckligt externt
- skalkommando.
-
- 3. Som ett exempel skriv ls efter ! och tryck sedan <ENTER>. Detta kommer
- att visa dig en listning av din katalog, precis som om du k鰎t det vid
- skalprompten. Anv鋘d :!dir om ls inte fungerar.
-
-Notera: Det 鋜 m鰆ligt att k鰎a vilket externt kommando som helst p det h鋜
- s鋞tet.
-
-Notera: Alla :-kommandon m錽te avslutas med att trycka p <ENTER>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.2: MER OM ATT SPARA FILER
-
-
- ** F鰎 att spara 鋘dringar gjorda i en fil, skriv :w FILNAMN. **
-
- 1. Skriv :!dir eller :!ls f鰎 att f en listning av din katalog.
- Du vet redan att du m錽te trycka <ENTER> efter det h鋜.
-
- 2. V鋖j ett filnamn som inte redan existerar, som t.ex. TEST.
-
- 3. Skriv nu: :w TEST (d鋜 TEST 鋜 filnamnet du valt.)
-
- 4. Det h鋜 sparar hela filen (Vim handledningen) under namnet TEST.
- F鰎 att verifiera detta, skriv :!dir igen f鰎 att se din katalog
-
-Notera: Om du skulle avsluta Vim och sedan 鰌pna igen med filnamnet TEST s
- skulle filen vara en exakt kopia av handledningen n鋜 du sparade den.
-
- 5. Ta nu bort filen genom att skriva (MS-DOS): :!del TEST
- eller (Unix): :!rm TEST
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.3: ETT SELEKTIVT SPARA-KOMMANDO
-
-
- ** F鰎 att spara en del av en fil, skriv :#,# w FILNAMN **
-
- 1. 膎nu en g錸g, skriv :!dir eller :!ls f鰎 att f en listning av din
- katalog och v鋖j ett passande filnamn som t.ex. TEST.
-
- 2. Flytta mark鰎en h鰃st upp p den h鋜 sidan och tryck Ctrl-g f鰎 att f
- reda p radnumret p den raden. KOM IH臛 DET NUMMRET!
-
- 3. Flytta nu l鋘gst ned p sidan och skriv Ctrl-g igen.
- KOM IH臛 DET RADNUMMRET OCKS!
-
- 4. F鰎 att BARA spara en sektion till en fil, skriv :#,# w TEST
- d鋜 #,# 鋜 de tv nummren du kom ih錱 (toppen, botten) och TEST 鋜
- ditt filnamn.
-
- 5. 膎nu en g錸g, kolla s att filen 鋜 d鋜 med :!dir men radera den INTE.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 5.4: TA EMOT OCH F諶ENA FILER
-
-
- ** F鰎 att infoga inneh錶let av en fil, skriv :r FILNAMN **
-
- 1. Skriv :!dir f鰎 att f鰎s鋕ra dig om att TEST-filen fr錸 tidigare
- fortfarande 鋜 kvar.
-
- 2. Placera mark鰎en h鰃st upp p den h鋜 sidan.
-
-NOTERA: Efter att du k鰎t Steg 3 kommer du att se Lektion 5.3.
- Flytta d NED till den h鋜 lektionen igen.
-
- 3. Ta nu emot din TEST-fil med kommandot :r TEST d鋜 TEST 鋜 namnet p
- filen.
-
-NOTERA: Filen du tar emot placeras d鋜 mark鰎en 鋜 placerad.
-
- 4. F鰎 att verifiera att filen togs emot, g tillbaka och notera att det nu
- finns tv kopior av Lektion 5.3, orginalet och filversionen.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 5 SAMMANFATTNING
-
-
- 1. :!kommando k鰎 ett externt kommando.
-
- N錱ra anv鋘dbara exempel 鋜:
- (MS-DOS) (Unix)
- :!dir :!ls - visar en kataloglistning.
- :!del FILNAMN :!rm FILNAMN - tar bort filen FILNAMN.
-
- 2. :w FILNAMN sparar den aktuella Vim-filen med namnet FILNAMN.
-
- 3. :#,#w FILNAMN sparar raderna # till # i filen FILNAMN.
-
- 4. :r FILNAMN tar emot filen FILNAMN och infogar den i den aktuella filen
- efter mark鰎en.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.1: 諴PNA-KOMMANDOT
-
-
- ** Skriv o f鰎 att 鰌pna en rad under mark鰎en och placera dig i
- Infoga-l鋑e. **
-
- 1. Flytta mark鰎en till raden nedan markerad --->.
-
- 2. Skriv o (litet o) f鰎 att 鰌pna upp en rad NEDANF諶 mark鰎en och placera
- dig i Infoga-mode.
-
- 3. Kopiera nu raden markerad ---> och tryck <ESC> f鰎 att avsluta
- Infoga-l鋑et.
-
----> Efter du skrivit o placerad mark鰎en p en 鰌pen rad i Infoga-l鋑e.
-
- 4. F鰎 att 鰌pna upp en rad OVANF諶 mark鰎en, skriv ett stort O , ist鋖let
- f鰎 ett litet o. Pr鰒a detta p raden nedan.
-謕pna upp en rad ovanf鰎 denna genom att trycka Shift-O n鋜 mark鰎en st錼 h鋜.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.2: L腉G TILL-KOMMANDOT
-
-
- ** Skriv a f鰎 att infoga text EFTER mark鰎en. **
-
- 1. Flytta mark鰎en till slutet av den f鰎sta raden nedan markerad ---> genom
- att skriv $ i Normal-l鋑e.
-
- 2. Skriv ett a (litet a) f鰎 att l鋑ga till text EFTER tecknet under
- mark鰎en. (Stort A l鋑ger till i slutet av raden.)
-
-Notera: Detta undviker att beh鰒a skriva i , det sista tecknet, texten att
- infoga, <ESC>, h鰃erpil, och slutligen, x, bara f鰎 att l鋑ga till i
- slutet p en rad!
-
- 3. G鰎 nu f鋜digt den f鰎sta raden. Notera ocks att l鋑ga till 鋜 likadant
- som Infoga-l鋑e, enda skillnaden 鋜 positionen d鋜 texten blir infogad.
-
----> H鋜 kan du tr鋘a
----> H鋜 kan du tr鋘a p att l鋑ga till text i slutet p en rad.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.3: EN ANNAN VERSION AV ERS腡T
-
-
- ** Skriv ett stort R f鰎 att ers鋞ta fler 鋘 ett tecken. **
-
- 1. Flytta mark鰎en till den f鰎sta raden nedan markerad --->.
-
- 2. Placera mark鰎en vid b鰎jan av det f鰎sta ordet som 鋜 annorlunda j鋗f鰎t
- med den andra raden markerad ---> (ordet "sista").
-
- 3. Skriv nu R och ers鋞t resten av texten p den f鰎sta raden genom att
- skriva 鰒er den gamla texten s att den f鰎sta raden blir likadan som
- den andra.
-
----> F鰎 att f den f鰎sta raden lika som den sista, anv鋘d tangenterna.
----> F鰎 att f den f鰎sta raden lika som den andra, skriv R och den nya texten.
-
- 4. Notera att n鋜 du trycker <ESC> f鰎 att avsluta, s blir eventuell
- of鰎鋘drad text kvar.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Lektion 6.4: S腡T FLAGGOR
-
- ** S鋞t en flagga s att en s鰇ning eller ers鋞tning ignorerar storlek **
-
- 1. S鰇 efter "ignore" genom att skriva:
- /ignore
- Repetera flera g錸ger genom att trycka p n-tangenten
-
- 2. S鋞t 'ic' (Ignore Case) flaggan genom att skriva:
- :set ic
-
- 3. S鰇 nu efter "ignore" igen genom att trycka: n
- Repeat search several more times by hitting the n key
-
- 4. S鋞t 'hlsearch' and 'incsearch' flaggorna:
- :set hls is
-
- 5. Skriv nu in s鰇-kommandot igen, och se vad som h鋘der:
- /ignore
-
- 6. F鰎 att ta bort framh鋠ningen av tr鋐far, skriv
- :nohlsearch
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 6 SAMMANFATTNING
-
-
- 1. Genom att skriva o 鰌nnas en rad NEDANF諶 mark鰎en och mark鰎en placeras
- p den 鰌pna raden i Infoga-l鋑e.
- Genom att skriva ett stort O 鰌pnas raden OVANF諶 raden som mark鰎en 鋜
- p.
-
- 2. Skriv ett a f鰎 att infoga text EFTER tecknet som mark鰎en st錼 p.
- Genom att skriva ett stort A l鋑gs text automatiskt till i slutet p
- raden.
-
- 3. Genom att skriva ett stort R hamnar du i Ers鋞t-l鋑e till <ESC> trycks
- f鰎 att avsluta.
-
- 4. Genom att skriva ":set xxx" s鋞ts flaggan "xxx"
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 7: ON-LINE HJ腖P-KOMMANDON
-
-
- ** Anv鋘d on-line hj鋖psystemet **
-
- Vim har ett omfattande on-line hj鋖psystem. F鰎 att komma ig錸g pr鰒a ett av
- dessa tre:
- - tryck <HELP> tangenten (om du har n錱on)
- - tryck <F1> tangenten (om du har n錱on)
- - skriv :help <ENTER>
-
- Skriv :q <ENTER> f鰎 att str鋘ga hj鋖pf鰊stret.
-
- Du kan hitta hj鋖p om n鋝tan allting, genom att ge ett argument till
- ":help" kommandot. Pr鰒a dessa (gl鰉 inte att trycka <ENTER>):
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- LEKTION 8: SKAPA ETT UPPSTARTSSKRIPT
-
- ** Aktivera Vim- funktioner **
-
- Vim har m錸ga fler funktioner 鋘 Vi, men de flesta av dem 鋜 inaktiverade som
- standard. F鰎 att b鰎ja anv鋘da fler funktioner m錽te du skapa en "vimrc"-fil.
-
- 1. B鰎ja redigera "vimrc"-filen, detta beror p ditt system:
- :edit ~/.vimrc f鰎 Unix
- :edit $VIM/_vimrc f鰎 MS-Windows
-
- 2. L鋝 nu texten i exempel "vimrc"-filen:
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Spara filen med:
-
- :write
-
- N鋝ta g錸g du startar Vim kommer den att anv鋘da syntaxframh鋠ning.
- Du kan l鋑ga till alla inst鋖lningar du f鰎edrar till den h鋜 "vimrc"-filen.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Detta avslutar handledningen i Vim. Den var avsedd att ge en kort 鰒ersikt av
- redigeraren Vim, bara tillr鋍kligt f鰎 att du ska kunna anv鋘da redigeraren
- relativt enkelt. Den 鋜 l錸gt ifr錸 komplett eftersom Vim har m錸ga m錸ga fler
- kommandon. L鋝 anv鋘darmanualen h鋜n鋝t: ":help user-manual".
-
- F鰎 vidare l鋝ning rekommenderas den h鋜 boken:
- Vim - Vi Improved - av Steve Oualline
- F鰎lag: New Riders
- Den f鰎sta boken som 鋜 endast behandlar Vim. Speciellt anv鋘dbar f鰎
- nyb鰎jare. Det finns m錸ga exempel och bilder.
- Se http://iccf-holland.org/click5.html
-
- Den h鋜 boken 鋜 鋖dre och behandlar mer Vi 鋘 Vim, men rekommenderas ocks:
- Learning the Vi Editor - av Linda Lamb
- F鰎lag: O'Reilly & Associates Inc.
- Det 鋜 en bra bok f鰎 att l鋜a sig n鋝tan allt som du vill kunna g鰎a med Vi.
- Den sj鋞te upplagan inkluderar ocks information om Vim.
-
- Den h鋜 handledningen 鋜 skriven av Michael C. Pierce och Robert K. Ware,
- Colorado School of Mines med id閑r fr錸 Charles Smith,
- Colorado State University. E-post: bware@mines.colorado.edu.
-
- Modifierad f鰎 Vim av Bram Moolenaar.
- 講ersatt av Johan Svedberg <johan@svedberg.com>
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.tr.iso9 b/runtime/tutor/tutor.tr.iso9
deleted file mode 100644
index 759e57d3e..000000000
--- a/runtime/tutor/tutor.tr.iso9
+++ /dev/null
@@ -1,813 +0,0 @@
-===============================================================================
-= V I M T u t o r'a Ho Geldiniz - S黵黰 1.5 =
-===============================================================================
-
- Vim, bu gibi bir e餴tmen ile a琮klanmas gereken 鏾k fazla komut bar齨d齬an,
- olduk鏰 kuvvetli bir metin d鼁enleyicidir. Bu e餴tmen Vim'i 鏾k ama鏻 bir
- d鼁enleyici olarak kolayl齥la kullanabilece餴niz yeterli say齞a komutu a琮klamak
- i鏸n tasarlanmt齬.
-
- E餴tmeni tamamlama s黵esi yapaca瘕n齴 denemelere ba餷 olarak 25-30
- dakikad齬.
-
- Derslerdeki komutlar bu metini de餴⺶irecektir. 躾erinde 鏰lmak i鏸n
- bu dosyan齨 bir kopyas齨 al齨 (e餰r "vimtutor" uygulamas齨 鏰lt齬d齳san齴
- zaten bir kopyas齨 alm oldunuz).
-
- Bu e餴tmenin, kullanarak 鲳retmeye ayarland齨 unutmamak 鰊emlidir. Bu ⺷
- anlama gelir; komutlar 鲳renmek i鏸n do餽u bir 㧐kilde 鏰lt齬man齴 gerekir.
- E餰r sadece yaz齦anlar okursan齴 komutlar unutursunuz.
-
- 辤mdi Shift-Lock tuar齨齴齨 bas齦 olmad齨a emin olun ve Ders 1.1'in
- ekran tamamen doldurmas i鏸n j tu⺷na yeterli miktarda bas齨.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.1: 軲LEC HAREKET ETT軷MEK
-
- .N: T黰 derslerde <ENTER> g鰎d黱鼁 yerde bu tu basman齴 gerekir.
-
- ** 輒leci hareket ettirmek i鏸n, h,j,k,l tuar齨a g鰏terildi餴 gibi bas齨. **
- ^
- k 輕ucu: h tu⺷ soldad齬 ve sola hareket eder.
- < h l > l tu⺷ sa餯ad齬 ve sa餫 hareket eder.
- j j tu⺷ a瘕 y鰊l bir ok gibidir.
- v
- 1. Yeterli hissedinceye kadar imleci ekranda hareket ettirin.
-
- 2. A瘕 tu⺷nu (j) tekrar edene kadar bas齦 tutun.
----> 辤mdi, bir sonraki derse nas齦 ge鏴ce餴nizi biliyorsunuz.
-
- 3. A瘕 tu⺷nu kullanarak, Ders 1.2'ye ge鏸n.
- Not: E餰r yazd齨齴 bir 㧐yden emin de餴lseniz, Normal kipe ge鏼ek i鏸n <ESC> tu⺷na bas齨.
- Daha sonra istedi餴niz komutu yeniden yaz齨.
- Not: 輒le tuar da ayn zamanda i㧐 yararlar ancak hjkl tuar齨 kullanmaya alt齨齴da etrafta daha h齴l
- hareket edersiniz.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.2: VIM'E G軷蒉 VE VIM'DEN 荌KI
-
-
- !! NOT: A瘕daki ad齧lar yapmadan 鰊ce, bu dersi tamamen okuyun.
-
- 1. <ESC> tu⺷na bas齨 (Normal kipte olmay garantilemek i鏸n).
-
- 2. Yaz齨: :q! <ENTER>.
-
----> Bu d鼁enleyicinin yapt齨齴 de餴㱮klikleri KAYDETMEDEN kapanmas齨 sa餷ar.
- E餰r yapt齥lar齨齴齨 kaydedilmesini istiyorsan齴 ⺷nu yaz齨:
- :wq <ENTER>
-
- 3. Kabuk istemcisini (shell prompt) g鰎d黱鼁de, sizi bu e餴tmene getiren
- komutu yaz齨. Bu: vimtutor <ENTER> komutudur.
- Normalde: vim tutor <ENTER> komutu kullan齦齬.
----> 'vim' vim d鼁enleyicisine gir anlam齨a gelir, 'tutor' ise a鏼ak istedi餴niz dosyad齬.
-
- 4. E餰r bu ad齧lar ezberlediyseniz ve kendinizden eminseniz, 1'den 3'e kadar olan ad齧lar,
- d鼁enleyiciden 琮kmak ve yeniden girmek i鏸n uygulay齨.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.3: MET軳 D躗ENLEME - S軱ME
-
-
-** Normal kipteyken imlecin alt齨daki karakteri silmek i鏸n x 'e bas齨.**
-
- 1. 輒leci a瘕da iretlenmi (-->) sat齬a g鰐黵黱.
-
- 2. Hatalar d鼁eltmek i鏸n, imleci silinmesi gereken karakterin 鼁erine getirin
-
- 3. 輘tenmeyen karakteri silmek i鏸n x tu⺷na bas齨.
-
- 4. C黰le d鼁elene kadar 2'den 4'e kadar olan ad齧lar tekrar edin.
-
----> 輎nek ayy齨 鼁zerinden attlad.
-
- 5. 辤mdi sat齬 d鼁eldi, Ders 1.4'e ge鏸n.
-
-NOT: Bu e餴tmende ilerledik鏴 ezberlemeye 鏰lmay齨, kullanarak 鲳renin.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.4: MET軳 D躗ENLEME - EKLEME
-
-
- ** Normal kipteyken metin eklemek i鏸n i 'ye bas齨. **
-
- 1. 輒leci a瘕daki iretlenmi (-->) ilk sat齬a g鰐黵黱.
-
- 2. 輑k sat齬 ikincisinin ayn齭 gibi yapmak i鏸n, imleci eklenmesi gereken
- metinden sonraki ilk karakterin 鼁erine g鰐黵黱.
-
- 3. i 'ye bas齨 ve gerekli eklemeleri yap齨.
-
- 4. Her hata d鼁eltildi餴nde <ESC> tu⺷na basarak Normal kipe d鰊黱.
- C黰leyi d鼁eltmek i鏸n 2'den 4'e kadar olan ad齧lar tekrar edin.
-
----> Bu metinde eksk.
----> Bu metinde bir㧐y eksik.
-
- 5. Metin ekleme 鏰lmalar齨 yeterli g鰎鼀orsan齴 a瘕daki 鰖ete ge鏸n.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 1 諾ET
-
-
- 1. 輒le hem ok tuar hem de hjkl tuar ile hareket ettirilir.
- h (sol) j (a瘕) k (yukar) l (sa)
-
- 2. (Konsoldan) Vim'e girmek i鏽 yaz齨: vim DOSYA軸M <ENTER>
-
- 3. T黰 de餴㱮klikleri g鰖 ard edip vimden 琮kmak i鏸n yaz齨:
- <ESC> :q! <ENTER>
- veya t黰 de餴㱮klikleri kaydetmek i鏸n yaz齨:
- <ESC> :wq <ENTER>
-
- 4. 輒lecin alt齨daki bir karakteri silmek i鏸n Normal kipte x yaz齨.
-
- 5. 輒lecin alt齨da metin eklemek i鏸n Normal kipte yaz齨:
- i yaz齦acak metin <ESC>
-
-NOT: <ESC> tu⺷na basmak sizi Normal kipe g鰐黵黵 ya da istenmeyen tamamlanmam bir komutu
- iptal eder.
-
-辤mdi Ders 2 ile devam edin.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.1: S軱ME KOMUTLARI
-
- ** Bir kelimeyi silmek i鏸n dw yaz齨.**
-
- 1. Normal kipte olmakten emin olmak i鏸n <ESC> tu⺷na bas齨.
-
- 2. 輒leci a瘕daki iretlenmi (-->) sat齬a g鰐黵黱.
-
- 3. 輒leci silinmesi gereken kelimenin bana g鰐黵黱.
-
- 4. Kelimeyi silmek i鏸n dw yaz齨.
-
- NOT: dw harfleri siz yazd齥鏰 ekran齨 son sat齬齨da g鰎黮ecektir.
- E餰r yanl bir 㧐yler yazarsan齴, yeniden baamak i鏸n <ESC> tu⺷na bas齨.
-
----> Bu sat齬da 鏴rez c黰leye ait olmayan leblebi kelimeler var.
-
-
- 5. C黰le d鼁elene kadar ad齧 3 ve 4' tekrar edin, daha sonra Ders 2.2'ye gidin.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.2: DAHA FAZLA S軱ME KOMUTU
-
-
- ** Sat齬 sonuna kadar silmek i鏸n d$ yaz齨.**
-
- 1. Normal kipte olmaktan emin olmak i鏸n <ESC> tu⺷na bas齨.
-
- 2. 輒leci a瘕daki iretlenmi (-->) sat齬a g鰐黵黱.
-
- 3. 輒leci do餽u olan sat齬齨 sonuna g鰐黵黱. (Birinciden SONRA. )
-
- 4. Sat齬 sonuna kadar silmek i鏸n d$ yaz齨.
- ( d$ yazarken d'den sonra <ALT> ile beraber $ tu⺷na bas齨)
-
----> Birileri bu sat齬齨 sonunu iki defa yazm. Birileri bu sat齬齨 sonunu iki defa yazm.
-
- 5. Neler oldu饀nu anlamak i鏸n Ders 2.3'e gidin.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.3: KOMUTLAR VE NESNELER
-
-
- d silme komutu i鏸n bi鏸m a瘕daki gibidir:
-
- [say齗 d nesne VEYA d [say齗 nesne
- Burada:
- say - komutun ka defa 鏰lt齬laca瘕 (iste餰 ba餷, varsay齦an=1).
- d - silme komutu
- nesne - komutun ne 㧐kilde 鏰laca瘕 (a瘕da listlendi).
-
- Nesnelerin k齭a bir listesi.
- w - Bou饀 da i鏴rerek, imle鐃en itibaren kelimenin sonuna kadar.
- e - Bou饀 萸ERMEDEN, imle鐃en itibaren kelimenin sonuna kadar.
- $ - imle鐃en sat齬齨 sonuna kadar.
-
-NOT: Ser黺en sevenler i鏸n, Normal kipte iken, komut olmadan sadece nesnenin kendisine basmak
- imleci yukardaki listede oldu饀 gibi hareket ettirecektir.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.4: 'KOMUT-NESNE'ye B軷 軸T軸NA
-
-
- ** B黷黱 bir sat齬 silmek i鏸n dd yaz齨. **
-
- B黷黱 bir sat齬 silme s齥l齨dan dolay, Vi tasar齧c齦ar bir sat齬
- tamamen silmek i鏸n iki d yazman齨 daha kolay olaca瘕na karar verdiler.
-
- 1. 輒leci a瘕daki t黰ceci餴n ikinci sat齬齨a g鰐黵黱.
- 2. Sat齬 silmek i鏸n dd yaz齨.
- 3. 辤mdi de d鰎d黱c sat齬a gidin.
- 4. 輐i sat齬 birden silmek i鏸n 2dd (say-komut-nesne'yi hat齬lay齨) yaz齨.
-
- 1) G黮ler k齬m齴齞齬,
- 2) 莂mur e餷enceli,
- 3) Menek㧐ler mavi,
- 4) Bir arabam var,
- 5) Saat bana s鰕ler,
- 6) 辝ker tatl齞齬
- 7) Ve sen de 鰕lesin
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.5: GER AL KOMUTU
-
-
- ** Son komutu geri almak i鏸n u , b黷黱 bir sat齬 d鼁eltmek i鏸n U yaz齨.**
-
- 1. 輒leci a瘕daki iretlenmi (-->) sat齬daki ilk hatan齨 鼁erine g鰐黵黱.
- 2. 輑k istenmeyen karakteri silmek i鏸n x yaz齨.
- 3. 辤mdi son 鏰lt齬齦an komutu geri almak i鏸n u yaz齨.
- 4. Bu sefer x komutunu kullanarak sat齬daki t黰 hatalar d鼁eltin.
- 5. 辤mdi sat齬 ilk haline 鏴virmek i鏸n b鼀黭 U yaz齨.
- 6. 辤mdi U ve daha 鰊ceki komutlar geri almak i鏸n birka defa u yaz齨.
- 7. 辤mdi birka defa CTRL-R (CTRL'yi bas齦 tutarken R ye bas齨) yazarak geri almalar da geri al齨.
-
----> Buu satrdaki hatalar dzeltinn ve sonra koomutu geri alll齨.
-
- 8. Bunlar son derece kullanl komutlard齬. 辤mdi Ders 2 謟ete ge鏸n.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 2 諾ET
-
-
- 1. 輒le鐃en itibaren bir kelimeyi silmek i鏸n yaz齨: dw
-
- 2. 輒le鐃en itibaren bir sat齬 silmek i鏸n yaz齨: d$
-
- 3. B黷黱 bir sat齬 silmek i鏸n yaz齨: dd
-
- 4. Normal kipte bir komut bi鏸mi yledir:
-
- [say齗 komut nesne VEYA komut [say齗 nesne
- burada:
- say - komutun ka kere tekrar edece餴
- komut - ne yap齦aca瘕, silmek i鏸n d oldu饀 gibi
- nesne - komutun nas齦 davranaca瘕, w (kelime), $ (sat齬 sonu), vb gibi.
-
- 5. 謓ceki hareketleri geri almak i鏸n yaz齨: u (k黭 u)
- Bir sat齬daki t黰 de餴㱮klikleri geri almak i鏸n yaz齨: U (b鼀黭 u)
- Geri almalar geri almak i鏸n yaz齨: CTRL-R
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.1: KOY KOMUTU
-
-
- ** Son yapt齨齴 silme iemini imle鐃en sona geri yerle⺶irmek i鏸n p yaz齨.**
-
- 1. 輒leci a瘕daki t黰ceci餴n ilk sat齬齨a g鰐黵黱.
-
- 2. Sat齬 silip Vim'in tamponuna yerle⺶irmek i鏸n dd yaz齨.
-
- 3. 輒leci, silinmi sat齬 nereye yerle⺶irmek istiyorsan齴, o sat齬齨 躗ER軳E g鰐黵黱.
-
- 4. Normal kipteyken, sat齬 yerle⺶irmek i鏸n p yaz齨.
-
- 5. T黰 sat齬lar do餽u s齬aya koymak i鏸n 2'den 4'e kadar olan ad齧lar tekrar edin.
-
- d) Sen de 鲳rendin mi?
- b) Menek㧐ler mavidir,
- c) Ak齦 鲳renilir,
- a) G黮ler k齬m齴齞齬,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.2: YERLE轙軷 KOMUTU
-
-
- ** 輒lecin alt齨da bir karakter yerle⺶irmek i鏸n r yaz齨.**
-
- 1. 輒leci a瘕daki iretlenmi(--->) ilk sat齬a g鰐黵黱.
-
- 2. 輒leci sat齬daki ilk hatan齨 鼁erine g鰐黵黱.
-
- 3. Hatay d鼁eltmek i鏸n 鰊ce r ard齨dan da do餽u karakteri yaz齨.
-
- 4. 輑k sat齬 d鼁elene kadar ad齧 2 ve 3' tekrar edin.
-
----> Bu sat齰 yaz齦齰ken, bivileri yaml tu⺶ara basm.
----> Bu sat齬 yaz齦齬ken, birileri yanl tuara basm.
-
- 5. Ders 3.2'ye ge鏸n.
-
-NOT: Unutmay齨, ezberleyerek de餴l kullanarak 鲳renin.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.3: DE休轙軷 KOMUTU
-
-
- ** Bir kelimenin tamam齨 veya par鏰s齨 de餴⺶irmek i鏸n cw yaz齨.
-
- 1. 輒leci a瘕daki iretlenmi(--->) sat齬a g鰐黵黱.
-
- 2. 輒leci "sutar" daki u'nun 鼁erine yerle⺶irin.
-
- 3. 謓ce cw ard齨dan do餽u kelimeyi girin (bu durumda 'at齬'.)
-
- 4. <ESC> tu⺷na bas齨 ve bir sonraki hataya gidin (de餴esi gereken ilk karakter.)
-
- 5. 輑k c黰le ikincisiyle ayn olana kadar ad齧 3 ve 4' tekrar edin.
-
----> Bu sutar de餴⺶ir komutu ile de餴⺪eli gereken birka petime i鏴riyor.
----> Bu sat齬 de餴⺶ir komutu ile de餴esi gereken birka kelime i鏴riyor.
-
-cw'nin sadece kelimeyi de餴⺶irmedi餴ni, ayn zamanda sizi insert kipine g鰐黵d黱e de dikkat edin.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.4: c'Y KULLANARAK DAHA FAZLA DE休轙軷ME
-
-
- ** De餴⺶ir komutu sil komutu ile ayn nesnelerle kullan齦齬.**
-
- 1. De餴⺶ir komutu sil ile ayn yolla 鏰l齬. Bi鏸m yledir:
-
- [say齗 c nesne VEYA c [say齗 nesne
-
- 2. Nesneler de ayn zamanda ayn齞齬. 謗ne餴n w (word), $ (sat齬 sonu), vb. gibi.
-
- 3. A瘕daki iretlenmi(--->) ilk sat齬a gidin.
-
- 4. 輒leci ilk hataya g鰐黵黱.
-
- 5. Sat齬齨 geri kalan k齭m齨 ikincisi gibi yapmak i鏸n c$ yaz齨 ve daha sonra <ESC> tu⺷na bas齨.
-
----> Bu sat齬齨 sonu d鼁eltilmek i鏸n biraz yard齧a ihtiya duyuyor.
----> Bu sat齬齨 sonu d鼁eltilmek i鏸n c$ komutu kullan齦arak yard齧a ihtiya duyuyor.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 3 諾ET
-
-
- 1. Silinmi olan bir metini geri yerle⺶irmek i鏸n p yaz齨. Bu silinmi metini
- imle鐃en hemen SONRA geri yerle⺶irir (e餰r bir sat齬 silinmi⺳e hemen imle鐃en sonra, alta
- yerle⺶irilecektir)
-
- 2. 輒lecin alt齨daki karakteri de餴⺶irmek i鏸n 鰊ce r ard齨dan da
- as齦 karakteri yaz齨.
-
- 3. De餴⺶ir komutu belirlenen nesneyi, imle鐃en nesnenin sonuna kadar de餴⺶irme imkan verir.
- 謗ne餴n, bir kelimeyi imle鐃en sonuna kadar de餴⺶irmek i鏸n cw , bir sat齬齨 tamam齨
- de餴⺶irmek i鏸nse c$ yaz齨.
-
- 4. De餴⺶ir i鏸n bi鏸m yledir:
-
- [say齗 c nesne VEYA c [say齗 nesne
-
-辤mdi bir sonraki derse ge鏸n.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.1: KONUM VE DOSYA DURUMU
-
-
- ** Dosya i鏴risindeki konumunuzu ve dosyan齨 durumunu g鰎mek i鏸n CTRL-g yaz齨. **
- ** Dosya i鏴risindeki bir sat齬a gitmek i鏸n SHIFT-g yaz齨. **
-
- Not: Ad齧lardan herhangi birini yapmadan 鰊ce dersin tamam齨 okuyun!!
-
- 1. Ctrl tu⺷nu bas齦 tutun ve g'ye bas齨. Dosyan齨 sonunda dosya ismini ve bulundu饀nuz konumu
- g鰏teren bir durum sat齬 g鰎黱ecektir. Ad齧 3 i鏸n sat齬 numaras齨
- unutmay齨.
-
- 2. Dosyan齨 sonuna gitmek i鏸n shift-G 'ye bas齨.
-
- 3. Daha 鰊ce bulundu饀nuz sat齬 numaras齨 yaz齨 ve daha sonra shift-G 'ye bas齨.
- Bu sizi daha 鰊ce bulundu饀nuz ve Ctrl-g 'ye bast齨齴 sat齬a geri g鰐黵ecektir.
- (Say齦ar yaz齦齬ken ekranda G諶躈MEYECEKLERD軷.)
-
- 4. Yapabilece餴nizi d黱d黱鼁de, ad齧 1'den 3'e kadar yap齨.
-
- .N: Bu k齭齧 orijinal metinde de biraz eksik anlat齦m gibi. Bir sat齬 hakk齨da bilgi almak i鏸n
- Ctrl-g'yi kullan齨. Herhangi bir sat齬a gitmek i鏸nse, 鰊ce sat齬 numaras齨 yaz齨 ve ard齨an
- shift-g'ye bas齨. Sat齬 numaras girmeden bas齦an shift-g sizi sat齬 sonuna g鰐黵黵.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.2: ARAMA KOMUTU
-
-
- ** Bir kelime 鯾e餴ni aramak i鏸n / ile beraber kelime 鯾e餴ni girin. **
-
- 1. Normal kipteyken / karakterini yaz齨. Komut b鰈黰 yerine / karakterinin ve
- imlecin ekran齨 sonunda g鰎黱d黱e dikkat edin.
-
- 2. 辤mdi, 'hatttaa' yaz齪 <ENTER> 'a bas齨. Bu sizin aramak istedi餴niz kelime.
-
- 3. Ayn kelime 鯾e餴ni tekrar aramak i鏸n, basit鏴 n yaz齨.
- Ayn kelime 鯾e餴ni z齮 y鰊de aramak i鏸n, Shift-N yaz齨.
-
- 4. E餰r z齮 y鰊e do餽u bir arama yapmak istiyorsan齴, / komutu yerine
- ? komutunu kullan齨.
-
----> "hatttaa" hatay yazman齨 do餽u yolu de餴l; hatttaa bir hata.
-
-Not: Arama dosyan齨 sonuna ula⺶齨da, tekrar ba⺶an baayacakt齬.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.3: UYAN PARANTEZ ARAMASI
-
-
- ** Uyan bir ),] veya } bulmak i鏸n % yaz齨. **
-
- 1. 輒leci iretli (--->) sat齬daki herhangi bir (, [ veya { karakterinin
- 鼁erine g鰐黵黱.
-
- 2. 辤mdi % karakterini yaz齨.
-
- 3. 輒le uyan parantez veya ayrac齨 鼁erine gider.
-
- 4. Uyan ilk parantezin 鼁erine geri d鰊mek i鏸n yine % yaz齨.
-
----> Bu ( i鏴risinde ('ler, ['ler ] ve {'ler } bulunan bir sat齬d齬. ))
-
-Not: Bu i鏴risinde uymayan parantezler bulunan bir program齨 yanl齨 ay齥lamak i鏸n
- son derece yararl齞齬.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.4: HATALARI D躗ELTMEK 萸軳 B軷 YOL
-
-
- ** 'eski' yerine 'yeni' yerle⺶irmek i鏸n :s/eski/yeni/g yaz齨. **
-
- 1. 輒leci a瘕daki iretli (--->) sat齬a g鰐黵黱.
-
- 2. :s/buu/bu yaz齪 <ENTER> 'a bas齨. Bu komutun sadece sat齬daki ilk karlaay
- d鼁eltti餴ne dikkat edin.
-
- 3. 辤mdi genel olarak sat齬daki t黰 de餴㱮kli餴 yapmak i鏸n :s/buu/bu/g yaz齨.
-
----> Buu birinci, buu ikinci, buu 黱c b鰈黰.
-
- 4. 輐i sat齬 aras齨daki bir karakter katar齨齨 t黰黱 de餴⺶irmek i鏸n,
- :#,#s/eski/yeni/g yaz齨, burada #,# iki sat齬齨 say齦ar齞齬.
- T黰 dosyadaki karlalan kelimeleri de餴⺶irmek i鏸n :%s/eski/yeni/g yaz齨.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 4 諾ET
-
-
- 1. Ctrl-g sizin dosyadaki konumunuzu ve dosya durumunu g鰏terir.
- Shift-G dosyan齨 sonuna gider. Shift-G 'den 鰊ce bir say yaz齦齬sa, o sat齬a
- gidilir.
-
- 2. Bir s鰖c黭 鯾e餴nden 鰊ce / yazmak, 軱ER y鰊de o 鯾e餴 arat齬.
- Bir s鰖c黭 鯾e餴nden 鰊ce ? yazmak, GER y鰊de o 鯾e餴 arat齬.
- Bir aramadan sonra, ayn y鰊deki bir sonraki karlaay bulmak i鏸n n ,
- veya z齮 y鰊dekini bulmak i鏸n Shift-N yaz齨.
-
- 3. 輒le bir (,),[,],{,} parantezi 鼁erindeyken % yazmak, uyan di餰r e parantezi bulur.
-
- 4. Bir sat齬daki ilk 'eski'yi 'yeni' ile de餴⺶irmek i鏸n :s/eski/yeni yaz齨.
- Bir sat齬daki t黰 'eski'leri 'yeni' ile de餴⺶irmek i鏸n :s/eski/yeni/g yaz齨.
- 輐i sat齬 aras齨daki 鯾ekleri de餴⺶irmek i鏸n :#,#s/eski/yeni/g yaz齨.
- (#'lar sat齬 numaralar)
- Bir dosyadaki t黰 karlaalar de餴⺶irmek i鏸n :%s/eski/yeni/g yaz齨.
- Her seferinde onay sormas i鏸n 'c' ekleyin. :%s/eski/yeni/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.1: BIR DI KOMUT 茿LI轙IRMAK
-
-
- ** Bir d komutu 鏰lt齬mak i鏸n :! ve ard齨dan istedi餴niz d komutu yaz齨. **
-
- 1. 輒leci ekran齨 alt齨a g鰐黵mek i鏸n al齥 oldu饀nuz : komutunu yaz齨. Bu size
- bir komut yazma imkan verir.
-
- 2. 辤mdi ! (黱lem) karakterini yaz齨. Bu size bir d komut 鏰lt齬ma
- imkan verir.
-
- 3. 謗nek olarak ! karakterini takiben ls yaz齨 ve <ENTER>'a bas齨. Bu size
- o anda bulundu饀nuz dizindeki dosyalar g鰏terecektir. Veya ls 鏰lmazsa :!dir
- komutunu kullan齨.
-
-Not: Herhangi bir d komutu bu yolla 鏰lt齬mak m黰k黱d黵.
-
-Not: T黰 : komutlar齨dan sonra <ENTER> tu⺷na bas齦mal齞齬.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.2: DOSYA YAZMAYA DEVAM
-
-
- ** Dosyaya yap齦an de餴㱮kli餴 kaydetmek i鏸n, :w DOSYA軸M yaz齨. **
-
- 1. Bulundu饀nuz dizini listelemek i鏸n :!dir veya :!ls yaz齨.
- Komuttan sonra <ENTER> tu⺷na bas齝a瘕n齴 zaten biliyorsunuz.
-
- 2. Mevcut olmayan bir dosya ismi se鏸n, 鰎ne餴n DENEME.
-
- 3. 辤mdi :w DENEME yaz齨 (DENEME sizin se鐃i餴niz dosya ismi).
-
- 4. Bu t黰 dosyay (Vim Tutor) DENEME isminde ba⺧a bir dosyaya yazar.
- Bunu do餽ulamak i鏸n, :!dir yaz齨 ve yeniden bulundu饀nuz dizini listeleyin.
-
-Not: E餰r Vim'den 琮k齪 kaydetti餴niz DENEME dosyas齨 a鏰rsan齴, bunun kaydetti餴niz
- vimtutor'un ger鏴k bir kopyas oldu饀nu g鰎黵s黱鼁.
-
- 5. 辤mdi dosyay ⺷ komutlar vererek silin (MS-DOS) :!del DENEME
- (veya UNIX) :!rm DENEME
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.3: SE荕EL YAZ KOMUTU
-
-
- ** Dosyan齨 bir b鰈黰黱 kaydetmek i鏸n, :#,# w DOSYA軸M yaz齨. **
-
- 1. Bir kez daha bulundu饀nuz dizini g鰎mek i鏸n :!dir veya :!ls yaz齨,
- ard齨dan DENEME gibi uygun bir dosya ismi se鏸n.
-
- 2. 輒leci bu sayfan齨 bana g鰐黵黱 ve ard齨dan CTRL-g'ye basarak sat齬 numaras齨
- 鲳renin. BU NUMARAYI UNUTMAYIN!
-
- 3. 辤mdi sayfan齨 sonuna gidib ve yine CTRL-g'ye basarak sat齬 numaras齨
- 鲳renin. BU NUMARAYI DA UNUTMAYIN!
-
- 4. Bir dosyaya sadece bir b鰈黰 kaydetmek i鏸n, :#,# w DENEME yaz齨. #,# sizin
- bakt齨齴 say齦ar (黶t,alt) ve DENEME dosyan齴齨 ismidir.
-
-
- 5. Yine, :!dir yazarak dosyan齨 orada oldu饀na bak齨 ama S軱MEY軳.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.4: DOSYALARI B軷LE轙軷MEK-B諰躆 EKLEMEK
-
-
- ** Bir dosyan齨 i鏴ri餴ni eklemek i鏸n :r DOSYA軸M yaz齨. **
-
- 1. DENEME dosyan齴齨 鰊ceden bulundu饀ndan emin olmak i鏸n :!dir yaz齨.
-
- 2. 輒leci bu sayfan齨 bana yerle⺶irin.
-
-NOT: Ad齧 3' uygulad齥tan sonra Ders 5.3' g鰎鼀or olacaks齨齴. Daha sonra bu
- derse sayfas齨a d鰊黱.
-
- 3. 辤mdi DENEME sayfas齨 :r DENEME yazarak aktar齨.
-
-NOT: Aktard齨齴 dosya imlecinizin hemen alt齨a eklenecektir.
-
- 4. Dosyan齨 eklendi餴ni g鰎mek i鏸n, geriye gidin. Ders 5.3'ten iki kopya
- oldu饀nu g鰎eceksiniz; as齦 ve kopya olan.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 5 諾ET
-
-
- 1. :!komut bir d komut 鏰lt齬齬.
-
- Baz yararl 鰎nekler:
- (MS-DOS) (Unix)
- :!dir :!ls - bir dizini listeler.
- :!del DOSYA :!rm DOSYA - DOSYA'y siler.
-
- 2. :w DOSYA軸M o anki Vim dosyas齨 diske DOSYA軸M ile kaydeder.
-
- 3. :#,#w DOSYA軸M # ile # sat齬 aras齨 DOSYA軸M ile kaydeder.
-
- 4. :r DOSYA軸M imlecin alt齨dan baayarak DOSYA軸M isimli dosyan齨 i鏴ri餴ni ekler.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.1: A KOMUTU
-
-
- ** 輒lecin a瘕s齨a bir sat齬 a鏼ak ve Insert kipine ge鏼ek i鏸n o yaz齨. **
-
- 1. 輒leci a瘕daki iretlenmi (--->) sat齬a g鰐黵黱.
-
- 2. 輒lecin a瘕s齨a bir sat齬 a鏼ak ve Insert kipine ge鏼ek i鏸n
- o (k黭 harfle) yaz齨.
-
- 3. 辤mdi iretlenmi sat齬 kopyalay齨 ve Insert kipinden 琮kmak i鏸n <ESC>
- tu⺷na bas齨.
-
----> o yazd齥tan sonra imlec a琮lan sat齬a gidicek ve Insert kipine ge鏸lecek.
-
- 4. 輒lecin 鼁erinde bir sat齬 a鏼ak i鏸n, basit鏴 b鼀黭 O yaz齨. Bunu a瘕daki
- sat齬da deneyin.
-Bu sat齬齨 鼁erine bir sat齬 a鏼ak i鏸n imle bu sat齬dayken Shift-o yaz齨.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.2: EKLE KOMUTU
-
-
- ** 輒le鐃en sonra metin eklemek i鏸n a yaz齨. **
-
- 1. 輒leci a瘕daki iretlenmi (--->) sat齬齨 sonuna g鰐黵mek i鏸n
- Normal Kipteyken $ yaz齨.
-
- 2. 輒lecin alt齨daki karakterden sonra metin eklemek i鏸n a (k黭 harfle) yaz齨.
- (B鼀黭 A sat齬齨 sonuna ekler).
-
- 3. 辤mdi ilk sat齬 tamamlay齨. Ekle komutunun Insert kipiyle ayn i㱮 yapt齨a
- dikkat edin. Tek fark metinin eklendi餴 yer.
-.N: E餰r a yazarsan齴 imlecin alt齨daki karakterden hemen sonra ekleme yapabilirsiniz.
- E餰r Shift-a yazarsan齴 imle sat齬 sonuna gidecek ve hemen ard齨a ekleme yapabileceksiniz.
- Do餫l olarak bizim 鰎ne餴mizde Shift-A'y kullanmak daha g鼁el olacakt齬. 謓ce $ ard齨an a
- yazmam齴a gerek kalmaz.
-
----> Bu sat齬da 鏰labilirsiniz
----> Bu sat齬da 鏰labilirsiniz. 莂l齬ken metin eklemeyi kullan齨.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.3: B軷 BA轐A DE休轙軷 KOMUTU
-
-
- ** Birden fazla karakter de餴⺶irmek i鏸n b鼀黭 R yaz齨. **
-
- 1. 輒leci a瘕daki iretli (--->) sat齬lar齨 ilkine g鰐黵黱.
-
- 2. 輒leci iretli olan ikinci sat齬dakinden farkl olan ilk kelimenin
- bana g鰐黵黱. ( "tuar" kelimesi )
-
- 3. 辤mdi b鼀黭 R yaz齨 ve ilk sat齬 ikincisinin ayn齭 yapmak i鏸n
- eski metinin 鼁erinden yenisini yaz齨. Siz yazd齥鏰 metin de餴㧐cektir.
-
----> Bu sat齬 ikincisinin ayn齭 yapmak i鏸n tuar kullan齨.
----> Bu sat齬 ikincisinin ayn齭 yapmak i鏸n R yaz齨 ve metini girin.
-
- 4. 驱kmak i鏸n <ESC> tu⺷na bast齨齴da, de餴emi metinin aynen
- kald齨a dikkat edin.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.4: SET SE荅NE休
-
- ** Bir se鏴nek ayarlay齨 , b鰕lece bir arama veya de餴⺶irme **
- ** durumu g鰎mezden gelsin. **
-
- 1. 'ignore' kelimesini aramak i鏸n:
- /ignore
- yaz齨.
- Bunu n tu⺷na basarak birka kez tekrar edin
-
- 2. :set ic yazarak 'ic' (Ignore case) ayar齨 se鏸n.
-
- 3. Tekrar n tu⺷na basarak 'ignore' kelimseini aray齨.
- n tu⺷na basarak bu aramay birden 鏾k defa tekrar edin.
-
- 4. :set hls is yazarak 'hlsearch' ve 'incsearch' ayarlar齨 se鏸n.
-
- 5. /ignore yazarak arama komutunu tekrar verin ve ne olaca瘕n g鰎黱.
-
- 6. Karlaa vurgular齨 iptal etmek i鏸n,
- :nohlsearch yaz齨.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 6 諾ET
-
-
- 1. o yazmak imlecin alt齨da bir sat齬 a鏰r ve imleci bu a琮lm sat齬a
- Insert kipinde yerle⺶irir.
- B鼀黭 O yazmak imlecin 鼁erinde bir sat齬 a鏰r.
-
- 2. 輒lecin 鼁erindeki karakterden hemen sonra metin eklemek i鏸n a yaz齨.
- B鼀黭 A yazmak hemen sat齬 sonuna giderek metin eklemeye haz齬 hale getirir.
-
- 3. B鼀黭 R yazmak De餴⺶ir kipine girer ve 琮kmak i鏸n <ESC> tu⺷na
- bas齦ana kadar sizi bu kipte b齬ak齬.
-
- 4. ":set xxx" yazmak "xxx" se鏴ne餴ni ayarlar.
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 7: 荅V軷軲萸 (ON-LINE) YARDIM KOMUTLARI
-
-
- ** 莈virimi鏸 yard齧 sistemini kullan齨 **
-
- Vim geni bir 鏴virimi鏸 yard齧 sistemine sahiptir. Baamak i鏸n ⺷ 黱
- deneyebilirsiniz.
- - (e餰r sahipseniz) <HELP> tu⺷na bas齨
- - (e餰r sahipseniz) <F1> tu⺷na bas齨
- - :help yaz齨 ve <ENTER> tu⺷na bas齨
-
- Yard齧 penceresini kapatmak i鏸n :q yaz齪 <ENTER> tu⺷na bas齨.
-
- ":help" komutuna de餴⺧en (arg黰an) vererek herhangi bir konu hakk齨da
- yard齧 alabilirsini. 辵nlar deneyin (<ENTER> tu⺷na basmay unutmay齨) :
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 8: B軷 BA轑ANGI BET菪 OLU轙URUN
-
- ** Switch on Vim features **
- ** Vim'in 鰖elliklerine bak齨 **
-
- Vim Vi'dan 鏾k daha fazla 鰖elli餰 sahiptir fakat bir鏾饀 鰊tan齧l olarak kapal齞齬.
- Daha fazla 鰖ellik kullanabilmek i鏸n bir "vimrc" dosyas olu⺶urmal齭齨齴.
-
- 1. "vimrc" dosyas齨 d鼁enlemeye baay齨, bu ietim sisteminize g鰎e de餴㱮r:
-
- .N: (Bu komutu verdi餴nizde e餰r yoksa home dizininizde .vimrc isimli bir dosya olucakt齬.
- Bu dosyaya vimrc 鰎nek dosyas齨 aktarmak i鏸n 2. ad齧daki komutu kullanacaks齨齴. Bu y鼁den
- vimrc dosyan齴 d鼁enlemeden 鰊ce a瘕daki ad齧lar齨 hepsini okuyun ve komutlar hat齬lay齨.)
-
- :edit ~/.vimrc Unix i鏸n
- :edit $VIM/_vimrc MS-Windows i鏸n
-
- 2. 辤mdi 鰎nek "vimrc" dosyas齨 okuyun
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Dosyay kaydedin ve 琮k齨
-
- :write
- :q
-
- Vim'i bir dahaki sefer 鏰lt齬d齨齴da s鰖dizim (sytax) vurgusu kullan齦acakt齬.
- T黰 tercih etti餴niz ayarlar bu "vimrc" dosyas齨a ekleyebilirsiniz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Burada Vim E餴tmeni tamamlanm oldu. E餴tmendeki ama Vim d鼁enleyicisi hakk齨da
- k齭a bir bilgi vermek ve onu kolayca kullanman齴 sa餷amakt. Vim'in tamam齨 鲳retmek
- 鏾k zordur zira Vim bir鏾k komuta sahiptir.Bundan sonra :help user-manual" komutu ile
- kullan齝 k齦avuzunu okumal齭齨齴.
-
- Daha fazla okuma ve 鏰lma i鏸n ⺷ kitab 鰊eriyoruz:
- Vim - Vi Improved - by Steve Oualline
- Publisher: New Riders
- Tamamiyle Vim i鏸n haz齬lanm ilk kitap. 謟ellikle ilk kullan齝齦ar i鏸n uygun.
- Kitapta bir鏾k 鰎nek ve resim var.
- http://iccf-holland.org/click5.html adresine bakabilirsiniz.
-
- Bu kitap daha eskidir ve Vim'den daha 鏾k Vi i鏸ndir ancak tavsiye edilir:
- Learning the Vi Editor - by Linda Lamb
- Publisher: O'Reilly & Associates Inc.
- Vi hakk齨da bilmek isteyece餴niz neredeyse her㧐yin bulundu饀 bir kitap.
- 6.Bas齧 ayn zamanda Vim hakk齨da bilgi de i鏴rmekte.
-
- Bu e餴tmen Michael C. Pierce ve Robert K. Ware taraf齨dan yaz齦d,
- Charles Smith taraf齨dan sa餷anan fikirlerle Colorado School Of Mines,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Vim i鏸n de餴⺶iren : Bram Moolenaar.
-
- T黵k鏴ye 鏴viren : Serkan "heartsmagic" 莂l Y齦 2005
- E-mail : adresimeyaz (at) yahoo com
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.tr.utf-8 b/runtime/tutor/tutor.tr.utf-8
deleted file mode 100644
index 0e6802d40..000000000
--- a/runtime/tutor/tutor.tr.utf-8
+++ /dev/null
@@ -1,813 +0,0 @@
-===============================================================================
-= V I M T u t o r'a Ho艧 Geldiniz - S眉r眉m 1.5 =
-===============================================================================
-
- Vim, bu gibi bir e臒itmen ile a莽谋klanmas谋 gereken 莽ok fazla komut bar谋nd谋ran,
- olduk莽a kuvvetli bir metin d眉zenleyicidir. Bu e臒itmen Vim'i 莽ok ama莽l谋 bir
- d眉zenleyici olarak kolayl谋kla kullanabilece臒iniz yeterli say谋da komutu a莽谋klamak
- i莽in tasarlanm谋艧t谋r.
-
- E臒itmeni tamamlama s眉resi yapaca臒谋n谋z denemelere ba臒l谋 olarak 25-30
- dakikad谋r.
-
- Derslerdeki komutlar bu metini de臒i艧tirecektir. 脺zerinde 莽al谋艧mak i莽in
- bu dosyan谋n bir kopyas谋n谋 al谋n (e臒er "vimtutor" uygulamas谋n谋 莽al谋艧t谋rd谋ysan谋z
- zaten bir kopyas谋n谋 alm谋艧 oldunuz).
-
- Bu e臒itmenin, kullanarak 枚臒retmeye ayarland谋臒谋n谋 unutmamak 枚nemlidir. Bu 艧u
- anlama gelir; komutlar谋 枚臒renmek i莽in do臒ru bir 艧ekilde 莽al谋艧t谋rman谋z gerekir.
- E臒er sadece yaz谋lanlar谋 okursan谋z komutlar谋 unutursunuz.
-
- 艦imdi Shift-Lock tu艧lar谋n谋z谋n bas谋l谋 olmad谋臒谋na emin olun ve Ders 1.1'in
- ekran谋 tamamen doldurmas谋 i莽in j tu艧una yeterli miktarda bas谋n.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.1: 陌MLEC陌 HAREKET ETT陌RMEK
-
- 脟.N: T眉m derslerde <ENTER> g枚rd眉臒眉n眉z yerde bu tu艧a basman谋z gerekir.
-
- ** 陌mleci hareket ettirmek i莽in, h,j,k,l tu艧lar谋na g枚sterildi臒i gibi bas谋n. **
- ^
- k 陌pucu: h tu艧u soldad谋r ve sola hareket eder.
- < h l > l tu艧u sa臒dad谋r ve sa臒a hareket eder.
- j j tu艧u a艧a臒谋 y枚nl眉 bir ok gibidir.
- v
- 1. Yeterli hissedinceye kadar imleci ekranda hareket ettirin.
-
- 2. A艧a臒谋 tu艧unu (j) tekrar edene kadar bas谋l谋 tutun.
----> 艦imdi, bir sonraki derse nas谋l ge莽ece臒inizi biliyorsunuz.
-
- 3. A艧a臒谋 tu艧unu kullanarak, Ders 1.2'ye ge莽in.
- Not: E臒er yazd谋臒谋n谋z bir 艧eyden emin de臒ilseniz, Normal kipe ge莽mek i莽in <ESC> tu艧una bas谋n.
- Daha sonra istedi臒iniz komutu yeniden yaz谋n.
- Not: 陌mle莽 tu艧lar谋 da ayn谋 zamanda i艧e yararlar ancak hjkl tu艧lar谋n谋 kullanmaya al谋艧t谋臒谋n谋zda etrafta daha h谋zl谋
- hareket edersiniz.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.2: VIM'E G陌R陌艦 VE VIM'DEN 脟IKI艦
-
-
- !! NOT: A艧a臒谋daki ad谋mlar谋 yapmadan 枚nce, bu dersi tamamen okuyun.
-
- 1. <ESC> tu艧una bas谋n (Normal kipte olmay谋 garantilemek i莽in).
-
- 2. Yaz谋n: :q! <ENTER>.
-
----> Bu d眉zenleyicinin yapt谋臒谋n谋z de臒i艧iklikleri KAYDETMEDEN kapanmas谋n谋 sa臒lar.
- E臒er yapt谋klar谋n谋z谋n kaydedilmesini istiyorsan谋z 艧unu yaz谋n:
- :wq <ENTER>
-
- 3. Kabuk istemcisini (shell prompt) g枚rd眉臒眉n眉zde, sizi bu e臒itmene getiren
- komutu yaz谋n. Bu: vimtutor <ENTER> komutudur.
- Normalde: vim tutor <ENTER> komutu kullan谋l谋r.
----> 'vim' vim d眉zenleyicisine gir anlam谋na gelir, 'tutor' ise a莽mak istedi臒iniz dosyad谋r.
-
- 4. E臒er bu ad谋mlar谋 ezberlediyseniz ve kendinizden eminseniz, 1'den 3'e kadar olan ad谋mlar谋,
- d眉zenleyiciden 莽谋kmak ve yeniden girmek i莽in uygulay谋n.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.3: MET陌N D脺ZENLEME - S陌LME
-
-
-** Normal kipteyken imlecin alt谋ndaki karakteri silmek i莽in x 'e bas谋n.**
-
- 1. 陌mleci a艧a臒谋da i艧aretlenmi艧 (-->) sat谋ra g枚t眉r眉n.
-
- 2. Hatalar谋 d眉zeltmek i莽in, imleci silinmesi gereken karakterin 眉zerine getirin
-
- 3. 陌stenmeyen karakteri silmek i莽in x tu艧una bas谋n.
-
- 4. C眉mle d眉zelene kadar 2'den 4'e kadar olan ad谋mlar谋 tekrar edin.
-
----> 陌inek ayy谋n 眉zzerinden attlad谋.
-
- 5. 艦imdi sat谋r d眉zeldi, Ders 1.4'e ge莽in.
-
-NOT: Bu e臒itmende ilerledik莽e ezberlemeye 莽al谋艧may谋n, kullanarak 枚臒renin.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 1.4: MET陌N D脺ZENLEME - EKLEME
-
-
- ** Normal kipteyken metin eklemek i莽in i 'ye bas谋n. **
-
- 1. 陌mleci a艧a臒谋daki i艧aretlenmi艧 (-->) ilk sat谋ra g枚t眉r眉n.
-
- 2. 陌lk sat谋r谋 ikincisinin ayn谋s谋 gibi yapmak i莽in, imleci eklenmesi gereken
- metinden sonraki ilk karakterin 眉zerine g枚t眉r眉n.
-
- 3. i 'ye bas谋n ve gerekli eklemeleri yap谋n.
-
- 4. Her hata d眉zeltildi臒inde <ESC> tu艧una basarak Normal kipe d枚n眉n.
- C眉mleyi d眉zeltmek i莽in 2'den 4'e kadar olan ad谋mlar谋 tekrar edin.
-
----> Bu metinde eksk.
----> Bu metinde bir艧ey eksik.
-
- 5. Metin ekleme 莽al谋艧malar谋n谋 yeterli g枚r眉yorsan谋z a艧a臒谋daki 枚zete ge莽in.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 1 脰ZET
-
-
- 1. 陌mle莽 hem ok tu艧lar谋 hem de hjkl tu艧lar谋 ile hareket ettirilir.
- h (sol) j (a艧a臒谋) k (yukar谋) l (sa臒)
-
- 2. (Konsoldan) Vim'e girmek i莽n yaz谋n: vim DOSYA陌SM陌 <ENTER>
-
- 3. T眉m de臒i艧iklikleri g枚z ard谋 edip vimden 莽谋kmak i莽in yaz谋n:
- <ESC> :q! <ENTER>
- veya t眉m de臒i艧iklikleri kaydetmek i莽in yaz谋n:
- <ESC> :wq <ENTER>
-
- 4. 陌mlecin alt谋ndaki bir karakteri silmek i莽in Normal kipte x yaz谋n.
-
- 5. 陌mlecin alt谋nda metin eklemek i莽in Normal kipte yaz谋n:
- i yaz谋lacak metin <ESC>
-
-NOT: <ESC> tu艧una basmak sizi Normal kipe g枚t眉r眉r ya da istenmeyen tamamlanmam谋艧 bir komutu
- iptal eder.
-
-艦imdi Ders 2 ile devam edin.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.1: S陌LME KOMUTLARI
-
- ** Bir kelimeyi silmek i莽in dw yaz谋n.**
-
- 1. Normal kipte olmakten emin olmak i莽in <ESC> tu艧una bas谋n.
-
- 2. 陌mleci a艧a臒谋daki i艧aretlenmi艧 (-->) sat谋ra g枚t眉r眉n.
-
- 3. 陌mleci silinmesi gereken kelimenin ba艧谋na g枚t眉r眉n.
-
- 4. Kelimeyi silmek i莽in dw yaz谋n.
-
- NOT: dw harfleri siz yazd谋k莽a ekran谋n son sat谋r谋nda g枚r眉lecektir.
- E臒er yanl谋艧 bir 艧eyler yazarsan谋z, yeniden ba艧lamak i莽in <ESC> tu艧una bas谋n.
-
----> Bu sat谋rda 莽erez c眉mleye ait olmayan leblebi kelimeler var.
-
-
- 5. C眉mle d眉zelene kadar ad谋m 3 ve 4'眉 tekrar edin, daha sonra Ders 2.2'ye gidin.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.2: DAHA FAZLA S陌LME KOMUTU
-
-
- ** Sat谋r谋 sonuna kadar silmek i莽in d$ yaz谋n.**
-
- 1. Normal kipte olmaktan emin olmak i莽in <ESC> tu艧una bas谋n.
-
- 2. 陌mleci a艧a臒谋daki i艧aretlenmi艧 (-->) sat谋ra g枚t眉r眉n.
-
- 3. 陌mleci do臒ru olan sat谋r谋n sonuna g枚t眉r眉n. (Birinciden SONRA. )
-
- 4. Sat谋r谋 sonuna kadar silmek i莽in d$ yaz谋n.
- ( d$ yazarken d'den sonra <ALT> ile beraber $ tu艧una bas谋n)
-
----> Birileri bu sat谋r谋n sonunu iki defa yazm谋艧. Birileri bu sat谋r谋n sonunu iki defa yazm谋艧.
-
- 5. Neler oldu臒unu anlamak i莽in Ders 2.3'e gidin.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.3: KOMUTLAR VE NESNELER
-
-
- d silme komutu i莽in bi莽im a艧a臒谋daki gibidir:
-
- [say谋] d nesne VEYA d [say谋] nesne
- Burada:
- say谋 - komutun ka莽 defa 莽al谋艧t谋rlaca臒谋 (iste臒e ba臒l谋, varsay谋lan=1).
- d - silme komutu
- nesne - komutun ne 艧ekilde 莽al谋艧aca臒谋 (a艧a臒谋da listlendi).
-
- Nesnelerin k谋sa bir listesi.
- w - Bo艧lu臒u da i莽ererek, imle莽ten itibaren kelimenin sonuna kadar.
- e - Bo艧lu臒u 陌脟ERMEDEN, imle莽ten itibaren kelimenin sonuna kadar.
- $ - imle莽ten sat谋r谋n sonuna kadar.
-
-NOT: Ser眉ven sevenler i莽in, Normal kipte iken, komut olmadan sadece nesnenin kendisine basmak
- imleci yukardaki listede oldu臒u gibi hareket ettirecektir.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.4: 'KOMUT-NESNE'ye B陌R 陌ST陌SNA
-
-
- ** B眉t眉n bir sat谋r谋 silmek i莽in dd yaz谋n. **
-
- B眉t眉n bir sat谋r silme s谋kl谋臒谋ndan dolay谋, Vi tasar谋mc谋lar谋 bir sat谋r谋
- tamamen silmek i莽in iki d yazman谋n daha kolay olaca臒谋na karar verdiler.
-
- 1. 陌mleci a艧a臒谋daki t眉mceci臒in ikinci sat谋r谋na g枚t眉r眉n.
- 2. Sat谋r谋 silmek i莽in dd yaz谋n.
- 3. 艦imdi de d枚rd眉nc眉 sat谋ra gidin.
- 4. 陌ki sat谋r谋 birden silmek i莽in 2dd (say谋-komut-nesne'yi hat谋rlay谋n) yaz谋n.
-
- 1) G眉ller k谋rm谋z谋d谋r,
- 2) 脟amur e臒lenceli,
- 3) Menek艧eler mavi,
- 4) Bir arabam var,
- 5) Saat bana s枚yler,
- 6) 艦eker tatl谋d谋r
- 7) Ve sen de 枚ylesin
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 2.5: GER陌 AL KOMUTU
-
-
- ** Son komutu geri almak i莽in u , b眉t眉n bir sat谋r谋 d眉zeltmek i莽in U yaz谋n.**
-
- 1. 陌mleci a艧a臒谋daki i艧aretlenmi艧 (-->) sat谋rdaki ilk hatan谋n 眉zerine g枚t眉r眉n.
- 2. 陌lk istenmeyen karakteri silmek i莽in x yaz谋n.
- 3. 艦imdi son 莽al谋艧t谋r谋lan komutu geri almak i莽in u yaz谋n.
- 4. Bu sefer x komutunu kullanarak sat谋rdaki t眉m hatalar谋 d眉zeltin.
- 5. 艦imdi sat谋r谋 ilk haline 莽evirmek i莽in b眉y眉k U yaz谋n.
- 6. 艦imdi U ve daha 枚nceki komutlar谋 geri almak i莽in birka莽 defa u yaz谋n.
- 7. 艦imdi birka莽 defa CTRL-R (CTRL'yi bas谋l谋 tutarken R ye bas谋n) yazarak geri almalar谋 da geri al谋n.
-
----> Buu sat谋谋rdaki hatalar谋 d眉眉zeltinn ve sonra koomutu geri alll谋n.
-
- 8. Bunlar son derece kullan谋艧l谋 komutlard谋r. 艦imdi Ders 2 脰zete ge莽in.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 2 脰ZET
-
-
- 1. 陌mle莽ten itibaren bir kelimeyi silmek i莽in yaz谋n: dw
-
- 2. 陌mle莽ten itibaren bir sat谋r谋 silmek i莽in yaz谋n: d$
-
- 3. B眉t眉n bir sat谋r谋 silmek i莽in yaz谋n: dd
-
- 4. Normal kipte bir komut bi莽imi 艧枚yledir:
-
- [say谋] komut nesne VEYA komut [say谋] nesne
- burada:
- say谋 - komutun ka莽 kere tekrar edece臒i
- komut - ne yap谋laca臒谋, silmek i莽in d oldu臒u gibi
- nesne - komutun nas谋l davranaca臒谋, w (kelime), $ (sat谋r sonu), vb gibi.
-
- 5. 脰nceki hareketleri geri almak i莽in yaz谋n: u (k眉莽眉k u)
- Bir sat谋rdaki t眉m de臒i艧iklikleri geri almak i莽in yaz谋n: U (b眉y眉k u)
- Geri almalar谋 geri almak i莽in yaz谋n: CTRL-R
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.1: KOY KOMUTU
-
-
- ** Son yapt谋臒谋n谋z silme i艧lemini imle莽ten sona geri yerle艧tirmek i莽in p yaz谋n.**
-
- 1. 陌mleci a艧a臒谋daki t眉mceci臒in ilk sat谋r谋na g枚t眉r眉n.
-
- 2. Sat谋r谋 silip Vim'in tamponuna yerle艧tirmek i莽in dd yaz谋n.
-
- 3. 陌mleci, silinmi艧 sat谋r谋 nereye yerle艧tirmek istiyorsan谋z, o sat谋r谋n 脺ZER陌NE g枚t眉r眉n.
-
- 4. Normal kipteyken, sat谋r谋 yerle艧tirmek i莽in p yaz谋n.
-
- 5. T眉m sat谋rlar谋 do臒ru s谋raya koymak i莽in 2'den 4'e kadar olan ad谋mlar谋 tekrar edin.
-
- d) Sen de 枚臒rendin mi?
- b) Menek艧eler mavidir,
- c) Ak谋l 枚臒renilir,
- a) G眉ller k谋rm谋z谋d谋r,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.2: YERLE艦T陌R KOMUTU
-
-
- ** 陌mlecin alt谋nda bir karakter yerle艧tirmek i莽in r yaz谋n.**
-
- 1. 陌mleci a艧a臒谋daki i艧aretlenmi艧(--->) ilk sat谋ra g枚t眉r眉n.
-
- 2. 陌mleci sat谋rdaki ilk hatan谋n 眉zerine g枚t眉r眉n.
-
- 3. Hatay谋 d眉zeltmek i莽in 枚nce r ard谋ndan da do臒ru karakteri yaz谋n.
-
- 4. 陌lk sat谋r d眉zelene kadar ad谋m 2 ve 3'眉 tekrar edin.
-
----> Bu sat谋v yaz谋l谋vken, bivileri yaml谋艧 tu艧tara basm谋艧.
----> Bu sat谋r yaz谋l谋rken, birileri yanl谋艧 tu艧lara basm谋艧.
-
- 5. Ders 3.2'ye ge莽in.
-
-NOT: Unutmay谋n, ezberleyerek de臒il kullanarak 枚臒renin.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.3: DE臑陌艦T陌R KOMUTU
-
-
- ** Bir kelimenin tamam谋n谋 veya par莽as谋n谋 de臒i艧tirmek i莽in cw yaz谋n.
-
- 1. 陌mleci a艧a臒谋daki i艧aretlenmi艧(--->) sat谋ra g枚t眉r眉n.
-
- 2. 陌mleci "sutar" daki u'nun 眉zerine yerle艧tirin.
-
- 3. 脰nce cw ard谋ndan do臒ru kelimeyi girin (bu durumda 'at谋r'.)
-
- 4. <ESC> tu艧una bas谋n ve bir sonraki hataya gidin (de臒i艧mesi gereken ilk karakter.)
-
- 5. 陌lk c眉mle ikincisiyle ayn谋 olana kadar ad谋m 3 ve 4'眉 tekrar edin.
-
----> Bu sutar de臒i艧tir komutu ile de臒i艧neli gereken birka莽 petime i莽eriyor.
----> Bu sat谋r de臒i艧tir komutu ile de臒i艧mesi gereken birka莽 kelime i莽eriyor.
-
-cw'nin sadece kelimeyi de臒i艧tirmedi臒ini, ayn谋 zamanda sizi insert kipine g枚t眉rd眉臒眉ne de dikkat edin.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 3.4: c'Y陌 KULLANARAK DAHA FAZLA DE臑陌艦T陌RME
-
-
- ** De臒i艧tir komutu sil komutu ile ayn谋 nesnelerle kullan谋l谋r.**
-
- 1. De臒i艧tir komutu sil ile ayn谋 yolla 莽al谋艧谋r. Bi莽im 艧枚yledir:
-
- [say谋] c nesne VEYA c [say谋] nesne
-
- 2. Nesneler de ayn谋 zamanda ayn谋d谋r. 脰rne臒in w (word), $ (sat谋r sonu), vb. gibi.
-
- 3. A艧a臒谋daki i艧aretlenmi艧(--->) ilk sat谋ra gidin.
-
- 4. 陌mleci ilk hataya g枚t眉r眉n.
-
- 5. Sat谋r谋n geri kalan k谋sm谋n谋 ikincisi gibi yapmak i莽in c$ yaz谋n ve daha sonra <ESC> tu艧una bas谋n.
-
----> Bu sat谋r谋n sonu d眉zeltilmek i莽in biraz yard谋ma ihtiya莽 duyuyor.
----> Bu sat谋r谋n sonu d眉zeltilmek i莽in c$ komutu kullan谋larak yard谋ma ihtiya莽 duyuyor.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 3 脰ZET
-
-
- 1. Silinmi艧 olan bir metini geri yerle艧tirmek i莽in p yaz谋n. Bu silinmi艧 metini
- imle莽ten hemen SONRA geri yerle艧tirir (e臒er bir sat谋r silinmi艧se hemen imle莽ten sonra, alta
- yerle艧tirilecektir)
-
- 2. 陌mlecin alt谋ndaki karakteri de臒i艧tirmek i莽in 枚nce r ard谋ndan da
- as谋l karakteri yaz谋n.
-
- 3. De臒i艧tir komutu belirlenen nesneyi, imle莽ten nesnenin sonuna kadar de臒i艧tirme imkan谋 verir.
- 脰rne臒in, bir kelimeyi imle莽ten sonuna kadar de臒i艧tirmek i莽in cw , bir sat谋r谋n tamam谋n谋
- de臒i艧tirmek i莽inse c$ yaz谋n.
-
- 4. De臒i艧tir i莽in bi莽im 艧枚yledir:
-
- [say谋] c nesne VEYA c [say谋] nesne
-
-艦imdi bir sonraki derse ge莽in.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.1: KONUM VE DOSYA DURUMU
-
-
- ** Dosya i莽erisindeki konumunuzu ve dosyan谋n durumunu g枚rmek i莽in CTRL-g yaz谋n. **
- ** Dosya i莽erisindeki bir sat谋ra gitmek i莽in SHIFT-g yaz谋n. **
-
- Not: Ad谋mlardan herhangi birini yapmadan 枚nce dersin tamam谋n谋 okuyun!!
-
- 1. Ctrl tu艧unu bas谋l谋 tutun ve g'ye bas谋n. Dosyan谋n sonunda dosya ismini ve bulundu臒unuz konumu
- g枚steren bir durum sat谋r谋 g枚r眉necektir. Ad谋m 3 i莽in sat谋r numaras谋n谋
- unutmay谋n.
-
- 2. Dosyan谋n sonuna gitmek i莽in shift-G 'ye bas谋n.
-
- 3. Daha 枚nce bulundu臒unuz sat谋r numaras谋n谋 yaz谋n ve daha sonra shift-G 'ye bas谋n.
- Bu sizi daha 枚nce bulundu臒unuz ve Ctrl-g 'ye bast谋臒谋n谋z sat谋ra geri g枚t眉recektir.
- (Say谋lar yaz谋l谋rken ekranda G脰R脺NMEYECEKLERD陌R.)
-
- 4. Yapabilece臒inizi d眉艧眉nd眉臒眉n眉zde, ad谋m 1'den 3'e kadar yap谋n.
-
- 脟.N: Bu k谋s谋m orijinal metinde de biraz eksik anlat谋lm谋艧 gibi. Bir sat谋r hakk谋nda bilgi almak i莽in
- Ctrl-g'yi kullan谋n. Herhangi bir sat谋ra gitmek i莽inse, 枚nce sat谋r numaras谋n谋 yaz谋n ve ard谋nan
- shift-g'ye bas谋n. Sat谋r numaras谋 girmeden bas谋lan shift-g sizi sat谋r sonuna g枚t眉r眉r.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.2: ARAMA KOMUTU
-
-
- ** Bir kelime 枚be臒ini aramak i莽in / ile beraber kelime 枚be臒ini girin. **
-
- 1. Normal kipteyken / karakterini yaz谋n. Komut b枚l眉m眉 yerine / karakterinin ve
- imlecin ekran谋n sonunda g枚r眉nd眉臒眉ne dikkat edin.
-
- 2. 艦imdi, 'hatttaa' yaz谋p <ENTER> 'a bas谋n. Bu sizin aramak istedi臒iniz kelime.
-
- 3. Ayn谋 kelime 枚be臒ini tekrar aramak i莽in, basit莽e n yaz谋n.
- Ayn谋 kelime 枚be臒ini z谋t y枚nde aramak i莽in, Shift-N yaz谋n.
-
- 4. E臒er z谋t y枚ne do臒ru bir arama yapmak istiyorsan谋z, / komutu yerine
- ? komutunu kullan谋n.
-
----> "hatttaa" hatay谋 yazman谋n do臒ru yolu de臒il; hatttaa bir hata.
-
-Not: Arama dosyan谋n sonuna ula艧t谋臒谋nda, tekrar ba艧tan ba艧layacakt谋r.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.3: UYAN PARANTEZ ARAMASI
-
-
- ** Uyan bir ),] veya } bulmak i莽in % yaz谋n. **
-
- 1. 陌mleci i艧aretli (--->) sat谋rdaki herhangi bir (, [ veya { karakterinin
- 眉zerine g枚t眉r眉n.
-
- 2. 艦imdi % karakterini yaz谋n.
-
- 3. 陌mle莽 uyan parantez veya ayrac谋n 眉zerine gider.
-
- 4. Uyan ilk parantezin 眉zerine geri d枚nmek i莽in yine % yaz谋n.
-
----> Bu ( i莽erisinde ('ler, ['ler ] ve {'ler } bulunan bir sat谋rd谋r. ))
-
-Not: Bu i莽erisinde uymayan parantezler bulunan bir program谋n yanl谋艧谋n谋 ay谋klamak i莽in
- son derece yararl谋d谋r.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 4.4: HATALARI D脺ZELTMEK 陌脟陌N B陌R YOL
-
-
- ** 'eski' yerine 'yeni' yerle艧tirmek i莽in :s/eski/yeni/g yaz谋n. **
-
- 1. 陌mleci a艧a臒谋daki i艧aretli (--->) sat谋ra g枚t眉r眉n.
-
- 2. :s/buu/bu yaz谋p <ENTER> 'a bas谋n. Bu komutun sadece sat谋rdaki ilk kar艧谋la艧may谋
- d眉zeltti臒ine dikkat edin.
-
- 3. 艦imdi genel olarak sat谋rdaki t眉m de臒i艧ikli臒i yapmak i莽in :s/buu/bu/g yaz谋n.
-
----> Buu birinci, buu ikinci, buu 眉莽眉nc眉 b枚l眉m.
-
- 4. 陌ki sat谋r aras谋ndaki bir karakter katar谋n谋n t眉m眉n眉 de臒i艧tirmek i莽in,
- :#,#s/eski/yeni/g yaz谋n, burada #,# iki sat谋r谋n say谋lar谋d谋r.
- T眉m dosyadaki kar艧谋la艧谋lan kelimeleri de臒i艧tirmek i莽in :%s/eski/yeni/g yaz谋n.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 4 脰ZET
-
-
- 1. Ctrl-g sizin dosyadaki konumunuzu ve dosya durumunu g枚sterir.
- Shift-G dosyan谋n sonuna gider. Shift-G 'den 枚nce bir say谋 yaz谋l谋rsa, o sat谋ra
- gidilir.
-
- 2. Bir s枚zc眉k 枚be臒inden 枚nce / yazmak, 陌LER陌 y枚nde o 枚be臒i arat谋r.
- Bir s枚zc眉k 枚be臒inden 枚nce ? yazmak, GER陌 y枚nde o 枚be臒i arat谋r.
- Bir aramadan sonra, ayn谋 y枚ndeki bir sonraki kar艧谋la艧may谋 bulmak i莽in n ,
- veya z谋t y枚ndekini bulmak i莽in Shift-N yaz谋n.
-
- 3. 陌mle莽 bir (,),[,],{,} parantezi 眉zerindeyken % yazmak, uyan di臒er e艧 parantezi bulur.
-
- 4. Bir sat谋rdaki ilk 'eski'yi 'yeni' ile de臒i艧tirmek i莽in :s/eski/yeni yaz谋n.
- Bir sat谋rdaki t眉m 'eski'leri 'yeni' ile de臒i艧tirmek i莽in :s/eski/yeni/g yaz谋n.
- 陌ki sat谋r aras谋ndaki 枚bekleri de臒i艧tirmek i莽in :#,#s/eski/yeni/g yaz谋n.
- (#'lar sat谋r numaralar谋)
- Bir dosyadaki t眉m kar艧谋la艧malar谋 de臒i艧tirmek i莽in :%s/eski/yeni/g yaz谋n.
- Her seferinde onay sormas谋 i莽in 'c' ekleyin. :%s/eski/yeni/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.1: BIR DI艦 KOMUT 脟ALI艦TIRMAK
-
-
- ** Bir d谋艧 komutu 莽al谋艧t谋rmak i莽in :! ve ard谋ndan istedi臒iniz d谋艧 komutu yaz谋n. **
-
- 1. 陌mleci ekran谋n alt谋na g枚t眉rmek i莽in al谋艧谋k oldu臒unuz : komutunu yaz谋n. Bu size
- bir komut yazma imkan谋 verir.
-
- 2. 艦imdi ! (眉nlem) karakterini yaz谋n. Bu size bir d谋艧 komut 莽al谋艧t谋rma
- imkan谋 verir.
-
- 3. 脰rnek olarak ! karakterini takiben ls yaz谋n ve <ENTER>'a bas谋n. Bu size
- o anda bulundu臒unuz dizindeki dosyalar谋 g枚sterecektir. Veya ls 莽al谋艧mazsa :!dir
- komutunu kullan谋n.
-
-Not: Herhangi bir d谋艧 komutu bu yolla 莽al谋艧t谋rmak m眉mk眉nd眉r.
-
-Not: T眉m : komutlar谋ndan sonra <ENTER> tu艧una bas谋lmal谋d谋r.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.2: DOSYA YAZMAYA DEVAM
-
-
- ** Dosyaya yap谋lan de臒i艧ikli臒i kaydetmek i莽in, :w DOSYA陌SM陌 yaz谋n. **
-
- 1. Bulundu臒unuz dizini listelemek i莽in :!dir veya :!ls yaz谋n.
- Komuttan sonra <ENTER> tu艧una bas谋ca臒谋n谋z谋 zaten biliyorsunuz.
-
- 2. Mevcut olmayan bir dosya ismi se莽in, 枚rne臒in DENEME.
-
- 3. 艦imdi :w DENEME yaz谋n (DENEME sizin se莽ti臒iniz dosya ismi).
-
- 4. Bu t眉m dosyay谋 (Vim Tutor) DENEME isminde ba艧ka bir dosyaya yazar.
- Bunu do臒rulamak i莽in, :!dir yaz谋n ve yeniden bulundu臒unuz dizini listeleyin.
-
-Not: E臒er Vim'den 莽谋k谋p kaydetti臒iniz DENEME dosyas谋n谋 a莽arsan谋z, bunun kaydetti臒iniz
- vimtutor'un ger莽ek bir kopyas谋 oldu臒unu g枚r眉rs眉n眉z.
-
- 5. 艦imdi dosyay谋 艧u komutlar谋 vererek silin (MS-DOS) :!del DENEME
- (veya UNIX) :!rm DENEME
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.3: SE脟MEL陌 YAZ KOMUTU
-
-
- ** Dosyan谋n bir b枚l眉m眉n眉 kaydetmek i莽in, :#,# w DOSYA陌SM陌 yaz谋n. **
-
- 1. Bir kez daha bulundu臒unuz dizini g枚rmek i莽in :!dir veya :!ls yaz谋n,
- ard谋ndan DENEME gibi uygun bir dosya ismi se莽in.
-
- 2. 陌mleci bu sayfan谋n ba艧谋na g枚t眉r眉n ve ard谋ndan CTRL-g'ye basarak sat谋r numaras谋n谋
- 枚臒renin. BU NUMARAYI UNUTMAYIN!
-
- 3. 艦imdi sayfan谋n sonuna gidib ve yine CTRL-g'ye basarak sat谋r numaras谋n谋
- 枚臒renin. BU NUMARAYI DA UNUTMAYIN!
-
- 4. Bir dosyaya sadece bir b枚l眉m眉 kaydetmek i莽in, :#,# w DENEME yaz谋n. #,# sizin
- bakt谋臒谋n谋z say谋lar (眉st,alt) ve DENEME dosyan谋z谋n ismidir.
-
-
- 5. Yine, :!dir yazarak dosyan谋n orada oldu臒una bak谋n ama S陌LMEY陌N.
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 5.4: DOSYALARI B陌RLE艦T陌RMEK-B脰L脺M EKLEMEK
-
-
- ** Bir dosyan谋n i莽eri臒ini eklemek i莽in :r DOSYA陌SM陌 yaz谋n. **
-
- 1. DENEME dosyan谋z谋n 枚nceden bulundu臒undan emin olmak i莽in :!dir yaz谋n.
-
- 2. 陌mleci bu sayfan谋n ba艧谋na yerle艧tirin.
-
-NOT: Ad谋m 3'眉 uygulad谋ktan sonra Ders 5.3'眉 g枚r眉yor olacaks谋n谋z. Daha sonra bu
- derse sayfas谋na d枚n眉n.
-
- 3. 艦imdi DENEME sayfas谋n谋 :r DENEME yazarak aktar谋n.
-
-NOT: Aktard谋臒谋n谋z dosya imlecinizin hemen alt谋na eklenecektir.
-
- 4. Dosyan谋n eklendi臒ini g枚rmek i莽in, geriye gidin. Ders 5.3'ten iki kopya
- oldu臒unu g枚receksiniz; as谋l ve kopya olan谋.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 5 脰ZET
-
-
- 1. :!komut bir d谋艧 komut 莽al谋艧t谋r谋r.
-
- Baz谋 yararl谋 枚rnekler:
- (MS-DOS) (Unix)
- :!dir :!ls - bir dizini listeler.
- :!del DOSYA :!rm DOSYA - DOSYA'y谋 siler.
-
- 2. :w DOSYA陌SM陌 o anki Vim dosyas谋n谋 diske DOSYA陌SM陌 ile kaydeder.
-
- 3. :#,#w DOSYA陌SM陌 # ile # sat谋r aras谋n谋 DOSYA陌SM陌 ile kaydeder.
-
- 4. :r DOSYA陌SM陌 imlecin alt谋ndan ba艧layarak DOSYA陌SM陌 isimli dosyan谋n i莽eri臒ini ekler.
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.1: A脟 KOMUTU
-
-
- ** 陌mlecin a艧a臒谋s谋na bir sat谋r a莽mak ve Insert kipine ge莽mek i莽in o yaz谋n. **
-
- 1. 陌mleci a艧a臒谋daki i艧aretlenmi艧 (--->) sat谋ra g枚t眉r眉n.
-
- 2. 陌mlecin a艧a臒谋s谋na bir sat谋r a莽mak ve Insert kipine ge莽mek i莽in
- o (k眉莽眉k harfle) yaz谋n.
-
- 3. 艦imdi i艧aretlenmi艧 sat谋r谋 kopyalay谋n ve Insert kipinden 莽谋kmak i莽in <ESC>
- tu艧una bas谋n.
-
----> o yazd谋ktan sonra imlec a莽谋lan sat谋ra gidicek ve Insert kipine ge莽ilecek.
-
- 4. 陌mlecin 眉zerinde bir sat谋r a莽mak i莽in, basit莽e b眉y眉k O yaz谋n. Bunu a艧a臒谋daki
- sat谋rda deneyin.
-Bu sat谋r谋n 眉zerine bir sat谋r a莽mak i莽in imle莽 bu sat谋rdayken Shift-o yaz谋n.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.2: EKLE KOMUTU
-
-
- ** 陌mle莽ten sonra metin eklemek i莽in a yaz谋n. **
-
- 1. 陌mleci a艧a臒谋daki i艧aretlenmi艧 (--->) sat谋r谋n sonuna g枚t眉rmek i莽in
- Normal Kipteyken $ yaz谋n.
-
- 2. 陌mlecin alt谋ndaki karakterden sonra metin eklemek i莽in a (k眉莽眉k harfle) yaz谋n.
- (B眉y眉k A sat谋r谋n sonuna ekler).
-
- 3. 艦imdi ilk sat谋r谋 tamamlay谋n. Ekle komutunun Insert kipiyle ayn谋 i艧i yapt谋臒谋na
- dikkat edin. Tek fark metinin eklendi臒i yer.
-脟.N: E臒er a yazarsan谋z imlecin alt谋ndaki karakterden hemen sonra ekleme yapabilirsiniz.
- E臒er Shift-a yazarsan谋z imle莽 sat谋r sonuna gidecek ve hemen ard谋na ekleme yapabileceksiniz.
- Do臒al olarak bizim 枚rne臒imizde Shift-A'y谋 kullanmak daha g眉zel olacakt谋r. 脰nce $ ard谋nan a
- yazmam谋za gerek kalmaz.
-
----> Bu sat谋rda 莽al谋艧abilirsiniz
----> Bu sat谋rda 莽al谋艧abilirsiniz. 脟al谋艧谋rken metin eklemeyi kullan谋n.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.3: B陌R BA艦KA DE臑陌艦T陌R KOMUTU
-
-
- ** Birden fazla karakter de臒i艧tirmek i莽in b眉y眉k R yaz谋n. **
-
- 1. 陌mleci a艧a臒谋daki i艧aretli (--->) sat谋rlar谋n ilkine g枚t眉r眉n.
-
- 2. 陌mleci i艧aretli olan ikinci sat谋rdakinden farkl谋 olan ilk kelimenin
- ba艧谋na g枚t眉r眉n. ( "tu艧lar谋" kelimesi )
-
- 3. 艦imdi b眉y眉k R yaz谋n ve ilk sat谋r谋 ikincisinin ayn谋s谋 yapmak i莽in
- eski metinin 眉zerinden yenisini yaz谋n. Siz yazd谋k莽a metin de臒i艧ecektir.
-
----> Bu sat谋r谋 ikincisinin ayn谋s谋 yapmak i莽in tu艧lar谋 kullan谋n.
----> Bu sat谋r谋 ikincisinin ayn谋s谋 yapmak i莽in R yaz谋n ve metini girin.
-
- 4. 脟谋kmak i莽in <ESC> tu艧una bast谋臒谋n谋zda, de臒i艧memi艧 metinin aynen
- kald谋臒谋na dikkat edin.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 6.4: SET SE脟ENE臑陌
-
- ** Bir se莽enek ayarlay谋n , b枚ylece bir arama veya de臒i艧tirme **
- ** durumu g枚rmezden gelsin. **
-
- 1. 'ignore' kelimesini aramak i莽in:
- /ignore
- yaz谋n.
- Bunu n tu艧una basarak birka莽 kez tekrar edin
-
- 2. :set ic yazarak 'ic' (Ignore case) ayar谋n谋 se莽in.
-
- 3. Tekrar n tu艧una basarak 'ignore' kelimseini aray谋n.
- n tu艧una basarak bu aramay谋 birden 莽ok defa tekrar edin.
-
- 4. :set hls is yazarak 'hlsearch' ve 'incsearch' ayarlar谋n谋 se莽in.
-
- 5. /ignore yazarak arama komutunu tekrar verin ve ne olaca臒谋n谋 g枚r眉n.
-
- 6. Kar艧谋la艧ma vurgular谋n谋 iptal etmek i莽in,
- :nohlsearch yaz谋n.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- DERS 6 脰ZET
-
-
- 1. o yazmak imlecin alt谋nda bir sat谋r a莽ar ve imleci bu a莽谋lm谋艧 sat谋ra
- Insert kipinde yerle艧tirir.
- B眉y眉k O yazmak imlecin 眉zerinde bir sat谋r a莽ar.
-
- 2. 陌mlecin 眉zerindeki karakterden hemen sonra metin eklemek i莽in a yaz谋n.
- B眉y眉k A yazmak hemen sat谋r sonuna giderek metin eklemeye haz谋r hale getirir.
-
- 3. B眉y眉k R yazmak De臒i艧tir kipine girer ve 莽谋kmak i莽in <ESC> tu艧una
- bas谋lana kadar sizi bu kipte b谋rak谋r.
-
- 4. ":set xxx" yazmak "xxx" se莽ene臒ini ayarlar.
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 7: 脟EV陌R陌M陌脟陌 (ON-LINE) YARDIM KOMUTLARI
-
-
- ** 脟evirimi莽i yard谋m sistemini kullan谋n **
-
- Vim geni艧 bir 莽evirimi莽i yard谋m sistemine sahiptir. Ba艧lamak i莽in 艧u 眉莽眉n眉
- deneyebilirsiniz.
- - (e臒er sahipseniz) <HELP> tu艧una bas谋n
- - (e臒er sahipseniz) <F1> tu艧una bas谋n
- - :help yaz谋n ve <ENTER> tu艧una bas谋n
-
- Yard谋m penceresini kapatmak i莽in :q yaz谋p <ENTER> tu艧una bas谋n.
-
- ":help" komutuna de臒i艧ken (arg眉man) vererek herhangi bir konu hakk谋nda
- yard谋m alabilirsini. 艦unlar谋 deneyin (<ENTER> tu艧una basmay谋 unutmay谋n) :
-
- :help w
- :help c_<T
- :help insert-index
- :help user-manual
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ders 8: B陌R BA艦LANGI脟 BET陌臑陌 OLU艦TURUN
-
- ** Switch on Vim features **
- ** Vim'in 枚zelliklerine bak谋n **
-
- Vim Vi'dan 莽ok daha fazla 枚zelli臒e sahiptir fakat bir莽o臒u 枚ntan谋ml谋 olarak kapal谋d谋r.
- Daha fazla 枚zellik kullanabilmek i莽in bir "vimrc" dosyas谋 olu艧turmal谋s谋n谋z.
-
- 1. "vimrc" dosyas谋n谋 d眉zenlemeye ba艧lay谋n, bu i艧letim sisteminize g枚re de臒i艧ir:
-
- 脟.N: (Bu komutu verdi臒inizde e臒er yoksa home dizininizde .vimrc isimli bir dosya olu艧acakt谋r.
- Bu dosyaya vimrc 枚rnek dosyas谋n谋 aktarmak i莽in 2. ad谋mdaki komutu kullanacaks谋n谋z. Bu y眉zden
- vimrc dosyan谋z谋 d眉zenlemeden 枚nce a艧a臒谋daki ad谋mlar谋n hepsini okuyun ve komutlar谋 hat谋rlay谋n.)
-
- :edit ~/.vimrc Unix i莽in
- :edit $VIM/_vimrc MS-Windows i莽in
-
- 2. 艦imdi 枚rnek "vimrc" dosyas谋n谋 okuyun
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. Dosyay谋 kaydedin ve 莽谋k谋n
-
- :write
- :q
-
- Vim'i bir dahaki sefer 莽al谋艧t谋rd谋臒谋n谋zda s枚zdizim (sytax) vurgusu kullan谋lacakt谋r.
- T眉m tercih etti臒iniz ayarlar谋 bu "vimrc" dosyas谋na ekleyebilirsiniz.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Burada Vim E臒itmeni tamamlanm谋艧 oldu. E臒itmendeki ama莽 Vim d眉zenleyicisi hakk谋nda
- k谋sa bir bilgi vermek ve onu kolayca kullanman谋z谋 sa臒lamakt谋. Vim'in tamam谋n谋 枚臒retmek
- 莽ok zordur zira Vim bir莽ok komuta sahiptir.Bundan sonra :help user-manual" komutu ile
- kullan谋c谋 k谋lavuzunu okumal谋s谋n谋z.
-
- Daha fazla okuma ve 莽al谋艧ma i莽in 艧u kitab谋 枚neriyoruz:
- Vim - Vi Improved - by Steve Oualline
- Publisher: New Riders
- Tamamiyle Vim i莽in haz谋rlanm谋艧 ilk kitap. 脰zellikle ilk kullan谋c谋lar i莽in uygun.
- Kitapta bir莽ok 枚rnek ve resim var.
- http://iccf-holland.org/click5.html adresine bakabilirsiniz.
-
- Bu kitap daha eskidir ve Vim'den daha 莽ok Vi i莽indir ancak tavsiye edilir:
- Learning the Vi Editor - by Linda Lamb
- Publisher: O'Reilly & Associates Inc.
- Vi hakk谋nda bilmek isteyece臒iniz neredeyse her艧eyin bulundu臒u bir kitap.
- 6.Bas谋m ayn谋 zamanda Vim hakk谋nda bilgi de i莽ermekte.
-
- Bu e臒itmen Michael C. Pierce ve Robert K. Ware taraf谋ndan yaz谋ld谋,
- Charles Smith taraf谋ndan sa臒lanan fikirlerle Colorado School Of Mines,
- Colorado State University. E-mail: bware@mines.colorado.edu.
-
- Vim i莽in de臒i艧tiren : Bram Moolenaar.
-
- T眉rk莽eye 莽eviren : Serkan "heartsmagic" 脟al谋艧 Y谋l 2005
- E-mail : adresimeyaz (at) yahoo com
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.utf-8 b/runtime/tutor/tutor.utf-8
new file mode 100644
index 000000000..31ba71072
--- /dev/null
+++ b/runtime/tutor/tutor.utf-8
@@ -0,0 +1,970 @@
+===============================================================================
+= W e l c o m e t o t h e V I M T u t o r - Version 1.7 =
+===============================================================================
+
+ Vim is a very powerful editor that has many commands, too many to
+ explain in a tutor such as this. This tutor is designed to describe
+ enough of the commands that you will be able to easily use Vim as
+ an all-purpose editor.
+
+ The approximate time required to complete the tutor is 25-30 minutes,
+ depending upon how much time is spent with experimentation.
+
+ ATTENTION:
+ The commands in the lessons will modify the text. Make a copy of this
+ file to practise on (if you started "vimtutor" this is already a copy).
+
+ It is important to remember that this tutor is set up to teach by
+ use. That means that you need to execute the commands to learn them
+ properly. If you only read the text, you will forget the commands!
+
+ Now, make sure that your Shift-Lock key is NOT depressed and press
+ the j key enough times to move the cursor so that Lesson 1.1
+ completely fills the screen.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1.1: MOVING THE CURSOR
+
+
+ ** To move the cursor, press the h,j,k,l keys as indicated. **
+ ^
+ k Hint: The h key is at the left and moves left.
+ < h l > The l key is at the right and moves right.
+ j The j key looks like a down arrow.
+ v
+ 1. Move the cursor around the screen until you are comfortable.
+
+ 2. Hold down the down key (j) until it repeats.
+ Now you know how to move to the next lesson.
+
+ 3. Using the down key, move to Lesson 1.2.
+
+NOTE: If you are ever unsure about something you typed, press <ESC> to place
+ you in Normal mode. Then retype the command you wanted.
+
+NOTE: The cursor keys should also work. But using hjkl you will be able to
+ move around much faster, once you get used to it. Really!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1.2: EXITING VIM
+
+
+ !! NOTE: Before executing any of the steps below, read this entire lesson!!
+
+ 1. Press the <ESC> key (to make sure you are in Normal mode).
+
+ 2. Type: :q! <ENTER>.
+ This exits the editor, DISCARDING any changes you have made.
+
+ 3. When you see the shell prompt, type the command that got you into this
+ tutor. That would be: vimtutor <ENTER>
+
+ 4. If you have these steps memorized and are confident, execute steps
+ 1 through 3 to exit and re-enter the editor.
+
+NOTE: :q! <ENTER> discards any changes you made. In a few lessons you
+ will learn how to save the changes to a file.
+
+ 5. Move the cursor down to Lesson 1.3.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1.3: TEXT EDITING - DELETION
+
+
+ ** Press x to delete the character under the cursor. **
+
+ 1. Move the cursor to the line below marked --->.
+
+ 2. To fix the errors, move the cursor until it is on top of the
+ character to be deleted.
+
+ 3. Press the x key to delete the unwanted character.
+
+ 4. Repeat steps 2 through 4 until the sentence is correct.
+
+---> The ccow jumpedd ovverr thhe mooon.
+
+ 5. Now that the line is correct, go on to Lesson 1.4.
+
+NOTE: As you go through this tutor, do not try to memorize, learn by usage.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1.4: TEXT EDITING - INSERTION
+
+
+ ** Press i to insert text. **
+
+ 1. Move the cursor to the first line below marked --->.
+
+ 2. To make the first line the same as the second, move the cursor on top
+ of the first character AFTER where the text is to be inserted.
+
+ 3. Press i and type in the necessary additions.
+
+ 4. As each error is fixed press <ESC> to return to Normal mode.
+ Repeat steps 2 through 4 to correct the sentence.
+
+---> There is text misng this .
+---> There is some text missing from this line.
+
+ 5. When you are comfortable inserting text move to lesson 1.5.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1.5: TEXT EDITING - APPENDING
+
+
+ ** Press A to append text. **
+
+ 1. Move the cursor to the first line below marked --->.
+ It does not matter on what character the cursor is in that line.
+
+ 2. Press A and type in the necessary additions.
+
+ 3. As the text has been appended press <ESC> to return to Normal mode.
+
+ 4. Move the cursor to the second line marked ---> and repeat
+ steps 2 and 3 to correct this sentence.
+
+---> There is some text missing from th
+ There is some text missing from this line.
+---> There is also some text miss
+ There is also some text missing here.
+
+ 5. When you are comfortable appending text move to lesson 1.6.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1.6: EDITING A FILE
+
+ ** Use :wq to save a file and exit. **
+
+ !! NOTE: Before executing any of the steps below, read this entire lesson!!
+
+ 1. Exit this tutor as you did in lesson 1.2: :q!
+ Or, if you have access to another terminal, do the following there.
+
+ 2. At the shell prompt type this command: vim tutor <ENTER>
+ 'vim' is the command to start the Vim editor, 'tutor' is the name of the
+ file you wish to edit. Use a file that may be changed.
+
+ 3. Insert and delete text as you learned in the previous lessons.
+
+ 4. Save the file with changes and exit Vim with: :wq <ENTER>
+
+ 5. If you have quit vimtutor in step 1 restart the vimtutor and move down to
+ the following summary.
+
+ 6. After reading the above steps and understanding them: do it.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 1 SUMMARY
+
+
+ 1. The cursor is moved using either the arrow keys or the hjkl keys.
+ h (left) j (down) k (up) l (right)
+
+ 2. To start Vim from the shell prompt type: vim FILENAME <ENTER>
+
+ 3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes.
+ OR type: <ESC> :wq <ENTER> to save the changes.
+
+ 4. To delete the character at the cursor type: x
+
+ 5. To insert or append text type:
+ i type inserted text <ESC> insert before the cursor
+ A type appended text <ESC> append after the line
+
+NOTE: Pressing <ESC> will place you in Normal mode or will cancel
+ an unwanted and partially completed command.
+
+Now continue with Lesson 2.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.1: DELETION COMMANDS
+
+
+ ** Type dw to delete a word. **
+
+ 1. Press <ESC> to make sure you are in Normal mode.
+
+ 2. Move the cursor to the line below marked --->.
+
+ 3. Move the cursor to the beginning of a word that needs to be deleted.
+
+ 4. Type dw to make the word disappear.
+
+ NOTE: The letter d will appear on the last line of the screen as you type
+ it. Vim is waiting for you to type w . If you see another character
+ than d you typed something wrong; press <ESC> and start over.
+
+---> There are a some words fun that don't belong paper in this sentence.
+
+ 5. Repeat steps 3 and 4 until the sentence is correct and go to Lesson 2.2.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.2: MORE DELETION COMMANDS
+
+
+ ** Type d$ to delete to the end of the line. **
+
+ 1. Press <ESC> to make sure you are in Normal mode.
+
+ 2. Move the cursor to the line below marked --->.
+
+ 3. Move the cursor to the end of the correct line (AFTER the first . ).
+
+ 4. Type d$ to delete to the end of the line.
+
+---> Somebody typed the end of this line twice. end of this line twice.
+
+
+ 5. Move on to Lesson 2.3 to understand what is happening.
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.3: ON OPERATORS AND MOTIONS
+
+
+ Many commands that change text are made from an operator and a motion.
+ The format for a delete command with the d delete operator is as follows:
+
+ d motion
+
+ Where:
+ d - is the delete operator.
+ motion - is what the operator will operate on (listed below).
+
+ A short list of motions:
+ w - until the start of the next word, EXCLUDING its first character.
+ e - to the end of the current word, INCLUDING the last character.
+ $ - to the end of the line, INCLUDING the last character.
+
+ Thus typing de will delete from the cursor to the end of the word.
+
+NOTE: Pressing just the motion while in Normal mode without an operator will
+ move the cursor as specified.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.4: USING A COUNT FOR A MOTION
+
+
+ ** Typing a number before a motion repeats it that many times. **
+
+ 1. Move the cursor to the start of the line marked ---> below.
+
+ 2. Type 2w to move the cursor two words forward.
+
+ 3. Type 3e to move the cursor to the end of the third word forward.
+
+ 4. Type 0 (zero) to move to the start of the line.
+
+ 5. Repeat steps 2 and 3 with different numbers.
+
+---> This is just a line with words you can move around in.
+
+ 6. Move on to Lesson 2.5.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.5: USING A COUNT TO DELETE MORE
+
+
+ ** Typing a number with an operator repeats it that many times. **
+
+ In the combination of the delete operator and a motion mentioned above you
+ insert a count before the motion to delete more:
+ d number motion
+
+ 1. Move the cursor to the first UPPER CASE word in the line marked --->.
+
+ 2. Type d2w to delete the two UPPER CASE words
+
+ 3. Repeat steps 1 and 2 with a different count to delete the consecutive
+ UPPER CASE words with one command
+
+---> this ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up.
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.6: OPERATING ON LINES
+
+
+ ** Type dd to delete a whole line. **
+
+ Due to the frequency of whole line deletion, the designers of Vi decided
+ it would be easier to simply type two d's to delete a line.
+
+ 1. Move the cursor to the second line in the phrase below.
+ 2. Type dd to delete the line.
+ 3. Now move to the fourth line.
+ 4. Type 2dd to delete two lines.
+
+---> 1) Roses are red,
+---> 2) Mud is fun,
+---> 3) Violets are blue,
+---> 4) I have a car,
+---> 5) Clocks tell time,
+---> 6) Sugar is sweet
+---> 7) And so are you.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2.7: THE UNDO COMMAND
+
+
+ ** Press u to undo the last commands, U to fix a whole line. **
+
+ 1. Move the cursor to the line below marked ---> and place it on the
+ first error.
+ 2. Type x to delete the first unwanted character.
+ 3. Now type u to undo the last command executed.
+ 4. This time fix all the errors on the line using the x command.
+ 5. Now type a capital U to return the line to its original state.
+ 6. Now type u a few times to undo the U and preceding commands.
+ 7. Now type CTRL-R (keeping CTRL key pressed while hitting R) a few times
+ to redo the commands (undo the undo's).
+
+---> Fiix the errors oon thhis line and reeplace them witth undo.
+
+ 8. These are very useful commands. Now move on to the Lesson 2 Summary.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 2 SUMMARY
+
+
+ 1. To delete from the cursor up to the next word type: dw
+ 2. To delete from the cursor to the end of a line type: d$
+ 3. To delete a whole line type: dd
+
+ 4. To repeat a motion prepend it with a number: 2w
+ 5. The format for a change command is:
+ operator [number] motion
+ where:
+ operator - is what to do, such as d for delete
+ [number] - is an optional count to repeat the motion
+ motion - moves over the text to operate on, such as w (word),
+ $ (to the end of line), etc.
+
+ 6. To move to the start of the line use a zero: 0
+
+ 7. To undo previous actions, type: u (lowercase u)
+ To undo all the changes on a line, type: U (capital U)
+ To undo the undo's, type: CTRL-R
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 3.1: THE PUT COMMAND
+
+
+ ** Type p to put previously deleted text after the cursor. **
+
+ 1. Move the cursor to the first ---> line below.
+
+ 2. Type dd to delete the line and store it in a Vim register.
+
+ 3. Move the cursor to the c) line, ABOVE where the deleted line should go.
+
+ 4. Type p to put the line below the cursor.
+
+ 5. Repeat steps 2 through 4 to put all the lines in correct order.
+
+---> d) Can you learn too?
+---> b) Violets are blue,
+---> c) Intelligence is learned,
+---> a) Roses are red,
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 3.2: THE REPLACE COMMAND
+
+
+ ** Type rx to replace the character at the cursor with x . **
+
+ 1. Move the cursor to the first line below marked --->.
+
+ 2. Move the cursor so that it is on top of the first error.
+
+ 3. Type r and then the character which should be there.
+
+ 4. Repeat steps 2 and 3 until the first line is equal to the second one.
+
+---> Whan this lime was tuoed in, someone presswd some wrojg keys!
+---> When this line was typed in, someone pressed some wrong keys!
+
+ 5. Now move on to Lesson 3.3.
+
+NOTE: Remember that you should be learning by doing, not memorization.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 3.3: THE CHANGE OPERATOR
+
+
+ ** To change until the end of a word, type ce . **
+
+ 1. Move the cursor to the first line below marked --->.
+
+ 2. Place the cursor on the u in lubw.
+
+ 3. Type ce and the correct word (in this case, type ine ).
+
+ 4. Press <ESC> and move to the next character that needs to be changed.
+
+ 5. Repeat steps 3 and 4 until the first sentence is the same as the second.
+
+---> This lubw has a few wptfd that mrrf changing usf the change operator.
+---> This line has a few words that need changing using the change operator.
+
+Notice that ce deletes the word and places you in Insert mode.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 3.4: MORE CHANGES USING c
+
+
+ ** The change operator is used with the same motions as delete. **
+
+ 1. The change operator works in the same way as delete. The format is:
+
+ c [number] motion
+
+ 2. The motions are the same, such as w (word) and $ (end of line).
+
+ 3. Move to the first line below marked --->.
+
+ 4. Move the cursor to the first error.
+
+ 5. Type c$ and type the rest of the line like the second and press <ESC>.
+
+---> The end of this line needs some help to make it like the second.
+---> The end of this line needs to be corrected using the c$ command.
+
+NOTE: You can use the Backspace key to correct mistakes while typing.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 3 SUMMARY
+
+
+ 1. To put back text that has just been deleted, type p . This puts the
+ deleted text AFTER the cursor (if a line was deleted it will go on the
+ line below the cursor).
+
+ 2. To replace the character under the cursor, type r and then the
+ character you want to have there.
+
+ 3. The change operator allows you to change from the cursor to where the
+ motion takes you. eg. Type ce to change from the cursor to the end of
+ the word, c$ to change to the end of a line.
+
+ 4. The format for change is:
+
+ c [number] motion
+
+Now go on to the next lesson.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 4.1: CURSOR LOCATION AND FILE STATUS
+
+ ** Type CTRL-G to show your location in the file and the file status.
+ Type G to move to a line in the file. **
+
+ NOTE: Read this entire lesson before executing any of the steps!!
+
+ 1. Hold down the Ctrl key and press g . We call this CTRL-G.
+ A message will appear at the bottom of the page with the filename and the
+ position in the file. Remember the line number for Step 3.
+
+NOTE: You may see the cursor position in the lower right corner of the screen
+ This happens when the 'ruler' option is set (see :help 'ruler' )
+
+ 2. Press G to move you to the bottom of the file.
+ Type gg to move you to the start of the file.
+
+ 3. Type the number of the line you were on and then G . This will
+ return you to the line you were on when you first pressed CTRL-G.
+
+ 4. If you feel confident to do this, execute steps 1 through 3.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 4.2: THE SEARCH COMMAND
+
+
+ ** Type / followed by a phrase to search for the phrase. **
+
+ 1. In Normal mode type the / character. Notice that it and the cursor
+ appear at the bottom of the screen as with the : command.
+
+ 2. Now type 'errroor' <ENTER>. This is the word you want to search for.
+
+ 3. To search for the same phrase again, simply type n .
+ To search for the same phrase in the opposite direction, type N .
+
+ 4. To search for a phrase in the backward direction, use ? instead of / .
+
+ 5. To go back to where you came from press CTRL-O (Keep Ctrl down while
+ pressing the letter o). Repeat to go back further. CTRL-I goes forward.
+
+---> "errroor" is not the way to spell error; errroor is an error.
+NOTE: When the search reaches the end of the file it will continue at the
+ start, unless the 'wrapscan' option has been reset.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 4.3: MATCHING PARENTHESES SEARCH
+
+
+ ** Type % to find a matching ),], or } . **
+
+ 1. Place the cursor on any (, [, or { in the line below marked --->.
+
+ 2. Now type the % character.
+
+ 3. The cursor will move to the matching parenthesis or bracket.
+
+ 4. Type % to move the cursor to the other matching bracket.
+
+ 5. Move the cursor to another (,),[,],{ or } and see what % does.
+
+---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
+
+
+NOTE: This is very useful in debugging a program with unmatched parentheses!
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 4.4: THE SUBSTITUTE COMMAND
+
+
+ ** Type :s/old/new/g to substitute 'new' for 'old'. **
+
+ 1. Move the cursor to the line below marked --->.
+
+ 2. Type :s/thee/the <ENTER> . Note that this command only changes the
+ first occurrence of "thee" in the line.
+
+ 3. Now type :s/thee/the/g . Adding the g flag means to substitute
+ globally in the line, change all occurrences of "thee" in the line.
+
+---> thee best time to see thee flowers is in thee spring.
+
+ 4. To change every occurrence of a character string between two lines,
+ type :#,#s/old/new/g where #,# are the line numbers of the range
+ of lines where the substitution is to be done.
+ Type :%s/old/new/g to change every occurrence in the whole file.
+ Type :%s/old/new/gc to find every occurrence in the whole file,
+ with a prompt whether to substitute or not.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 4 SUMMARY
+
+
+ 1. CTRL-G displays your location in the file and the file status.
+ G moves to the end of the file.
+ number G moves to that line number.
+ gg moves to the first line.
+
+ 2. Typing / followed by a phrase searches FORWARD for the phrase.
+ Typing ? followed by a phrase searches BACKWARD for the phrase.
+ After a search type n to find the next occurrence in the same direction
+ or N to search in the opposite direction.
+ CTRL-O takes you back to older positions, CTRL-I to newer positions.
+
+ 3. Typing % while the cursor is on a (,),[,],{, or } goes to its match.
+
+ 4. To substitute new for the first old in a line type :s/old/new
+ To substitute new for all 'old's on a line type :s/old/new/g
+ To substitute phrases between two line #'s type :#,#s/old/new/g
+ To substitute all occurrences in the file type :%s/old/new/g
+ To ask for confirmation each time add 'c' :%s/old/new/gc
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 5.1: HOW TO EXECUTE AN EXTERNAL COMMAND
+
+
+ ** Type :! followed by an external command to execute that command. **
+
+ 1. Type the familiar command : to set the cursor at the bottom of the
+ screen. This allows you to enter a command-line command.
+
+ 2. Now type the ! (exclamation point) character. This allows you to
+ execute any external shell command.
+
+ 3. As an example type ls following the ! and then hit <ENTER>. This
+ will show you a listing of your directory, just as if you were at the
+ shell prompt. Or use :!dir if ls doesn't work.
+
+NOTE: It is possible to execute any external command this way, also with
+ arguments.
+
+NOTE: All : commands must be finished by hitting <ENTER>
+ From here on we will not always mention it.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 5.2: MORE ON WRITING FILES
+
+
+ ** To save the changes made to the text, type :w FILENAME. **
+
+ 1. Type :!dir or :!ls to get a listing of your directory.
+ You already know you must hit <ENTER> after this.
+
+ 2. Choose a filename that does not exist yet, such as TEST.
+
+ 3. Now type: :w TEST (where TEST is the filename you chose.)
+
+ 4. This saves the whole file (the Vim Tutor) under the name TEST.
+ To verify this, type :!dir or :!ls again to see your directory.
+
+NOTE: If you were to exit Vim and start it again with vim TEST , the file
+ would be an exact copy of the tutor when you saved it.
+
+ 5. Now remove the file by typing (MS-DOS): :!del TEST
+ or (Unix): :!rm TEST
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 5.3: SELECTING TEXT TO WRITE
+
+
+ ** To save part of the file, type v motion :w FILENAME **
+
+ 1. Move the cursor to this line.
+
+ 2. Press v and move the cursor to the fifth item below. Notice that the
+ text is highlighted.
+
+ 3. Press the : character. At the bottom of the screen :'<,'> will appear.
+
+ 4. Type w TEST , where TEST is a filename that does not exist yet. Verify
+ that you see :'<,'>w TEST before you press Enter.
+
+ 5. Vim will write the selected lines to the file TEST. Use :!dir or !ls
+ to see it. Do not remove it yet! We will use it in the next lesson.
+
+NOTE: Pressing v starts Visual selection. You can move the cursor around
+ to make the selection bigger or smaller. Then you can use an operator
+ to do something with the text. For example, d deletes the text.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 5.4: RETRIEVING AND MERGING FILES
+
+
+ ** To insert the contents of a file, type :r FILENAME **
+
+ 1. Place the cursor just above this line.
+
+NOTE: After executing Step 2 you will see text from Lesson 5.3. Then move
+ DOWN to see this lesson again.
+
+ 2. Now retrieve your TEST file using the command :r TEST where TEST is
+ the name of the file you used.
+ The file you retrieve is placed below the cursor line.
+
+ 3. To verify that a file was retrieved, cursor back and notice that there
+ are now two copies of Lesson 5.3, the original and the file version.
+
+NOTE: You can also read the output of an external command. For example,
+ :r !ls reads the output of the ls command and puts it below the
+ cursor.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 5 SUMMARY
+
+
+ 1. :!command executes an external command.
+
+ Some useful examples are:
+ (MS-DOS) (Unix)
+ :!dir :!ls - shows a directory listing.
+ :!del FILENAME :!rm FILENAME - removes file FILENAME.
+
+ 2. :w FILENAME writes the current Vim file to disk with name FILENAME.
+
+ 3. v motion :w FILENAME saves the Visually selected lines in file
+ FILENAME.
+
+ 4. :r FILENAME retrieves disk file FILENAME and puts it below the
+ cursor position.
+
+ 5. :r !dir reads the output of the dir command and puts it below the
+ cursor position.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 6.1: THE OPEN COMMAND
+
+
+ ** Type o to open a line below the cursor and place you in Insert mode. **
+
+ 1. Move the cursor to the line below marked --->.
+
+ 2. Type the lowercase letter o to open up a line BELOW the cursor and place
+ you in Insert mode.
+
+ 3. Now type some text and press <ESC> to exit Insert mode.
+
+---> After typing o the cursor is placed on the open line in Insert mode.
+
+ 4. To open up a line ABOVE the cursor, simply type a capital O , rather
+ than a lowercase o. Try this on the line below.
+
+---> Open up a line above this by typing O while the cursor is on this line.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 6.2: THE APPEND COMMAND
+
+
+ ** Type a to insert text AFTER the cursor. **
+
+ 1. Move the cursor to the start of the line below marked --->.
+
+ 2. Press e until the cursor is on the end of li .
+
+ 3. Type an a (lowercase) to append text AFTER the cursor.
+
+ 4. Complete the word like the line below it. Press <ESC> to exit Insert
+ mode.
+
+ 5. Use e to move to the next incomplete word and repeat steps 3 and 4.
+
+---> This li will allow you to pract appendi text to a line.
+---> This line will allow you to practice appending text to a line.
+
+NOTE: a, i and A all go to the same Insert mode, the only difference is where
+ the characters are inserted.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 6.3: ANOTHER WAY TO REPLACE
+
+
+ ** Type a capital R to replace more than one character. **
+
+ 1. Move the cursor to the first line below marked --->. Move the cursor to
+ the beginning of the first xxx .
+
+ 2. Now press R and type the number below it in the second line, so that it
+ replaces the xxx .
+
+ 3. Press <ESC> to leave Replace mode. Notice that the rest of the line
+ remains unmodified.
+
+ 4. Repeat the steps to replace the remaining xxx.
+
+---> Adding 123 to xxx gives you xxx.
+---> Adding 123 to 456 gives you 579.
+
+NOTE: Replace mode is like Insert mode, but every typed character deletes an
+ existing character.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 6.4: COPY AND PASTE TEXT
+
+
+ ** Use the y operator to copy text and p to paste it **
+
+ 1. Go to the line marked with ---> below and place the cursor after "a)".
+
+ 2. Start Visual mode with v and move the cursor to just before "first".
+
+ 3. Type y to yank (copy) the highlighted text.
+
+ 4. Move the cursor to the end of the next line: j$
+
+ 5. Type p to put (paste) the text. Then type: a second <ESC> .
+
+ 6. Use Visual mode to select " item.", yank it with y , move to the end of
+ the next line with j$ and put the text there with p .
+
+---> a) this is the first item.
+ b)
+
+ NOTE: you can also use y as an operator; yw yanks one word.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 6.5: SET OPTION
+
+
+ ** Set an option so a search or substitute ignores case **
+
+ 1. Search for 'ignore' by entering: /ignore <ENTER>
+ Repeat several times by pressing n .
+
+ 2. Set the 'ic' (Ignore case) option by entering: :set ic
+
+ 3. Now search for 'ignore' again by pressing n
+ Notice that Ignore and IGNORE are now also found.
+
+ 4. Set the 'hlsearch' and 'incsearch' options: :set hls is
+
+ 5. Now type the search command again and see what happens: /ignore <ENTER>
+
+ 6. To disable ignoring case enter: :set noic
+
+NOTE: To remove the highlighting of matches enter: :nohlsearch
+NOTE: If you want to ignore case for just one search command, use \c
+ in the phrase: /ignore\c <ENTER>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 6 SUMMARY
+
+ 1. Type o to open a line BELOW the cursor and start Insert mode.
+ Type O to open a line ABOVE the cursor.
+
+ 2. Type a to insert text AFTER the cursor.
+ Type A to insert text after the end of the line.
+
+ 3. The e command moves to the end of a word.
+
+ 4. The y operator yanks (copies) text, p puts (pastes) it.
+
+ 5. Typing a capital R enters Replace mode until <ESC> is pressed.
+
+ 6. Typing ":set xxx" sets the option "xxx". Some options are:
+ 'ic' 'ignorecase' ignore upper/lower case when searching
+ 'is' 'incsearch' show partial matches for a search phrase
+ 'hls' 'hlsearch' highlight all matching phrases
+ You can either use the long or the short option name.
+
+ 7. Prepend "no" to switch an option off: :set noic
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 7.1: GETTING HELP
+
+
+ ** Use the on-line help system **
+
+ Vim has a comprehensive on-line help system. To get started, try one of
+ these three:
+ - press the <HELP> key (if you have one)
+ - press the <F1> key (if you have one)
+ - type :help <ENTER>
+
+ Read the text in the help window to find out how the help works.
+ Type CTRL-W CTRL-W to jump from one window to another.
+ Type :q <ENTER> to close the help window.
+
+ You can find help on just about any subject, by giving an argument to the
+ ":help" command. Try these (don't forget pressing <ENTER>):
+
+ :help w
+ :help c_CTRL-D
+ :help insert-index
+ :help user-manual
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 7.2: CREATE A STARTUP SCRIPT
+
+
+ ** Enable Vim features **
+
+ Vim has many more features than Vi, but most of them are disabled by
+ default. To start using more features you have to create a "vimrc" file.
+
+ 1. Start editing the "vimrc" file. This depends on your system:
+ :e ~/.vimrc for Unix
+ :e $VIM/_vimrc for MS-Windows
+
+ 2. Now read the example "vimrc" file contents:
+ :r $VIMRUNTIME/vimrc_example.vim
+
+ 3. Write the file with:
+ :w
+
+ The next time you start Vim it will use syntax highlighting.
+ You can add all your preferred settings to this "vimrc" file.
+ For more information type :help vimrc-intro
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 7.3: COMPLETION
+
+
+ ** Command line completion with CTRL-D and <TAB> **
+
+ 1. Make sure Vim is not in compatible mode: :set nocp
+
+ 2. Look what files exist in the directory: :!ls or :!dir
+
+ 3. Type the start of a command: :e
+
+ 4. Press CTRL-D and Vim will show a list of commands that start with "e".
+
+ 5. Press <TAB> and Vim will complete the command name to ":edit".
+
+ 6. Now add a space and the start of an existing file name: :edit FIL
+
+ 7. Press <TAB>. Vim will complete the name (if it is unique).
+
+NOTE: Completion works for many commands. Just try pressing CTRL-D and
+ <TAB>. It is especially useful for :help .
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Lesson 7 SUMMARY
+
+
+ 1. Type :help or press <F1> or <Help> to open a help window.
+
+ 2. Type :help cmd to find help on cmd .
+
+ 3. Type CTRL-W CTRL-W to jump to another window
+
+ 4. Type :q to close the help window
+
+ 5. Create a vimrc startup script to keep your preferred settings.
+
+ 6. When typing a : command, press CTRL-D to see possible completions.
+ Press <TAB> to use one completion.
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ This concludes the Vim Tutor. It was intended to give a brief overview of
+ the Vim editor, just enough to allow you to use the editor fairly easily.
+ It is far from complete as Vim has many many more commands. Read the user
+ manual next: ":help user-manual".
+
+ For further reading and studying, this book is recommended:
+ Vim - Vi Improved - by Steve Oualline
+ Publisher: New Riders
+ The first book completely dedicated to Vim. Especially useful for beginners.
+ There are many examples and pictures.
+ See http://iccf-holland.org/click5.html
+
+ This book is older and more about Vi than Vim, but also recommended:
+ Learning the Vi Editor - by Linda Lamb
+ Publisher: O'Reilly & Associates Inc.
+ It is a good book to get to know almost anything you want to do with Vi.
+ The sixth edition also includes information on Vim.
+
+ This tutorial was written by Michael C. Pierce and Robert K. Ware,
+ Colorado School of Mines using ideas supplied by Charles Smith,
+ Colorado State University. E-mail: bware@mines.colorado.edu.
+
+ Modified for Vim by Bram Moolenaar.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.zh.big5 b/runtime/tutor/tutor.zh.big5
deleted file mode 100644
index 4daad6470..000000000
--- a/runtime/tutor/tutor.zh.big5
+++ /dev/null
@@ -1,852 +0,0 @@
-===============================================================================
-= 舧  綷 弄  V I M 毙 祘   セ 1.5 =
-===============================================================================
- vim 琌ㄣΤ㏑獶盽眏絪胯竟絞碩セ毙祘讽い
- ぃ碞冈灿ざ残セ毙祘砞璸ヘ夹琌量瓃ㄇゲ璶膀セ㏑τ磝搐硂
- ㄇ㏑眤碞镑甧盢vim讽硄ノ窾絪胯竟ㄓㄏノ
-
- ЧΘセ毙祘ず甧惠璶25-30だ牧∕眤癡絤丁
-
- –竊㏑巨盢穦эセゅ崩滤眤確セゅ捌セ礛捌セ
- 秈︽癡絤(狦眤琌硄筁"vimtutor"ㄓ币笆毙祘ê或セゅ碞竒琌捌セ)
-
- ち癘翴セ毙祘砞璸隔琌ㄏノい秈︽厩策碞琌弧眤惠璶硄筁
- 磅︽㏑ㄓ厩策ウセōタ絋ノ猭狦眤琌綷弄τぃ巨ê或眤
- 穦е框а硂ㄇ㏑
-
- 瞷叫絋﹚眤Shift-Lock(糶玛﹚龄)临⊿Τ礛龄絃
- ダ龄 j ì镑Ω计ㄓ簿笆夹材竊ず甧镑Ч骸辊
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊簿笆夹
-
-
- ““ 璶簿笆夹叫ㄌ酚弧だ hjkl 龄 ““
-
- ^
- k 矗ボ h 龄オ娩–Ω碞穦オ簿笆
- < h l > l 龄娩–Ω碞穦簿笆
- j j 龄癬ㄓ禜や狠よ绰絙繷
- v
-
- 1. 叫繦種辊ず簿笆夹眤谋眔滴狝ゎ
-
- 2. ︽龄(j)瞷夹確︽
-
----> 瞷眤莱赣竒厩穦簿笆量
-
- 3. 瞷叫ㄏノ︽龄盢夹簿笆材量
-
-矗ボ狦眤ぃ幢絋﹚眤┮ダ叫<ESC>龄タ盽(Normal)家Α
- 礛Ω眖龄絃块眤稱璶㏑
-
-矗ボ夹龄莱讽タ盽琌ㄏノhjkl龄策篋ぇ眤碞镑е硉
- 辊ず矪簿笆夹
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊VIM秈㎝癶
-
-
- !! 疭矗ボ穛叫綷弄Ч俱セ竊ず甧礛磅︽┮量秆㏑
-
- 1. 叫<ESC>龄(硂琌絋玂眤矪タ盽家Α)
-
- 2. 礛块 :q! <ó>
-
----> 硂贺よΑ癶絪胯竟荡ぃ穦玂眤秈絪胯竟ㄓ┮暗э笆
- 狦眤稱玂э癶叫块
- :wq <ó>
-
- 3. 狦眤㏑︽矗ボ才叫块镑盿眤セ毙祘㏑ê碞琌
-
- vimtutor <ó>
-
- 硄盽薄猵眤ノ硂贺よΑ
-
- vim tutor <ó>
-
----> 硂柑 'vim' ボ秈vim絪胯竟τ 'tutor'玥琌眤非称璶絪胯ゅン
-
- 4. 狦眤獺竒╟╟癘硂ㄇ˙艼杠叫眖˙艼1磅︽˙艼3癶礛
- Ω秈絪胯竟钡帝盢夹簿笆材量材竊ㄓ膥尿и毙祘量秆
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊ゅセ絪胯ぇ埃
-
-
- ** タ盽(Normal)家Α x 龄ㄓ埃夹┮竚才**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> ê︽
-
- 2. タ块岿粇叫盢夹簿非称埃才竚矪
-
- 3. 礛 x 龄盢岿粇才埃奔
-
- 4. 確˙艼2˙艼4タゎ
-
----> The ccow jumpedd ovverr thhe mooon.
-
- 5. 赣︽竒タ竊ず甧琌材量材竊
-
-疭矗ボ眤聅凝セ毙祘ぃ璶眏︽癘拘癘翴ㄏノい厩策
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊ゅセ絪胯ぇ础
-
-
- ** タ盽家Α i 龄ㄓ础ゅセ**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> 材︽
-
- 2. ㄏ眔材︽ず甧筽材︽叫盢夹簿ゅセ材才非称础
- 竚
-
- 3. 礛 i 龄钡帝块ゲ璶ゅセ才
-
- 4. ┮Τゅセ常タЧ拨叫 <ESC> 龄タ盽家Α
- 確˙艼2˙艼4獽タ
-
----> There is text misng this .
----> There is some text missing from this line.
-
- 5. 狦眤癸ゅセ础巨竒骸種叫钡帝綷弄挡
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量挡
-
-
- 1. 夹辊ゅセい簿笆琂ノ絙繷龄ㄏノ hjkl ダ龄
- h (オ簿) j (︽) k (︽) l (簿)
-
- 2. 饼秈vim絪胯竟(眖㏑︽矗ボ才)叫块vim ゅン <ó>
-
- 3. 饼癶vim絪胯竟叫块㏑斌┮Τэ
-
- <ESC> :q! <ó>
-
- ┪块㏑玂┮Τэ
-
- <ESC> :wq <ó>
-
- 4. タ盽家Α埃夹┮竚才叫 x
-
- 5. タ盽家Α璶夹┮竚秨﹍础ゅセ叫
-
- i 块ゲ璶ゅセ <ESC>
-
-疭矗ボ <ESC> 龄穦盿眤タ盽家Α┪ぃ戳辨┪场だЧΘ
-㏑
-
-材量挡钡ㄓ膥尿材量ず甧
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊埃摸㏑
-
-
- ** 块 dw 眖夹矪埃虫/虫迭ソЮ**
-
- 1. 叫 <ESC> 龄絋玂眤矪タ盽家Α
-
- 2. 叫盢夹簿笆セ竊い夹癘Τ ---> ê︽
-
- 3. 叫盢夹簿非称璶埃虫迭秨﹍
-
- 4. 钡帝块 dw 埃奔赣虫迭
-
- 疭矗ボ眤┮块 dw 穦眤块瞷辊程︽狦眤块
- Τ粇叫 <ESC> 龄礛穝ㄓ
-
----> There are a some words fun that don't belong paper in this sentence.
-
- 5. 確˙艼3˙艼4タЧ拨钡帝膥尿材量材竊ず甧
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊ㄤ埃摸㏑
-
-
- ** 块 d$ 眖讽玡夹埃︽ソ**
-
- 1. 叫 <ESC> 龄絋玂眤矪タ盽家Α
-
- 2. 叫盢夹簿笆セ竊い夹癘Τ ---> ê︽
-
- 3. 叫盢夹簿笆赣︽Ю场(碞琌材翴腹ˉ.ˇ)
-
- 4. 礛块 d$ 眖夹矪讽玡︽Ю场
-
----> Somebody typed the end of this line twice. end of this line twice.
-
-
- 5. 叫膥尿厩策材量材竊碞笵琌或ㄆ
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊闽㏑㎝癸禜
-
-
- 埃㏑ d Α
-
- [number] d object ┪ d [number] object
-
- ㄤ種
- number - 磅︽㏑Ω计(匡兜砞竚 1 )
- d - 埃
- object - ㏑┮璶巨癸禜(Τ闽ざ残)
-
- 虏祏癸禜
- w - 眖讽玡夹讽玡竚虫/虫迭ソЮ珹
- e - 眖讽玡夹讽玡竚虫/虫迭ソЮ琌 *ぃ* 珹
- $ - 眖讽玡夹讽玡竚讽玡︽ソ
-
-疭矗ボ
- 癸玦贝叫タ盽家Α度莱癸禜龄τぃㄏノ㏑玥
- 盢夹簿笆タ癸禜┮妓
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊癸禜㏑疭薄猵
-
-
- ** 块 dd 埃俱讽玡︽ **
-
- 懦俱︽埃蔼繵VIM 砞璸∕﹚璶虏て俱︽埃度惠璶︽
- 阑ゴㄢΩ d 碞埃奔夹┮俱︽
-
- 1. 叫盢夹簿笆セ竊い祏琿辅い材︽
- 2. 块 dd 埃赣︽
- 3. 礛簿笆材︽
- 4. 钡帝块 2dd (临癘眔玡量筁 number-command-object 盾) 埃ㄢ︽
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材き竊篗摸㏑
-
-
- ** 块 u ㄓ篗程磅︽㏑块 U ㄓタ俱︽**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> ê︽盢ㄤ竚材岿粇
- 矪
- 2. 块 x 埃材ぃ稱玂痙ダ
- 3. 礛块 u 篗程磅︽(Ω)㏑
- 4. 硂Ω璶ㄏノ x タセ︽┮Τ岿粇
- 5. 瞷块糶 U 確赣︽﹍篈
- 6. 钡帝Ω块 u 篗 U の玡㏑
- 7. 礛Ω块 CTRL-R ( CTRL 龄ぃ秨钡帝块 R 龄) 硂妓碞
- 磅︽確㏑碞琌篗奔篗㏑
-
----> Fiix the errors oon thhis line and reeplace them witth undo.
-
- 8. 硂ㄇ常琌獶盽Τノ㏑琌材量挡
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量挡
-
-
- 1. 饼眖讽玡夹埃虫/虫迭ソЮ叫块dw
-
- 2. 饼眖讽玡夹埃讽玡︽ソЮ叫块d$
-
- 3. 饼埃俱︽叫块dd
-
- 4. タ盽家Α㏑Α琌
-
- [number] command object ┪ command [number] object
- ㄤ種琌
- number - 琌㏑磅︽Ω计
- command - 璶暗ㄆ薄ゑ d 埃
- object - 璶巨癸禜ゑ w 虫/虫迭$ ︽ソ单单
- $ (to the end of line), etc.
-
- 5. 饼篗玡巨叫块u (糶u)
- 饼篗︽い┮暗э笆叫块U (糶U)
- 饼篗玡篗㏑確玡巨挡狦叫块CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊竚摸㏑
-
-
- ** 块 p 盢程Ω埃ず甧竚夹ぇ **
-
- 1. 叫盢夹簿笆セ竊いボ璖琿辅︽
-
- 2. 块 dd 盢赣︽埃硂妓穦盢赣︽玂vim絯≧跋い
-
- 3. 钡帝盢夹簿笆非称竚竚よ癘琌よ瓳
-
- 4. 礛タ盽家Α(<ESC>龄秈)块 p 盢赣︽诌禟竚
-
- 5. 確˙艼2˙艼4盢┮Τ︽ㄌ竚タ絋竚
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊蠢传摸㏑
-
-
- ** 块 r ㎝才蠢传夹┮竚才**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> 材︽
-
- 2. 叫簿笆夹材岿粇続讽竚
-
- 3. 钡帝块 r 硂妓碞盢岿粇蠢传奔
-
- 4. 確˙艼2㎝˙艼3材︽竒эЧ拨
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. 礛и膥尿厩材量材竊
-
-疭矗ボち癘眤璶ㄏノい厩策τぃ琌癘拘い厩策
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊э摸㏑
-
-
- ** 璶э跑虫/虫迭场だ┪场叫块 cw **
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> 材︽
-
- 2. 钡帝р夹虫迭 lubw ダ u 竚ê柑
-
- 3. 礛块 cw 碞タ赣虫迭(セㄒ硂柑琌块 ine )
-
- 4. 程 <ESC> 龄礛夹﹚岿粇材非称эダ矪
-
- 5. 確˙艼3㎝˙艼4材Ч筽材
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-矗ボ叫猔種 cw ㏑ぃ度度琌蠢传虫迭琵眤秈ゅセ础篈
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊ㄏノcㄤэ摸㏑
-
-
- ** э摸ㄏノ埃摸㏑┮ㄏノ癸禜把计**
-
- 1. э摸よΑ蛤埃摸㏑琌璓巨Α琌
-
- [number] c object ┪ c [number] object
-
- 2. 癸禜把计琌妓ゑ w 虫/虫迭$︽ソ单单
-
- 3. 叫盢夹簿笆セ竊い夹癘Τ ---> 材︽
-
- 4. 钡帝盢夹簿笆材岿粇矪
-
- 5. 礛块 c$ ㄏ眔赣︽逞场だタ眔材︽妓程 <ESC> 龄
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量挡
-
-
- 1. 璶穝竚竒埃ゅセず甧叫块糶ダ p赣巨盢埃
- ゅセず甧竚夹ぇ狦程Ω埃琌俱︽ê或赣︽盢竚
- 讽玡夹┮︽︽
-
- 2. 璶蠢传夹┮竚才叫块糶 r ㎝璶蠢传奔竚才穝
- 才
-
- 3. э摸㏑す砛眤э跑﹚癸禜眖讽玡夹┮竚癸禜ソЮ
- ゑ块 cw 蠢传讽玡夹虫迭ソЮず甧块 c$ 蠢传讽
- 玡夹︽ソず甧
-
- 4. э摸㏑Α琌
-
- [number] c object ┪ c [number] object
-
-и膥尿厩策量
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊﹚のゅン篈
-
-
- ** 块 CTRL-g 陪ボ讽玡絪胯ゅンい讽玡夹┮︽竚のゅン篈獺
- 块 SHIFT-G 玥钡铬锣ゅンい琘﹚︽**
-
- 矗ボち癘璶硄弄セ竊ず甧ぇ磅︽˙艼!!!
-
- 1.  CTRL 龄ぃ秨礛 g 龄礛碞穦程┏场瞷篈獺
- ︽陪ボず甧琌讽玡絪胯ゅン㎝ゅン羆︽计叫癘˙艼3︽腹
-
- 2.  SHIFT-G 龄ㄏ眔讽玡夹钡铬锣ゅン程︽
-
- 3. 块眤纯氨痙︽腹礛 SHIFT-G硂妓碞眤材Ω
- CTRL-g ┮︽猔種块︽腹︽腹琌ぃ穦辊陪ボㄓ
- 
-
- 4. 狦腀種眤膥尿磅︽˙艼1˙艼
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊穓摸㏑
-
-
- ** 块 / のЮ繦才﹃ノ讽玡ゅンい琩т赣才﹃**
-
- 1. タ盽家Α块 / 才眤穦猔種赣才㎝夹常穦瞷辊┏
- 场硂蛤 : ㏑琌妓
-
- 2. 钡帝块 errroor <ó>êerrroor碞琌眤璶琩т才﹃
-
- 3. 璶琩тΩ才﹃惠璶 n 龄璶はよ琩тΩ
- 才﹃叫块 Shift-N 
-
- 4. 狦眤稱癴琩т才﹃叫ㄏノ ? 蠢 / 秈︽
-
----> When the search reaches the end of the file it will continue at the start.
-
- "errroor" is not the way to spell error; errroor is an error.
-
- 矗ボ狦琩т竒笷ゅンソЮ琩т穦笆眖ゅン繷场膥尿琩т
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊皌癸珹腹琩т
-
-
- **  % 琩т皌癸珹腹 )]}**
-
- 1. р夹セ竊夹癘Τ --> ê︽いヴ ([ ┪ { 矪
-
- 2. 钡帝 % 才
-
- 3. 夹竚莱讽琌皌癸珹腹矪
-
- 4. Ω % 碞铬皌癸材珹腹矪
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-矗ボ祘秸刚硂ノㄓ琩тぃ皌癸珹腹琌Τノ
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量材竊タ岿粇よ猭ぇ
-
-
- ** 块 :s/old/new/g 蠢传 old  new**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> ê︽
-
- 2. 块 :s/thee/the <ó> 叫猔種赣㏑э跑夹┮︽材で皌
- ﹃
-
- 3. 块 :s/thee/the/g 玥琌蠢传︽で皌﹃
-
----> the best time to see thee flowers is in thee spring.
-
- 4. 璶蠢传ㄢ︽ぇ丁瞷–で皌﹃叫块 :#,#s/old/new/g (#,#琌
- ㄢ︽︽腹)块 :%s/old/new/g 玥琌蠢传俱ゅンい–で皌﹃
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量挡
-
-
- 1. Ctrl-g ノ陪ボ讽玡夹┮竚㎝ゅン篈獺Shift-G ノ盢夹铬
- 锣ゅン程︽篤︽腹礛 Shift-G 玥琌盢夹簿笆赣︽
- 腹︽
-
- 2. 块 / 礛候繦才﹃琌玥琌讽玡┮絪胯ゅ郎い琩т赣才﹃
- 块拜腹 ? 礛候繦才﹃琌玥琌讽玡┮絪胯ゅ郎い玡琩т赣
- 才﹃ЧΘΩ琩тぇ n 龄玥琌確Ω㏑よ琩
- т才﹃┮┪ Shift-N はよ琩т赣才﹃┮
-
- 3. 狦夹讽玡竚琌珹腹()[]{} % 盢夹簿笆皌癸
- 珹腹
-
- 4. ︽ず蠢传繷才﹃ old 穝才﹃ new叫块 :s/old/new
- ︽ず蠢传┮Τ才﹃ old 穝才﹃ new叫块 :s/old/new/g
- ㄢ︽ず蠢传┮Τ才﹃ old 穝才﹃ new叫块 :#,#s/old/new/g
- ゅンず蠢传┮Τ才﹃ old 穝才﹃ new叫块 :%s/old/new/g
- 秈︽ゅ蠢传高拜ノめ絋粄–蠢传惠睰 c 匡兜叫块 :%s/old/new/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材き量材竊 VIM ず磅︽场㏑よ猭
-
-
- ** 块 :! 礛候繦帝块场㏑磅︽赣场㏑**
-
- 1. и┮剪眡 : ㏑砞竚夹辊┏场硂妓碞琵眤块㏑
-
- 2. 钡帝块稰鼓腹 ! 硂才硂妓碞す砛眤磅︽场 shell ㏑
-
- 3. и ls ㏑ㄒ块 !ls <ó> 赣㏑碞穦羭眤讽玡ヘ魁
- ず甧碞眤㏑︽矗ボ才块 ls ㏑挡狦妓狦 !ls ⊿癬
- ノ眤刚刚 :!dir 
-
----> 矗ボ ┮Τ场㏑常硂贺よΑ磅︽
-
----> 矗ボ ┮Τ : ㏑常ゲ斗 <ó> 沧
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材き量材竊闽玂ゅン獺
-
-
- ** 璶盢癸ゅンэ笆玂ゅンい叫块 :w FILENAME **
-
- 1. 块 :!dir ┪ :!ls 莉讽玡ヘ魁ず甧眤莱讽笵程临眔篤
- <ó> 
-
- 2. 匡拒﹟ゼゅンゑ TEST 
-
- 3. 钡帝块 :w TEST (矪 TEST 琌眤┮匡拒ゅン)
-
- 4. 赣㏑穦 TEST ゅン玂俱ゅン (VIM 毙祘)絋玂タ絋玂
- 叫Ω块 :!dir 琩眤ヘ魁ず甧
-
----> 叫猔種狦眤癶 VIM 礛ゅン TEST 把计秈ê或赣ゅンず
- 甧莱赣眤玂ゅンず甧琌Ч妓
-
- 5. 瞷眤硄筁块 :!rm TEST ㄓ埃 TEST ゅン
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材き量材竊ㄣΤ匡拒┦玂㏑
-
-
- ** 璶玂ゅン场だず甧叫块 :#,# w FILENAME **
-
- 1. ㄓ磅︽Ω :!dir ┪ :!ls 莉讽玡ヘ魁ず甧礛匡拒続
- ぃゅンゑ TEST 
-
- 2. 钡帝盢夹簿笆セ程郴狠礛 CTRL-g т赣︽︽腹а
- ︽腹瓳
-
- 3. 钡帝р夹簿笆セ程┏狠Ω CTRL-g а硂︽瓳
-
- 4. 玂ゅ彻琘场だ叫块 :#,# w TEST 硂柑 #,# 碞琌
- 璶―眤癘︽腹(郴狠︽腹,┏狠︽腹)τ TEST 碞琌匡﹚ゅン
-
- 5. 程ノ :!dir 絋粄ゅン琌タ絋玂琌硂Ω埃奔
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材き量材竊矗㎝ゅン
-
-
- ** 璶讽玡ゅンい础ゅンず甧叫块 :r FILENAME **
-
- 1. 叫龄 :!dir 絋粄眤玡承 TEST ゅン临
-
- 2. 礛盢夹簿笆讽玡郴狠
-
-疭矗ボ 磅︽˙艼3ぇ眤盢材き量材竊叫┕簿笆硂柑ㄓ
-
- 3. 钡帝硄筁 :r TEST 盢玡承 TEST ゅン矗秈ㄓ
-
-疭矗ボ眤┮矗秈ㄓゅン盢眖夹┮竚矪秨﹍竚
-
- 4. 絋粄ゅン竒矗Θ簿笆夹ㄓ竚碞猔種Τㄢ材
- き量材竊琌セ琌ㄓゅン捌セ
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材き量挡
-
-
- 1. :!command ノ磅︽场㏑ command
-
- 叫ㄇ龟悔ㄒ
- :!dir - ノ陪ボ讽玡ヘ魁ず甧
- :!rm FILENAME - ノ埃 FILENAME ゅン
-
- 2. :w FILENAME 盢讽玡 VIM いタ絪胯ゅン玂 FILENAME
- ゅンい
-
- 3. :#,#w FILENAME 盢讽玡絪胯ゅン材 # ︽材 # ︽ず甧玂ゅン
- FILENAME い
-
- 4. :r FILENAME 矗合絃ゅン FILENAME 盢ㄤ础讽玡ゅン夹竚
- 
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材せ量材竊ゴ秨摸㏑
-
-
- ** 块 o 盢夹よゴ秨穝︽秈础家Α**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> ê︽
-
- 2. 钡帝块糶 o 夹 *よ* ゴ秨穝︽秈础家Α
-
- 3. 礛確夹癘Τ ---> ︽ <ESC> 龄癶础家Ατ秈タ盽家Α
-
----> After typing o the cursor is placed on the open line in Insert mode.
-
- 4. 夹 *よ* ゴ秨穝︽惠璶块糶 O τぃ琌糶 o
- 碞叫︽代刚讽夹矪赣︽ Shift-O
- 赣︽よ穝秨︽
-
-Open up a line above this by typing Shift-O while the cursor is on this line.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材せ量材竊夹础摸㏑
-
-
- ** 块 a 盢夹ぇ础ゅセ **
-
- 1. 叫タ盽家Α硄筁块 $ 盢夹簿笆セ竊い夹癘Τ ---> 材︽
- ソЮ
-
- 2. 钡帝块糶 a 玥夹ぇ础ゅセ糶 A 玥钡︽
- ソ础ゅセ
-
-矗ボ块糶 A 巨よ猭︽ソ础ゅセ磷块 i夹﹚
- 程才块ゅセ<ESC> 確タ盽家Α絙繷龄簿笆夹の
- x 埃讽玡夹┮竚才单单窖羉馒巨
-
- 3. 巨ぇ材︽碞干Ч俱叫猔種夹础ゅセ籔础家Α琌膀
- セЧ璓琌ゅセ础竚﹚祔Τぃ絵
-
----> This line will allow you to practice
----> This line will allow you to practice appending text to the end of a line.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材せ量材竊竚传摸㏑セ
-
-
- ** 块糶 R 硈尿蠢传才**
-
- 1. 叫盢夹簿笆セ竊い夹癘Τ ---> 材︽
-
- 2. 簿笆夹材︽いぃ夹Τ ---> 材︽材虫迭秨﹍虫
- 迭 last 矪
-
- 3. 礛块糶 R 秨﹍р材︽いぃ材︽逞才硋块碞
- 场蠢传奔Τ才τㄏ眔材︽Ч筽材︽
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. 叫猔種狦眤 <ESC> 癶竚传家Α確タ盽家Α﹟ゼ蠢传ゅセ盢ご
- 礛玂
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材せ量材竊砞竚摸㏑匡兜
-
-
- ** 砞竚ㄏ琩т┪蠢传┛菠糶匡兜 **
-
-
- 1. 璶琩т虫迭 ignore タ盽家Α块 /ignore 璶確琩т赣迭
- 確 n 龄
-
- 2. 礛砞竚 ic 匡兜(ic碞琌璣ゅ┛菠糶Ignore Caseダ罽糶迭)
- 块
- :set ic
-
- 3. 瞷硄筁龄 n 龄Ω琩т虫迭 ignore確琩т確龄 n 龄
-
- 4. 礛砞竚 hlsearch ㎝ incsearch 硂ㄢ匡兜块ず甧
- :set hls is
-
- 5. 瞷Ω块琩т㏑穦Τぐ或狦
- /ignore
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材せ量挡
-
-
- 1. 块糶 o 夹よゴ秨穝︽盢夹竚穝秨︽秈
- 础家Α
- 块糶 O 夹よゴ秨穝︽盢夹竚穝秨︽秈
- 础家Α
-
- 2. 块糶 a 夹┮竚ぇ础ゅセ
- 块糶 A 夹┮︽︽ソぇ础ゅセ
-
- 3. 块糶 R 盢秈蠢传家Α <ESC> 龄癶蠢传家Ατ秈タ盽
- 家Α
-
- 4. 块 :set xxx 砞竚 xxx 匡兜
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量絬腊㏑
-
- ** ㄏノ絬腊╰参 **
-
- Vim 局Τ灿璓絬腊╰参璶币笆赣腊╰参叫匡拒贺よ
- 猭ぇ
- -  <HELP> 龄 (狦龄絃Τ杠)
- -  <F1> 龄 (狦龄絃Τ杠)
- - 块 :help <ó>
-
- 块 :q <ó> 闽超腊怠
-
- 矗ㄑタ絋把计倒":help"㏑眤т闽赣肈腊叫刚喷
- 把计(аó龄瓳:)
-
- :help w <ó>
- :help c_<T <ó>
- :help insert-index <ó>
- :help user-manual <ó>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 材量承币笆竲セ
-
- ** 币ノvim **
-
- Vim疭┦璶ゑvi眔场だ常⊿Τ縀币笆
- 眤眔承vimrcゅン
-
- 1. 秨﹍絪胯vimrcゅン硂∕眤┮ㄏノ巨╰参
-
- :edit ~/.vimrc 硂琌Unix╰参┮ㄏノ㏑
- :edit $VIM/_vimrc 硂琌Windows╰参┮ㄏノ㏑
-
- 2. 钡帝旧vimrc璖ㄒゅン
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 玂ゅン㏑
-
- :write
-
- Ω眤币笆vim絪胯竟碞穦Τ粂猭蔼獹眤膥尿р眤尺
- 舧ㄤウ砞竚睰硂vimrcゅンい
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- vim 毙祘挡セ毙祘琌虏ざ残vim絪胯竟ì琵眤
- 甧厩穦ㄏノセ絪胯竟ゐ眅借好vim临Τ㏑セ毙祘┮ざ
- 残临畉眔环帝㎡┮眤璶弘硄杠临辨膥尿瓳˙眤綷弄
- vimもㄏノ㏑琌
- :help user-manual
-
- 秈˙把σ㎝厩策硂セ眔崩滤
-
- Vim - Vi Improved - Steve Oualline
- New Riders
-
- 硂琌材セЧ量秆vim膟癸厩疭Τノㄤい临Τ秖龟ㄒ
- ㎝瓜ボ饼冈薄叫砐拜 http://iccf-holland.org/click5.html
-
- 硂セゑ耕ρτず甧璶琌viτぃ琌vim琌眔崩滤
-
- Learning the Vi Editor - Linda Lamb
- O'Reilly & Associates Inc.
-
- 硂琌セぃ岿硄筁ウ眤碭镑秆场vi镑暗ㄆ薄材
- せセㄇ闽vim獺
-
- セ毙祘琌パㄓCalorado School of MineseMichael C. PierceRobert K.
- Ware ┮絪糶ㄤいㄓColorado State UniversityCharles Smith矗ㄑ
- 承種絪硄獺琌
-
- bware@mines.colorado.edu
-
- セ毙祘パBram Moolenaar盡vim秈︽璹
-
-
-
- 亩ē
- ===========
- 虏砰いゅ毙祘陆亩ぇ亩辩 <beos@turbolinux.com.cn>临Τ
- 羛╰linuxrat@gnuchina.org
-
- 羉砰いゅ毙祘琌眖虏砰いゅ毙祘陆亩ㄏノ Debian GNU/Linux いゅ兜ヘ
- 舱約谨ネ絪糶いゅ簙锣絏竟 autoconvert 锣传τΘ癸锣
- 传挡狦暗ㄇ灿竊э笆
-
- 跑癘魁
- =========
- 200208る30ら 辩 <beos@turbolinux.com.cn>
- 稰谅 RMS@SMTH タ盢矪岿粇タ
-
- 200204る22ら 辩 <linuxrat@gnuchina.org>
- 稰谅 xuandong@sh163.net タ盢ㄢ矪岿タ
-
- 200203る18ら 辩 <linuxrat@gnuchina.org>
- 沮Bram Molenaarネ200203る16らㄓ獺璶―盢vimtutor1.4い亩
- どvimtutor1.5
-
- 200111る15ら 辩 <linuxrat@gnuchina.org>
- 盢vimtutor1.4い亩矗ユ倒Bram Molenaar㎝Sven Guckes
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.zh.euc b/runtime/tutor/tutor.zh.euc
deleted file mode 100644
index 7f80f690b..000000000
--- a/runtime/tutor/tutor.zh.euc
+++ /dev/null
@@ -1,851 +0,0 @@
-===============================================================================
-= 欢 迎 阅 读 《 V I M 教 程 》 —— 版本 1.5 =
-===============================================================================
- vim 是一个具有很多命令的功能非常强大的编辑器。限于篇幅,在本教程当中
- 就不详细介绍了。本教程的设计目标是讲述一些必要的基本命令,而掌握好这
- 些命令,您就能够很容易将vim当作一个通用的万能编辑器来使用了。
-
- 完成本教程的内容大约需要25-30分钟,取决于您训练的时间。
-
- 每一节的命令操作将会更改本文。推荐您复制本文的一个副本,然后在副本上
- 进行训练(如果您是通过"vimtutor"来启动教程的,那么本文就已经是副本了)。
-
- 切记一点∶本教程的设计思路是在使用中进行学习的。也就是说,您需要通过
- 执行命令来学习它们本身的正确用法。如果您只是阅读而不操作,那么您可能
- 会很快遗忘这些命令的!
-
- 好了,现在请确定您的Shift-Lock(大小写锁定键)还没有按下,然后按键盘上
- 的字母键 j 足够多的次数来移动光标,直到第一节的内容能够完全充满屏幕。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第一讲第一节∶移动光标
-
-
- ※※ 要移动光标,请依照说明分别按下 h、j、k、l 键。 ※※
-
- ^
- k 提示∶ h 的键位于左边,每次按下就会向左移动。
- < h l > l 的键位于右边,每次按下就会向右移动。
- j j 键看起来很象一支尖端方向朝下的箭头。
- v
-
- 1. 请随意在屏幕内移动光标,直至您觉得舒服为止。
-
- 2. 按下下行键(j),直到出现光标重复下行。
-
----> 现在您应该已经学会如何移动到下一讲吧。
-
- 3. 现在请使用下行键,将光标移动到第二讲。
-
-提示∶如果您不敢确定您所按下的字母,请按下<ESC>键回到正常(Normal)模式。
- 然后再次从键盘输入您想要的命令。
-
-提示∶光标键应当也能正常工作的。但是使用hjkl键,在习惯之后您就能够快速
- 地在屏幕内四处移动光标了。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第一讲第二节∶VIM的进入和退出
-
-
- !! 特别提示∶敬请阅读完整本一节的内容,然后才能执行以下所讲解的命令。
-
- 1. 请按<ESC>键(这是为了确保您处在正常模式)。
-
- 2. 然后输入∶ :q! <回车>
-
----> 这种方式的退出编辑器绝不会保存您进入编辑器以来所做的改动。
- 如果您想保存更改再退出,请输入∶
- :wq <回车>
-
- 3. 如果您看到了命令行提示符,请输入能够带您回到本教程的命令,那就是∶
-
- vimtutor <回车>
-
- 通常情况下您也可以用这种方式∶
-
- vim tutor <回车>
-
----> 这里的 'vim' 表示进入vim编辑器,而 'tutor'则是您准备要编辑的文件。
-
- 4. 如果您自信已经牢牢记住了这些步骤的话,请从步骤1执行到步骤3退出,然
- 后再次进入编辑器。接着将光标移动到第一讲第三节来继续我们的教程讲解。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第一讲第三节∶文本编辑之删除
-
-
- ** 在正常(Normal)模式下,可以按下 x 键来删除光标所在位置的字符。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的那一行。
-
- 2. 为了修正输入错误,请将光标移至准备删除的字符的位置处。
-
- 3. 然后按下 x 键将错误字符删除掉。
-
- 4. 重复步骤2到步骤4,直到句子修正为止。
-
----> The ccow jumpedd ovverr thhe mooon.
-
- 5. 好了,该行已经修正了,下一节内容是第一讲第四节。
-
-特别提示∶在您浏览本教程时,不要强行记忆。记住一点∶在使用中学习。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第一讲第四节∶文本编辑之插入
-
-
- ** 在正常模式下,可以按下 i 键来插入文本。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的第一行。
-
- 2. 为了使得第一行内容雷同于第二行,请将光标移至文本第一个字符准备插入
- 的位置。
-
- 3. 然后按下 i 键,接着输入必要的文本字符。
-
- 4. 所有文本都修正完毕,请按下 <ESC> 键返回正常模式。
- 重复步骤2至步骤4以便修正句子。
-
----> There is text misng this .
----> There is some text missing from this line.
-
- 5. 如果您对文本插入操作已经很满意,请接着阅读下面的小结。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第一讲小结
-
-
- 1. 光标在屏幕文本中的移动既可以用箭头键,也可以使用 hjkl 字母键。
- h (左移) j (下行) k (上行) l (右移)
-
- 2. 欲进入vim编辑器(从命令行提示符),请输入∶vim 文件名 <回车>
-
- 3. 欲退出vim编辑器,请输入以下命令放弃所有修改∶
-
- <ESC> :q! <回车>
-
- 或者输入以下命令保存所有修改∶
-
- <ESC> :wq <回车>
-
- 4. 在正常模式下删除光标所在位置的字符,请按∶ x
-
- 5. 在正常模式下要在光标所在位置开始插入文本,请按∶
-
- i 输入必要文本 <ESC>
-
-特别提示∶按下 <ESC> 键会带您回到正常模式或者取消一个不期望或者部分完成
-的命令。
-
-好了,第一讲到此结束。下面接下来继续第二讲的内容。
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第二讲第一节∶删除类命令
-
-
- ** 输入 dw 可以从光标处删除至一个单字/单词的末尾。**
-
- 1. 请按下 <ESC> 键确保您处于正常模式。
-
- 2. 请将光标移动到本节中下面标记有 ---> 的那一行。
-
- 3. 请将光标移至准备要删除的单词的开始。
-
- 4. 接着输入 dw 删除掉该单词。
-
- 特别提示∶您所输入的 dw 会在您输入的同时出现在屏幕的最后一行。如果您输
- 入有误,请按下 <ESC> 键取消,然后重新再来。
-
----> There are a some words fun that don't belong paper in this sentence.
-
- 5. 重复步骤3至步骤4,直至句子修正完毕。接着继续第二讲第二节内容。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第二讲第二节∶其他删除类命令
-
-
- ** 输入 d$ 从当前光标删除到行末。**
-
- 1. 请按下 <ESC> 键确保您处于正常模式。
-
- 2. 请将光标移动到本节中下面标记有 ---> 的那一行。
-
- 3. 请将光标移动到该行的尾部(也就是在第一个点号‘.’后面)。
-
- 4. 然后输入 d$ 从光标处删至当前行尾部。
-
----> Somebody typed the end of this line twice. end of this line twice.
-
-
- 5. 请继续学习第二讲第三节就知道是怎么回事了。
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第二讲第三节∶关于命令和对象
-
-
- 删除命令 d 的格式如下∶
-
- [number] d object 或者 d [number] object
-
- 其意如下∶
- number - 代表执行命令的次数(可选项,缺省设置为 1 )。
- d - 代表删除。
- object - 代表命令所要操作的对象(下面有相关介绍)。
-
- 一个简短的对象列表∶
- w - 从当前光标当前位置直到单字/单词末尾,包括空格。
- e - 从当前光标当前位置直到单字/单词末尾,但是 *不* 包括空格。
- $ - 从当前光标当前位置直到当前行末。
-
-特别提示∶
- 对于勇于探索者,请在正常模式下面仅按代表相应对象的键而不使用命令,则
- 将看到光标的移动正如上面的对象列表所代表的一样。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第二讲第四节∶对象命令的特殊情况
-
-
- ** 输入 dd 可以删除整一个当前行。 **
-
- 鉴于整行删除的高频度,VIM 的设计者决定要简化整行删除,仅需要在同一行上
- 击打两次 d 就可以删除掉光标所在的整行了。
-
- 1. 请将光标移动到本节中下面的短句段落中的第二行。
- 2. 输入 dd 删除该行。
- 3. 然后移动到第四行。
- 4. 接着输入 2dd (还记得前面讲过的 number-command-object 吗?) 删除两行。
-
- 1) Roses are red,
- 2) Mud is fun,
- 3) Violets are blue,
- 4) I have a car,
- 5) Clocks tell time,
- 6) Sugar is sweet
- 7) And so are you.
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第二讲第五节∶撤消类命令
-
-
- ** 输入 u 来撤消最后执行的命令,输入 U 来修正整行。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的那一行,并将其置于第一个错误
- 处。
- 2. 输入 x 删除第一个不想保留的字母。
- 3. 然后输入 u 撤消最后执行的(一次)命令。
- 4. 这次要使用 x 修正本行的所有错误。
- 5. 现在输入一个大写的 U ,恢复到该行的原始状态。
- 6. 接着多次输入 u 以撤消 U 以及更前的命令。
- 7. 然后多次输入 CTRL-R (先按下 CTRL 键不放开,接着输入 R 键) ,这样就
- 可以执行恢复命令,也就是撤消掉撤消命令。
-
----> Fiix the errors oon thhis line and reeplace them witth undo.
-
- 8. 这些都是非常有用的命令。下面是第二讲的小结了。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第二讲小结
-
-
- 1. 欲从当前光标删除至单字/单词末尾,请输入∶dw
-
- 2. 欲从当前光标删除至当前行末尾,请输入∶d$
-
- 3. 欲删除整行,请输入∶dd
-
- 4. 在正常模式下一个命令的格式是∶
-
- [number] command object 或者 command [number] object
- 其意是∶
- number - 代表的是命令执行的次数
- command - 代表要做的事情,比如 d 代表删除
- object - 代表要操作的对象,比如 w 代表单字/单词,$ 代表到行末等等。
- $ (to the end of line), etc.
-
- 5. 欲撤消以前的操作,请输入∶u (小写的u)
- 欲撤消在一行中所做的改动,请输入∶U (大写的U)
- 欲撤消以前的撤消命令,恢复以前的操作结果,请输入∶CTRL-R
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第三讲第一节∶置入类命令
-
-
- ** 输入 p 将最后一次删除的内容置入光标之后 **
-
- 1. 请将光标移动到本节中下面示范段落的首行。
-
- 2. 输入 dd 将该行删除,这样会将该行保存到vim的缓冲区中。
-
- 3. 接着将光标移动到准备置入的位置的上方。记住∶是上方哦。
-
- 4. 然后在正常模式下(<ESC>键进入),输入 p 将该行粘贴置入。
-
- 5. 重复步骤2至步骤4,将所有的行依序放置到正确的位置上。
-
- d) Can you learn too?
- b) Violets are blue,
- c) Intelligence is learned,
- a) Roses are red,
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第三讲第二节∶替换类命令
-
-
- ** 输入 r 和一个字符替换光标所在位置的字符。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的第一行。
-
- 2. 请移动光标到第一个错误的适当位置。
-
- 3. 接着输入 r ,这样就能将错误替换掉了。
-
- 4. 重复步骤2和步骤3,直到第一行已经修改完毕。
-
----> Whan this lime was tuoed in, someone presswd some wrojg keys!
----> When this line was typed in, someone pressed some wrong keys!
-
- 5. 然后我们继续学校第三讲第三节。
-
-特别提示∶切记您要在使用中学习,而不是在记忆中学习。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第三讲第三节∶更改类命令
-
-
- ** 要改变一个单字/单词的部分或者全部,请输入 cw **
-
- 1. 请将光标移动到本节中下面标记有 ---> 的第一行。
-
- 2. 接着把光标放在单词 lubw 的字母 u 的位置那里。
-
- 3. 然后输入 cw 就可以修正该单词了(在本例这里是输入 ine 。)
-
- 4. 最后按 <ESC> 键,然后光标定位到下一个错误第一个准备更改的字母处。
-
- 5. 重复步骤3和步骤4,直到第一个句子完全雷同第二个句子。
-
----> This lubw has a few wptfd that mrrf changing usf the change command.
----> This line has a few words that need changing using the change command.
-
-提示∶请注意 cw 命令不仅仅是替换了一个单词,也让您进入文本插入状态了。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第三讲第四节∶使用c指令的其他更改类命令
-
-
- ** 更改类指令可以使用同删除类命令所使用的对象参数。**
-
- 1. 更改类指令的工作方式跟删除类命令是一致的。操作格式是∶
-
- [number] c object 或者 c [number] object
-
- 2. 对象参数也是一样的,比如 w 代表单字/单词,$代表行末等等。
-
- 3. 请将光标移动到本节中下面标记有 ---> 的第一行。
-
- 4. 接着将光标移动到第一个错误处。
-
- 5. 然后输入 c$ 使得该行剩下的部分更正得同第二行一样。最后按 <ESC> 键。
-
----> The end of this line needs some help to make it like the second.
----> The end of this line needs to be corrected using the c$ command.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第三讲小结
-
-
- 1. 要重新置入已经删除的文本内容,请输入小写字母 p。该操作可以将已删除
- 的文本内容置于光标之后。如果最后一次删除的是一个整行,那么该行将置
- 于当前光标所在行的下一行。
-
- 2. 要替换光标所在位置的字符,请输入小写的 r 和要替换掉原位置字符的新字
- 符即可。
-
- 3. 更改类命令允许您改变指定的对象,从当前光标所在位置直到对象的末尾。
- 比如输入 cw 可以替换当前光标到单词的末尾的内容;输入 c$ 可以替换当
- 前光标到行末的内容。
-
- 4. 更改类命令的格式是∶
-
- [number] c object 或者 c [number] object
-
-下面我们继续学习下一讲。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第四讲第一节∶定位及文件状态
-
-
- ** 输入 CTRL-g 显示当前编辑文件中当前光标所在行位置以及文件状态信息。
- 输入 SHIFT-G 则直接跳转到文件中的某一指定行。**
-
- 提示∶切记要先通读本节内容,之后才可以执行以下步骤!!!
-
- 1. 按下 CTRL 键不放开然后按 g 键。然后就会看到页面最底部出现一个状态信
- 息行,显示的内容是当前编辑的文件名和文件的总行数。请记住步骤3的行号。
-
- 2. 按下 SHIFT-G 键可以使得当前光标直接跳转到文件最后一行。
-
- 3. 输入您曾停留的行号,然后按下 SHIFT-G。这样就可以返回到您第一次按下
- CTRL-g 时所在的行好了。注意∶输入行号时,行号是不会在屏幕上显示出来
- 的。
-
- 4. 如果愿意,您可以继续执行步骤1至步骤三。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第四讲第二节∶搜索类命令
-
-
- ** 输入 / 以及尾随的字符串可以用以在当前文件中查找该字符串。**
-
- 1. 在正常模式下输入 / 字符。您此时会注意到该字符和光标都会出现在屏幕底
- 部,这跟 : 命令是一样的。
-
- 2. 接着输入 errroor <回车>。那个errroor就是您要查找的字符串。
-
- 3. 要查找同上一次的字符串,只需要按 n 键。要向相反方向查找同上一次的字
- 符串,请输入 Shift-N 即可。
-
- 4. 如果您想逆向查找字符串,请使用 ? 代替 / 进行。
-
----> When the search reaches the end of the file it will continue at the start.
-
- "errroor" is not the way to spell error; errroor is an error.
-
- 提示∶如果查找已经到达文件末尾,查找会自动从文件头部继续查找。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第四讲第三节∶配对括号的查找
-
-
- ** 按 % 可以查找配对的括号 )、]、}。**
-
- 1. 把光标放在本节下面标记有 --> 那一行中的任何一个 (、[ 或 { 处。
-
- 2. 接着按 % 字符。
-
- 3. 此时光标的位置应当是在配对的括号处。
-
- 4. 再次按 % 就可以跳回配对的第一个括号处。
-
----> This ( is a test line with ('s, ['s ] and {'s } in it. ))
-
-提示∶在程序调试时,这个功能用来查找不配对的括号是很有用的。
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第四讲第四节∶修正错误的方法之一
-
-
- ** 输入 :s/old/new/g 可以替换 old 为 new。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的那一行。
-
- 2. 输入 :s/thee/the <回车> 。请注意该命令只改变光标所在行的第一个匹配
- 串。
-
- 3. 输入 :s/thee/the/g 则是替换全行的匹配串。
-
----> the best time to see thee flowers is in thee spring.
-
- 4. 要替换两行之间出现的每个匹配串,请输入 :#,#s/old/new/g (#,#代表的是
- 两行的行号)。输入 :%s/old/new/g 则是替换整个文件中的每个匹配串。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第四讲小结
-
-
- 1. Ctrl-g 用于显示当前光标所在位置和文件状态信息。Shift-G 用于将光标跳
- 转至文件最后一行。先敲入一个行号然后按 Shift-G 则是将光标移动至该行
- 号代表的行。
-
- 2. 输入 / 然后紧随一个字符串是则是在当前所编辑的文档中向后查找该字符串。
- 输入问号 ? 然后紧随一个字符串是则是在当前所编辑的文档中向前查找该字
- 符串。完成一次查找之后按 n 键则是重复上一次的命令,可在同一方向上查
- 找下一个字符串所在;或者按 Shift-N 向相反方向查找下该字符串所在。
-
- 3. 如果光标当前位置是括号(、)、[、]、{、},按 % 可以将光标移动到配对的
- 括号上。
-
- 4. 在一行内替换头一个字符串 old 为新的字符串 new,请输入 :s/old/new
- 在一行内替换所有的字符串 old 为新的字符串 new,请输入 :s/old/new/g
- 在两行内替换所有的字符串 old 为新的字符串 new,请输入 :#,#s/old/new/g
- 在文件内替换所有的字符串 old 为新的字符串 new,请输入 :%s/old/new/g
- 进行全文替换时询问用户确认每个替换需添加 c 选项,请输入 :%s/old/new/gc
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第五讲第一节∶在 VIM 内执行外部命令的方法
-
-
- ** 输入 :! 然后紧随著输入一个外部命令可以执行该外部命令。**
-
- 1. 按下我们所熟悉的 : 命令设置光标到屏幕底部。这样就可以让您输入命令了。
-
- 2. 接着输入感叹号 ! 这个字符,这样就允许您执行外部的 shell 命令了。
-
- 3. 我们以 ls 命令为例。输入 !ls <回车> 。该命令就会列举出您当前目录的
- 内容,就如同您在命令行提示符下输入 ls 命令的结果一样。如果 !ls 没起
- 作用,您可以试试 :!dir 看看。
-
----> 提示∶ 所有的外部命令都可以以这种方式执行。
-
----> 提示∶ 所有的 : 命令都必须以 <回车> 告终。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第五讲第二节∶关于保存文件的更多信息
-
-
- ** 要将对文件的改动保存到文件中,请输入 :w FILENAME 。**
-
- 1. 输入 :!dir 或者 :!ls 获知当前目录的内容。您应当已知道最后还得敲
- <回车> 吧。
-
- 2. 选择一个尚未存在文件名,比如 TEST 。
-
- 3. 接着输入 :w TEST (此处 TEST 是您所选择的文件名。)
-
- 4. 该命令会以 TEST 为文件名保存整个文件 (VIM 教程)。为了确保正确保存,
- 请再次输入 :!dir 查看您的目录列表内容。
-
----> 请注意∶如果您退出 VIM 然后在以文件名 TEST 为参数进入,那么该文件内
- 容应该同您保存时的文件内容是完全一样的。
-
- 5. 现在您可以通过输入 :!rm TEST 来删除 TEST 文件了。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第五讲第三节∶一个具有选择性的保存命令
-
-
- ** 要保存文件的部分内容,请输入 :#,# w FILENAME **
-
- 1. 再来执行一次 :!dir 或者 :!ls 获知当前目录的内容,然后选择一个合适的
- 不重名的文件名,比如 TEST 。
-
- 2. 接着将光标移动至本页的最顶端,然后按 CTRL-g 找到该行的行号。别忘了
- 行号哦。
-
- 3. 接着把光标移动至本页的最底端,再按一次 CTRL-g 。也别忘了这个行好哦。
-
- 4. 为了只保存文章的某个部分,请输入 :#,# w TEST 。这里的 #,# 就是上面
- 要求您记住的行号(顶端行号,底端行号),而 TEST 就是选定的文件名。
-
- 5. 最后,用 :!dir 确认文件是否正确保存。但是这次先别删除掉。
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第五讲第四节∶提取和合并文件
-
-
- ** 要向当前文件中插入另外的文件的内容,请输入 :r FILENAME **
-
- 1. 请键入 :!dir 确认您前面创建的 TEST 文件还在。
-
- 2. 然后将光标移动至当前页面的顶端。
-
-特别提示∶ 执行步骤3之后您将看到第五讲第三节,请届时再往下移动回到这里来。
-
- 3. 接着通过 :r TEST 将前面创建的名为 TEST 的文件提取进来。
-
-特别提示∶您所提取进来的文件将从光标所在位置处开始置入。
-
- 4. 为了确认文件已经提取成功,移动光标回到原来的位置就可以注意有两份第
- 五讲第三节,一份是原本,另外一份是来自文件的副本。
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第五讲小结
-
-
- 1. :!command 用于执行一个外部命令 command。
-
- 请看一些实际例子∶
- :!dir - 用于显示当前目录的内容。
- :!rm FILENAME - 用于删除名为 FILENAME 的文件。
-
- 2. :w FILENAME 可将当前 VIM 中正在编辑的文件保存到名为 FILENAME 的文
- 件中。
-
- 3. :#,#w FILENAME 可将当前编辑文件第 # 行至第 # 行的内容保存到文件
- FILENAME 中。
-
- 4. :r FILENAME 可提取磁盘文件 FILENAME 并将其插入到当前文件的光标位置
- 后面。
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第六讲第一节∶打开类命令
-
-
- ** 输入 o 将在光标的下方打开新的一行并进入插入模式。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的那一行。
-
- 2. 接着输入小写的 o 在光标 *下方* 打开新的一行并进入插入模式。
-
- 3. 然后复制标记有 ---> 的行并按 <ESC> 键退出插入模式而进入正常模式。
-
----> After typing o the cursor is placed on the open line in Insert mode.
-
- 4. 为了在光标 *上方* 打开新的一行,只需要输入大写的 O 而不是小写的 o
- 就可以了。请在下行测试一下吧。当光标处在在该行上时,按 Shift-O可以
- 在该行上方新开一行。
-
-Open up a line above this by typing Shift-O while the cursor is on this line.
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第六讲第二节∶光标后插入类命令
-
-
- ** 输入 a 将可在光标之后插入文本。 **
-
- 1. 请在正常模式下通过输入 $ 将光标移动到本节中下面标记有 ---> 的第一行
- 的末尾。
-
- 2. 接着输入小写的 a 则可在光标之后插入文本了。大写的 A 则可以直接在行
- 末插入文本。
-
-提示∶输入大写 A 的操作方法可以在行末插入文本,避免了输入 i,光标定位到
- 最后一个字符,输入的文本,<ESC> 回复正常模式,箭头右键移动光标以及
- x 删除当前光标所在位置字符等等诸多繁杂的操作。
-
- 3. 操作之后第一行就可以补充完整了。请注意光标后插入文本与插入模式是基
- 本完全一致的,只是文本插入的位置定位稍有不同罢了。
-
----> This line will allow you to practice
----> This line will allow you to practice appending text to the end of a line.
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第六讲第三节∶另外一个置换类命令的版本
-
-
- ** 输入大写的 R 可连续替换多个字符。**
-
- 1. 请将光标移动到本节中下面标记有 ---> 的第一行。
-
- 2. 移动光标到第一行中不同于标有 ---> 的第二行的第一个单词的开始,即单
- 词 last 处。
-
- 3. 然后输入大写的 R 开始把第一行中的不同于第二行的剩余字符逐一输入,就
- 可以全部替换掉原有的字符而使得第一行完全雷同第二行了。
-
----> To make the first line the same as the last on this page use the keys.
----> To make the first line the same as the second, type R and the new text.
-
- 4. 请注意∶如果您按 <ESC> 退出置换模式回复正常模式,尚未替换的文本将仍
- 然保持原状。
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第六讲第四节∶设置类命令的选项
-
-
- ** 设置可使查找或者替换可忽略大小写的选项 **
-
-
- 1. 要查找单词 ignore 可在正常模式下输入 /ignore 。要重复查找该词,可以
- 重复按 n 键。
-
- 2. 然后设置 ic 选项(ic就是英文忽略大小写Ignore Case的首字母缩写词),即
- 输入∶
- :set ic
-
- 3. 现在可以通过键入 n 键再次查找单词 ignore。重复查找可以重复键入 n 键。
-
- 4. 然后设置 hlsearch 和 incsearch 这两个选项,输入以下内容∶
- :set hls is
-
- 5. 现在可以再次输入查找命令,看看会有什么效果∶
- /ignore
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第六讲小结
-
-
- 1. 输入小写的 o 可以在光标下方打开新的一行并将光标置于新开的行首,进入
- 插入模式。
- 输入大写的 O 可以在光标上方打开新的一行并将光标置于新开的行首,进入
- 插入模式。
-
- 2. 输入小写的 a 可以在光标所在位置之后插入文本。
- 输入大写的 A 可以在光标所在行的行末之后插入文本。
-
- 3. 输入大写的 R 将进入替换模式,直至按 <ESC> 键退出替换模式而进入正常
- 模式。
-
- 4. 输入 :set xxx 可以设置 xxx 选项。
-
-
-
-
-
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第七讲∶在线帮助命令
-
- ** 使用在线帮助系统 **
-
- Vim 拥有一个细致全面的在线帮助系统。要启动该帮助系统,请选择如下三种方
- 法之一∶
- - 按下 <HELP> 键 (如果键盘上有的话)
- - 按下 <F1> 键 (如果键盘上有的话)
- - 输入 :help <回车>
-
- 输入 :q <回车> 可以关闭帮助窗口。
-
- 提供一个正确的参数给":help"命令,您可以找到关于该主题的帮助。请试验以
- 下参数(可别忘了按回车键哦。:)∶
-
- :help w <回车>
- :help c_<T <回车>
- :help insert-index <回车>
- :help user-manual <回车>
-
-
-
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 第八讲∶创建一个启动脚本
-
- ** 启用vim的功能 **
-
- Vim的功能特性要比vi多得多,但大部分功能都没有缺省激活。为了启动更多的
- 功能,您得创建一个vimrc文件。
-
- 1. 开始编辑vimrc文件,这取决于您所使用的操作系统∶
-
- :edit ~/.vimrc 这是Unix系统所使用的命令
- :edit $VIM/_vimrc 这是Windows系统所使用的命令
-
- 2. 接着导入vimrc范例文件∶
-
- :read $VIMRUNTIME/vimrc_example.vim
-
- 3. 保存文件,命令为∶
-
- :write
-
- 在下次您启动vim的时候,编辑器就会有了语法高亮的功能。您可以继续把您喜
- 欢的其它功能设置添加到这个vimrc文件中。
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- vim 教程到此结束。本教程只是为了简明地介绍一下vim编辑器,但已足以让您
- 很容易学会使用本编辑器了。毋庸质疑,vim还有很多很多的命令,本教程所介
- 绍的还差得远著呢。所以您要精通的话,还望继续努力哦。下一步您可以阅读
- vim手册,使用的命令是∶
- :help user-manual
-
- 为了更进一步的参考和学习,以下这本书值得推荐∶
-
- Vim - Vi Improved - 作者∶Steve Oualline
- 出版社∶New Riders
-
- 这是第一本完全讲解vim的书籍。对于初学者特别有用。其中还包含有大量实例
- 和图示。欲知详情,请访问 http://iccf-holland.org/click5.html
-
- 以下这本书比较老了而且内容主要是vi而不是vim,但是也值得推荐∶
-
- Learning the Vi Editor - 作者∶Linda Lamb
- 出版社∶O'Reilly & Associates Inc.
-
- 这是一本不错的书,通过它您几乎能够了解到全部vi能够做到的事情。此书的第
- 六个版本也包含了一些关于vim的信息。
-
- 本教程是由来自Calorado School of Minese的Michael C. Pierce、Robert K.
- Ware 所编写的,其中来自Colorado State University的Charles Smith提供了
- 很多创意。编者通信地址是∶
-
- bware@mines.colorado.edu
-
- 本教程已由Bram Moolenaar专为vim进行修订。
-
-
-
- 译制者附言∶
- ===========
- 简体中文教程翻译版之译制者为梁昌泰 <beos@turbolinux.com.cn>,还有
- 另外一个联系地址∶linuxrat@gnuchina.org。
-
- 繁体中文教程是从简体中文教程翻译版使用 Debian GNU/Linux 中文项目小
- 组的于广辉先生编写的中文汉字转码器 autoconvert 转换而成的,并对转
- 换的结果做了一些细节的改动。
-
- 变更记录∶
- =========
- 2002年08月30日 梁昌泰 <beos@turbolinux.com.cn>
- 感谢 RMS@SMTH 的指正,将多处错误修正。
-
- 2002年04月22日 梁昌泰 <linuxrat@gnuchina.org>
- 感谢 xuandong@sh163.net 的指正,将两处错别字修正。
-
- 2002年03月18日 梁昌泰 <linuxrat@gnuchina.org>
- 根据Bram Molenaar先生在2002年03月16日的来信要求,将vimtutor1.4中译
- 版升级到vimtutor1.5。
-
- 2001年11月15日 梁昌泰 <linuxrat@gnuchina.org>
- 将vimtutor1.4中译版提交给Bram Molenaar和Sven Guckes。
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/tutor.zh.utf-8 b/runtime/tutor/tutor.zh.utf-8
new file mode 100644
index 000000000..21d702051
--- /dev/null
+++ b/runtime/tutor/tutor.zh.utf-8
@@ -0,0 +1,852 @@
+===============================================================================
+= 姝 杩 闁 璁 銆 V I M 鏁 绋 銆 鈹鈹 鐗堟湰 1.5 =
+===============================================================================
+ vim 鏄竴鍊嬪叿鏈夊緢澶氬懡浠ょ殑鍔熻兘闈炲父寮峰ぇ鐨勭法杓櫒銆傞檺浜庣瘒骞咃紝鍦ㄦ湰鏁欑▼鐣朵腑
+ 涓嶅氨瑭崇窗浠嬬垂浜嗐傛湰鏁欑▼鐨勮ō瑷堢洰妯欐槸璎涜堪涓浜涘繀瑕佺殑鍩烘湰鍛戒护锛岃屾帉鎻″ソ閫
+ 浜涘懡浠わ紝鎮ㄥ氨鑳藉寰堝鏄撳皣vim鐣朵綔涓鍊嬮氱敤鐨勮惉鑳界法杓櫒渚嗕娇鐢ㄤ簡銆
+
+ 瀹屾垚鏈暀绋嬬殑鍏у澶х磩闇瑕25-30鍒嗛悩锛屽彇姹轰簬鎮ㄨ〒绶寸殑鏅傞枔銆
+
+ 姣忎竴绡鐨勫懡浠ゆ搷浣滃皣鏈冩洿鏀规湰鏂囥傛帹钖︽偍寰╁埗鏈枃鐨勪竴鍊嬪壇鏈紝鐒跺緦鍦ㄥ壇鏈笂
+ 閫茶瑷撶反(濡傛灉鎮ㄦ槸閫氶亷"vimtutor"渚嗗暉鍕曟暀绋嬬殑锛岄偅楹兼湰鏂囧氨宸茬稉鏄壇鏈簡)銆
+
+ 鍒囪涓榛烇赴鏈暀绋嬬殑瑷▓鎬濊矾鏄湪浣跨敤涓茶瀛哥繏鐨勩備篃灏辨槸瑾紝鎮ㄩ渶瑕侀氶亷
+ 鍩疯鍛戒护渚嗗缈掑畠鍊戞湰韬殑姝g⒑鐢ㄦ硶銆傚鏋滄偍鍙槸闁辫畝鑰屼笉鎿嶄綔锛岄偅楹兼偍鍙兘
+ 鏈冨緢蹇伜蹇橀欎簺鍛戒护鐨勶紒
+
+ 濂戒簡锛岀従鍦ㄨ珛纰哄畾鎮ㄧ殑Shift-Lock(澶у皬瀵帠瀹氶嵉)閭勬矑鏈夋寜涓嬶紝鐒跺緦鎸夐嵉鐩や笂
+ 鐨勫瓧姣嶉嵉 j 瓒冲澶氱殑娆℃暩渚嗙Щ鍕曞厜妯欙紝鐩村埌绗竴绡鐨勫収瀹硅兘澶犲畬鍏ㄥ厖婊垮睆骞曘
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗竴璎涚涓绡锔扮Щ鍕曞厜妯
+
+
+ 鈥烩 瑕佺Щ鍕曞厜妯欙紝璜嬩緷鐓ц鏄庡垎鍒ユ寜涓 h銆乯銆乲銆乴 閸点 鈥烩
+
+ ^
+ k 鎻愮ず锔 h 鐨勯嵉浣嶄簬宸﹂倞锛屾瘡娆℃寜涓嬪氨鏈冨悜宸︾Щ鍕曘
+ < h l > l 鐨勯嵉浣嶄簬鍙抽倞锛屾瘡娆℃寜涓嬪氨鏈冨悜鍙崇Щ鍕曘
+ j j 閸电湅璧蜂締寰堣薄涓鏀皷绔柟鍚戞湞涓嬬殑绠牠銆
+ v
+
+ 1. 璜嬮毃鎰忓湪灞忓箷鍏хЩ鍕曞厜妯欙紝鐩磋嚦鎮ㄨ寰楄垝鏈嶇偤姝€
+
+ 2. 鎸変笅涓嬭閸(j)锛岀洿鍒板嚭鐝惧厜妯欓噸寰╀笅琛屻
+
+---> 鐝惧湪鎮ㄦ噳瑭插凡缍撳鏈冨浣曠Щ鍕曞埌涓嬩竴璎涘惂銆
+
+ 3. 鐝惧湪璜嬩娇鐢ㄤ笅琛岄嵉锛屽皣鍏夋绉诲嫊鍒扮浜岃瑳銆
+
+鎻愮ず锔板鏋滄偍涓嶆暍纰哄畾鎮ㄦ墍鎸変笅鐨勫瓧姣嶏紝璜嬫寜涓<ESC>閸靛洖鍒版甯(Normal)妯″紡銆
+ 鐒跺緦鍐嶆寰為嵉鐩よ几鍏ユ偍鎯宠鐨勫懡浠ゃ
+
+鎻愮ず锔板厜妯欓嵉鎳夌暥涔熻兘姝e父宸ヤ綔鐨勩備絾鏄娇鐢╤jkl閸碉紝鍦ㄧ繏鎱d箣寰屾偍灏辫兘澶犲揩閫
+ 鍦板湪灞忓箷鍏у洓铏曠Щ鍕曞厜妯欎簡銆
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗竴璎涚浜岀瘈锔癡IM鐨勯插叆鍜岄鍑
+
+
+ !! 鐗瑰垾鎻愮ず锔版暚璜嬮柋璁瀹屾暣鏈竴绡鐨勫収瀹癸紝鐒跺緦鎵嶈兘鍩疯浠ヤ笅鎵璎涜В鐨勫懡浠ゃ
+
+ 1. 璜嬫寜<ESC>閸(閫欐槸鐐轰簡纰轰繚鎮ㄨ檿鍦ㄦ甯告ā寮)銆
+
+ 2. 鐒跺緦杓稿叆锔 :q! <鍥炶粖>
+
+---> 閫欑ó鏂瑰紡鐨勯鍑虹法杓櫒绲曚笉鏈冧繚瀛樻偍閫插叆绶ㄨ集鍣ㄤ互渚嗘墍鍋氱殑鏀瑰嫊銆
+ 濡傛灉鎮ㄦ兂淇濆瓨鏇存敼鍐嶉鍑猴紝璜嬭几鍏ワ赴
+ :wq <鍥炶粖>
+
+ 3. 濡傛灉鎮ㄧ湅鍒颁簡鍛戒护琛屾彁绀虹锛岃珛杓稿叆鑳藉甯舵偍鍥炲埌鏈暀绋嬬殑鍛戒护锛岄偅灏辨槸锔
+
+ vimtutor <鍥炶粖>
+
+ 閫氬父鎯呮硜涓嬫偍涔熷彲浠ョ敤閫欑ó鏂瑰紡锔
+
+ vim tutor <鍥炶粖>
+
+---> 閫欒!鐨 'vim' 琛ㄧず閫插叆vim绶ㄨ集鍣紝鑰 'tutor'鍓囨槸鎮ㄦ簴鍌欒绶ㄨ集鐨勬枃浠躲
+
+ 4. 濡傛灉鎮ㄨ嚜淇″凡缍撶墷鐗㈣浣忎簡閫欎簺姝ラ鐨勮┍锛岃珛寰炴椹1鍩疯鍒版椹3閫鍑猴紝鐒
+ 寰屽啀娆¢插叆绶ㄨ集鍣ㄣ傛帴钁楀皣鍏夋绉诲嫊鍒扮涓璎涚涓夌瘈渚嗙辜绾屾垜鍊戠殑鏁欑▼璎涜В銆
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗竴璎涚涓夌瘈锔版枃鏈法杓箣鍒櫎
+
+
+ ** 鍦ㄦ甯(Normal)妯″紡涓嬶紝鍙互鎸変笅 x 閸典締鍒櫎鍏夋鎵鍦ㄤ綅缃殑瀛楃銆**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勯偅涓琛屻
+
+ 2. 鐐轰簡淇杓稿叆閷锛岃珛灏囧厜妯欑Щ鑷虫簴鍌欏埅闄ょ殑瀛楃鐨勪綅缃檿銆
+
+ 3. 鐒跺緦鎸変笅 x 閸靛皣閷瀛楃鍒櫎鎺夈
+
+ 4. 閲嶅京姝ラ2鍒版椹4锛岀洿鍒板彞瀛愪慨姝g偤姝€
+
+---> The ccow jumpedd ovverr thhe mooon.
+
+ 5. 濂戒簡锛岃┎琛屽凡缍撲慨姝d簡锛屼笅涓绡鍏у鏄涓璎涚鍥涚瘈銆
+
+鐗瑰垾鎻愮ず锔板湪鎮ㄧ忚鏈暀绋嬫檪锛屼笉瑕佸挤琛岃鎲躲傝浣忎竴榛烇赴鍦ㄤ娇鐢ㄤ腑瀛哥繏銆
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗竴璎涚鍥涚瘈锔版枃鏈法杓箣鎻掑叆
+
+
+ ** 鍦ㄦ甯告ā寮忎笅锛屽彲浠ユ寜涓 i 閸典締鎻掑叆鏂囨湰銆**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勭涓琛屻
+
+ 2. 鐐轰簡浣垮緱绗竴琛屽収瀹归浄鍚屼簬绗簩琛岋紝璜嬪皣鍏夋绉昏嚦鏂囨湰绗竴鍊嬪瓧绗︽簴鍌欐彃鍏
+ 鐨勪綅缃
+
+ 3. 鐒跺緦鎸変笅 i 閸碉紝鎺ヨ憲杓稿叆蹇呰鐨勬枃鏈瓧绗︺
+
+ 4. 鎵鏈夋枃鏈兘淇瀹岀暍锛岃珛鎸変笅 <ESC> 閸佃繑鍥炴甯告ā寮忋
+ 閲嶅京姝ラ2鑷虫椹4浠ヤ究淇鍙ュ瓙銆
+
+---> There is text misng this .
+---> There is some text missing from this line.
+
+ 5. 濡傛灉鎮ㄥ皪鏂囨湰鎻掑叆鎿嶄綔宸茬稉寰堟豢鎰忥紝璜嬫帴钁楅柋璁涓嬮潰鐨勫皬绲愩
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗竴璎涘皬绲
+
+
+ 1. 鍏夋鍦ㄥ睆骞曟枃鏈腑鐨勭Щ鍕曟棦鍙互鐢ㄧ闋嵉锛屼篃鍙互浣跨敤 hjkl 瀛楁瘝閸点
+ h (宸︾Щ) j (涓嬭) k (涓婅) l (鍙崇Щ)
+
+ 2. 娆查插叆vim绶ㄨ集鍣(寰炲懡浠よ鎻愮ず绗)锛岃珛杓稿叆锔皏im 鏂囦欢鍚 <鍥炶粖>
+
+ 3. 娆查鍑簐im绶ㄨ集鍣紝璜嬭几鍏ヤ互涓嬪懡浠ゆ斁妫勬墍鏈変慨鏀癸赴
+
+ <ESC> :q! <鍥炶粖>
+
+ 鎴栬呰几鍏ヤ互涓嬪懡浠や繚瀛樻墍鏈変慨鏀癸赴
+
+ <ESC> :wq <鍥炶粖>
+
+ 4. 鍦ㄦ甯告ā寮忎笅鍒櫎鍏夋鎵鍦ㄤ綅缃殑瀛楃锛岃珛鎸夛赴 x
+
+ 5. 鍦ㄦ甯告ā寮忎笅瑕佸湪鍏夋鎵鍦ㄤ綅缃枊濮嬫彃鍏ユ枃鏈紝璜嬫寜锔
+
+ i 杓稿叆蹇呰鏂囨湰 <ESC>
+
+鐗瑰垾鎻愮ず锔版寜涓 <ESC> 閸垫渻甯舵偍鍥炲埌姝e父妯″紡鎴栬呭彇娑堜竴鍊嬩笉鏈熸湜鎴栬呴儴鍒嗗畬鎴
+鐨勫懡浠ゃ
+
+濂戒簡锛岀涓璎涘埌姝ょ祼鏉熴備笅闈㈡帴涓嬩締绻肩簩绗簩璎涚殑鍏у銆
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簩璎涚涓绡锔板埅闄ら鍛戒护
+
+
+ ** 杓稿叆 dw 鍙互寰炲厜妯欒檿鍒櫎鑷充竴鍊嬪柈瀛/鍠鐨勬湯灏俱**
+
+ 1. 璜嬫寜涓 <ESC> 閸电⒑淇濇偍铏曚簬姝e父妯″紡銆
+
+ 2. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勯偅涓琛屻
+
+ 3. 璜嬪皣鍏夋绉昏嚦婧栧倷瑕佸埅闄ょ殑鍠鐨勯枊濮嬨
+
+ 4. 鎺ヨ憲杓稿叆 dw 鍒櫎鎺夎┎鍠銆
+
+ 鐗瑰垾鎻愮ず锔版偍鎵杓稿叆鐨 dw 鏈冨湪鎮ㄨ几鍏ョ殑鍚屾檪鍑虹従鍦ㄥ睆骞曠殑鏈寰屼竴琛屻傚鏋滄偍杓
+ 鍏ユ湁瑾わ紝璜嬫寜涓 <ESC> 閸靛彇娑堬紝鐒跺緦閲嶆柊鍐嶄締銆
+
+---> There are a some words fun that don't belong paper in this sentence.
+
+ 5. 閲嶅京姝ラ3鑷虫椹4锛岀洿鑷冲彞瀛愪慨姝e畬鐣€傛帴钁楃辜绾岀浜岃瑳绗簩绡鍏у銆
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簩璎涚浜岀瘈锔板叾浠栧埅闄ら鍛戒护
+
+
+ ** 杓稿叆 d$ 寰炵暥鍓嶅厜妯欏埅闄ゅ埌琛屾湯銆**
+
+ 1. 璜嬫寜涓 <ESC> 閸电⒑淇濇偍铏曚簬姝e父妯″紡銆
+
+ 2. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勯偅涓琛屻
+
+ 3. 璜嬪皣鍏夋绉诲嫊鍒拌┎琛岀殑灏鹃儴(涔熷氨鏄湪绗竴鍊嬮粸铏熲.鈥欏緦闈)銆
+
+ 4. 鐒跺緦杓稿叆 d$ 寰炲厜妯欒檿鍒嚦鐣跺墠琛屽熬閮ㄣ
+
+---> Somebody typed the end of this line twice. end of this line twice.
+
+
+ 5. 璜嬬辜绾屽缈掔浜岃瑳绗笁绡灏辩煡閬撴槸鎬庨杭鍥炰簨浜嗐
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簩璎涚涓夌瘈锔伴棞浜庡懡浠ゅ拰灏嶈薄
+
+
+ 鍒櫎鍛戒护 d 鐨勬牸寮忓涓嬶赴
+
+ [number] d object 鎴栬 d [number] object
+
+ 鍏舵剰濡備笅锔
+ number - 浠h〃鍩疯鍛戒护鐨勬鏁(鍙伕闋咃紝缂虹渷瑷疆鐐 1 )銆
+ d - 浠h〃鍒櫎銆
+ object - 浠h〃鍛戒护鎵瑕佹搷浣滅殑灏嶈薄(涓嬮潰鏈夌浉闂滀粙绱)銆
+
+ 涓鍊嬬啊鐭殑灏嶈薄鍒楄〃锔
+ w - 寰炵暥鍓嶅厜妯欑暥鍓嶄綅缃洿鍒板柈瀛/鍠鏈熬锛屽寘鎷┖鏍笺
+ e - 寰炵暥鍓嶅厜妯欑暥鍓嶄綅缃洿鍒板柈瀛/鍠鏈熬锛屼絾鏄 *涓* 鍖呮嫭绌烘牸銆
+ $ - 寰炵暥鍓嶅厜妯欑暥鍓嶄綅缃洿鍒扮暥鍓嶈鏈
+
+鐗瑰垾鎻愮ず锔
+ 灏嶄簬鍕囦簬鎺㈢储鑰咃紝璜嬪湪姝e父妯″紡涓嬮潰鍍呮寜浠h〃鐩告噳灏嶈薄鐨勯嵉鑰屼笉浣跨敤鍛戒护锛屽墖
+ 灏囩湅鍒板厜妯欑殑绉诲嫊姝e涓婇潰鐨勫皪璞″垪琛ㄦ墍浠h〃鐨勪竴妯c
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簩璎涚鍥涚瘈锔板皪璞″懡浠ょ殑鐗规畩鎯呮硜
+
+
+ ** 杓稿叆 dd 鍙互鍒櫎鏁翠竴鍊嬬暥鍓嶈銆 **
+
+ 閼掍簬鏁磋鍒櫎鐨勯珮闋诲害锛孷IM 鐨勮ō瑷堣呮焙瀹氳绨″寲鏁磋鍒櫎锛屽儏闇瑕佸湪鍚屼竴琛屼笂
+ 鎿婃墦鍏╂ d 灏卞彲浠ュ埅闄ゆ帀鍏夋鎵鍦ㄧ殑鏁磋浜嗐
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈢殑鐭彞娈佃惤涓殑绗簩琛屻
+ 2. 杓稿叆 dd 鍒櫎瑭茶銆
+ 3. 鐒跺緦绉诲嫊鍒扮鍥涜銆
+ 4. 鎺ヨ憲杓稿叆 2dd (閭勮寰楀墠闈㈣瑳閬庣殑 number-command-object 鍡庯紵) 鍒櫎鍏╄銆
+
+ 1) Roses are red,
+ 2) Mud is fun,
+ 3) Violets are blue,
+ 4) I have a car,
+ 5) Clocks tell time,
+ 6) Sugar is sweet
+ 7) And so are you.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簩璎涚浜旂瘈锔版挙娑堥鍛戒护
+
+
+ ** 杓稿叆 u 渚嗘挙娑堟渶寰屽煼琛岀殑鍛戒护锛岃几鍏 U 渚嗕慨姝f暣琛屻**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勯偅涓琛岋紝涓﹀皣鍏剁疆浜庣涓鍊嬮尟瑾
+ 铏曘
+ 2. 杓稿叆 x 鍒櫎绗竴鍊嬩笉鎯充繚鐣欑殑瀛楁瘝銆
+ 3. 鐒跺緦杓稿叆 u 鎾ゆ秷鏈寰屽煼琛岀殑(涓娆)鍛戒护銆
+ 4. 閫欐瑕佷娇鐢 x 淇鏈鐨勬墍鏈夐尟瑾ゃ
+ 5. 鐝惧湪杓稿叆涓鍊嬪ぇ瀵殑 U 锛屾仮寰╁埌瑭茶鐨勫師濮嬬媭鎱嬨
+ 6. 鎺ヨ憲澶氭杓稿叆 u 浠ユ挙娑 U 浠ュ強鏇村墠鐨勫懡浠ゃ
+ 7. 鐒跺緦澶氭杓稿叆 CTRL-R (鍏堟寜涓 CTRL 閸典笉鏀鹃枊锛屾帴钁楄几鍏 R 閸) 锛岄欐ǎ灏
+ 鍙互鍩疯鎭㈠京鍛戒护锛屼篃灏辨槸鎾ゆ秷鎺夋挙娑堝懡浠ゃ
+
+---> Fiix the errors oon thhis line and reeplace them witth undo.
+
+ 8. 閫欎簺閮芥槸闈炲父鏈夌敤鐨勫懡浠ゃ備笅闈㈡槸绗簩璎涚殑灏忕祼浜嗐
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簩璎涘皬绲
+
+
+ 1. 娆插緸鐣跺墠鍏夋鍒櫎鑷冲柈瀛/鍠鏈熬锛岃珛杓稿叆锔癲w
+
+ 2. 娆插緸鐣跺墠鍏夋鍒櫎鑷崇暥鍓嶈鏈熬锛岃珛杓稿叆锔癲$
+
+ 3. 娆插埅闄ゆ暣琛岋紝璜嬭几鍏ワ赴dd
+
+ 4. 鍦ㄦ甯告ā寮忎笅涓鍊嬪懡浠ょ殑鏍煎紡鏄赴
+
+ [number] command object 鎴栬 command [number] object
+ 鍏舵剰鏄赴
+ number - 浠h〃鐨勬槸鍛戒护鍩疯鐨勬鏁
+ command - 浠h〃瑕佸仛鐨勪簨鎯咃紝姣斿 d 浠h〃鍒櫎
+ object - 浠h〃瑕佹搷浣滅殑灏嶈薄锛屾瘮濡 w 浠h〃鍠瓧/鍠锛$ 浠h〃鍒拌鏈瓑绛夈
+ $ (to the end of line), etc.
+
+ 5. 娆叉挙娑堜互鍓嶇殑鎿嶄綔锛岃珛杓稿叆锔皍 (灏忓鐨剈)
+ 娆叉挙娑堝湪涓琛屼腑鎵鍋氱殑鏀瑰嫊锛岃珛杓稿叆锔癠 (澶у鐨刄)
+ 娆叉挙娑堜互鍓嶇殑鎾ゆ秷鍛戒护锛屾仮寰╀互鍓嶇殑鎿嶄綔绲愭灉锛岃珛杓稿叆锔癈TRL-R
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗笁璎涚涓绡锔扮疆鍏ラ鍛戒护
+
+
+ ** 杓稿叆 p 灏囨渶寰屼竴娆″埅闄ょ殑鍏у缃叆鍏夋涔嬪緦 **
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈢ず鑼冩钀界殑棣栬銆
+
+ 2. 杓稿叆 dd 灏囪┎琛屽埅闄わ紝閫欐ǎ鏈冨皣瑭茶淇濆瓨鍒皏im鐨勭珐娌栧崁涓
+
+ 3. 鎺ヨ憲灏囧厜妯欑Щ鍕曞埌婧栧倷缃叆鐨勪綅缃殑涓婃柟銆傝浣忥赴鏄笂鏂瑰摝銆
+
+ 4. 鐒跺緦鍦ㄦ甯告ā寮忎笅(<ESC>閸甸插叆)锛岃几鍏 p 灏囪┎琛岀矘璨肩疆鍏ャ
+
+ 5. 閲嶅京姝ラ2鑷虫椹4锛屽皣鎵鏈夌殑琛屼緷搴忔斁缃埌姝g⒑鐨勪綅缃笂銆
+
+ d) Can you learn too?
+ b) Violets are blue,
+ c) Intelligence is learned,
+ a) Roses are red,
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗笁璎涚浜岀瘈锔版浛鎻涢鍛戒护
+
+
+ ** 杓稿叆 r 鍜屼竴鍊嬪瓧绗︽浛鎻涘厜妯欐墍鍦ㄤ綅缃殑瀛楃銆**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勭涓琛屻
+
+ 2. 璜嬬Щ鍕曞厜妯欏埌绗竴鍊嬮尟瑾ょ殑閬╃暥浣嶇疆銆
+
+ 3. 鎺ヨ憲杓稿叆 r 锛岄欐ǎ灏辫兘灏囬尟瑾ゆ浛鎻涙帀浜嗐
+
+ 4. 閲嶅京姝ラ2鍜屾椹3锛岀洿鍒扮涓琛屽凡缍撲慨鏀瑰畬鐣€
+
+---> Whan this lime was tuoed in, someone presswd some wrojg keys!
+---> When this line was typed in, someone pressed some wrong keys!
+
+ 5. 鐒跺緦鎴戝戠辜绾屽鏍$涓夎瑳绗笁绡銆
+
+鐗瑰垾鎻愮ず锔板垏瑷樻偍瑕佸湪浣跨敤涓缈掞紝鑰屼笉鏄湪瑷樻喍涓缈掋
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗笁璎涚涓夌瘈锔版洿鏀归鍛戒护
+
+
+ ** 瑕佹敼璁婁竴鍊嬪柈瀛/鍠鐨勯儴鍒嗘垨鑰呭叏閮紝璜嬭几鍏 cw **
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勭涓琛屻
+
+ 2. 鎺ヨ憲鎶婂厜妯欐斁鍦ㄥ柈瑭 lubw 鐨勫瓧姣 u 鐨勪綅缃偅瑁°
+
+ 3. 鐒跺緦杓稿叆 cw 灏卞彲浠ヤ慨姝h┎鍠浜(鍦ㄦ湰渚嬮欒!鏄几鍏 ine 銆)
+
+ 4. 鏈寰屾寜 <ESC> 閸碉紝鐒跺緦鍏夋瀹氫綅鍒颁笅涓鍊嬮尟瑾ょ涓鍊嬫簴鍌欐洿鏀圭殑瀛楁瘝铏曘
+
+ 5. 閲嶅京姝ラ3鍜屾椹4锛岀洿鍒扮涓鍊嬪彞瀛愬畬鍏ㄩ浄鍚岀浜屽嬪彞瀛愩
+
+---> This lubw has a few wptfd that mrrf changing usf the change command.
+---> This line has a few words that need changing using the change command.
+
+鎻愮ず锔拌珛娉ㄦ剰 cw 鍛戒护涓嶅儏鍍呮槸鏇挎彌浜嗕竴鍊嬪柈瑭烇紝涔熻畵鎮ㄩ插叆鏂囨湰鎻掑叆鐙鎱嬩簡銆
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗笁璎涚鍥涚瘈锔颁娇鐢╟鎸囦护鐨勫叾浠栨洿鏀归鍛戒护
+
+
+ ** 鏇存敼椤炴寚浠ゅ彲浠ヤ娇鐢ㄥ悓鍒櫎椤炲懡浠ゆ墍浣跨敤鐨勫皪璞″弮鏁搞**
+
+ 1. 鏇存敼椤炴寚浠ょ殑宸ヤ綔鏂瑰紡璺熷埅闄ら鍛戒护鏄竴鑷寸殑銆傛搷浣滄牸寮忔槸锔
+
+ [number] c object 鎴栬 c [number] object
+
+ 2. 灏嶈薄鍙冩暩涔熸槸涓妯g殑锛屾瘮濡 w 浠h〃鍠瓧/鍠锛$浠h〃琛屾湯绛夌瓑銆
+
+ 3. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勭涓琛屻
+
+ 4. 鎺ヨ憲灏囧厜妯欑Щ鍕曞埌绗竴鍊嬮尟瑾よ檿銆
+
+ 5. 鐒跺緦杓稿叆 c$ 浣垮緱瑭茶鍓╀笅鐨勯儴鍒嗘洿姝e緱鍚岀浜岃涓妯c傛渶寰屾寜 <ESC> 閸点
+
+---> The end of this line needs some help to make it like the second.
+---> The end of this line needs to be corrected using the c$ command.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗笁璎涘皬绲
+
+
+ 1. 瑕侀噸鏂扮疆鍏ュ凡缍撳埅闄ょ殑鏂囨湰鍏у锛岃珛杓稿叆灏忓瀛楁瘝 p銆傝┎鎿嶄綔鍙互灏囧凡鍒櫎
+ 鐨勬枃鏈収瀹圭疆浜庡厜妯欎箣寰屻傚鏋滄渶寰屼竴娆″埅闄ょ殑鏄竴鍊嬫暣琛岋紝閭i杭瑭茶灏囩疆
+ 浜庣暥鍓嶅厜妯欐墍鍦ㄨ鐨勪笅涓琛屻
+
+ 2. 瑕佹浛鎻涘厜妯欐墍鍦ㄤ綅缃殑瀛楃锛岃珛杓稿叆灏忓鐨 r 鍜岃鏇挎彌鎺夊師浣嶇疆瀛楃鐨勬柊瀛
+ 绗﹀嵆鍙
+
+ 3. 鏇存敼椤炲懡浠ゅ厑瑷辨偍鏀硅畩鎸囧畾鐨勫皪璞★紝寰炵暥鍓嶅厜妯欐墍鍦ㄤ綅缃洿鍒板皪璞$殑鏈熬銆
+ 姣斿杓稿叆 cw 鍙互鏇挎彌鐣跺墠鍏夋鍒板柈瑭炵殑鏈熬鐨勫収瀹癸紱杓稿叆 c$ 鍙互鏇挎彌鐣
+ 鍓嶅厜妯欏埌琛屾湯鐨勫収瀹广
+
+ 4. 鏇存敼椤炲懡浠ょ殑鏍煎紡鏄赴
+
+ [number] c object 鎴栬 c [number] object
+
+涓嬮潰鎴戝戠辜绾屽缈掍笅涓璎涖
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗洓璎涚涓绡锔板畾浣嶅強鏂囦欢鐙鎱
+
+
+ ** 杓稿叆 CTRL-g 椤ず鐣跺墠绶ㄨ集鏂囦欢涓暥鍓嶅厜妯欐墍鍦ㄨ浣嶇疆浠ュ強鏂囦欢鐙鎱嬩俊鎭
+ 杓稿叆 SHIFT-G 鍓囩洿鎺ヨ烦杞夊埌鏂囦欢涓殑鏌愪竴鎸囧畾琛屻**
+
+ 鎻愮ず锔板垏瑷樿鍏堥氳畝鏈瘈鍏у锛屼箣寰屾墠鍙互鍩疯浠ヤ笅姝ラ!!!
+
+ 1. 鎸変笅 CTRL 閸典笉鏀鹃枊鐒跺緦鎸 g 閸点傜劧寰屽氨鏈冪湅鍒伴爜闈㈡渶搴曢儴鍑虹従涓鍊嬬媭鎱嬩俊
+ 鎭锛岄’绀虹殑鍏у鏄暥鍓嶇法杓殑鏂囦欢鍚嶅拰鏂囦欢鐨勭附琛屾暩銆傝珛瑷樹綇姝ラ3鐨勮铏熴
+
+ 2. 鎸変笅 SHIFT-G 閸靛彲浠ヤ娇寰楃暥鍓嶅厜妯欑洿鎺ヨ烦杞夊埌鏂囦欢鏈寰屼竴琛屻
+
+ 3. 杓稿叆鎮ㄦ浘鍋滅暀鐨勮铏燂紝鐒跺緦鎸変笅 SHIFT-G銆傞欐ǎ灏卞彲浠ヨ繑鍥炲埌鎮ㄧ涓娆℃寜涓
+ CTRL-g 鏅傛墍鍦ㄧ殑琛屽ソ浜嗐傛敞鎰忥赴杓稿叆琛岃櫉鏅傦紝琛岃櫉鏄笉鏈冨湪灞忓箷涓婇’绀哄嚭渚
+ 鐨勩
+
+ 4. 濡傛灉椤樻剰锛屾偍鍙互绻肩簩鍩疯姝ラ1鑷虫椹熶笁銆
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗洓璎涚浜岀瘈锔版悳绱㈤鍛戒护
+
+
+ ** 杓稿叆 / 浠ュ強灏鹃毃鐨勫瓧绗︿覆鍙互鐢ㄤ互鍦ㄧ暥鍓嶆枃浠朵腑鏌ユ壘瑭插瓧绗︿覆銆**
+
+ 1. 鍦ㄦ甯告ā寮忎笅杓稿叆 / 瀛楃銆傛偍姝ゆ檪鏈冩敞鎰忓埌瑭插瓧绗﹀拰鍏夋閮芥渻鍑虹従鍦ㄥ睆骞曞簳
+ 閮紝閫欒窡 : 鍛戒护鏄竴妯g殑銆
+
+ 2. 鎺ヨ憲杓稿叆 errroor <鍥炶粖>銆傞偅鍊媏rrroor灏辨槸鎮ㄨ鏌ユ壘鐨勫瓧绗︿覆銆
+
+ 3. 瑕佹煡鎵惧悓涓婁竴娆$殑瀛楃涓诧紝鍙渶瑕佹寜 n 閸点傝鍚戠浉鍙嶆柟鍚戞煡鎵惧悓涓婁竴娆$殑瀛
+ 绗︿覆锛岃珛杓稿叆 Shift-N 鍗冲彲銆
+
+ 4. 濡傛灉鎮ㄦ兂閫嗗悜鏌ユ壘瀛楃涓诧紝璜嬩娇鐢 ? 浠f浛 / 閫茶銆
+
+---> When the search reaches the end of the file it will continue at the start.
+
+ "errroor" is not the way to spell error; errroor is an error.
+
+ 鎻愮ず锔板鏋滄煡鎵惧凡缍撳埌閬旀枃浠舵湯灏撅紝鏌ユ壘鏈冭嚜鍕曞緸鏂囦欢闋儴绻肩簩鏌ユ壘銆
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗洓璎涚涓夌瘈锔伴厤灏嶆嫭铏熺殑鏌ユ壘
+
+
+ ** 鎸 % 鍙互鏌ユ壘閰嶅皪鐨勬嫭铏 )銆乚銆亇銆**
+
+ 1. 鎶婂厜妯欐斁鍦ㄦ湰绡涓嬮潰妯欒鏈 --> 閭d竴琛屼腑鐨勪换浣曚竴鍊 (銆乕 鎴 { 铏曘
+
+ 2. 鎺ヨ憲鎸 % 瀛楃銆
+
+ 3. 姝ゆ檪鍏夋鐨勪綅缃噳鐣舵槸鍦ㄩ厤灏嶇殑鎷櫉铏曘
+
+ 4. 鍐嶆鎸 % 灏卞彲浠ヨ烦鍥為厤灏嶇殑绗竴鍊嬫嫭铏熻檿銆
+
+---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
+
+鎻愮ず锔板湪绋嬪簭瑾胯│鏅傦紝閫欏嬪姛鑳界敤渚嗘煡鎵句笉閰嶅皪鐨勬嫭铏熸槸寰堟湁鐢ㄧ殑銆
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗洓璎涚鍥涚瘈锔颁慨姝i尟瑾ょ殑鏂规硶涔嬩竴
+
+
+ ** 杓稿叆 :s/old/new/g 鍙互鏇挎彌 old 鐐 new銆**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勯偅涓琛屻
+
+ 2. 杓稿叆 :s/thee/the <鍥炶粖> 銆傝珛娉ㄦ剰瑭插懡浠ゅ彧鏀硅畩鍏夋鎵鍦ㄨ鐨勭涓鍊嬪尮閰
+ 涓层
+
+ 3. 杓稿叆 :s/thee/the/g 鍓囨槸鏇挎彌鍏ㄨ鐨勫尮閰嶄覆銆
+
+---> the best time to see thee flowers is in thee spring.
+
+ 4. 瑕佹浛鎻涘叐琛屼箣闁撳嚭鐝剧殑姣忓嬪尮閰嶄覆锛岃珛杓稿叆 :#,#s/old/new/g (#,#浠h〃鐨勬槸
+ 鍏╄鐨勮铏)銆傝几鍏 :%s/old/new/g 鍓囨槸鏇挎彌鏁村嬫枃浠朵腑鐨勬瘡鍊嬪尮閰嶄覆銆
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗洓璎涘皬绲
+
+
+ 1. Ctrl-g 鐢ㄤ簬椤ず鐣跺墠鍏夋鎵鍦ㄤ綅缃拰鏂囦欢鐙鎱嬩俊鎭係hift-G 鐢ㄤ簬灏囧厜妯欒烦
+ 杞夎嚦鏂囦欢鏈寰屼竴琛屻傚厛鏁插叆涓鍊嬭铏熺劧寰屾寜 Shift-G 鍓囨槸灏囧厜妯欑Щ鍕曡嚦瑭茶
+ 铏熶唬琛ㄧ殑琛屻
+
+ 2. 杓稿叆 / 鐒跺緦绶婇毃涓鍊嬪瓧绗︿覆鏄墖鏄湪鐣跺墠鎵绶ㄨ集鐨勬枃妾斾腑鍚戝緦鏌ユ壘瑭插瓧绗︿覆銆
+ 杓稿叆鍟忚櫉 ? 鐒跺緦绶婇毃涓鍊嬪瓧绗︿覆鏄墖鏄湪鐣跺墠鎵绶ㄨ集鐨勬枃妾斾腑鍚戝墠鏌ユ壘瑭插瓧
+ 绗︿覆銆傚畬鎴愪竴娆℃煡鎵句箣寰屾寜 n 閸靛墖鏄噸寰╀笂涓娆$殑鍛戒护锛屽彲鍦ㄥ悓涓鏂瑰悜涓婃煡
+ 鎵句笅涓鍊嬪瓧绗︿覆鎵鍦紱鎴栬呮寜 Shift-N 鍚戠浉鍙嶆柟鍚戞煡鎵句笅瑭插瓧绗︿覆鎵鍦ㄣ
+
+ 3. 濡傛灉鍏夋鐣跺墠浣嶇疆鏄嫭铏(銆)銆乕銆乚銆亄銆亇锛屾寜 % 鍙互灏囧厜妯欑Щ鍕曞埌閰嶅皪鐨
+ 鎷櫉涓娿
+
+ 4. 鍦ㄤ竴琛屽収鏇挎彌闋竴鍊嬪瓧绗︿覆 old 鐐烘柊鐨勫瓧绗︿覆 new锛岃珛杓稿叆 :s/old/new
+ 鍦ㄤ竴琛屽収鏇挎彌鎵鏈夌殑瀛楃涓 old 鐐烘柊鐨勫瓧绗︿覆 new锛岃珛杓稿叆 :s/old/new/g
+ 鍦ㄥ叐琛屽収鏇挎彌鎵鏈夌殑瀛楃涓 old 鐐烘柊鐨勫瓧绗︿覆 new锛岃珛杓稿叆 :#,#s/old/new/g
+ 鍦ㄦ枃浠跺収鏇挎彌鎵鏈夌殑瀛楃涓 old 鐐烘柊鐨勫瓧绗︿覆 new锛岃珛杓稿叆 :%s/old/new/g
+ 閫茶鍏ㄦ枃鏇挎彌鏅傝鍟忕敤鎴剁⒑瑾嶆瘡鍊嬫浛鎻涢渶娣诲姞 c 閬搁爡锛岃珛杓稿叆 :%s/old/new/gc
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簲璎涚涓绡锔板湪 VIM 鍏у煼琛屽閮ㄥ懡浠ょ殑鏂规硶
+
+
+ ** 杓稿叆 :! 鐒跺緦绶婇毃钁楄几鍏ヤ竴鍊嬪閮ㄥ懡浠ゅ彲浠ュ煼琛岃┎澶栭儴鍛戒护銆**
+
+ 1. 鎸変笅鎴戝戞墍鐔熸倝鐨 : 鍛戒护瑷疆鍏夋鍒板睆骞曞簳閮ㄣ傞欐ǎ灏卞彲浠ヨ畵鎮ㄨ几鍏ュ懡浠や簡銆
+
+ 2. 鎺ヨ憲杓稿叆鎰熷槅铏 ! 閫欏嬪瓧绗︼紝閫欐ǎ灏卞厑瑷辨偍鍩疯澶栭儴鐨 shell 鍛戒护浜嗐
+
+ 3. 鎴戝戜互 ls 鍛戒护鐐轰緥銆傝几鍏 !ls <鍥炶粖> 銆傝┎鍛戒护灏辨渻鍒楄垑鍑烘偍鐣跺墠鐩寗鐨
+ 鍏у锛屽氨濡傚悓鎮ㄥ湪鍛戒护琛屾彁绀虹涓嬭几鍏 ls 鍛戒护鐨勭祼鏋滀竴妯c傚鏋 !ls 娌掕捣
+ 浣滅敤锛屾偍鍙互瑭﹁│ :!dir 鐪嬬湅銆
+
+---> 鎻愮ず锔 鎵鏈夌殑澶栭儴鍛戒护閮藉彲浠ヤ互閫欑ó鏂瑰紡鍩疯銆
+
+---> 鎻愮ず锔 鎵鏈夌殑 : 鍛戒护閮藉繀闋堜互 <鍥炶粖> 鍛婄祩銆
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簲璎涚浜岀瘈锔伴棞浜庝繚瀛樻枃浠剁殑鏇村淇℃伅
+
+
+ ** 瑕佸皣灏嶆枃浠剁殑鏀瑰嫊淇濆瓨鍒版枃浠朵腑锛岃珛杓稿叆 :w FILENAME **
+
+ 1. 杓稿叆 :!dir 鎴栬 :!ls 鐛茬煡鐣跺墠鐩寗鐨勫収瀹广傛偍鎳夌暥宸茬煡閬撴渶寰岄倓寰楁暡
+ <鍥炶粖> 鍚с
+
+ 2. 閬告搰涓鍊嬪皻鏈瓨鍦ㄦ枃浠跺悕锛屾瘮濡 TEST 銆
+
+ 3. 鎺ヨ憲杓稿叆 :w TEST (姝よ檿 TEST 鏄偍鎵閬告搰鐨勬枃浠跺悕銆)
+
+ 4. 瑭插懡浠ゆ渻浠 TEST 鐐烘枃浠跺悕淇濆瓨鏁村嬫枃浠 (VIM 鏁欑▼)銆傜偤浜嗙⒑淇濇纰轰繚瀛橈紝
+ 璜嬪啀娆¤几鍏 :!dir 鏌ョ湅鎮ㄧ殑鐩寗鍒楄〃鍏у銆
+
+---> 璜嬫敞鎰忥赴濡傛灉鎮ㄩ鍑 VIM 鐒跺緦鍦ㄤ互鏂囦欢鍚 TEST 鐐哄弮鏁搁插叆锛岄偅楹艰┎鏂囦欢鍏
+ 瀹规噳瑭插悓鎮ㄤ繚瀛樻檪鐨勬枃浠跺収瀹规槸瀹屽叏涓妯g殑銆
+
+ 5. 鐝惧湪鎮ㄥ彲浠ラ氶亷杓稿叆 :!rm TEST 渚嗗埅闄 TEST 鏂囦欢浜嗐
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簲璎涚涓夌瘈锔颁竴鍊嬪叿鏈夐伕鎿囨х殑淇濆瓨鍛戒护
+
+
+ ** 瑕佷繚瀛樻枃浠剁殑閮ㄥ垎鍏у锛岃珛杓稿叆 :#,# w FILENAME **
+
+ 1. 鍐嶄締鍩疯涓娆 :!dir 鎴栬 :!ls 鐛茬煡鐣跺墠鐩寗鐨勫収瀹癸紝鐒跺緦閬告搰涓鍊嬪悎閬╃殑
+ 涓嶉噸鍚嶇殑鏂囦欢鍚嶏紝姣斿 TEST 銆
+
+ 2. 鎺ヨ憲灏囧厜妯欑Щ鍕曡嚦鏈爜鐨勬渶闋傜锛岀劧寰屾寜 CTRL-g 鎵惧埌瑭茶鐨勮铏熴傚垾蹇樹簡
+ 琛岃櫉鍝︺
+
+ 3. 鎺ヨ憲鎶婂厜妯欑Щ鍕曡嚦鏈爜鐨勬渶搴曠锛屽啀鎸変竴娆 CTRL-g 銆備篃鍒ュ繕浜嗛欏嬭濂藉摝銆
+
+ 4. 鐐轰簡鍙繚瀛樻枃绔犵殑鏌愬嬮儴鍒嗭紝璜嬭几鍏 :#,# w TEST 銆傞欒!鐨 #,# 灏辨槸涓婇潰
+ 瑕佹眰鎮ㄨ浣忕殑琛岃櫉(闋傜琛岃櫉,搴曠琛岃櫉)锛岃 TEST 灏辨槸閬稿畾鐨勬枃浠跺悕銆
+
+ 5. 鏈寰岋紝鐢 :!dir 纰鸿獚鏂囦欢鏄惁姝g⒑淇濆瓨銆備絾鏄欐鍏堝垾鍒櫎鎺夈
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簲璎涚鍥涚瘈锔版彁鍙栧拰鍚堜甫鏂囦欢
+
+
+ ** 瑕佸悜鐣跺墠鏂囦欢涓彃鍏ュ彟澶栫殑鏂囦欢鐨勫収瀹癸紝璜嬭几鍏 :r FILENAME **
+
+ 1. 璜嬮嵉鍏 :!dir 纰鸿獚鎮ㄥ墠闈㈠壍寤虹殑 TEST 鏂囦欢閭勫湪銆
+
+ 2. 鐒跺緦灏囧厜妯欑Щ鍕曡嚦鐣跺墠闋侀潰鐨勯爞绔
+
+鐗瑰垾鎻愮ず锔 鍩疯姝ラ3涔嬪緦鎮ㄥ皣鐪嬪埌绗簲璎涚涓夌瘈锛岃珛灞嗘檪鍐嶅線涓嬬Щ鍕曞洖鍒伴欒!渚嗐
+
+ 3. 鎺ヨ憲閫氶亷 :r TEST 灏囧墠闈㈠壍寤虹殑鍚嶇偤 TEST 鐨勬枃浠舵彁鍙栭蹭締銆
+
+鐗瑰垾鎻愮ず锔版偍鎵鎻愬彇閫蹭締鐨勬枃浠跺皣寰炲厜妯欐墍鍦ㄤ綅缃檿闁嬪缃叆銆
+
+ 4. 鐐轰簡纰鸿獚鏂囦欢宸茬稉鎻愬彇鎴愬姛锛岀Щ鍕曞厜妯欏洖鍒板師渚嗙殑浣嶇疆灏卞彲浠ユ敞鎰忔湁鍏╀唤绗
+ 浜旇瑳绗笁绡锛屼竴浠芥槸鍘熸湰锛屽彟澶栦竴浠芥槸渚嗚嚜鏂囦欢鐨勫壇鏈
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗簲璎涘皬绲
+
+
+ 1. :!command 鐢ㄤ簬鍩疯涓鍊嬪閮ㄥ懡浠 command銆
+
+ 璜嬬湅涓浜涘闅涗緥瀛愶赴
+ :!dir - 鐢ㄤ簬椤ず鐣跺墠鐩寗鐨勫収瀹广
+ :!rm FILENAME - 鐢ㄤ簬鍒櫎鍚嶇偤 FILENAME 鐨勬枃浠躲
+
+ 2. :w FILENAME 鍙皣鐣跺墠 VIM 涓鍦ㄧ法杓殑鏂囦欢淇濆瓨鍒板悕鐐 FILENAME
+ 鐨勬枃浠朵腑銆
+
+ 3. :#,#w FILENAME 鍙皣鐣跺墠绶ㄨ集鏂囦欢绗 # 琛岃嚦绗 # 琛岀殑鍏у淇濆瓨鍒版枃浠
+ FILENAME 涓
+
+ 4. :r FILENAME 鍙彁鍙栫鐩ゆ枃浠 FILENAME 涓﹀皣鍏舵彃鍏ュ埌鐣跺墠鏂囦欢鐨勫厜妯欎綅缃
+ 寰岄潰銆
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗叚璎涚涓绡锔版墦闁嬮鍛戒护
+
+
+ ** 杓稿叆 o 灏囧湪鍏夋鐨勪笅鏂规墦闁嬫柊鐨勪竴琛屼甫閫插叆鎻掑叆妯″紡銆**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勯偅涓琛屻
+
+ 2. 鎺ヨ憲杓稿叆灏忓鐨 o 鍦ㄥ厜妯 *涓嬫柟* 鎵撻枊鏂扮殑涓琛屼甫閫插叆鎻掑叆妯″紡銆
+
+ 3. 鐒跺緦寰╁埗妯欒鏈 ---> 鐨勮涓︽寜 <ESC> 閸甸鍑烘彃鍏ユā寮忚岄插叆姝e父妯″紡銆
+
+---> After typing o the cursor is placed on the open line in Insert mode.
+
+ 4. 鐐轰簡鍦ㄥ厜妯 *涓婃柟* 鎵撻枊鏂扮殑涓琛岋紝鍙渶瑕佽几鍏ュぇ瀵殑 O 鑰屼笉鏄皬瀵殑 o
+ 灏卞彲浠ヤ簡銆傝珛鍦ㄤ笅琛屾脯瑭︿竴涓嬪惂銆傜暥鍏夋铏曞湪鍦ㄨ┎琛屼笂鏅傦紝鎸 Shift-O鍙互
+ 鍦ㄨ┎琛屼笂鏂规柊闁嬩竴琛屻
+
+Open up a line above this by typing Shift-O while the cursor is on this line.
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗叚璎涚浜岀瘈锔板厜妯欏緦鎻掑叆椤炲懡浠
+
+
+ ** 杓稿叆 a 灏囧彲鍦ㄥ厜妯欎箣寰屾彃鍏ユ枃鏈 **
+
+ 1. 璜嬪湪姝e父妯″紡涓嬮氶亷杓稿叆 $ 灏囧厜妯欑Щ鍕曞埌鏈瘈涓笅闈㈡瑷樻湁 ---> 鐨勭涓琛
+ 鐨勬湯灏俱
+
+ 2. 鎺ヨ憲杓稿叆灏忓鐨 a 鍓囧彲鍦ㄥ厜妯欎箣寰屾彃鍏ユ枃鏈簡銆傚ぇ瀵殑 A 鍓囧彲浠ョ洿鎺ュ湪琛
+ 鏈彃鍏ユ枃鏈
+
+鎻愮ず锔拌几鍏ュぇ瀵 A 鐨勬搷浣滄柟娉曞彲浠ュ湪琛屾湯鎻掑叆鏂囨湰锛岄伩鍏嶄簡杓稿叆 i锛屽厜妯欏畾浣嶅埌
+ 鏈寰屼竴鍊嬪瓧绗︼紝杓稿叆鐨勬枃鏈紝<ESC> 鍥炲京姝e父妯″紡锛岀闋彸閸电Щ鍕曞厜妯欎互鍙
+ x 鍒櫎鐣跺墠鍏夋鎵鍦ㄤ綅缃瓧绗︾瓑绛夎澶氱箒闆滅殑鎿嶄綔銆
+
+ 3. 鎿嶄綔涔嬪緦绗竴琛屽氨鍙互瑁滃厖瀹屾暣浜嗐傝珛娉ㄦ剰鍏夋寰屾彃鍏ユ枃鏈垏鎻掑叆妯″紡鏄熀
+ 鏈畬鍏ㄤ竴鑷寸殑锛屽彧鏄枃鏈彃鍏ョ殑浣嶇疆瀹氫綅绋嶆湁涓嶅悓缃蜂簡銆
+
+---> This line will allow you to practice
+---> This line will allow you to practice appending text to the end of a line.
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗叚璎涚涓夌瘈锔板彟澶栦竴鍊嬬疆鎻涢鍛戒护鐨勭増鏈
+
+
+ ** 杓稿叆澶у鐨 R 鍙g簩鏇挎彌澶氬嬪瓧绗︺**
+
+ 1. 璜嬪皣鍏夋绉诲嫊鍒版湰绡涓笅闈㈡瑷樻湁 ---> 鐨勭涓琛屻
+
+ 2. 绉诲嫊鍏夋鍒扮涓琛屼腑涓嶅悓浜庢鏈 ---> 鐨勭浜岃鐨勭涓鍊嬪柈瑭炵殑闁嬪锛屽嵆鍠
+ 瑭 last 铏曘
+
+ 3. 鐒跺緦杓稿叆澶у鐨 R 闁嬪鎶婄涓琛屼腑鐨勪笉鍚屼簬绗簩琛岀殑鍓╀綑瀛楃閫愪竴杓稿叆锛屽氨
+ 鍙互鍏ㄩ儴鏇挎彌鎺夊師鏈夌殑瀛楃鑰屼娇寰楃涓琛屽畬鍏ㄩ浄鍚岀浜岃浜嗐
+
+---> To make the first line the same as the last on this page use the keys.
+---> To make the first line the same as the second, type R and the new text.
+
+ 4. 璜嬫敞鎰忥赴濡傛灉鎮ㄦ寜 <ESC> 閫鍑虹疆鎻涙ā寮忓洖寰╂甯告ā寮忥紝灏氭湭鏇挎彌鐨勬枃鏈皣浠
+ 鐒朵繚鎸佸師鐙銆
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗叚璎涚鍥涚瘈锔拌ō缃鍛戒护鐨勯伕闋
+
+
+ ** 瑷疆鍙娇鏌ユ壘鎴栬呮浛鎻涘彲蹇界暐澶у皬瀵殑閬搁爡 **
+
+
+ 1. 瑕佹煡鎵惧柈瑭 ignore 鍙湪姝e父妯″紡涓嬭几鍏 /ignore 銆傝閲嶅京鏌ユ壘瑭茶锛屽彲浠
+ 閲嶅京鎸 n 閸点
+
+ 2. 鐒跺緦瑷疆 ic 閬搁爡(ic灏辨槸鑻辨枃蹇界暐澶у皬瀵獻gnore Case鐨勯瀛楁瘝绺瑭)锛屽嵆
+ 杓稿叆锔
+ :set ic
+
+ 3. 鐝惧湪鍙互閫氶亷閸靛叆 n 閸靛啀娆℃煡鎵惧柈瑭 ignore銆傞噸寰╂煡鎵惧彲浠ラ噸寰╅嵉鍏 n 閸点
+
+ 4. 鐒跺緦瑷疆 hlsearch 鍜 incsearch 閫欏叐鍊嬮伕闋咃紝杓稿叆浠ヤ笅鍏у锔
+ :set hls is
+
+ 5. 鐝惧湪鍙互鍐嶆杓稿叆鏌ユ壘鍛戒护锛岀湅鐪嬫渻鏈変粈楹兼晥鏋滐赴
+ /ignore
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗叚璎涘皬绲
+
+
+ 1. 杓稿叆灏忓鐨 o 鍙互鍦ㄥ厜妯欎笅鏂规墦闁嬫柊鐨勪竴琛屼甫灏囧厜妯欑疆浜庢柊闁嬬殑琛岄锛岄插叆
+ 鎻掑叆妯″紡銆
+ 杓稿叆澶у鐨 O 鍙互鍦ㄥ厜妯欎笂鏂规墦闁嬫柊鐨勪竴琛屼甫灏囧厜妯欑疆浜庢柊闁嬬殑琛岄锛岄插叆
+ 鎻掑叆妯″紡銆
+
+ 2. 杓稿叆灏忓鐨 a 鍙互鍦ㄥ厜妯欐墍鍦ㄤ綅缃箣寰屾彃鍏ユ枃鏈
+ 杓稿叆澶у鐨 A 鍙互鍦ㄥ厜妯欐墍鍦ㄨ鐨勮鏈箣寰屾彃鍏ユ枃鏈
+
+ 3. 杓稿叆澶у鐨 R 灏囬插叆鏇挎彌妯″紡锛岀洿鑷虫寜 <ESC> 閸甸鍑烘浛鎻涙ā寮忚岄插叆姝e父
+ 妯″紡銆
+
+ 4. 杓稿叆 :set xxx 鍙互瑷疆 xxx 閬搁爡銆
+
+
+
+
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗竷璎涳赴鍦ㄧ窔骞姪鍛戒护
+
+ ** 浣跨敤鍦ㄧ窔骞姪绯荤当 **
+
+ Vim 鎿佹湁涓鍊嬬窗鑷村叏闈㈢殑鍦ㄧ窔骞姪绯荤当銆傝鍟熷嫊瑭插公鍔╃郴绲憋紝璜嬮伕鎿囧涓嬩笁绋柟
+ 娉曚箣涓锔
+ - 鎸変笅 <HELP> 閸 (濡傛灉閸电洡涓婃湁鐨勮┍)
+ - 鎸変笅 <F1> 閸 (濡傛灉閸电洡涓婃湁鐨勮┍)
+ - 杓稿叆 :help <鍥炶粖>
+
+ 杓稿叆 :q <鍥炶粖> 鍙互闂滈枆骞姪绐楀彛銆
+
+ 鎻愪緵涓鍊嬫纰虹殑鍙冩暩绲":help"鍛戒护锛屾偍鍙互鎵惧埌闂滀簬瑭蹭富椤岀殑骞姪銆傝珛瑭﹂浠
+ 涓嬪弮鏁(鍙垾蹇樹簡鎸夊洖杌婇嵉鍝︺:)锔
+
+ :help w <鍥炶粖>
+ :help c_<T <鍥炶粖>
+ :help insert-index <鍥炶粖>
+ :help user-manual <鍥炶粖>
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 绗叓璎涳赴鍓靛缓涓鍊嬪暉鍕曡叧鏈
+
+ ** 鍟熺敤vim鐨勫姛鑳 **
+
+ Vim鐨勫姛鑳界壒鎬ц姣攙i澶氬緱澶氾紝浣嗗ぇ閮ㄥ垎鍔熻兘閮芥矑鏈夌己鐪佹縺娲汇傜偤浜嗗暉鍕曟洿澶氱殑
+ 鍔熻兘锛屾偍寰楀壍寤轰竴鍊媣imrc鏂囦欢銆
+
+ 1. 闁嬪绶ㄨ集vimrc鏂囦欢锛岄欏彇姹轰簬鎮ㄦ墍浣跨敤鐨勬搷浣滅郴绲憋赴
+
+ :edit ~/.vimrc 閫欐槸Unix绯荤当鎵浣跨敤鐨勫懡浠
+ :edit $VIM/_vimrc 閫欐槸Windows绯荤当鎵浣跨敤鐨勫懡浠
+
+ 2. 鎺ヨ憲灏庡叆vimrc鑼冧緥鏂囦欢锔
+
+ :read $VIMRUNTIME/vimrc_example.vim
+
+ 3. 淇濆瓨鏂囦欢锛屽懡浠ょ偤锔
+
+ :write
+
+ 鍦ㄤ笅娆℃偍鍟熷嫊vim鐨勬檪鍊欙紝绶ㄨ集鍣ㄥ氨鏈冩湁浜嗚獮娉曢珮浜殑鍔熻兘銆傛偍鍙互绻肩簩鎶婃偍鍠
+ 姝$殑鍏跺畠鍔熻兘瑷疆娣诲姞鍒伴欏媣imrc鏂囦欢涓
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ vim 鏁欑▼鍒版绲愭潫銆傛湰鏁欑▼鍙槸鐐轰簡绨℃槑鍦颁粙绱逛竴涓媣im绶ㄨ集鍣紝浣嗗凡瓒充互璁撴偍
+ 寰堝鏄撳鏈冧娇鐢ㄦ湰绶ㄨ集鍣ㄤ簡銆傛瘚搴歌唱鐤戯紝vim閭勬湁寰堝寰堝鐨勫懡浠わ紝鏈暀绋嬫墍浠
+ 绱圭殑閭勫樊寰楅仩钁楀憿銆傛墍浠ユ偍瑕佺簿閫氱殑瑭憋紝閭勬湜绻肩簩鍔姏鍝︺備笅涓姝ユ偍鍙互闁辫畝
+ vim鎵嬪唺锛屼娇鐢ㄧ殑鍛戒护鏄赴
+ :help user-manual
+
+ 鐐轰簡鏇撮蹭竴姝ョ殑鍙冭冨拰瀛哥繏锛屼互涓嬮欐湰鏇稿煎緱鎺ㄨ枽锔
+
+ Vim - Vi Improved - 浣滆咃赴Steve Oualline
+ 鍑虹増绀撅赴New Riders
+
+ 閫欐槸绗竴鏈畬鍏ㄨ瑳瑙im鐨勬浉绫嶃傚皪浜庡垵瀛歌呯壒鍒ユ湁鐢ㄣ傚叾涓倓鍖呭惈鏈夊ぇ閲忓渚
+ 鍜屽湒绀恒傛鐭ヨ┏鎯咃紝璜嬭í鍟 http://iccf-holland.org/click5.html
+
+ 浠ヤ笅閫欐湰鏇告瘮杓冭佷簡鑰屼笖鍏у涓昏鏄痸i鑰屼笉鏄痸im锛屼絾鏄篃鍊煎緱鎺ㄨ枽锔
+
+ Learning the Vi Editor - 浣滆咃赴Linda Lamb
+ 鍑虹増绀撅赴O'Reilly & Associates Inc.
+
+ 閫欐槸涓鏈笉閷殑鏇革紝閫氶亷瀹冩偍骞句箮鑳藉浜嗚В鍒板叏閮╲i鑳藉鍋氬埌鐨勪簨鎯呫傛鏇哥殑绗
+ 鍏嬬増鏈篃鍖呭惈浜嗕竴浜涢棞浜巚im鐨勪俊鎭
+
+ 鏈暀绋嬫槸鐢变締鑷狢alorado School of Minese鐨凪ichael C. Pierce銆丷obert K.
+ Ware 鎵绶ㄥ鐨勶紝鍏朵腑渚嗚嚜Colorado State University鐨凜harles Smith鎻愪緵浜
+ 寰堝鍓垫剰銆傜法鑰呴氫俊鍦板潃鏄赴
+
+ bware@mines.colorado.edu
+
+ 鏈暀绋嬪凡鐢盉ram Moolenaar灏堢偤vim閫茶淇▊銆
+
+
+
+ 璀埗鑰呴檮瑷锔
+ ===========
+ 绨¢珨涓枃鏁欑▼缈昏鐗堜箣璀埗鑰呯偤姊佹槍娉 <beos@turbolinux.com.cn>锛岄倓鏈
+ 鍙﹀涓鍊嬭伅绯诲湴鍧锔發inuxrat@gnuchina.org銆
+
+ 绻侀珨涓枃鏁欑▼鏄緸绨¢珨涓枃鏁欑▼缈昏鐗堜娇鐢 Debian GNU/Linux 涓枃闋呯洰灏
+ 绲勭殑浜庡唬杓濆厛鐢熺法瀵殑涓枃婕㈠瓧杞夌⒓鍣 autoconvert 杞夋彌鑰屾垚鐨勶紝涓﹀皪杞
+ 鎻涚殑绲愭灉鍋氫簡涓浜涚窗绡鐨勬敼鍕曘
+
+ 璁婃洿瑷橀寗锔
+ =========
+ 2002骞08鏈30鏃 姊佹槍娉 <beos@turbolinux.com.cn>
+ 鎰熻瑵 RMS@SMTH 鐨勬寚姝o紝灏囧铏曢尟瑾や慨姝c
+
+ 2002骞04鏈22鏃 姊佹槍娉 <linuxrat@gnuchina.org>
+ 鎰熻瑵 xuandong@sh163.net 鐨勬寚姝o紝灏囧叐铏曢尟鍒ュ瓧淇銆
+
+ 2002骞03鏈18鏃 姊佹槍娉 <linuxrat@gnuchina.org>
+ 鏍规摎Bram Molenaar鍏堢敓鍦2002骞03鏈16鏃ョ殑渚嗕俊瑕佹眰锛屽皣vimtutor1.4涓
+ 鐗堝崌绱氬埌vimtutor1.5銆
+
+ 2001骞11鏈15鏃 姊佹槍娉 <linuxrat@gnuchina.org>
+ 灏噕imtutor1.4涓鐗堟彁浜ょ郸Bram Molenaar鍜孲ven Guckes銆
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/runtime/tutor/vimtutor.com b/runtime/tutor/vimtutor.com
new file mode 100755
index 000000000..0e6854be6
--- /dev/null
+++ b/runtime/tutor/vimtutor.com
@@ -0,0 +1,104 @@
+$ !
+$ !=====================================================================
+$ !
+$ ! VimTutor.com version 29-Aug-2002
+$ !
+$ ! Author: Tom Wyant <Thomas.R.Wyant-III@usa.dupont.com>
+$ !
+$ ! This DCL command procedure executes the vimtutor command
+$ ! (suprise, suprise!) which gives you a brief tutorial on the VIM
+$ ! editor. Languages other than the default are supported in the
+$ ! usual way, as are at least some of the command qualifiers,
+$ ! though you'll need to play some fairly serious games with DCL
+$ ! to specify ones that need quoting.
+$ !
+$ ! Copyright (c) 2002 E. I. DuPont de Nemours and Company, Inc
+$ !
+$ ! This program is free software; you can redistribute it and/or
+$ ! modify it under the terms of the VIM license as available from
+$ ! the vim 6.1 ":help license" command or (at your option) the
+$ ! license from any later version of vim.
+$ !
+$ ! This program is distributed in the hope that it will be useful,
+$ ! but WITHOUT ANY WARRANTY; without even the implied warranty of
+$ ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+$ !
+$ !=====================================================================
+$ !
+$ !
+$ ! Check for the existence of VIM, and die if it isn't there.
+$ !
+$ if f$search ("vim:vim.exe") .eqs. ""
+$ then
+$ write sys$error "Error - Can't run tutoral. VIM not found."
+$ exit
+$ endif
+$ !
+$ !
+$ ! Pick up the argument, if any.
+$ !
+$ inx = 0
+$ arg_loop:
+$ inx = inx + 1
+$ if f$type (p'inx') .nes. ""
+$ then
+$ if p'inx' .nes. "" .and. f$locate ("-", p'inx') .ne. 0
+$ then
+$ xx = p'inx'
+$ assign/nolog "''xx'" xx
+$ p'inx' = ""
+$ endif
+$ goto arg_loop
+$ endif
+$ !
+$ !
+$ ! Make sure we clean up our toys when we're through playing.
+$ !
+$ on error then goto exit
+$ !
+$ !
+$ ! Create the VIM foreign command if needed
+$ !
+$ if f$type (vim) .eqs. "" then vim := $vim:vim
+$ !
+$ !
+$ ! Build the name for our temp file.
+$ !
+$ tutfil = "sys$login:vimtutor_" + -
+ f$edit (f$getjpi (0, "pid"), "trim") + "."
+$ assign/nolog 'tutfil' TUTORCOPY
+$ !
+$ !
+$ ! Copy the selected file to the temp file
+$ !
+$ assign/nolog/user nla0: sys$error
+$ assign/nolog/user nla0: sys$output
+$ vim -u "NONE" -c "so $VIMRUNTIME/tutor/tutor.vim"
+$ !
+$ !
+$ ! Run the tutorial
+$ !
+$ assign/nolog/user sys$command sys$input
+$ vim -u "NONE" -c "set nocp" 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' 'tutfil'
+$ !
+$ !
+$ ! Ditch the copy.
+$ !
+$ exit:
+$ if f$type (tutfil) .nes. "" .and. f$search (tutfil) .nes. "" then -
+$ delete 'tutfil';*
+$ if f$type (xx) .nes. "" then deassign xx
+$ deassign TUTORCOPY
+$ exit
+$ !
+$ !=====================================================================
+$ !
+$ ! Modification history
+$ !
+$ ! 29-Aug-2002 T. R. Wyant
+$ ! Changed license to vim.
+$ ! Fix error "input is not from a terminal"
+$ ! Juggle documentation (copyright and contact to front,
+$ ! modification history to end).
+$ ! 25-Jul-2002 T. R. Wyant
+$ ! Initial version