summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-27 22:23:55 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-27 22:23:55 +0200
commit24a98a0eb77245adc50facad8b735b20bfd31a7e (patch)
treeffdfef4e7528ec317d59463e5ff83d07e466c0d7 /runtime
parent9cf39cc57f63f57b4a335cd25371eb456824f049 (diff)
Update runtime files
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/diff.txt6
-rw-r--r--runtime/doc/gui.txt16
-rw-r--r--runtime/doc/map.txt4
-rw-r--r--runtime/doc/options.txt8
-rw-r--r--runtime/doc/tags1
-rw-r--r--runtime/doc/terminal.txt75
-rw-r--r--runtime/doc/todo.txt48
-rw-r--r--runtime/doc/vim.12
-rw-r--r--runtime/doc/vim.man2
-rw-r--r--runtime/doc/windows.txt5
-rw-r--r--runtime/evim.vim6
-rw-r--r--runtime/indent/cmake.vim11
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim20
-rw-r--r--runtime/tutor/tutor.lv1009
-rw-r--r--runtime/vimrc_example.vim6
15 files changed, 1152 insertions, 67 deletions
diff --git a/runtime/doc/diff.txt b/runtime/doc/diff.txt
index 9951028aac..1a7ca73097 100644
--- a/runtime/doc/diff.txt
+++ b/runtime/doc/diff.txt
@@ -1,4 +1,4 @@
-*diff.txt* For Vim version 8.0. Last change: 2017 Sep 02
+*diff.txt* For Vim version 8.0. Last change: 2017 Sep 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -10,7 +10,7 @@ eight versions of the same file.
The basics are explained in section |08.7| of the user manual.
-1. Starting diff mode |vimdiff|
+1. Starting diff mode |start-vimdiff|
2. Viewing diffs |view-diffs|
3. Jumping to diffs |jumpto-diffs|
4. Copying diffs |copy-diffs|
@@ -19,7 +19,7 @@ The basics are explained in section |08.7| of the user manual.
{not in Vi}
==============================================================================
-1. Starting diff mode
+1. Starting diff mode *start-vimdiff*
The easiest way to start editing in diff mode is with the "vimdiff" command.
This starts Vim as usual, and additionally sets up for viewing the differences
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt
index dc7712357d..df02c5c80a 100644
--- a/runtime/doc/gui.txt
+++ b/runtime/doc/gui.txt
@@ -1,4 +1,4 @@
-*gui.txt* For Vim version 8.0. Last change: 2017 Sep 19
+*gui.txt* For Vim version 8.0. Last change: 2017 Sep 23
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -795,11 +795,17 @@ make the items look like icons.
If the items do not fit then the last ones cannot be used. The toolbar does
not wrap.
+Note that Vim may be in any mode when executing these commands. The menu
+should be defined for Normal mode and will be executed without changing the
+current mode. Thus if the current window is in Visual mode and the menu
+command does not intentionally change the mode, Vim will remain in Visual
+mode. Best is to use `:nnoremenu` to avoid side effects.
+
Example for debugger tools: >
- amenu 1.10 WinBar.Step :Step<CR>
- amenu 1.20 WinBar.Next :Next<CR>
- amenu 1.30 WinBar.Finish :Finish<CR>
- amenu 1.40 WinBar.Cont :Continue<CR>
+ nnoremenu 1.10 WinBar.Step :Step<CR>
+ nnoremenu 1.20 WinBar.Next :Next<CR>
+ nnoremenu 1.30 WinBar.Finish :Finish<CR>
+ nnoremenu 1.40 WinBar.Cont :Continue<CR>
<
The window toolbar uses the ToolbarLine and ToolbarButton highlight groups.
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index 80e9077bfe..2efeb3bc61 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1,4 +1,4 @@
-*map.txt* For Vim version 8.0. Last change: 2017 Sep 17
+*map.txt* For Vim version 8.0. Last change: 2017 Sep 23
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -29,7 +29,7 @@ manual.
1. Key mapping *key-mapping* *mapping* *macro*
Key mapping is used to change the meaning of typed keys. The most common use
-is to define a sequence commands for a function key. Example: >
+is to define a sequence of commands for a function key. Example: >
:map <F2> a<C-R>=strftime("%c")<CR><Esc>
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index b5e5847ada..56697d51de 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 8.0. Last change: 2017 Sep 16
+*options.txt* For Vim version 8.0. Last change: 2017 Sep 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4380,8 +4380,8 @@ A jump table for the options with a short description can be found at |Q_op|.
1 over-the-spot style
See: |xim-input-style|
- For a long time on-the-spot sytle had been used in GTK version of vim,
- however, it is known that it causes troubles when using mappings,
+ For a long time on-the-spot style had been used in the GTK version of
+ vim, however, it is known that it causes troubles when using mappings,
|single-repeat|, etc. Therefore over-the-spot style becomes the
default now. This should work fine for most people, however if you
have any problem with it, try using on-the-spot style.
@@ -8259,7 +8259,7 @@ A jump table for the options with a short description can be found at |Q_op|.
Save the whole buffer for undo when reloading it. This applies to the
":e!" command and reloading for when the buffer changed outside of
Vim. |FileChangedShell|
- The save only happens when this options is negative or when the number
+ The save only happens when this option is negative or when the number
of lines is smaller than the value of this option.
Set this option to zero to disable undo for a reload.
diff --git a/runtime/doc/tags b/runtime/doc/tags
index 31836c18cd..1099b815fb 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -8465,6 +8465,7 @@ star pattern.txt /*star*
starstar editing.txt /*starstar*
starstar-wildcard editing.txt /*starstar-wildcard*
start-of-file pattern.txt /*start-of-file*
+start-vimdiff diff.txt /*start-vimdiff*
starting starting.txt /*starting*
starting-amiga starting.txt /*starting-amiga*
starting.txt starting.txt /*starting.txt*
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index bce1d6fb00..d44e1b802b 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -1,4 +1,4 @@
-*terminal.txt* For Vim version 8.0. Last change: 2017 Sep 17
+*terminal.txt* For Vim version 8.0. Last change: 2017 Sep 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -81,7 +81,14 @@ themselves (like Vim does).
To change the keys you type use terminal mode mappings, see |:tmap|.
These are defined like any mapping, but apply only when typing keys that are
-sent to the job running in the terminal.
+sent to the job running in the terminal. For example, to make Escape switch
+to Terminal-Normal mode: >
+ tnoremap <Esc> <C-W>N
+
+After opening the terminal window and setting 'buftype' to "terminal" the
+BufWinEnter autocommand event is triggered. This makes it possible to set
+options specifically for the window and buffer. Example: >
+ au BufWinEnter * if &buftype == 'terminal' | setlocal bufhidden=hide | endif
Size and color ~
@@ -328,7 +335,7 @@ Load the plugin with this command: >
packadd termdebug
< *:Termdebug*
To start debugging use `:TermDebug` folowed by the command name, for example: >
- :TermDebug vim
+ :Termdebug vim
This opens two windows:
gdb window A terminal window in which "gdb vim" is executed. Here you
@@ -352,6 +359,62 @@ When the debugger ends, typically by typing "quit" in the gdb window, the two
opened windows are closed.
+Example session ~
+
+Start in the Vim "src" directory and build Vim: >
+ % make
+Start Vim: >
+ % ./vim
+Load the termdebug plugin and start debugging Vim: >
+ :packadd termdebug
+ :Termdebug vim
+You should now have three windows:
+ source - where you started, has a window toolbar with buttons
+ gdb - you can type gdb commands here
+ program - the executed program will use this window
+You can use CTRL-W CTRL-W or the mouse to move focus between windows.
+Put focus on the gdb window and type: >
+ break ex_help
+ run
+Vim will start running in the program window. Put focus there and type: >
+ :help gui
+Gdb will run into the ex_help breakpoint. The source window now shows the
+ex_cmds.c file. A ">>" marker will appear where the breakpoint was set. The
+line where the debugger stopped is highlighted. You can now step through the
+program. Let's use the mouse: click on the "Next" button in the window
+toolbar. You will see the highlighting move as the debugger executes a line
+of source code.
+
+Click "Next" a few times until the for loop is highlighted. Put the cursor on
+the end of "eap->arg", then click "Eval" in the toolbar. You will see this
+displayed:
+ "eap->arg": 0x555555e68855 "gui" ~
+This way you can inspect the value of local variables. You can also focus the
+gdb window and use a "print" command, e.g.: >
+ print *eap
+
+Now go back to the source window and put the cursor on the first line after
+the for loop, then type: >
+ :Break
+You will see a ">>" marker appear, this indicates the new breakpoint. Now
+click "Cont" in the toolbar and the code until the breakpoint will be
+executed.
+
+You can type more advanced commands in the gdb window. For example, type: >
+ watch curbuf
+Now click "Cont" in the toolbar (or type "cont" in the gdb window). Execution
+will now continue until the value of "curbuf" changes, which is in do_ecmd().
+To remove this watchpoint again type in the gdb window: >
+ delete 3
+
+You can see the stack by typing in the gdb window: >
+ where
+Move through the stack frames, e.g. with: >
+ frame 3
+The source window will show the code, at the point where the call was made to
+a deeper level.
+
+
Stepping through code ~
Put focus on the gdb window to type commands there. Some common ones are:
@@ -410,7 +473,7 @@ To change the name of the gdb command, set the "termdebugger" variable before
invoking `:Termdebug`: >
let termdebugger = "mygdb"
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
-interface.
+interface. This probably requires gdb version 7.12.
The color of the signs can be adjusted with these highlight groups:
- debugPC the current position
@@ -429,6 +492,10 @@ vertical split: >
let g:termdebug_wide = 163
This will set &columns to 163 when :Termdebug is used. The value is restored
when quitting the debugger.
+If g:termdebug_wide is set and &Columns is already larger than
+g:termdebug_wide then a vertical split will be used without changing &columns.
+Set it to 1 to get a vertical split without every changing &columns (useful
+for when the terminal can't be resized by Vim).
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index 8247fe6879..85fb6a64a3 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 8.0. Last change: 2017 Sep 19
+*todo.txt* For Vim version 8.0. Last change: 2017 Sep 27
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -35,17 +35,16 @@ entered there will not be repeated below, unless there is extra information.
*known-bugs*
-------------------- Known bugs and current work -----------------------
+MS-Windows build and installer improvements:
+- Switch to VC2015 for building. (Ken Takata, 2017 Sep 21)
+ Check resulting binary on XP.
+- Patch to install 32 and 64 bit Gvimext and related dll files. (Ken Takata,
+ 2017 Sep 23, #2144)
+
:term hangs in Athena and Motif. (Kazunobu Kuriyama, 2017 Sep 17)
-Always use FEAT_WINDOWS:
-May get rid of:
- #define W_WINCOL(wp) (wp->w_wincol)
- #define W_WIDTH(wp) (wp->w_width)
- #define W_ENDCOL(wp) (wp->w_wincol + wp->w_width)
- #define W_VSEP_WIDTH(wp) (wp->w_vsep_width)
- #define W_STATUS_HEIGHT(wp) (wp->w_status_height)
- #define W_WINROW(wp) (wp->w_winrow)
-# define ALIST(win) (win)->w_alist
+Universal solution to detect if t_RS is working, using cursor position.
+Koichi Iwamoto, #2126
No maintainer for Vietnamese translations.
No maintainer for Simplified Chinese translations.
@@ -70,6 +69,8 @@ Terminal emulator window:
with the expected screenshot. Set t_Co to 256.
+channel:
+- Add a separate timeout for opening a socket. Currently it's fixed at 50
+ msec, which is too small for a remote connection. (tverniquet, #2130)
- Try out background make plugin:
https://github.com/AndrewVos/vim-make-background
- Problem with stderr on Windows? (Vincent Rischmann, 2016 Aug 31, #1026)
@@ -94,6 +95,8 @@ Terminal emulator window:
Although user could use "xterm -e 'cmd arg'".
Regexp problems:
+- [:space:] only matches ASCII spaces. Add [:white:] for all space-like
+ characters, esp. including 0xa0. Use character class zero.
- Since 7.4.704 the old regex engine fails to match [[:print:]] in 0xf6.
(Manuel Ortega, 2016 Apr 24)
Test fails on Mac. Avoid using isalpha(), isalnum(), etc? Depends on
@@ -149,14 +152,11 @@ Use names that indicate their appearnce (Christian Brabandt, 2017 Aug 3)
Suggested by Hiroki Kokubun:
- [Iceberg](https://github.com/cocopon/iceberg.vim) (my one)
- [hybrid](https://github.com/w0ng/vim-hybrid)
-
-Patch to update Brazilian translations. (Eduardo Dobay, 2017 Sep 10, #2077)
+Include solarized color scheme?
When starting with --clean packages under "start" are not loaded. Make this
work: :packadd START {name} similar to :runtime START name
-Patch to refactor qf_jump(). (Yegappan, 2017 Sep 17)
-
When using :packadd files under "later" are not used, which is inconsistent
with packages under "start". (xtal8, #1994)
@@ -175,14 +175,19 @@ Patch for not profiling the first line of a script. (Lemonboy, 2017 Sep 17,
Mac Terminal.app: ctermbg=15 gives light grey instead of white.
ctermbg=256 breaks clearing till end of the line. Both work fine in xterm.
+Patch to avoid `rb_load_protect` as a workaround not to crash (#2147)
+
+Patch for drag&drop reordering of GUI tab pages reordering.
+(Ken Takata, 2013 Nov 22, second one, also by Masamichi Abe)
+Now on Git: https://gist.github.com/nocd5/165286495c782b815b94
+Update 2016 Aug 10.
+
Using ":hi" causes a redraw, but a redraw may update the status line, which
may trigger a ":hi" command.
Last line not in profile if it is a continuation line. (LemonBoy, 2017 Sep 17,
#2112)
-"vim -c startinsert!" doesn't append. (#2117)
-
With foldmethod=syntax and nofoldenable comment highlighting isn't removed.
(Marcin Szewczyk, 2017 Apr 26)
@@ -203,6 +208,7 @@ Patch to make ":set scroll&" work properly. (Ozaki Kiichi, 2017 Sep 17, #2104)
mswin.vim should not map CTRL-F in the console (#2093)
Patch from Christian, 2017 Sep 15.
+Installer patch from Ken Takata, link on #2093.
Default install on MS-Windows should source defaults.vim.
Ask whether to use Windows or Vim key behavior?
@@ -324,8 +330,6 @@ Use gvimext.dll from the nightly build? (Issue #249)
Problem with using :cd when remotely editing a file. (Gerd Wachsmuth, 2017 May
8, #1690)
-Include solarized color scheme?
-
Running test_gui and test_gui_init with Motif sometimes kills the window
manager. Problem with Motif?
@@ -660,11 +664,6 @@ Patch to improve map documentation. Issue #799.
Patch for syntax folding optimization. (Shougo, 2016 Sep 6, #1045)
-Patch for drag&drop reordering of GUI tab pages reordering.
-(Ken Takata, 2013 Nov 22, second one, also by Masamichi Abe)
-Now on Git: https://gist.github.com/nocd5/165286495c782b815b94
-Update 2016 Aug 10.
-
We can use '. to go to the last change in the current buffer, but how about
the last change in any buffer? Can we use ', (, is next to .)?
@@ -2236,9 +2235,6 @@ 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)
-Windows installer should install 32-bit version of right-click handler also on
-64-bit systems. (Brian Cunningham, 2011 Dec 28)
-
Windows installer could add a "open in new tab of existing Vim" menu entry.
Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
Just have two choices, always using one Vim and selecting between using an
diff --git a/runtime/doc/vim.1 b/runtime/doc/vim.1
index 18f589c366..20714b7740 100644
--- a/runtime/doc/vim.1
+++ b/runtime/doc/vim.1
@@ -325,7 +325,7 @@ You can still edit the buffer, but will be prevented from accidentally
overwriting a file.
If you do want to overwrite a file, add an exclamation mark to the Ex command,
as in ":w!".
-The \-R option also implies the \-n option (see below).
+The \-R option also implies the \-n option (see above).
The 'readonly' option can be reset with ":set noro".
See ":help 'readonly'".
.TP
diff --git a/runtime/doc/vim.man b/runtime/doc/vim.man
index 64fa795391..5cd751f592 100644
--- a/runtime/doc/vim.man
+++ b/runtime/doc/vim.man
@@ -225,7 +225,7 @@ OPTIONS
dentally overwriting a file. If you do want to overwrite a
file, add an exclamation mark to the Ex command, as in
":w!". The -R option also implies the -n option (see
- below). The 'readonly' option can be reset with ":set
+ above). The 'readonly' option can be reset with ":set
noro". See ":help 'readonly'".
-r List swap files, with information about using them for
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
index be26841a56..a8797a1a2d 100644
--- a/runtime/doc/windows.txt
+++ b/runtime/doc/windows.txt
@@ -1,4 +1,4 @@
-*windows.txt* For Vim version 8.0. Last change: 2017 Sep 08
+*windows.txt* For Vim version 8.0. Last change: 2017 Sep 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -619,7 +619,8 @@ The minimal height and width of a window is set with 'winminheight' and
41. :buffers list of buffers
The meaning of [N] depends on the command:
- [N] is number of buffers to go forward/backward on ?2, ?3, and ?4
+ [N] is the number of buffers to go forward/backward on 2/12/22/32,
+ 3/13/23/33, and 4/14/24/34
[N] is an argument number, defaulting to current argument, for 1 and 21
[N] is a buffer number, defaulting to current buffer, for 11 and 31
[N] is a count for 19 and 39
diff --git a/runtime/evim.vim b/runtime/evim.vim
index f80b3c03b6..7bfebcd167 100644
--- a/runtime/evim.vim
+++ b/runtime/evim.vim
@@ -1,6 +1,6 @@
" Vim script for Evim key bindings
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2016 Jul 24
+" Last Change: 2017 Sep 20
" Don't use Vi-compatible mode.
set nocompatible
@@ -67,8 +67,10 @@ endif " has("autocmd")
"
" The matchit plugin makes the % command work better, but it is not backwards
" compatible.
+" The ! means the package won't be loaded right away but when plugins are
+" loaded during initialization.
if has('syntax') && has('eval')
- packadd matchit
+ packadd! matchit
endif
" vim: set sw=2 :
diff --git a/runtime/indent/cmake.vim b/runtime/indent/cmake.vim
index 85a9ec4e98..845bdd7655 100644
--- a/runtime/indent/cmake.vim
+++ b/runtime/indent/cmake.vim
@@ -3,7 +3,7 @@
" Author: Andy Cedilnik <andy.cedilnik@kitware.com>
" Maintainer: Dimitri Merejkowsky <d.merej@gmail.com>
" Former Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com>
-" Last Change: 2017 Aug 30
+" Last Change: 2017 Sep 24
"
" Licence: The CMake license applies to this file. See
" https://cmake.org/licensing
@@ -14,7 +14,6 @@ if exists("b:did_indent")
endif
let b:did_indent = 1
-setlocal et
setlocal indentexpr=CMakeGetIndent(v:lnum)
setlocal indentkeys+==ENDIF(,ENDFOREACH(,ENDMACRO(,ELSE(,ELSEIF(,ENDWHILE(
@@ -67,19 +66,19 @@ fun! CMakeGetIndent(lnum)
let ind = ind
else
if previous_line =~? cmake_indent_begin_regex
- let ind = ind + &sw
+ let ind = ind + shiftwidth()
endif
if previous_line =~? cmake_indent_open_regex
- let ind = ind + &sw
+ let ind = ind + shiftwidth()
endif
endif
" Subtract
if this_line =~? cmake_indent_end_regex
- let ind = ind - &sw
+ let ind = ind - shiftwidth()
endif
if previous_line =~? cmake_indent_close_regex
- let ind = ind - &sw
+ let ind = ind - shiftwidth()
endif
return ind
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index ba00f0114b..28d5a9b467 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -43,12 +43,14 @@ func s:StartDebug(cmd)
let s:startwin = win_getid(winnr())
let s:startsigncolumn = &signcolumn
- if exists('g:termdebug_wide') && &columns < g:termdebug_wide
- let s:save_columns = &columns
- let &columns = g:termdebug_wide
+ let s:save_columns = 0
+ if exists('g:termdebug_wide')
+ if &columns < g:termdebug_wide
+ let s:save_columns = &columns
+ let &columns = g:termdebug_wide
+ endif
let vertical = 1
else
- let s:save_columns = 0
let vertical = 0
endif
@@ -175,11 +177,11 @@ func s:InstallCommands()
nnoremap K :Evaluate<CR>
if has('menu')
- amenu WinBar.Step :Step<CR>
- amenu WinBar.Next :Over<CR>
- amenu WinBar.Finish :Finish<CR>
- amenu WinBar.Cont :Continue<CR>
- amenu WinBar.Eval :Evaluate<CR>
+ nnoremenu WinBar.Step :Step<CR>
+ nnoremenu WinBar.Next :Over<CR>
+ nnoremenu WinBar.Finish :Finish<CR>
+ nnoremenu WinBar.Cont :Continue<CR>
+ nnoremenu WinBar.Eval :Evaluate<CR>
endif
endfunc
diff --git a/runtime/tutor/tutor.lv b/runtime/tutor/tutor.lv
new file mode 100644
index 0000000000..8f7ab56e33
--- /dev/null
+++ b/runtime/tutor/tutor.lv
@@ -0,0 +1,1009 @@
+===============================================================================
+= Ī s a p a m ā c ī b a V I M - Versija 1.7 =
+===============================================================================
+
+ Vim ir jaudīgs teksta redaktors ar pārāk daudzām komandām, lai to
+ aprakstītu tik īsā aprakstā kā šis. Šī pamācība ir paredzēta, lai
+ spētu iemācīties tik daudz, cik nepieciešams, lietojot Vim, kā plaša
+ pielietojuma teksta redaktoru.
+
+ Atkarībā no tā, cik daudz laika veltīsiet eksperimentiem,
+ šīs pamācības aptuvenais izpildīšanas laiks ir 25 — 30 minūtes.
+
+ UZMANĪBU:
+ Darbojoties ar komandām, jūs izmainīsiet šo tekstu, tāpēc izveidojiet šī
+ faila kopiju (ja jūs palaidāt "vimtutor" komandu, šī jau ir kopija).
+
+ Svarīgi atcerēties, ka šo pamācību ir paredzēts izpildīt praktiski!
+ Ja jūs tikai lasīsiet šo tekstu, jūs komandas aizmirsīsiet!
+
+ Tagad pārliecinieties, ka tastatūrai nav nospiesti SHIFT vai
+ CAPS-LOCK taustiņi un spiediet j taustiņu, līdz pilnībā redzat
+
+ 1.1 nodarbības saturu
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1.1 nodarbība: KURSORA PĀRVIETOŠANA
+
+ ** Lai pārvietotu kursoru, spiediet taustiņus h, j, k, l **
+
+ Lai atcerētos,
+ izmantojiet vārdus: k "Kaugšup"
+ ^
+ pa "Heisi" h < > l pa "Labi"
+ v
+ j "Jejup"
+
+ 1. Pārvietojiet kursoru pa ekrānu tik ilgi, kamēr pierodat.
+
+ 2. Turiet j taustiņu tik ilgi, kamēr ieslēdzas tā auto-atkārtošana.
+ Un dodieties uz nākamo nodarbību.
+
+PIEZĪME: Ja neesat pārliecināts par nospiesto taustiņu, spiediet <ESC>,
+ lai atgrieztos normālajā režīmā, un spiediet vajadzīgo taustiņu atkal.
+
+PIEZĪME: Kursora vadībai var izmantot arī bultiņu taustiņus, bet ticiet —
+ iemācīties vadīt ar j, k, l, h taustiņiem ir daudz parocīgāk!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1.2 nodarbība: IZIEŠANA NO VIM
+
+ !! PIEZĪME: Pirms izpildīt šīs nodarbības soļus, izlasiet visu instrukciju!
+
+ 1. Lai būtu drošs, ka esat normālajā režīmā, nospiediet <ESC> taustiņu.
+
+ 2. Ievadiet komandu: :q! <ENTER>.
+ Ievadot šo komandu, jūs iziesiet no redaktora nesaglabājot izmaiņas.
+
+ 3. Ja palaidāt vim komandrindā, tad pēc tam atkal to izsauciet, ievadot
+ vimtutor <ENTER>
+
+ 4. Kad esat iegaumējis 1. — 3. soli, izpildiet tos, lai atgrieztos
+ redaktorā.
+
+PIEZĪME: :q! <ENTER> komanda atceļ visas failā radītās izmaiņas. Pēc dažām
+ nodarbībām jūs uzzināsiet, kā izmaiņas varat saglabāt.
+
+ 5. Pārvietojiet kursoru, uz 1.3 nodarbību.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1.3 nodarbība: TEKSTA REDIĢĒŠANA – DZĒŠANA
+
+ ** Lai izdzēstu zem kursora atrodošos burtu, spiediet x **
+
+ 1. Pārvietojiet kursoru uz līniju ar atzīmi --->.
+
+ 2. Lai izlabotu kļūdas, pārvietojiet kursoru uz vajadzīgo burtu.
+
+ 3. Spiediet x taustiņu, lai izdzēstu nevajadzīgo burtu.
+
+ 4. Atkārtojiet 2. līdz 4. soļus, līdz teksts ir pareizs.
+
+---> Hiiipijiiii čččauuukstiiina celllofānu.
+
+ 5. Kad augstāk parādītā rinda ir izlabota, dodieties uz 1.4. nodarbību.
+
+PIEZĪME: Izpildot šo pamācību, centieties mācīties nevis domājot,
+ bet gan praktiski trenējot kustību atmiņu.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1.4 nodarbība: TEKSTA REDIĢĒŠANA — IEVIETOŠANA
+
+ ** Lai ievietotu tekstu, spiediet i **
+
+ 1. Pārvietojiet kursoru uz pirmo līniju ar atzīmi --->.
+
+ 2. Lai ierakstītu tekstu augšējā rindā tieši tādu pašu kā apakšējā,
+ novietojiet kursoru tieši PĒC ievietojamā teksta.
+
+ 3. Spiediet i un ievadiet visu nepieciešamo tekstu.
+
+ 4. Pēc katra papildinājuma, spiediet <ESC> lai atgrieztos normālajā režīmā.
+ Atkārtojiet 2. līdz 4. soļus, līdz teksts ir pareizs.
+
+---> Šaā lnij no tksta rūkt dai buti.
+ Šajā līnijā no teksta trūkst daži burti.
+
+ 5. Kad esat apguvis šīs darbības, dodieties uz 1.5. nodarbību.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1.5 nodarbība: TEKSTA REDIĢĒŠANA — PIEVIENOŠANA
+
+ ** Lai pievienotu tekstu, spiediet A **
+
+ 1. Pārvietojiet kursoru uz pirmo līniju ar atzīmi --->.
+ Nav svarīgi, uz kura šīs rindas burta atrodas kursors.
+
+ 2. Spiediet A un pievienojiet iztrūkstošo tekstu.
+
+ 3. Kad nepieciešamais teksts ir pievienots, spiediet <ESC>,
+ lai atgrieztos normālajā režīmā.
+
+ 4. Pārvietojiet kursoru uz otro līniju ar atzīmi --->
+ un atkārtojiet 2. un 3. soļus.
+
+---> Šajā līnijā tekstam
+ Šajā līnijā tekstam pietrūkst beigas.
+---> Šajā līnijā t
+ Šajā līnijā tekstam pietrūkst beigas.
+
+ 5. Kad esat apguvis šīs darbības, dodieties uz 1.6. nodarbību.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1.6 nodarbība: FAILA SAGLABĀŠANA
+
+ ** Lai saglabātu failu un izietu no redaktora, spiediet :wq **
+
+ !! PIEZĪME: Pirms izpildīt šo nodarbību, izlasiet visus tās soļus!
+
+ 1. Pārliecinieties, ka esat pareizi izpildījis visas iepriekšējās nodarbības.
+
+ 2. Ja neesat pārliecināts, izejiet no redaktora, kā 1.2. nodarbībā ar komandu:
+ :q!
+
+ 3. Tad atkal palaidiet pamācību, un, ja nepieciešams, veiciet failā izmaiņas.
+
+ 4. Saglabājiet faila izmaiņas, redaktorā ievadot :w tutor <ENTER>
+ Izejiet no redaktora, ievadot komandu :wq <ENTER>
+
+ 5. Palaidiet atkal šo pamācību, terminālī ievadot komandu: vim tutor
+ Šajā komandā vārds "vim" izsauc teksta redaktoru, bet
+ vārds "tutor" ir faila nosaukums, kurā ir saglabāta izmainītā pamācība.
+
+ 5. Kad esat sapratis veicamās darbības, izpildiet tās.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1. nodarbības APKOPOJUMS
+
+
+ 1. Kursoru pārvieto ar bultiņu vai arī h,j,k,l taustiņiem:
+ h (pa kreisi) j (lejup) k (augšup) l (pa labi)
+
+ 2. Lai ar Vim rediģētu noteiktu failu, ievadiet komandu: vim fails <ENTER>
+
+ 3. Lai izietu no Vim ievadiet:
+ <ESC> :q! <ENTER> lai pazaudētu izmaiņas.
+ <ESC> :wq <ENTER> lai saglabātu izmaiņas.
+
+ 4. Lai izdzēstu burtu zem kursora, spiediet x
+
+ 5. Lai ievietotu vai pievienotu tekstu, spiediet:
+ i ievadāmais teksts <ESC> lai ievietotu pirms kursora
+ A pievienojamais teksts <ESC> lai pievienotu rindas beigās
+
+PIEZĪME: <ESC> spiešana atgriezīs jūs normālajā režīmā, vai arī atcels
+ nepareizu vai daļēji ievadītu komandu.
+
+Tagad dodieties uz 2. nodarbību.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 2.1 nodarbība: DZĒŠANAS KOMANDAS
+
+
+ ** Lai izdzēstu vārdu, spiediet dw **
+
+ 1. Nospiediet <ESC> lai pārliecinātos, ka esat normālajā režīmā.
+
+ 2. Pārvietojiet kursoru uz rindu ar atzīmi --->.
+
+ 3. Pārvietojiet kursoru uz izdzēšamā vārda sākumu.
+
+ 4. Ievadiet dw lai izdzēstu nepieciešamo vārdu.
+
+PIEZĪME: Nospiežot d, ekrāna labajā apakšējā stūrī parādīsies d burts.
+ Tas ir tāpēc, ka Vim gaida nākamo komandu (burtu w).
+ Ja jūs redzat citu burtu, vai neredzat neko, esat kaut ko izdarījis
+ nepareizi. Tad spiediet <ESC> un sāciet no sākuma.
+
+---> Šajā kuku teikumā ir tata daži lala vārdi, kuri mumu nav vajadzīgi.
+
+ 5. Izpildiet 3. — 4. soļus, līdz teksts ir pareizs un dodieties uz 2.2. nodarbību.
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 2.2 nodarbība: CITAS DZĒŠANAS KOMANDAS
+
+
+ ** Lai izdzēstu līdz rindas beigām, spiediet d$ **
+
+ 1. Nospiediet <ESC> lai pārliecinātos, ka esat normālajā režīmā.
+
+ 2. Pārvietojiet kursoru uz rindu ar atzīmi --->.
+
+ 3. Pārvietojiet kursoru līdz pirmā teikuma beigām (PĒC pirmā punkta).
+
+ 4. Ievadiet d$ lai izdzēstu tekstu no kursora līdz rindas beigām.
+
+---> Kāds ir ievadījis teikuma beigas divreiz. ievadījis teikuma beigas divreiz.
+
+
+ 5. Dodieties uz 2.3 nodarbību, lai labāk izprastu, kā tas notiek.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 2.3 nodarbība: OPERATORI UN KOMANDAS
+
+
+ Daudzas tekstu mainošās komandas sastāv no operatora un kustības.
+ Dzēšanas komanda, kuru izsauc ar d operatoru vispārīgā gadījumā ir sekojoša:
+
+ d kustība
+
+ Kur:
+ d - ir dzēšanas operators.
+ kustība - ir operators, kas nosaka dzēšanas veidu.
+
+ Biežāk izplatītās kustības ir:
+ w - līdz nākamā vārda sākumam, NEIESKAITOT tā pirmo burtu.
+ e - līdz tekošā vārda beigām, IESKAITOT pēdējo burtu.
+ $ - līdz rindas beigām, IESKAITOT tās pēdējo burtu.
+
+ Piemēram, ievadot de tiks izdzēsts teksts no kursora līdz rindas beigām.
+
+PIEZĪME: Ievadot kustības komandu normālajā režīmā, tā pārvietos kursoru uz
+ norādīto vietu.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 2.4 nodarbība: KUSTĪBAS SKAITA IZMANTOŠANA
+
+
+ ** Pirms kustības ievadot skaitli, tā tiks atkārtota norādās reizes. **
+
+ 1. Pārvietojiet kursoru uz līniju ar atzīmi --->.
+
+ 2. Ievadiet 2w lai pārvietotu kursoru par 2 vārdiem uz priekšu.
+
+ 3. Ievadiet 3e lai pārvietotu kursoru par 3 vārdiem atpakaļ.
+
+ 4. Ievadiet 0 (nulli), lai pārvietotu kursoru uz rindas sākumu.
+
+ 5. Atkārtojiet 2. — 3. soļus ar dažādiem skaitļiem.
+
+---> Šī ir rinda ar vārdiem, kurā jūs varat pārvietoties.
+
+ 6. Dodieties uz nodarbību 2.5.
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 2.5 nodarbība: SKAITĻA IZMANTOŠANA DZĒŠANAI
+
+
+ ** Ievadot skaitli pirms operatora, tas tiks atkārtots norādītās reizes. **
+
+ Pirms augšminētajām dzēšanas un pārvietošanās darbībām
+ var ievadīt skaitli, lai norādītu cik reizes to izpildīt, formā:
+ d skaitlis kustība
+
+ 1. Pārvietojiet kursoru uz pirmo vārdu ar LIELAJIEM BURTIEM rindā ar atzīmi --->.
+
+ 2. Ievadiet komandu d2w lai izdzēstu divus vārdus ar LIELAJIEM BURTIEM
+
+ 3. Atkārtojiet pirmo soli, dzēšanas komandai norādot dažādus skaitļus,
+ lai izdzēstu visus vārdus ar LIELAJIEM BURTIEM
+
+---> šajā ABC DE rindā FGHI JK LMN OP ir jāizdzēš liekie Q RS TUV vārdi
+
+
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 2.6 nodarbība: DARBĪBAS AR RINDĀM
+
+
+ ** Ievadiet dd lai izdzēstu visu teksta rindu. **
+
+ Tā kā veselas rindas izdzēšana ir izplatīta darbība, Vi dizaineri nolēma
+ tās dzēš