mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.1a
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
README_unix.txt for version 7.0 of Vim: Vi IMproved.
|
||||
README_unix.txt for version 7.1a of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on Unix systems.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
*usr_31.txt* For Vim version 7.0. Last change: 2006 Apr 24
|
||||
*usr_31.txt* For Vim version 7.1a. Last change: 2006 Apr 24
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 7.0. Last change: 2006 Apr 24
|
||||
*windows.txt* For Vim version 7.1a. Last change: 2007 Mar 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -200,6 +200,7 @@ window will appear.
|
||||
:vert[ical] {cmd}
|
||||
Execute {cmd}. If it contains a command that splits a window,
|
||||
it will be split vertically.
|
||||
Doesn't work for |:execute| and |:normal|.
|
||||
|
||||
:lefta[bove] {cmd} *:lefta* *:leftabove*
|
||||
:abo[veleft] {cmd} *:abo* *:aboveleft*
|
||||
@@ -207,6 +208,7 @@ window will appear.
|
||||
it will be opened left (vertical split) or above (horizontal
|
||||
split) the current window. Overrules 'splitbelow' and
|
||||
'splitright'.
|
||||
Doesn't work for |:execute| and |:normal|.
|
||||
|
||||
:rightb[elow] {cmd} *:rightb* *:rightbelow*
|
||||
:bel[owright] {cmd} *:bel* *:belowright*
|
||||
@@ -214,6 +216,7 @@ window will appear.
|
||||
it will be opened right (vertical split) or below (horizontal
|
||||
split) the current window. Overrules 'splitbelow' and
|
||||
'splitright'.
|
||||
Doesn't work for |:execute| and |:normal|.
|
||||
|
||||
*:topleft* *E442*
|
||||
:to[pleft] {cmd}
|
||||
@@ -221,6 +224,7 @@ window will appear.
|
||||
it will appear at the top and occupy the full width of the Vim
|
||||
window. When the split is vertical the window appears at the
|
||||
far left and occupies the full height of the Vim window.
|
||||
Doesn't work for |:execute| and |:normal|.
|
||||
|
||||
*:botright*
|
||||
:bo[tright] {cmd}
|
||||
@@ -228,6 +232,7 @@ window will appear.
|
||||
it will appear at the bottom and occupy the full width of the
|
||||
Vim window. When the split is vertical the window appears at
|
||||
the far right and occupies the full height of the Vim window.
|
||||
Doesn't work for |:execute| and |:normal|.
|
||||
|
||||
These command modifiers can be combined to make a vertically split window
|
||||
occupy the full height. Example: >
|
||||
@@ -447,6 +452,8 @@ CTRL-W T Move the current window to a new tab page. This fails if
|
||||
*CTRL-W_=*
|
||||
CTRL-W = Make all windows (almost) equally high and wide, but use
|
||||
'winheight' and 'winwidth' for the current window.
|
||||
Windows with 'winfixheight' set keep their height and windows
|
||||
with 'winfixwidth' set keep their width.
|
||||
|
||||
:res[ize] -N *:res* *:resize* *CTRL-W_-*
|
||||
CTRL-W - Decrease current window height by N (default 1).
|
||||
@@ -1118,7 +1125,7 @@ list of buffers. |unlisted-buffer|
|
||||
of windows opened ('winwidth' if |:vertical| was prepended).
|
||||
Buf/Win Enter/Leave autocommands are not executed for the new
|
||||
windows here, that's only done when they are really entered.
|
||||
When the |:tab| modifier is used new windows are opended in a
|
||||
When the |:tab| modifier is used new windows are opened in a
|
||||
new tab, up to 'tabpagemax'.
|
||||
|
||||
Note: All the commands above that start editing another buffer, keep the
|
||||
|
@@ -20,6 +20,12 @@ let b:did_ftplugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
if has("gui_running") && !has("gui_win32")
|
||||
setlocal keywordprg=ri\ -T
|
||||
else
|
||||
setlocal keywordprg=ri
|
||||
endif
|
||||
|
||||
" Matchit support
|
||||
if exists("loaded_matchit") && !exists("b:match_words")
|
||||
let b:match_ignorecase = 0
|
||||
@@ -29,7 +35,7 @@ if exists("loaded_matchit") && !exists("b:match_words")
|
||||
\ '\%(' .
|
||||
\ '\%(\%(\.\|\:\:\)\s*\|\:\)\@<!\<\%(class\|module\|begin\|def\|case\|for\|do\)\>' .
|
||||
\ '\|' .
|
||||
\ '\%(\%(^\|\.\.\.\=\|[\,;=([<>~\*/%!&^|+-]\)\s*\)\@<=\%(if\|unless\|until\|while\)\>' .
|
||||
\ '\%(\%(^\|\.\.\.\=\|[{\:\,;([<>~\*/%&^|+-]\|\%(\<[_[\:lower\:]][_[\:alnum\:]]*\)\@<![!=?]\)\s*\)\@<=\%(if\|unless\|while\|until\)\>' .
|
||||
\ '\)' .
|
||||
\ ':' .
|
||||
\ '\%(' .
|
||||
@@ -54,10 +60,16 @@ setlocal include=^\\s*\\<\\(load\\\|\w*require\\)\\>
|
||||
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
|
||||
setlocal suffixesadd=.rb
|
||||
|
||||
if version >= 700
|
||||
if exists("&ofu") && has("ruby")
|
||||
setlocal omnifunc=rubycomplete#Complete
|
||||
endif
|
||||
|
||||
" To activate, :set ballooneval
|
||||
if has('balloon_eval') && exists('+balloonexpr')
|
||||
setlocal balloonexpr=RubyBalloonexpr()
|
||||
endif
|
||||
|
||||
|
||||
" TODO:
|
||||
"setlocal define=^\\s*def
|
||||
|
||||
@@ -65,7 +77,10 @@ setlocal comments=:#
|
||||
setlocal commentstring=#\ %s
|
||||
|
||||
if !exists("s:rubypath")
|
||||
if executable("ruby")
|
||||
if has("ruby") && has("win32")
|
||||
ruby VIM::command( 'let s:rubypath = "%s"' % ($: + begin; require %q{rubygems}; Gem.all_load_paths.sort.uniq; rescue LoadError; []; end).join(%q{,}) )
|
||||
let s:rubypath = '.,' . substitute(s:rubypath, '\%(^\|,\)\.\%(,\|$\)', ',,', '')
|
||||
elseif executable("ruby")
|
||||
let s:code = "print ($: + begin; require %q{rubygems}; Gem.all_load_paths.sort.uniq; rescue LoadError; []; end).join(%q{,})"
|
||||
if &shellxquote == "'"
|
||||
let s:rubypath = system('ruby -e "' . s:code . '"')
|
||||
@@ -87,12 +102,69 @@ if has("gui_win32") && !exists("b:browsefilter")
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
|
||||
let b:undo_ftplugin = "setl fo< inc< inex< sua< def< com< cms< path< "
|
||||
let b:undo_ftplugin = "setl fo< inc< inex< sua< def< com< cms< path< kp<"
|
||||
\ "| unlet! b:browsefilter b:match_ignorecase b:match_words b:match_skip"
|
||||
\ "| if exists('&ofu') && has('ruby') | setl ofu< | endif"
|
||||
\ "| if has('balloon_eval') && exists('+bexpr') | setl bexpr< | endif"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
if exists("g:did_ruby_ftplugin_functions")
|
||||
finish
|
||||
endif
|
||||
let g:did_ruby_ftplugin_functions = 1
|
||||
|
||||
function! RubyBalloonexpr()
|
||||
if !exists('s:ri_found')
|
||||
let s:ri_found = executable('ri')
|
||||
endif
|
||||
if s:ri_found
|
||||
let line = getline(v:beval_lnum)
|
||||
let b = matchstr(strpart(line,0,v:beval_col),'\%(\w\|[:.]\)*$')
|
||||
let a = substitute(matchstr(strpart(line,v:beval_col),'^\w*\%([?!]\|\s*=\)\?'),'\s\+','','g')
|
||||
let str = b.a
|
||||
let before = strpart(line,0,v:beval_col-strlen(b))
|
||||
let after = strpart(line,v:beval_col+strlen(a))
|
||||
if str =~ '^\.'
|
||||
let str = substitute(str,'^\.','#','g')
|
||||
if before =~ '\]\s*$'
|
||||
let str = 'Array'.str
|
||||
elseif before =~ '}\s*$'
|
||||
" False positives from blocks here
|
||||
let str = 'Hash'.str
|
||||
elseif before =~ "[\"'`]\\s*$" || before =~ '\$\d\+\s*$'
|
||||
let str = 'String'.str
|
||||
elseif before =~ '\$\d\+\.\d\+\s*$'
|
||||
let str = 'Float'.str
|
||||
elseif before =~ '\$\d\+\s*$'
|
||||
let str = 'Integer'.str
|
||||
elseif before =~ '/\s*$'
|
||||
let str = 'Regexp'.str
|
||||
else
|
||||
let str = substitute(str,'^#','.','')
|
||||
endif
|
||||
endif
|
||||
let str = substitute(str,'.*\.\s*to_f\s*\.\s*','Float#','')
|
||||
let str = substitute(str,'.*\.\s*to_i\%(nt\)\=\s*\.\s*','Integer#','')
|
||||
let str = substitute(str,'.*\.\s*to_s\%(tr\)\=\s*\.\s*','String#','')
|
||||
let str = substitute(str,'.*\.\s*to_sym\s*\.\s*','Symbol#','')
|
||||
let str = substitute(str,'.*\.\s*to_a\%(ry\)\=\s*\.\s*','Array#','')
|
||||
let str = substitute(str,'.*\.\s*to_proc\s*\.\s*','Proc#','')
|
||||
if str !~ '^\w'
|
||||
return ''
|
||||
endif
|
||||
silent! let res = substitute(system("ri -f simple -T \"".str.'"'),'\n$','','')
|
||||
if res =~ '^Nothing known about' || res =~ '^Bad argument:'
|
||||
return ''
|
||||
endif
|
||||
return res
|
||||
else
|
||||
return ""
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
"
|
||||
" Instructions for enabling "matchit" support:
|
||||
"
|
||||
|
@@ -4,9 +4,9 @@
|
||||
" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
|
||||
" License: This file can be redistribued and/or modified under the same terms
|
||||
" as Vim itself.
|
||||
" Last Change: 2006-04-12
|
||||
" Last Change: 2006-12-13
|
||||
" URL: http://trific.ath.cx/Ftp/vim/syntax/apache.vim
|
||||
" Notes: Last synced with apache-2.2.0, version 1.x is no longer supported
|
||||
" Notes: Last synced with apache-2.2.3, version 1.x is no longer supported
|
||||
" TODO: see particular FIXME's scattered through the file
|
||||
" make it really linewise?
|
||||
" + add `display' where appropriate
|
||||
@@ -94,7 +94,7 @@ syn keyword apacheDeclaration AddAlt AddAltByEncoding AddAltByType AddDescriptio
|
||||
syn keyword apacheDeclaration IndexStyleSheet
|
||||
syn keyword apacheOption DescriptionWidth FancyIndexing FoldersFirst IconHeight IconsAreLinks IconWidth NameWidth ScanHTMLTitles SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize TrackModified
|
||||
syn keyword apacheOption Ascending Descending Name Date Size Description
|
||||
syn keyword apacheOption HTMLTable SupressIcon SupressRules VersionSort XHTML
|
||||
syn keyword apacheOption HTMLTable SuppressIcon SuppressRules VersionSort XHTML
|
||||
syn keyword apacheOption IgnoreClient IgnoreCase ShowForbidden SuppresRules
|
||||
syn keyword apacheDeclaration CacheForceCompletion CacheMaxStreamingBuffer
|
||||
syn keyword apacheDeclaration CacheDefaultExpire CacheDisable CacheEnable CacheIgnoreCacheControl CacheIgnoreHeaders CacheIgnoreNoLastMod CacheLastModifiedFactor CacheMaxExpire CacheStoreNoStore CacheStorePrivate
|
||||
@@ -161,7 +161,7 @@ syn keyword apacheDeclaration RewriteBase RewriteCond RewriteEngine RewriteLock
|
||||
syn keyword apacheOption inherit
|
||||
syn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase SetEnvIf SetEnvIfNoCase
|
||||
syn keyword apacheDeclaration LoadFile LoadModule
|
||||
syn keyword apacheDeclaration CheckSpelling
|
||||
syn keyword apacheDeclaration CheckSpelling CheckCaseOnly
|
||||
syn keyword apacheDeclaration SSLCACertificateFile SSLCACertificatePath SSLCADNRequestFile SSLCADNRequestPath SSLCARevocationFile SSLCARevocationPath SSLCertificateChainFile SSLCertificateFile SSLCertificateKeyFile SSLCipherSuite SSLCryptoDevice SSLEngine SSLHonorCipherOrder SSLMutex SSLOptions SSLPassPhraseDialog SSLProtocol SSLProxyCACertificateFile SSLProxyCACertificatePath SSLProxyCARevocationFile SSLProxyCARevocationPath SSLProxyCipherSuite SSLProxyEngine SSLProxyMachineCertificateFile SSLProxyMachineCertificatePath SSLProxyProtocol SSLProxyVerify SSLProxyVerifyDepth SSLRandomSeed SSLRequire SSLRequireSSL SSLSessionCache SSLSessionCacheTimeout SSLUserName SSLVerifyClient SSLVerifyDepth
|
||||
syn match apacheOption "[+-]\?\<\(StdEnvVars\|CompatEnvVars\|ExportCertData\|FakeBasicAuth\|StrictRequire\|OptRenegotiate\)\>"
|
||||
syn keyword apacheOption builtin sem
|
||||
|
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Django template
|
||||
" Maintainer: Dave Hodder <dmh@dmh.org.uk>
|
||||
" Last Change: 2006 Mar 23
|
||||
" Last Change: 2007 Jan 26
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -13,9 +13,12 @@ endif
|
||||
|
||||
syntax case match
|
||||
|
||||
" Mark illegal characters
|
||||
syn match djangoError "%}\|}}\|#}"
|
||||
|
||||
" Django template built-in tags and parameters
|
||||
" 'comment' doesn't appear here because it gets special treatment
|
||||
syn keyword djangoStatement contained as block endblock by cycle debug else
|
||||
syn keyword djangoStatement contained and as block endblock by cycle debug else
|
||||
syn keyword djangoStatement contained extends filter endfilter firstof for
|
||||
syn keyword djangoStatement contained endfor if endif ifchanged endifchanged
|
||||
syn keyword djangoStatement contained ifequal endifequal ifnotequal
|
||||
@@ -23,7 +26,11 @@ syn keyword djangoStatement contained endifnotequal in include load not now or
|
||||
syn keyword djangoStatement contained parsed regroup reversed spaceless
|
||||
syn keyword djangoStatement contained endspaceless ssi templatetag openblock
|
||||
syn keyword djangoStatement contained closeblock openvariable closevariable
|
||||
syn keyword djangoStatement contained widthratio with
|
||||
syn keyword djangoStatement contained openbrace closebrace opencomment
|
||||
syn keyword djangoStatement contained closecomment widthratio with
|
||||
syn keyword djangoStatement contained get_current_language trans noop blocktrans
|
||||
syn keyword djangoStatement contained endblocktrans get_available_languages
|
||||
syn keyword djangoStatement contained get_current_language_bidi plural
|
||||
|
||||
" Django templete built-in filters
|
||||
syn keyword djangoFilter contained add addslashes capfirst center cut date
|
||||
@@ -34,19 +41,28 @@ syn keyword djangoFilter contained floatformat get_digit join length length_is
|
||||
syn keyword djangoFilter contained linebreaks linebreaksbr linenumbers ljust
|
||||
syn keyword djangoFilter contained lower make_list phone2numeric pluralize
|
||||
syn keyword djangoFilter contained pprint random removetags rjust slice slugify
|
||||
syn keyword djangoFilter contained stringformat striptags time timesince title
|
||||
syn keyword djangoFilter contained stringformat striptags
|
||||
syn keyword djangoFilter contained time timesince timeuntil title
|
||||
syn keyword djangoFilter contained truncatewords unordered_list upper urlencode
|
||||
syn keyword djangoFilter contained urlize urlizetrunc wordcount wordwrap yesno
|
||||
|
||||
" Keywords to highlight within comments
|
||||
syn keyword djangoTodo contained TODO FIXME XXX
|
||||
|
||||
" Django template constants (always surrounded by double quotes)
|
||||
syn region djangoArgument contained start=/"/ skip=/\\"/ end=/"/
|
||||
|
||||
" Django template tag and variable blocks
|
||||
syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument display
|
||||
syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument display
|
||||
" Mark illegal characters within tag and variables blocks
|
||||
syn match djangoTagError contained "#}\|{{\|[^%]}}\|[<>!=&#]"
|
||||
syn match djangoVarError contained "#}\|{%\|%}\|[<>!=&#%]"
|
||||
|
||||
" Django template 'comment' tag
|
||||
syn region djangoComment start="{%\s*comment\s*%}" end="{%\s*endcomment\s*%}"
|
||||
" Django template tag and variable blocks
|
||||
syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display
|
||||
syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument,djangoVarError display
|
||||
|
||||
" Django template 'comment' tag and comment block
|
||||
syn region djangoComment start="{%\s*comment\s*%}" end="{%\s*endcomment\s*%}" contains=djangoTodo
|
||||
syn region djangoComBlock start="{#" end="#}" contains=djangoTodo
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
@@ -64,7 +80,12 @@ if version >= 508 || !exists("did_django_syn_inits")
|
||||
HiLink djangoStatement Statement
|
||||
HiLink djangoFilter Identifier
|
||||
HiLink djangoArgument Constant
|
||||
HiLink djangoTagError Error
|
||||
HiLink djangoVarError Error
|
||||
HiLink djangoError Error
|
||||
HiLink djangoComment Comment
|
||||
HiLink djangoComBlock Comment
|
||||
HiLink djangoTodo Todo
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
@@ -29,7 +29,7 @@
|
||||
^
|
||||
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
|
||||
j The j key looks like a down arrow.
|
||||
v
|
||||
1. Move the cursor around the screen until you are comfortable.
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
|
||||
3. Using the down key, move to Lesson 1.2.
|
||||
|
||||
Note: If you are ever unsure about something you typed, press <ESC> to place
|
||||
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
|
||||
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!
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -109,7 +109,7 @@ NOTE: As you go through this tutor, do not try to memorize, learn by usage.
|
||||
---> There is text misng this .
|
||||
---> There is some text missing from this line.
|
||||
|
||||
5. When you are comfortable inserting text move to the summary below.
|
||||
5. When you are comfortable inserting text move to lesson 1.5.
|
||||
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ NOTE: As you go through this tutor, do not try to memorize, learn by usage.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 1 SUMMARY
|
||||
Lesson 1 SUMMARY
|
||||
|
||||
|
||||
1. The cursor is moved using either the arrow keys or the hjkl keys.
|
||||
@@ -286,15 +286,15 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
|
||||
|
||||
1. Move the cursor to the first UPPER CASE word in the line marked --->.
|
||||
|
||||
2. Type 2dw to delete the two UPPER CASE words
|
||||
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.
|
||||
|
||||
NOTE: A count between the operator d and the motion works similar to
|
||||
using the motion without an operator.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -344,10 +344,10 @@ NOTE: A count between the operator d and the motion works similar to
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 2 SUMMARY
|
||||
Lesson 2 SUMMARY
|
||||
|
||||
|
||||
1. To delete from the cursor upto the next word type: dw
|
||||
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
|
||||
|
||||
@@ -357,7 +357,7 @@ NOTE: A count between the operator d and the motion works similar to
|
||||
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 operator on, such as w (word),
|
||||
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
|
||||
@@ -406,7 +406,7 @@ NOTE: A count between the operator d and the motion works similar to
|
||||
---> 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.2.
|
||||
5. Now move on to Lesson 3.3.
|
||||
|
||||
NOTE: Remember that you should be learning by doing, not memorization.
|
||||
|
||||
@@ -428,8 +428,8 @@ NOTE: Remember that you should be learning by doing, not memorization.
|
||||
|
||||
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 command.
|
||||
---> This line has a few words that need changing using the change command.
|
||||
---> 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.
|
||||
|
||||
@@ -439,7 +439,7 @@ Notice that ce deletes the word and places you in Insert mode.
|
||||
Lesson 3.4: MORE CHANGES USING c
|
||||
|
||||
|
||||
** The change command is used with the same motions as delete. **
|
||||
** 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:
|
||||
|
||||
@@ -459,7 +459,7 @@ Notice that ce deletes the word and places you in Insert mode.
|
||||
NOTE: You can use the Backspace key to correct mistakes while typing.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 3 SUMMARY
|
||||
Lesson 3 SUMMARY
|
||||
|
||||
|
||||
1. To put back text that has just been deleted, type p . This puts the
|
||||
@@ -487,14 +487,14 @@ Now go on to the next lesson.
|
||||
** 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!!
|
||||
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 (explained in lesson 6).
|
||||
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.
|
||||
@@ -523,8 +523,8 @@ NOTE: You may see the cursor position in the lower right corner of the screen
|
||||
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.
|
||||
|
||||
Note: "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
|
||||
---> "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.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -546,7 +546,7 @@ Note: When the search reaches the end of the file it will continue at the
|
||||
---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
|
||||
|
||||
|
||||
Note: This is very useful in debugging a program with unmatched parentheses!
|
||||
NOTE: This is very useful in debugging a program with unmatched parentheses!
|
||||
|
||||
|
||||
|
||||
@@ -568,13 +568,13 @@ Note: This is very useful in debugging a program with unmatched parentheses!
|
||||
|
||||
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 subsitution is to be done.
|
||||
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 wether to substitute or not.
|
||||
with a prompt whether to substitute or not.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 4 SUMMARY
|
||||
Lesson 4 SUMMARY
|
||||
|
||||
|
||||
1. CTRL-G displays your location in the file and the file status.
|
||||
@@ -612,11 +612,11 @@ Note: This is very useful in debugging a program with unmatched parentheses!
|
||||
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
|
||||
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 one we will not always mention it.
|
||||
NOTE: All : commands must be finished by hitting <ENTER>
|
||||
From here on we will not always mention it.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -635,7 +635,7 @@ Note: All : commands must be finished by hitting <ENTER>
|
||||
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
|
||||
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
|
||||
@@ -689,7 +689,7 @@ NOTE: You can also read the output of an external command. For example,
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 5 SUMMARY
|
||||
Lesson 5 SUMMARY
|
||||
|
||||
|
||||
1. :!command executes an external command.
|
||||
@@ -708,7 +708,7 @@ NOTE: You can also read the output of an external command. For example,
|
||||
cursor position.
|
||||
|
||||
5. :r !dir reads the output of the dir command and puts it below the
|
||||
cursor position
|
||||
cursor position.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -754,7 +754,7 @@ NOTE: You can also read the output of an external command. For example,
|
||||
---> 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
|
||||
NOTE: a, i and A all go to the same Insert mode, the only difference is where
|
||||
the characters are inserted.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -772,7 +772,7 @@ Note: a, i and A all go to the same Insert mode, the only difference is where
|
||||
3. Press <ESC> to leave Replace mode. Notice that the rest of the line
|
||||
remains unmodified.
|
||||
|
||||
5. Repeat the steps to replace the remaining xxx.
|
||||
4. Repeat the steps to replace the remaining xxx.
|
||||
|
||||
---> Adding 123 to xxx gives you xxx.
|
||||
---> Adding 123 to 456 gives you 579.
|
||||
@@ -784,7 +784,7 @@ NOTE: Replace mode is like Insert mode, but every typed character deletes an
|
||||
Lesson 6.4: COPY AND PASTE TEXT
|
||||
|
||||
|
||||
** use the y operator to copy text and p to paste it **
|
||||
** 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)".
|
||||
|
||||
@@ -802,7 +802,7 @@ NOTE: Replace mode is like Insert mode, but every typed character deletes an
|
||||
---> a) this is the first item.
|
||||
b)
|
||||
|
||||
Note: you can also use y as an operator; yw yanks one word.
|
||||
NOTE: you can also use y as an operator; yw yanks one word.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lesson 6.5: SET OPTION
|
||||
|
||||
@@ -823,11 +823,11 @@ NOTE: Replace mode is like Insert mode, but every typed character deletes an
|
||||
|
||||
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
|
||||
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
|
||||
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.
|
||||
@@ -850,7 +850,7 @@ Note: If you want to ignore case for just one search command, use \c
|
||||
7. Prepend "no" to switch an option off: :set noic
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 7.1: GETTING HELP
|
||||
Lesson 7.1: GETTING HELP
|
||||
|
||||
|
||||
** Use the on-line help system **
|
||||
@@ -862,7 +862,7 @@ Note: If you want to ignore case for just one search command, use \c
|
||||
- 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 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
|
||||
@@ -873,7 +873,7 @@ Note: If you want to ignore case for just one search command, use \c
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 7.2: CREATE A STARTUP SCRIPT
|
||||
Lesson 7.2: CREATE A STARTUP SCRIPT
|
||||
|
||||
|
||||
** Enable Vim features **
|
||||
@@ -896,7 +896,7 @@ Note: If you want to ignore case for just one search command, use \c
|
||||
For more information type :help vimrc-intro
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 7.3: COMPLETION
|
||||
Lesson 7.3: COMPLETION
|
||||
|
||||
|
||||
** Command line completion with CTRL-D and <TAB> **
|
||||
@@ -919,7 +919,7 @@ NOTE: Completion works for many commands. Just try pressing CTRL-D and
|
||||
<TAB>. It is especially useful for :help .
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LESSON 7 SUMMARY
|
||||
Lesson 7 SUMMARY
|
||||
|
||||
|
||||
1. Type :help or press <F1> or <Help> to open a help window.
|
||||
|
813
runtime/tutor/tutor.tr.iso9
Normal file
813
runtime/tutor/tutor.tr.iso9
Normal file
@@ -0,0 +1,813 @@
|
||||
===============================================================================
|
||||
= V I M T u t o r'a Ho<48> Geldiniz - S<>r<EFBFBD>m 1.5 =
|
||||
===============================================================================
|
||||
|
||||
Vim, bu gibi bir e<>itmen ile a<><61>klanmas<61> gereken <20>ok fazla komut bar<61>nd<6E>ran,
|
||||
olduk<75>a kuvvetli bir metin d<>zenleyicidir. Bu e<>itmen Vim'i <20>ok ama<6D>l<EFBFBD> bir
|
||||
d<>zenleyici olarak kolayl<79>kla kullanabilece<63>iniz yeterli say<61>da komutu a<><61>klamak
|
||||
i<>in tasarlanm<6E><6D>t<EFBFBD>r.
|
||||
|
||||
E<>itmeni tamamlama s<>resi yapaca<63><61>n<EFBFBD>z denemelere ba<62>l<EFBFBD> olarak 25-30
|
||||
dakikad<61>r.
|
||||
|
||||
Derslerdeki komutlar bu metini de<64>i<EFBFBD>tirecektir. <20>zerinde <20>al<61><6C>mak i<>in
|
||||
bu dosyan<61>n bir kopyas<61>n<EFBFBD> al<61>n (e<>er "vimtutor" uygulamas<61>n<EFBFBD> <20>al<61><6C>t<EFBFBD>rd<72>ysan<61>z
|
||||
zaten bir kopyas<61>n<EFBFBD> alm<6C><6D> oldunuz).
|
||||
|
||||
Bu e<>itmenin, kullanarak <20><>retmeye ayarland<6E><64><EFBFBD>n<EFBFBD> unutmamak <20>nemlidir. Bu <20>u
|
||||
anlama gelir; komutlar<61> <20><>renmek i<>in do<64>ru bir <20>ekilde <20>al<61><6C>t<EFBFBD>rman<61>z gerekir.
|
||||
E<>er sadece yaz<61>lanlar<61> okursan<61>z komutlar<61> unutursunuz.
|
||||
|
||||
<20>imdi Shift-Lock tu<74>lar<61>n<EFBFBD>z<EFBFBD>n bas<61>l<EFBFBD> olmad<61><64><EFBFBD>na emin olun ve Ders 1.1'in
|
||||
ekran<61> tamamen doldurmas<61> i<>in j tu<74>una yeterli miktarda bas<61>n.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 1.1: <20>MLEC<45> HAREKET ETT<54>RMEK
|
||||
|
||||
<20>.N: T<>m derslerde <ENTER> g<>rd<72><64><EFBFBD>n<EFBFBD>z yerde bu tu<74>a basman<61>z gerekir.
|
||||
|
||||
** <20>mleci hareket ettirmek i<>in, h,j,k,l tu<74>lar<61>na g<>sterildi<64>i gibi bas<61>n. **
|
||||
^
|
||||
k <20>pucu: h tu<74>u soldad<61>r ve sola hareket eder.
|
||||
< h l > l tu<74>u sa<73>dad<61>r ve sa<73>a hareket eder.
|
||||
j j tu<74>u a<>a<EFBFBD><61> y<>nl<6E> bir ok gibidir.
|
||||
v
|
||||
1. Yeterli hissedinceye kadar imleci ekranda hareket ettirin.
|
||||
|
||||
2. A<>a<EFBFBD><61> tu<74>unu (j) tekrar edene kadar bas<61>l<EFBFBD> tutun.
|
||||
---> <20>imdi, bir sonraki derse nas<61>l ge<67>ece<63>inizi biliyorsunuz.
|
||||
|
||||
3. A<>a<EFBFBD><61> tu<74>unu kullanarak, Ders 1.2'ye ge<67>in.
|
||||
Not: E<>er yazd<7A><64><EFBFBD>n<EFBFBD>z bir <20>eyden emin de<64>ilseniz, Normal kipe ge<67>mek i<>in <ESC> tu<74>una bas<61>n.
|
||||
Daha sonra istedi<64>iniz komutu yeniden yaz<61>n.
|
||||
Not: <20>mle<6C> tu<74>lar<61> da ayn<79> zamanda i<>e yararlar ancak hjkl tu<74>lar<61>n<EFBFBD> kullanmaya al<61><6C>t<EFBFBD><74><EFBFBD>n<EFBFBD>zda etrafta daha h<>zl<7A>
|
||||
hareket edersiniz.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 1.2: VIM'E G<>R<EFBFBD><52> VE VIM'DEN <20>IKI<4B>
|
||||
|
||||
|
||||
!! NOT: A<>a<EFBFBD><61>daki ad<61>mlar<61> yapmadan <20>nce, bu dersi tamamen okuyun.
|
||||
|
||||
1. <ESC> tu<74>una bas<61>n (Normal kipte olmay<61> garantilemek i<>in).
|
||||
|
||||
2. Yaz<61>n: :q! <ENTER>.
|
||||
|
||||
---> Bu d<>zenleyicinin yapt<70><74><EFBFBD>n<EFBFBD>z de<64>i<EFBFBD>iklikleri KAYDETMEDEN kapanmas<61>n<EFBFBD> sa<73>lar.
|
||||
E<>er yapt<70>klar<61>n<EFBFBD>z<EFBFBD>n kaydedilmesini istiyorsan<61>z <20>unu yaz<61>n:
|
||||
:wq <ENTER>
|
||||
|
||||
3. Kabuk istemcisini (shell prompt) g<>rd<72><64><EFBFBD>n<EFBFBD>zde, sizi bu e<>itmene getiren
|
||||
komutu yaz<61>n. Bu: vimtutor <ENTER> komutudur.
|
||||
Normalde: vim tutor <ENTER> komutu kullan<61>l<EFBFBD>r.
|
||||
---> 'vim' vim d<>zenleyicisine gir anlam<61>na gelir, 'tutor' ise a<>mak istedi<64>iniz dosyad<61>r.
|
||||
|
||||
4. E<>er bu ad<61>mlar<61> ezberlediyseniz ve kendinizden eminseniz, 1'den 3'e kadar olan ad<61>mlar<61>,
|
||||
d<>zenleyiciden <20><>kmak ve yeniden girmek i<>in uygulay<61>n.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 1.3: MET<45>N D<>ZENLEME - S<>LME
|
||||
|
||||
|
||||
** Normal kipteyken imlecin alt<6C>ndaki karakteri silmek i<>in x 'e bas<61>n.**
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>da i<>aretlenmi<6D> (-->) sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. Hatalar<61> d<>zeltmek i<>in, imleci silinmesi gereken karakterin <20>zerine getirin
|
||||
|
||||
3. <20>stenmeyen karakteri silmek i<>in x tu<74>una bas<61>n.
|
||||
|
||||
4. C<>mle d<>zelene kadar 2'den 4'e kadar olan ad<61>mlar<61> tekrar edin.
|
||||
|
||||
---> <20>inek ayy<79>n <20>zzerinden attlad<61>.
|
||||
|
||||
5. <20>imdi sat<61>r d<>zeldi, Ders 1.4'e ge<67>in.
|
||||
|
||||
NOT: Bu e<>itmende ilerledik<69>e ezberlemeye <20>al<61><6C>may<61>n, kullanarak <20><>renin.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 1.4: MET<45>N D<>ZENLEME - EKLEME
|
||||
|
||||
|
||||
** Normal kipteyken metin eklemek i<>in i 'ye bas<61>n. **
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D> (-->) ilk sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. <20>lk sat<61>r<EFBFBD> ikincisinin ayn<79>s<EFBFBD> gibi yapmak i<>in, imleci eklenmesi gereken
|
||||
metinden sonraki ilk karakterin <20>zerine g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
3. i 'ye bas<61>n ve gerekli eklemeleri yap<61>n.
|
||||
|
||||
4. Her hata d<>zeltildi<64>inde <ESC> tu<74>una basarak Normal kipe d<>n<EFBFBD>n.
|
||||
C<>mleyi d<>zeltmek i<>in 2'den 4'e kadar olan ad<61>mlar<61> tekrar edin.
|
||||
|
||||
---> Bu metinde eksk.
|
||||
---> Bu metinde bir<69>ey eksik.
|
||||
|
||||
5. Metin ekleme <20>al<61><6C>malar<61>n<EFBFBD> yeterli g<>r<EFBFBD>yorsan<61>z a<>a<EFBFBD><61>daki <20>zete ge<67>in.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
DERS 1 <20>ZET
|
||||
|
||||
|
||||
1. <20>mle<6C> hem ok tu<74>lar<61> hem de hjkl tu<74>lar<61> ile hareket ettirilir.
|
||||
h (sol) j (a<>a<EFBFBD><61>) k (yukar<61>) l (sa<73>)
|
||||
|
||||
2. (Konsoldan) Vim'e girmek i<>n yaz<61>n: vim DOSYA<59>SM<53> <ENTER>
|
||||
|
||||
3. T<>m de<64>i<EFBFBD>iklikleri g<>z ard<72> edip vimden <20><>kmak i<>in yaz<61>n:
|
||||
<ESC> :q! <ENTER>
|
||||
veya t<>m de<64>i<EFBFBD>iklikleri kaydetmek i<>in yaz<61>n:
|
||||
<ESC> :wq <ENTER>
|
||||
|
||||
4. <20>mlecin alt<6C>ndaki bir karakteri silmek i<>in Normal kipte x yaz<61>n.
|
||||
|
||||
5. <20>mlecin alt<6C>nda metin eklemek i<>in Normal kipte yaz<61>n:
|
||||
i yaz<61>lacak metin <ESC>
|
||||
|
||||
NOT: <ESC> tu<74>una basmak sizi Normal kipe g<>t<EFBFBD>r<EFBFBD>r ya da istenmeyen tamamlanmam<61><6D> bir komutu
|
||||
iptal eder.
|
||||
|
||||
<EFBFBD>imdi Ders 2 ile devam edin.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 2.1: S<>LME KOMUTLARI
|
||||
|
||||
** Bir kelimeyi silmek i<>in dw yaz<61>n.**
|
||||
|
||||
1. Normal kipte olmakten emin olmak i<>in <ESC> tu<74>una bas<61>n.
|
||||
|
||||
2. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D> (-->) sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
3. <20>mleci silinmesi gereken kelimenin ba<62><61>na g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
4. Kelimeyi silmek i<>in dw yaz<61>n.
|
||||
|
||||
NOT: dw harfleri siz yazd<7A>k<EFBFBD>a ekran<61>n son sat<61>r<EFBFBD>nda g<>r<EFBFBD>lecektir.
|
||||
E<>er yanl<6E><6C> bir <20>eyler yazarsan<61>z, yeniden ba<62>lamak i<>in <ESC> tu<74>una bas<61>n.
|
||||
|
||||
---> Bu sat<61>rda <20>erez c<>mleye ait olmayan leblebi kelimeler var.
|
||||
|
||||
|
||||
5. C<>mle d<>zelene kadar ad<61>m 3 ve 4'<27> tekrar edin, daha sonra Ders 2.2'ye gidin.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 2.2: DAHA FAZLA S<>LME KOMUTU
|
||||
|
||||
|
||||
** Sat<61>r<EFBFBD> sonuna kadar silmek i<>in d$ yaz<61>n.**
|
||||
|
||||
1. Normal kipte olmaktan emin olmak i<>in <ESC> tu<74>una bas<61>n.
|
||||
|
||||
2. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D> (-->) sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
3. <20>mleci do<64>ru olan sat<61>r<EFBFBD>n sonuna g<>t<EFBFBD>r<EFBFBD>n. (Birinciden SONRA. )
|
||||
|
||||
4. Sat<61>r<EFBFBD> sonuna kadar silmek i<>in d$ yaz<61>n.
|
||||
( d$ yazarken d'den sonra <ALT> ile beraber $ tu<74>una bas<61>n)
|
||||
|
||||
---> Birileri bu sat<61>r<EFBFBD>n sonunu iki defa yazm<7A><6D>. Birileri bu sat<61>r<EFBFBD>n sonunu iki defa yazm<7A><6D>.
|
||||
|
||||
5. Neler oldu<64>unu anlamak i<>in Ders 2.3'e gidin.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 2.3: KOMUTLAR VE NESNELER
|
||||
|
||||
|
||||
d silme komutu i<>in bi<62>im a<>a<EFBFBD><61>daki gibidir:
|
||||
|
||||
[say<61>] d nesne VEYA d [say<61>] nesne
|
||||
Burada:
|
||||
say<61> - komutun ka<6B> defa <20>al<61><6C>t<EFBFBD>rlaca<63><61> (iste<74>e ba<62>l<EFBFBD>, varsay<61>lan=1).
|
||||
d - silme komutu
|
||||
nesne - komutun ne <20>ekilde <20>al<61><6C>aca<63><61> (a<>a<EFBFBD><61>da listlendi).
|
||||
|
||||
Nesnelerin k<>sa bir listesi.
|
||||
w - Bo<42>lu<6C>u da i<>ererek, imle<6C>ten itibaren kelimenin sonuna kadar.
|
||||
e - Bo<42>lu<6C>u <20><>ERMEDEN, imle<6C>ten itibaren kelimenin sonuna kadar.
|
||||
$ - imle<6C>ten sat<61>r<EFBFBD>n sonuna kadar.
|
||||
|
||||
NOT: Ser<65>ven sevenler i<>in, Normal kipte iken, komut olmadan sadece nesnenin kendisine basmak
|
||||
imleci yukardaki listede oldu<64>u gibi hareket ettirecektir.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 2.4: 'KOMUT-NESNE'ye B<>R <20>ST<53>SNA
|
||||
|
||||
|
||||
** B<>t<EFBFBD>n bir sat<61>r<EFBFBD> silmek i<>in dd yaz<61>n. **
|
||||
|
||||
B<>t<EFBFBD>n bir sat<61>r silme s<>kl<6B><6C><EFBFBD>ndan dolay<61>, Vi tasar<61>mc<6D>lar<61> bir sat<61>r<EFBFBD>
|
||||
tamamen silmek i<>in iki d yazman<61>n daha kolay olaca<63><61>na karar verdiler.
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki t<>mceci<63>in ikinci sat<61>r<EFBFBD>na g<>t<EFBFBD>r<EFBFBD>n.
|
||||
2. Sat<61>r<EFBFBD> silmek i<>in dd yaz<61>n.
|
||||
3. <20>imdi de d<>rd<72>nc<6E> sat<61>ra gidin.
|
||||
4. <20>ki sat<61>r<EFBFBD> birden silmek i<>in 2dd (say<61>-komut-nesne'yi hat<61>rlay<61>n) yaz<61>n.
|
||||
|
||||
1) G<>ller k<>rm<72>z<EFBFBD>d<EFBFBD>r,
|
||||
2) <20>amur e<>lenceli,
|
||||
3) Menek<65>eler mavi,
|
||||
4) Bir arabam var,
|
||||
5) Saat bana s<>yler,
|
||||
6) <20>eker tatl<74>d<EFBFBD>r
|
||||
7) Ve sen de <20>ylesin
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 2.5: GER<45> AL KOMUTU
|
||||
|
||||
|
||||
** Son komutu geri almak i<>in u , b<>t<EFBFBD>n bir sat<61>r<EFBFBD> d<>zeltmek i<>in U yaz<61>n.**
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D> (-->) sat<61>rdaki ilk hatan<61>n <20>zerine g<>t<EFBFBD>r<EFBFBD>n.
|
||||
2. <20>lk istenmeyen karakteri silmek i<>in x yaz<61>n.
|
||||
3. <20>imdi son <20>al<61><6C>t<EFBFBD>r<EFBFBD>lan komutu geri almak i<>in u yaz<61>n.
|
||||
4. Bu sefer x komutunu kullanarak sat<61>rdaki t<>m hatalar<61> d<>zeltin.
|
||||
5. <20>imdi sat<61>r<EFBFBD> ilk haline <20>evirmek i<>in b<>y<EFBFBD>k U yaz<61>n.
|
||||
6. <20>imdi U ve daha <20>nceki komutlar<61> geri almak i<>in birka<6B> defa u yaz<61>n.
|
||||
7. <20>imdi birka<6B> defa CTRL-R (CTRL'yi bas<61>l<EFBFBD> tutarken R ye bas<61>n) yazarak geri almalar<61> da geri al<61>n.
|
||||
|
||||
---> Buu sat<61><74>rdaki hatalar<61> d<><64>zeltinn ve sonra koomutu geri alll<6C>n.
|
||||
|
||||
8. Bunlar son derece kullan<61><6E>l<EFBFBD> komutlard<72>r. <20>imdi Ders 2 <20>zete ge<67>in.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
DERS 2 <20>ZET
|
||||
|
||||
|
||||
1. <20>mle<6C>ten itibaren bir kelimeyi silmek i<>in yaz<61>n: dw
|
||||
|
||||
2. <20>mle<6C>ten itibaren bir sat<61>r<EFBFBD> silmek i<>in yaz<61>n: d$
|
||||
|
||||
3. B<>t<EFBFBD>n bir sat<61>r<EFBFBD> silmek i<>in yaz<61>n: dd
|
||||
|
||||
4. Normal kipte bir komut bi<62>imi <20><>yledir:
|
||||
|
||||
[say<61>] komut nesne VEYA komut [say<61>] nesne
|
||||
burada:
|
||||
say<61> - komutun ka<6B> kere tekrar edece<63>i
|
||||
komut - ne yap<61>laca<63><61>, silmek i<>in d oldu<64>u gibi
|
||||
nesne - komutun nas<61>l davranaca<63><61>, w (kelime), $ (sat<61>r sonu), vb gibi.
|
||||
|
||||
5. <20>nceki hareketleri geri almak i<>in yaz<61>n: u (k<><6B><EFBFBD>k u)
|
||||
Bir sat<61>rdaki t<>m de<64>i<EFBFBD>iklikleri geri almak i<>in yaz<61>n: U (b<>y<EFBFBD>k u)
|
||||
Geri almalar<61> geri almak i<>in yaz<61>n: CTRL-R
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 3.1: KOY KOMUTU
|
||||
|
||||
|
||||
** Son yapt<70><74><EFBFBD>n<EFBFBD>z silme i<>lemini imle<6C>ten sona geri yerle<6C>tirmek i<>in p yaz<61>n.**
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki t<>mceci<63>in ilk sat<61>r<EFBFBD>na g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. Sat<61>r<EFBFBD> silip Vim'in tamponuna yerle<6C>tirmek i<>in dd yaz<61>n.
|
||||
|
||||
3. <20>mleci, silinmi<6D> sat<61>r<EFBFBD> nereye yerle<6C>tirmek istiyorsan<61>z, o sat<61>r<EFBFBD>n <20>ZER<45>NE g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
4. Normal kipteyken, sat<61>r<EFBFBD> yerle<6C>tirmek i<>in p yaz<61>n.
|
||||
|
||||
5. T<>m sat<61>rlar<61> do<64>ru s<>raya koymak i<>in 2'den 4'e kadar olan ad<61>mlar<61> tekrar edin.
|
||||
|
||||
d) Sen de <20><>rendin mi?
|
||||
b) Menek<65>eler mavidir,
|
||||
c) Ak<41>l <20><>renilir,
|
||||
a) G<>ller k<>rm<72>z<EFBFBD>d<EFBFBD>r,
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 3.2: YERLE<4C>T<EFBFBD>R KOMUTU
|
||||
|
||||
|
||||
** <20>mlecin alt<6C>nda bir karakter yerle<6C>tirmek i<>in r yaz<61>n.**
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D>(--->) ilk sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. <20>mleci sat<61>rdaki ilk hatan<61>n <20>zerine g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
3. Hatay<61> d<>zeltmek i<>in <20>nce r ard<72>ndan da do<64>ru karakteri yaz<61>n.
|
||||
|
||||
4. <20>lk sat<61>r d<>zelene kadar ad<61>m 2 ve 3'<27> tekrar edin.
|
||||
|
||||
---> Bu sat<61>v yaz<61>l<EFBFBD>vken, bivileri yaml<6D><6C> tu<74>tara basm<73><6D>.
|
||||
---> Bu sat<61>r yaz<61>l<EFBFBD>rken, birileri yanl<6E><6C> tu<74>lara basm<73><6D>.
|
||||
|
||||
5. Ders 3.2'ye ge<67>in.
|
||||
|
||||
NOT: Unutmay<61>n, ezberleyerek de<64>il kullanarak <20><>renin.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 3.3: DE<44><45><EFBFBD>T<EFBFBD>R KOMUTU
|
||||
|
||||
|
||||
** Bir kelimenin tamam<61>n<EFBFBD> veya par<61>as<61>n<EFBFBD> de<64>i<EFBFBD>tirmek i<>in cw yaz<61>n.
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D>(--->) sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. <20>mleci "sutar" daki u'nun <20>zerine yerle<6C>tirin.
|
||||
|
||||
3. <20>nce cw ard<72>ndan do<64>ru kelimeyi girin (bu durumda 'at<61>r'.)
|
||||
|
||||
4. <ESC> tu<74>una bas<61>n ve bir sonraki hataya gidin (de<64>i<EFBFBD>mesi gereken ilk karakter.)
|
||||
|
||||
5. <20>lk c<>mle ikincisiyle ayn<79> olana kadar ad<61>m 3 ve 4'<27> tekrar edin.
|
||||
|
||||
---> Bu sutar de<64>i<EFBFBD>tir komutu ile de<64>i<EFBFBD>neli gereken birka<6B> petime i<>eriyor.
|
||||
---> Bu sat<61>r de<64>i<EFBFBD>tir komutu ile de<64>i<EFBFBD>mesi gereken birka<6B> kelime i<>eriyor.
|
||||
|
||||
cw'nin sadece kelimeyi de<64>i<EFBFBD>tirmedi<64>ini, ayn<79> zamanda sizi insert kipine g<>t<EFBFBD>rd<72><64><EFBFBD>ne de dikkat edin.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 3.4: c'Y<> KULLANARAK DAHA FAZLA DE<44><45><EFBFBD>T<EFBFBD>RME
|
||||
|
||||
|
||||
** De<44>i<EFBFBD>tir komutu sil komutu ile ayn<79> nesnelerle kullan<61>l<EFBFBD>r.**
|
||||
|
||||
1. De<44>i<EFBFBD>tir komutu sil ile ayn<79> yolla <20>al<61><6C><EFBFBD>r. Bi<42>im <20><>yledir:
|
||||
|
||||
[say<61>] c nesne VEYA c [say<61>] nesne
|
||||
|
||||
2. Nesneler de ayn<79> zamanda ayn<79>d<EFBFBD>r. <20>rne<6E>in w (word), $ (sat<61>r sonu), vb. gibi.
|
||||
|
||||
3. A<>a<EFBFBD><61>daki i<>aretlenmi<6D>(--->) ilk sat<61>ra gidin.
|
||||
|
||||
4. <20>mleci ilk hataya g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
5. Sat<61>r<EFBFBD>n geri kalan k<>sm<73>n<EFBFBD> ikincisi gibi yapmak i<>in c$ yaz<61>n ve daha sonra <ESC> tu<74>una bas<61>n.
|
||||
|
||||
---> Bu sat<61>r<EFBFBD>n sonu d<>zeltilmek i<>in biraz yard<72>ma ihtiya<79> duyuyor.
|
||||
---> Bu sat<61>r<EFBFBD>n sonu d<>zeltilmek i<>in c$ komutu kullan<61>larak yard<72>ma ihtiya<79> duyuyor.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
DERS 3 <20>ZET
|
||||
|
||||
|
||||
1. Silinmi<6D> olan bir metini geri yerle<6C>tirmek i<>in p yaz<61>n. Bu silinmi<6D> metini
|
||||
imle<6C>ten hemen SONRA geri yerle<6C>tirir (e<>er bir sat<61>r silinmi<6D>se hemen imle<6C>ten sonra, alta
|
||||
yerle<6C>tirilecektir)
|
||||
|
||||
2. <20>mlecin alt<6C>ndaki karakteri de<64>i<EFBFBD>tirmek i<>in <20>nce r ard<72>ndan da
|
||||
as<61>l karakteri yaz<61>n.
|
||||
|
||||
3. De<44>i<EFBFBD>tir komutu belirlenen nesneyi, imle<6C>ten nesnenin sonuna kadar de<64>i<EFBFBD>tirme imkan<61> verir.
|
||||
<20>rne<6E>in, bir kelimeyi imle<6C>ten sonuna kadar de<64>i<EFBFBD>tirmek i<>in cw , bir sat<61>r<EFBFBD>n tamam<61>n<EFBFBD>
|
||||
de<64>i<EFBFBD>tirmek i<>inse c$ yaz<61>n.
|
||||
|
||||
4. De<44>i<EFBFBD>tir i<>in bi<62>im <20><>yledir:
|
||||
|
||||
[say<61>] c nesne VEYA c [say<61>] nesne
|
||||
|
||||
<EFBFBD>imdi bir sonraki derse ge<67>in.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 4.1: KONUM VE DOSYA DURUMU
|
||||
|
||||
|
||||
** Dosya i<>erisindeki konumunuzu ve dosyan<61>n durumunu g<>rmek i<>in CTRL-g yaz<61>n. **
|
||||
** Dosya i<>erisindeki bir sat<61>ra gitmek i<>in SHIFT-g yaz<61>n. **
|
||||
|
||||
Not: Ad<41>mlardan herhangi birini yapmadan <20>nce dersin tamam<61>n<EFBFBD> okuyun!!
|
||||
|
||||
1. Ctrl tu<74>unu bas<61>l<EFBFBD> tutun ve g'ye bas<61>n. Dosyan<61>n sonunda dosya ismini ve bulundu<64>unuz konumu
|
||||
g<>steren bir durum sat<61>r<EFBFBD> g<>r<EFBFBD>necektir. Ad<41>m 3 i<>in sat<61>r numaras<61>n<EFBFBD>
|
||||
unutmay<61>n.
|
||||
|
||||
2. Dosyan<61>n sonuna gitmek i<>in shift-G 'ye bas<61>n.
|
||||
|
||||
3. Daha <20>nce bulundu<64>unuz sat<61>r numaras<61>n<EFBFBD> yaz<61>n ve daha sonra shift-G 'ye bas<61>n.
|
||||
Bu sizi daha <20>nce bulundu<64>unuz ve Ctrl-g 'ye bast<73><74><EFBFBD>n<EFBFBD>z sat<61>ra geri g<>t<EFBFBD>recektir.
|
||||
(Say<61>lar yaz<61>l<EFBFBD>rken ekranda G<>R<EFBFBD>NMEYECEKLERD<52>R.)
|
||||
|
||||
4. Yapabilece<63>inizi d<><64><EFBFBD>nd<6E><64><EFBFBD>n<EFBFBD>zde, ad<61>m 1'den 3'e kadar yap<61>n.
|
||||
|
||||
<20>.N: Bu k<>s<EFBFBD>m orijinal metinde de biraz eksik anlat<61>lm<6C><6D> gibi. Bir sat<61>r hakk<6B>nda bilgi almak i<>in
|
||||
Ctrl-g'yi kullan<61>n. Herhangi bir sat<61>ra gitmek i<>inse, <20>nce sat<61>r numaras<61>n<EFBFBD> yaz<61>n ve ard<72>nan
|
||||
shift-g'ye bas<61>n. Sat<61>r numaras<61> girmeden bas<61>lan shift-g sizi sat<61>r sonuna g<>t<EFBFBD>r<EFBFBD>r.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 4.2: ARAMA KOMUTU
|
||||
|
||||
|
||||
** Bir kelime <20>be<62>ini aramak i<>in / ile beraber kelime <20>be<62>ini girin. **
|
||||
|
||||
1. Normal kipteyken / karakterini yaz<61>n. Komut b<>l<EFBFBD>m<EFBFBD> yerine / karakterinin ve
|
||||
imlecin ekran<61>n sonunda g<>r<EFBFBD>nd<6E><64><EFBFBD>ne dikkat edin.
|
||||
|
||||
2. <20>imdi, 'hatttaa' yaz<61>p <ENTER> 'a bas<61>n. Bu sizin aramak istedi<64>iniz kelime.
|
||||
|
||||
3. Ayn<79> kelime <20>be<62>ini tekrar aramak i<>in, basit<69>e n yaz<61>n.
|
||||
Ayn<79> kelime <20>be<62>ini z<>t y<>nde aramak i<>in, Shift-N yaz<61>n.
|
||||
|
||||
4. E<>er z<>t y<>ne do<64>ru bir arama yapmak istiyorsan<61>z, / komutu yerine
|
||||
? komutunu kullan<61>n.
|
||||
|
||||
---> "hatttaa" hatay<61> yazman<61>n do<64>ru yolu de<64>il; hatttaa bir hata.
|
||||
|
||||
Not: Arama dosyan<61>n sonuna ula<6C>t<EFBFBD><74><EFBFBD>nda, tekrar ba<62>tan ba<62>layacakt<6B>r.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 4.3: UYAN PARANTEZ ARAMASI
|
||||
|
||||
|
||||
** Uyan bir ),] veya } bulmak i<>in % yaz<61>n. **
|
||||
|
||||
1. <20>mleci i<>aretli (--->) sat<61>rdaki herhangi bir (, [ veya { karakterinin
|
||||
<20>zerine g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. <20>imdi % karakterini yaz<61>n.
|
||||
|
||||
3. <20>mle<6C> uyan parantez veya ayrac<61>n <20>zerine gider.
|
||||
|
||||
4. Uyan ilk parantezin <20>zerine geri d<>nmek i<>in yine % yaz<61>n.
|
||||
|
||||
---> Bu ( i<>erisinde ('ler, ['ler ] ve {'ler } bulunan bir sat<61>rd<72>r. ))
|
||||
|
||||
Not: Bu i<>erisinde uymayan parantezler bulunan bir program<61>n yanl<6E><6C><EFBFBD>n<EFBFBD> ay<61>klamak i<>in
|
||||
son derece yararl<72>d<EFBFBD>r.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 4.4: HATALARI D<>ZELTMEK <20><><EFBFBD>N B<>R YOL
|
||||
|
||||
|
||||
** 'eski' yerine 'yeni' yerle<6C>tirmek i<>in :s/eski/yeni/g yaz<61>n. **
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretli (--->) sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. :s/buu/bu yaz<61>p <ENTER> 'a bas<61>n. Bu komutun sadece sat<61>rdaki ilk kar<61><72>la<6C>may<61>
|
||||
d<>zeltti<74>ine dikkat edin.
|
||||
|
||||
3. <20>imdi genel olarak sat<61>rdaki t<>m de<64>i<EFBFBD>ikli<6C>i yapmak i<>in :s/buu/bu/g yaz<61>n.
|
||||
|
||||
---> Buu birinci, buu ikinci, buu <20><><EFBFBD>nc<6E> b<>l<EFBFBD>m.
|
||||
|
||||
4. <20>ki sat<61>r aras<61>ndaki bir karakter katar<61>n<EFBFBD>n t<>m<EFBFBD>n<EFBFBD> de<64>i<EFBFBD>tirmek i<>in,
|
||||
:#,#s/eski/yeni/g yaz<61>n, burada #,# iki sat<61>r<EFBFBD>n say<61>lar<61>d<EFBFBD>r.
|
||||
T<>m dosyadaki kar<61><72>la<6C><61>lan kelimeleri de<64>i<EFBFBD>tirmek i<>in :%s/eski/yeni/g yaz<61>n.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
DERS 4 <20>ZET
|
||||
|
||||
|
||||
1. Ctrl-g sizin dosyadaki konumunuzu ve dosya durumunu g<>sterir.
|
||||
Shift-G dosyan<61>n sonuna gider. Shift-G 'den <20>nce bir say<61> yaz<61>l<EFBFBD>rsa, o sat<61>ra
|
||||
gidilir.
|
||||
|
||||
2. Bir s<>zc<7A>k <20>be<62>inden <20>nce / yazmak, <20>LER<45> y<>nde o <20>be<62>i arat<61>r.
|
||||
Bir s<>zc<7A>k <20>be<62>inden <20>nce ? yazmak, GER<45> y<>nde o <20>be<62>i arat<61>r.
|
||||
Bir aramadan sonra, ayn<79> y<>ndeki bir sonraki kar<61><72>la<6C>may<61> bulmak i<>in n ,
|
||||
veya z<>t y<>ndekini bulmak i<>in Shift-N yaz<61>n.
|
||||
|
||||
3. <20>mle<6C> bir (,),[,],{,} parantezi <20>zerindeyken % yazmak, uyan di<64>er e<> parantezi bulur.
|
||||
|
||||
4. Bir sat<61>rdaki ilk 'eski'yi 'yeni' ile de<64>i<EFBFBD>tirmek i<>in :s/eski/yeni yaz<61>n.
|
||||
Bir sat<61>rdaki t<>m 'eski'leri 'yeni' ile de<64>i<EFBFBD>tirmek i<>in :s/eski/yeni/g yaz<61>n.
|
||||
<20>ki sat<61>r aras<61>ndaki <20>bekleri de<64>i<EFBFBD>tirmek i<>in :#,#s/eski/yeni/g yaz<61>n.
|
||||
(#'lar sat<61>r numaralar<61>)
|
||||
Bir dosyadaki t<>m kar<61><72>la<6C>malar<61> de<64>i<EFBFBD>tirmek i<>in :%s/eski/yeni/g yaz<61>n.
|
||||
Her seferinde onay sormas<61> i<>in 'c' ekleyin. :%s/eski/yeni/gc
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 5.1: BIR DI<44> KOMUT <20>ALI<4C>TIRMAK
|
||||
|
||||
|
||||
** Bir d<><64> komutu <20>al<61><6C>t<EFBFBD>rmak i<>in :! ve ard<72>ndan istedi<64>iniz d<><64> komutu yaz<61>n. **
|
||||
|
||||
1. <20>mleci ekran<61>n alt<6C>na g<>t<EFBFBD>rmek i<>in al<61><6C><EFBFBD>k oldu<64>unuz : komutunu yaz<61>n. Bu size
|
||||
bir komut yazma imkan<61> verir.
|
||||
|
||||
2. <20>imdi ! (<28>nlem) karakterini yaz<61>n. Bu size bir d<><64> komut <20>al<61><6C>t<EFBFBD>rma
|
||||
imkan<61> verir.
|
||||
|
||||
3. <20>rnek olarak ! karakterini takiben ls yaz<61>n ve <ENTER>'a bas<61>n. Bu size
|
||||
o anda bulundu<64>unuz dizindeki dosyalar<61> g<>sterecektir. Veya ls <20>al<61><6C>mazsa :!dir
|
||||
komutunu kullan<61>n.
|
||||
|
||||
Not: Herhangi bir d<><64> komutu bu yolla <20>al<61><6C>t<EFBFBD>rmak m<>mk<6D>nd<6E>r.
|
||||
|
||||
Not: T<>m : komutlar<61>ndan sonra <ENTER> tu<74>una bas<61>lmal<61>d<EFBFBD>r.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 5.2: DOSYA YAZMAYA DEVAM
|
||||
|
||||
|
||||
** Dosyaya yap<61>lan de<64>i<EFBFBD>ikli<6C>i kaydetmek i<>in, :w DOSYA<59>SM<53> yaz<61>n. **
|
||||
|
||||
1. Bulundu<64>unuz dizini listelemek i<>in :!dir veya :!ls yaz<61>n.
|
||||
Komuttan sonra <ENTER> tu<74>una bas<61>ca<63><61>n<EFBFBD>z<EFBFBD> zaten biliyorsunuz.
|
||||
|
||||
2. Mevcut olmayan bir dosya ismi se<73>in, <20>rne<6E>in DENEME.
|
||||
|
||||
3. <20>imdi :w DENEME yaz<61>n (DENEME sizin se<73>ti<74>iniz dosya ismi).
|
||||
|
||||
4. Bu t<>m dosyay<61> (Vim Tutor) DENEME isminde ba<62>ka bir dosyaya yazar.
|
||||
Bunu do<64>rulamak i<>in, :!dir yaz<61>n ve yeniden bulundu<64>unuz dizini listeleyin.
|
||||
|
||||
Not: E<>er Vim'den <20><>k<EFBFBD>p kaydetti<74>iniz DENEME dosyas<61>n<EFBFBD> a<>arsan<61>z, bunun kaydetti<74>iniz
|
||||
vimtutor'un ger<65>ek bir kopyas<61> oldu<64>unu g<>r<EFBFBD>rs<72>n<EFBFBD>z.
|
||||
|
||||
5. <20>imdi dosyay<61> <20>u komutlar<61> vererek silin (MS-DOS) :!del DENEME
|
||||
(veya UNIX) :!rm DENEME
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 5.3: SE<53>MEL<45> YAZ KOMUTU
|
||||
|
||||
|
||||
** Dosyan<61>n bir b<>l<EFBFBD>m<EFBFBD>n<EFBFBD> kaydetmek i<>in, :#,# w DOSYA<59>SM<53> yaz<61>n. **
|
||||
|
||||
1. Bir kez daha bulundu<64>unuz dizini g<>rmek i<>in :!dir veya :!ls yaz<61>n,
|
||||
ard<72>ndan DENEME gibi uygun bir dosya ismi se<73>in.
|
||||
|
||||
2. <20>mleci bu sayfan<61>n ba<62><61>na g<>t<EFBFBD>r<EFBFBD>n ve ard<72>ndan CTRL-g'ye basarak sat<61>r numaras<61>n<EFBFBD>
|
||||
<20><>renin. BU NUMARAYI UNUTMAYIN!
|
||||
|
||||
3. <20>imdi sayfan<61>n sonuna gidib ve yine CTRL-g'ye basarak sat<61>r numaras<61>n<EFBFBD>
|
||||
<20><>renin. BU NUMARAYI DA UNUTMAYIN!
|
||||
|
||||
4. Bir dosyaya sadece bir b<>l<EFBFBD>m<EFBFBD> kaydetmek i<>in, :#,# w DENEME yaz<61>n. #,# sizin
|
||||
bakt<6B><74><EFBFBD>n<EFBFBD>z say<61>lar (<28>st,alt) ve DENEME dosyan<61>z<EFBFBD>n ismidir.
|
||||
|
||||
|
||||
5. Yine, :!dir yazarak dosyan<61>n orada oldu<64>una bak<61>n ama S<>LMEY<45>N.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 5.4: DOSYALARI B<>RLE<4C>T<EFBFBD>RMEK-B<>L<EFBFBD>M EKLEMEK
|
||||
|
||||
|
||||
** Bir dosyan<61>n i<>eri<72>ini eklemek i<>in :r DOSYA<59>SM<53> yaz<61>n. **
|
||||
|
||||
1. DENEME dosyan<61>z<EFBFBD>n <20>nceden bulundu<64>undan emin olmak i<>in :!dir yaz<61>n.
|
||||
|
||||
2. <20>mleci bu sayfan<61>n ba<62><61>na yerle<6C>tirin.
|
||||
|
||||
NOT: Ad<41>m 3'<27> uygulad<61>ktan sonra Ders 5.3'<27> g<>r<EFBFBD>yor olacaks<6B>n<EFBFBD>z. Daha sonra bu
|
||||
derse sayfas<61>na d<>n<EFBFBD>n.
|
||||
|
||||
3. <20>imdi DENEME sayfas<61>n<EFBFBD> :r DENEME yazarak aktar<61>n.
|
||||
|
||||
NOT: Aktard<72><64><EFBFBD>n<EFBFBD>z dosya imlecinizin hemen alt<6C>na eklenecektir.
|
||||
|
||||
4. Dosyan<61>n eklendi<64>ini g<>rmek i<>in, geriye gidin. Ders 5.3'ten iki kopya
|
||||
oldu<64>unu g<>receksiniz; as<61>l ve kopya olan<61>.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
DERS 5 <20>ZET
|
||||
|
||||
|
||||
1. :!komut bir d<><64> komut <20>al<61><6C>t<EFBFBD>r<EFBFBD>r.
|
||||
|
||||
Baz<61> yararl<72> <20>rnekler:
|
||||
(MS-DOS) (Unix)
|
||||
:!dir :!ls - bir dizini listeler.
|
||||
:!del DOSYA :!rm DOSYA - DOSYA'y<> siler.
|
||||
|
||||
2. :w DOSYA<59>SM<53> o anki Vim dosyas<61>n<EFBFBD> diske DOSYA<59>SM<53> ile kaydeder.
|
||||
|
||||
3. :#,#w DOSYA<59>SM<53> # ile # sat<61>r aras<61>n<EFBFBD> DOSYA<59>SM<53> ile kaydeder.
|
||||
|
||||
4. :r DOSYA<59>SM<53> imlecin alt<6C>ndan ba<62>layarak DOSYA<59>SM<53> isimli dosyan<61>n i<>eri<72>ini ekler.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 6.1: A<> KOMUTU
|
||||
|
||||
|
||||
** <20>mlecin a<>a<EFBFBD><61>s<EFBFBD>na bir sat<61>r a<>mak ve Insert kipine ge<67>mek i<>in o yaz<61>n. **
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D> (--->) sat<61>ra g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. <20>mlecin a<>a<EFBFBD><61>s<EFBFBD>na bir sat<61>r a<>mak ve Insert kipine ge<67>mek i<>in
|
||||
o (k<><6B><EFBFBD>k harfle) yaz<61>n.
|
||||
|
||||
3. <20>imdi i<>aretlenmi<6D> sat<61>r<EFBFBD> kopyalay<61>n ve Insert kipinden <20><>kmak i<>in <ESC>
|
||||
tu<74>una bas<61>n.
|
||||
|
||||
---> o yazd<7A>ktan sonra imlec a<><61>lan sat<61>ra gidicek ve Insert kipine ge<67>ilecek.
|
||||
|
||||
4. <20>mlecin <20>zerinde bir sat<61>r a<>mak i<>in, basit<69>e b<>y<EFBFBD>k O yaz<61>n. Bunu a<>a<EFBFBD><61>daki
|
||||
sat<61>rda deneyin.
|
||||
Bu sat<61>r<EFBFBD>n <20>zerine bir sat<61>r a<>mak i<>in imle<6C> bu sat<61>rdayken Shift-o yaz<61>n.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 6.2: EKLE KOMUTU
|
||||
|
||||
|
||||
** <20>mle<6C>ten sonra metin eklemek i<>in a yaz<61>n. **
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretlenmi<6D> (--->) sat<61>r<EFBFBD>n sonuna g<>t<EFBFBD>rmek i<>in
|
||||
Normal Kipteyken $ yaz<61>n.
|
||||
|
||||
2. <20>mlecin alt<6C>ndaki karakterden sonra metin eklemek i<>in a (k<><6B><EFBFBD>k harfle) yaz<61>n.
|
||||
(B<>y<EFBFBD>k A sat<61>r<EFBFBD>n sonuna ekler).
|
||||
|
||||
3. <20>imdi ilk sat<61>r<EFBFBD> tamamlay<61>n. Ekle komutunun Insert kipiyle ayn<79> i<>i yapt<70><74><EFBFBD>na
|
||||
dikkat edin. Tek fark metinin eklendi<64>i yer.
|
||||
<EFBFBD>.N: E<>er a yazarsan<61>z imlecin alt<6C>ndaki karakterden hemen sonra ekleme yapabilirsiniz.
|
||||
E<>er Shift-a yazarsan<61>z imle<6C> sat<61>r sonuna gidecek ve hemen ard<72>na ekleme yapabileceksiniz.
|
||||
Do<44>al olarak bizim <20>rne<6E>imizde Shift-A'y<> kullanmak daha g<>zel olacakt<6B>r. <20>nce $ ard<72>nan a
|
||||
yazmam<61>za gerek kalmaz.
|
||||
|
||||
---> Bu sat<61>rda <20>al<61><6C>abilirsiniz
|
||||
---> Bu sat<61>rda <20>al<61><6C>abilirsiniz. <20>al<61><6C><EFBFBD>rken metin eklemeyi kullan<61>n.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 6.3: B<>R BA<42>KA DE<44><45><EFBFBD>T<EFBFBD>R KOMUTU
|
||||
|
||||
|
||||
** Birden fazla karakter de<64>i<EFBFBD>tirmek i<>in b<>y<EFBFBD>k R yaz<61>n. **
|
||||
|
||||
1. <20>mleci a<>a<EFBFBD><61>daki i<>aretli (--->) sat<61>rlar<61>n ilkine g<>t<EFBFBD>r<EFBFBD>n.
|
||||
|
||||
2. <20>mleci i<>aretli olan ikinci sat<61>rdakinden farkl<6B> olan ilk kelimenin
|
||||
ba<62><61>na g<>t<EFBFBD>r<EFBFBD>n. ( "tu<74>lar<61>" kelimesi )
|
||||
|
||||
3. <20>imdi b<>y<EFBFBD>k R yaz<61>n ve ilk sat<61>r<EFBFBD> ikincisinin ayn<79>s<EFBFBD> yapmak i<>in
|
||||
eski metinin <20>zerinden yenisini yaz<61>n. Siz yazd<7A>k<EFBFBD>a metin de<64>i<EFBFBD>ecektir.
|
||||
|
||||
---> Bu sat<61>r<EFBFBD> ikincisinin ayn<79>s<EFBFBD> yapmak i<>in tu<74>lar<61> kullan<61>n.
|
||||
---> Bu sat<61>r<EFBFBD> ikincisinin ayn<79>s<EFBFBD> yapmak i<>in R yaz<61>n ve metini girin.
|
||||
|
||||
4. <20><>kmak i<>in <ESC> tu<74>una bast<73><74><EFBFBD>n<EFBFBD>zda, de<64>i<EFBFBD>memi<6D> metinin aynen
|
||||
kald<6C><64><EFBFBD>na dikkat edin.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 6.4: SET SE<53>ENE<4E><45>
|
||||
|
||||
** Bir se<73>enek ayarlay<61>n , b<>ylece bir arama veya de<64>i<EFBFBD>tirme **
|
||||
** durumu g<>rmezden gelsin. **
|
||||
|
||||
1. 'ignore' kelimesini aramak i<>in:
|
||||
/ignore
|
||||
yaz<61>n.
|
||||
Bunu n tu<74>una basarak birka<6B> kez tekrar edin
|
||||
|
||||
2. :set ic yazarak 'ic' (Ignore case) ayar<61>n<EFBFBD> se<73>in.
|
||||
|
||||
3. Tekrar n tu<74>una basarak 'ignore' kelimseini aray<61>n.
|
||||
n tu<74>una basarak bu aramay<61> birden <20>ok defa tekrar edin.
|
||||
|
||||
4. :set hls is yazarak 'hlsearch' ve 'incsearch' ayarlar<61>n<EFBFBD> se<73>in.
|
||||
|
||||
5. /ignore yazarak arama komutunu tekrar verin ve ne olaca<63><61>n<EFBFBD> g<>r<EFBFBD>n.
|
||||
|
||||
6. Kar<61><72>la<6C>ma vurgular<61>n<EFBFBD> iptal etmek i<>in,
|
||||
:nohlsearch yaz<61>n.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
DERS 6 <20>ZET
|
||||
|
||||
|
||||
1. o yazmak imlecin alt<6C>nda bir sat<61>r a<>ar ve imleci bu a<><61>lm<6C><6D> sat<61>ra
|
||||
Insert kipinde yerle<6C>tirir.
|
||||
B<>y<EFBFBD>k O yazmak imlecin <20>zerinde bir sat<61>r a<>ar.
|
||||
|
||||
2. <20>mlecin <20>zerindeki karakterden hemen sonra metin eklemek i<>in a yaz<61>n.
|
||||
B<>y<EFBFBD>k A yazmak hemen sat<61>r sonuna giderek metin eklemeye haz<61>r hale getirir.
|
||||
|
||||
3. B<>y<EFBFBD>k R yazmak De<44>i<EFBFBD>tir kipine girer ve <20><>kmak i<>in <ESC> tu<74>una
|
||||
bas<61>lana kadar sizi bu kipte b<>rak<61>r.
|
||||
|
||||
4. ":set xxx" yazmak "xxx" se<73>ene<6E>ini ayarlar.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 7: <20>EV<45>R<EFBFBD>M<EFBFBD><4D><EFBFBD> (ON-LINE) YARDIM KOMUTLARI
|
||||
|
||||
|
||||
** <20>evirimi<6D>i yard<72>m sistemini kullan<61>n **
|
||||
|
||||
Vim geni<6E> bir <20>evirimi<6D>i yard<72>m sistemine sahiptir. Ba<42>lamak i<>in <20>u <20><><EFBFBD>n<EFBFBD>
|
||||
deneyebilirsiniz.
|
||||
- (e<>er sahipseniz) <HELP> tu<74>una bas<61>n
|
||||
- (e<>er sahipseniz) <F1> tu<74>una bas<61>n
|
||||
- :help yaz<61>n ve <ENTER> tu<74>una bas<61>n
|
||||
|
||||
Yard<72>m penceresini kapatmak i<>in :q yaz<61>p <ENTER> tu<74>una bas<61>n.
|
||||
|
||||
":help" komutuna de<64>i<EFBFBD>ken (arg<72>man) vererek herhangi bir konu hakk<6B>nda
|
||||
yard<72>m alabilirsini. <20>unlar<61> deneyin (<ENTER> tu<74>una basmay<61> unutmay<61>n) :
|
||||
|
||||
:help w
|
||||
:help c_<T
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Ders 8: B<>R BA<42>LANGI<47> BET<45><54><EFBFBD> OLU<4C>TURUN
|
||||
|
||||
** Switch on Vim features **
|
||||
** Vim'in <20>zelliklerine bak<61>n **
|
||||
|
||||
Vim Vi'dan <20>ok daha fazla <20>zelli<6C>e sahiptir fakat bir<69>o<EFBFBD>u <20>ntan<61>ml<6D> olarak kapal<61>d<EFBFBD>r.
|
||||
Daha fazla <20>zellik kullanabilmek i<>in bir "vimrc" dosyas<61> olu<6C>turmal<61>s<EFBFBD>n<EFBFBD>z.
|
||||
|
||||
1. "vimrc" dosyas<61>n<EFBFBD> d<>zenlemeye ba<62>lay<61>n, bu i<>letim sisteminize g<>re de<64>i<EFBFBD>ir:
|
||||
|
||||
<20>.N: (Bu komutu verdi<64>inizde e<>er yoksa home dizininizde .vimrc isimli bir dosya olu<6C>acakt<6B>r.
|
||||
Bu dosyaya vimrc <20>rnek dosyas<61>n<EFBFBD> aktarmak i<>in 2. ad<61>mdaki komutu kullanacaks<6B>n<EFBFBD>z. Bu y<>zden
|
||||
vimrc dosyan<61>z<EFBFBD> d<>zenlemeden <20>nce a<>a<EFBFBD><61>daki ad<61>mlar<61>n hepsini okuyun ve komutlar<61> hat<61>rlay<61>n.)
|
||||
|
||||
:edit ~/.vimrc Unix i<>in
|
||||
:edit $VIM/_vimrc MS-Windows i<>in
|
||||
|
||||
2. <20>imdi <20>rnek "vimrc" dosyas<61>n<EFBFBD> okuyun
|
||||
|
||||
:read $VIMRUNTIME/vimrc_example.vim
|
||||
|
||||
3. Dosyay<61> kaydedin ve <20><>k<EFBFBD>n
|
||||
|
||||
:write
|
||||
:q
|
||||
|
||||
Vim'i bir dahaki sefer <20>al<61><6C>t<EFBFBD>rd<72><64><EFBFBD>n<EFBFBD>zda s<>zdizim (sytax) vurgusu kullan<61>lacakt<6B>r.
|
||||
T<>m tercih etti<74>iniz ayarlar<61> bu "vimrc" dosyas<61>na ekleyebilirsiniz.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Burada Vim E<>itmeni tamamlanm<6E><6D> oldu. E<>itmendeki ama<6D> Vim d<>zenleyicisi hakk<6B>nda
|
||||
k<>sa bir bilgi vermek ve onu kolayca kullanman<61>z<EFBFBD> sa<73>lamakt<6B>. Vim'in tamam<61>n<EFBFBD> <20><>retmek
|
||||
<20>ok zordur zira Vim bir<69>ok komuta sahiptir.Bundan sonra :help user-manual" komutu ile
|
||||
kullan<61>c<EFBFBD> k<>lavuzunu okumal<61>s<EFBFBD>n<EFBFBD>z.
|
||||
|
||||
Daha fazla okuma ve <20>al<61><6C>ma i<>in <20>u kitab<61> <20>neriyoruz:
|
||||
Vim - Vi Improved - by Steve Oualline
|
||||
Publisher: New Riders
|
||||
Tamamiyle Vim i<>in haz<61>rlanm<6E><6D> ilk kitap. <20>zellikle ilk kullan<61>c<EFBFBD>lar i<>in uygun.
|
||||
Kitapta bir<69>ok <20>rnek ve resim var.
|
||||
http://iccf-holland.org/click5.html adresine bakabilirsiniz.
|
||||
|
||||
Bu kitap daha eskidir ve Vim'den daha <20>ok Vi i<>indir ancak tavsiye edilir:
|
||||
Learning the Vi Editor - by Linda Lamb
|
||||
Publisher: O'Reilly & Associates Inc.
|
||||
Vi hakk<6B>nda bilmek isteyece<63>iniz neredeyse her<65>eyin bulundu<64>u bir kitap.
|
||||
6.Bas<61>m ayn<79> zamanda Vim hakk<6B>nda bilgi de i<>ermekte.
|
||||
|
||||
Bu e<>itmen Michael C. Pierce ve Robert K. Ware taraf<61>ndan yaz<61>ld<6C>,
|
||||
Charles Smith taraf<61>ndan sa<73>lanan fikirlerle Colorado School Of Mines,
|
||||
Colorado State University. E-mail: bware@mines.colorado.edu.
|
||||
|
||||
Vim i<>in de<64>i<EFBFBD>tiren : Bram Moolenaar.
|
||||
|
||||
T<>rk<72>eye <20>eviren : Serkan "heartsmagic" <20>al<61><6C> Y<>l 2005
|
||||
E-mail : adresimeyaz (at) yahoo com
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
1668
src/po/no.po
1668
src/po/no.po
File diff suppressed because it is too large
Load Diff
@@ -1,51 +1,51 @@
|
||||
/* fileio.c */
|
||||
extern void filemess __ARGS((buf_T *buf, char_u *name, char_u *s, int attr));
|
||||
extern int readfile __ARGS((char_u *fname, char_u *sfname, linenr_T from, linenr_T lines_to_skip, linenr_T lines_to_read, exarg_T *eap, int flags));
|
||||
extern int prep_exarg __ARGS((exarg_T *eap, buf_T *buf));
|
||||
extern int buf_write __ARGS((buf_T *buf, char_u *fname, char_u *sfname, linenr_T start, linenr_T end, exarg_T *eap, int append, int forceit, int reset_changed, int filtering));
|
||||
extern void msg_add_fname __ARGS((buf_T *buf, char_u *fname));
|
||||
extern void msg_add_lines __ARGS((int insert_space, long lnum, long nchars));
|
||||
extern char_u *shorten_fname __ARGS((char_u *full_path, char_u *dir_name));
|
||||
extern void shorten_fnames __ARGS((int force));
|
||||
extern void shorten_filenames __ARGS((char_u **fnames, int count));
|
||||
extern char_u *modname __ARGS((char_u *fname, char_u *ext, int prepend_dot));
|
||||
extern char_u *buf_modname __ARGS((int shortname, char_u *fname, char_u *ext, int prepend_dot));
|
||||
extern int vim_fgets __ARGS((char_u *buf, int size, FILE *fp));
|
||||
extern int tag_fgets __ARGS((char_u *buf, int size, FILE *fp));
|
||||
extern int vim_rename __ARGS((char_u *from, char_u *to));
|
||||
extern int check_timestamps __ARGS((int focus));
|
||||
extern int buf_check_timestamp __ARGS((buf_T *buf, int focus));
|
||||
extern void buf_reload __ARGS((buf_T *buf, int orig_mode));
|
||||
extern void buf_store_time __ARGS((buf_T *buf, struct stat *st, char_u *fname));
|
||||
extern void write_lnum_adjust __ARGS((linenr_T offset));
|
||||
extern void vim_deltempdir __ARGS((void));
|
||||
extern char_u *vim_tempname __ARGS((int extra_char));
|
||||
extern void forward_slash __ARGS((char_u *fname));
|
||||
extern void aubuflocal_remove __ARGS((buf_T *buf));
|
||||
extern int au_has_group __ARGS((char_u *name));
|
||||
extern void do_augroup __ARGS((char_u *arg, int del_group));
|
||||
extern void free_all_autocmds __ARGS((void));
|
||||
extern int check_ei __ARGS((void));
|
||||
extern char_u *au_event_disable __ARGS((char *what));
|
||||
extern void au_event_restore __ARGS((char_u *old_ei));
|
||||
extern void do_autocmd __ARGS((char_u *arg, int forceit));
|
||||
extern int do_doautocmd __ARGS((char_u *arg, int do_msg));
|
||||
extern void ex_doautoall __ARGS((exarg_T *eap));
|
||||
extern void aucmd_prepbuf __ARGS((aco_save_T *aco, buf_T *buf));
|
||||
extern void aucmd_restbuf __ARGS((aco_save_T *aco));
|
||||
extern int apply_autocmds __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf));
|
||||
extern int apply_autocmds_retval __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval));
|
||||
extern int has_cursorhold __ARGS((void));
|
||||
extern int trigger_cursorhold __ARGS((void));
|
||||
extern int has_cursormoved __ARGS((void));
|
||||
extern int has_cursormovedI __ARGS((void));
|
||||
extern int has_autocmd __ARGS((event_T event, char_u *sfname, buf_T *buf));
|
||||
extern char_u *get_augroup_name __ARGS((expand_T *xp, int idx));
|
||||
extern char_u *set_context_in_autocmd __ARGS((expand_T *xp, char_u *arg, int doautocmd));
|
||||
extern char_u *get_event_name __ARGS((expand_T *xp, int idx));
|
||||
extern int autocmd_supported __ARGS((char_u *name));
|
||||
extern int au_exists __ARGS((char_u *arg));
|
||||
extern int match_file_pat __ARGS((char_u *pattern, regprog_T *prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs));
|
||||
extern int match_file_list __ARGS((char_u *list, char_u *sfname, char_u *ffname));
|
||||
extern char_u *file_pat_to_reg_pat __ARGS((char_u *pat, char_u *pat_end, char *allow_dirs, int no_bslash));
|
||||
void filemess __ARGS((buf_T *buf, char_u *name, char_u *s, int attr));
|
||||
int readfile __ARGS((char_u *fname, char_u *sfname, linenr_T from, linenr_T lines_to_skip, linenr_T lines_to_read, exarg_T *eap, int flags));
|
||||
int prep_exarg __ARGS((exarg_T *eap, buf_T *buf));
|
||||
int buf_write __ARGS((buf_T *buf, char_u *fname, char_u *sfname, linenr_T start, linenr_T end, exarg_T *eap, int append, int forceit, int reset_changed, int filtering));
|
||||
void msg_add_fname __ARGS((buf_T *buf, char_u *fname));
|
||||
void msg_add_lines __ARGS((int insert_space, long lnum, long nchars));
|
||||
char_u *shorten_fname __ARGS((char_u *full_path, char_u *dir_name));
|
||||
void shorten_fnames __ARGS((int force));
|
||||
void shorten_filenames __ARGS((char_u **fnames, int count));
|
||||
char_u *modname __ARGS((char_u *fname, char_u *ext, int prepend_dot));
|
||||
char_u *buf_modname __ARGS((int shortname, char_u *fname, char_u *ext, int prepend_dot));
|
||||
int vim_fgets __ARGS((char_u *buf, int size, FILE *fp));
|
||||
int tag_fgets __ARGS((char_u *buf, int size, FILE *fp));
|
||||
int vim_rename __ARGS((char_u *from, char_u *to));
|
||||
int check_timestamps __ARGS((int focus));
|
||||
int buf_check_timestamp __ARGS((buf_T *buf, int focus));
|
||||
void buf_reload __ARGS((buf_T *buf, int orig_mode));
|
||||
void buf_store_time __ARGS((buf_T *buf, struct stat *st, char_u *fname));
|
||||
void write_lnum_adjust __ARGS((linenr_T offset));
|
||||
void vim_deltempdir __ARGS((void));
|
||||
char_u *vim_tempname __ARGS((int extra_char));
|
||||
void forward_slash __ARGS((char_u *fname));
|
||||
void aubuflocal_remove __ARGS((buf_T *buf));
|
||||
int au_has_group __ARGS((char_u *name));
|
||||
void do_augroup __ARGS((char_u *arg, int del_group));
|
||||
void free_all_autocmds __ARGS((void));
|
||||
int check_ei __ARGS((void));
|
||||
char_u *au_event_disable __ARGS((char *what));
|
||||
void au_event_restore __ARGS((char_u *old_ei));
|
||||
void do_autocmd __ARGS((char_u *arg, int forceit));
|
||||
int do_doautocmd __ARGS((char_u *arg, int do_msg));
|
||||
void ex_doautoall __ARGS((exarg_T *eap));
|
||||
void aucmd_prepbuf __ARGS((aco_save_T *aco, buf_T *buf));
|
||||
void aucmd_restbuf __ARGS((aco_save_T *aco));
|
||||
int apply_autocmds __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf));
|
||||
int apply_autocmds_retval __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval));
|
||||
int has_cursorhold __ARGS((void));
|
||||
int trigger_cursorhold __ARGS((void));
|
||||
int has_cursormoved __ARGS((void));
|
||||
int has_cursormovedI __ARGS((void));
|
||||
int has_autocmd __ARGS((event_T event, char_u *sfname, buf_T *buf));
|
||||
char_u *get_augroup_name __ARGS((expand_T *xp, int idx));
|
||||
char_u *set_context_in_autocmd __ARGS((expand_T *xp, char_u *arg, int doautocmd));
|
||||
char_u *get_event_name __ARGS((expand_T *xp, int idx));
|
||||
int autocmd_supported __ARGS((char_u *name));
|
||||
int au_exists __ARGS((char_u *arg));
|
||||
int match_file_pat __ARGS((char_u *pattern, regprog_T *prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs));
|
||||
int match_file_list __ARGS((char_u *list, char_u *sfname, char_u *ffname));
|
||||
char_u *file_pat_to_reg_pat __ARGS((char_u *pat, char_u *pat_end, char *allow_dirs, int no_bslash));
|
||||
/* vim: set ft=c : */
|
||||
|
118
src/proto/ui.pro
118
src/proto/ui.pro
@@ -1,61 +1,61 @@
|
||||
/* ui.c */
|
||||
extern void ui_write __ARGS((char_u *s, int len));
|
||||
extern void ui_inchar_undo __ARGS((char_u *s, int len));
|
||||
extern int ui_inchar __ARGS((char_u *buf, int maxlen, long wtime, int tb_change_cnt));
|
||||
extern int ui_char_avail __ARGS((void));
|
||||
extern void ui_delay __ARGS((long msec, int ignoreinput));
|
||||
extern void ui_suspend __ARGS((void));
|
||||
extern void suspend_shell __ARGS((void));
|
||||
extern int ui_get_shellsize __ARGS((void));
|
||||
extern void ui_set_shellsize __ARGS((int mustset));
|
||||
extern void ui_new_shellsize __ARGS((void));
|
||||
extern void ui_breakcheck __ARGS((void));
|
||||
extern void clip_init __ARGS((int can_use));
|
||||
extern void clip_update_selection __ARGS((void));
|
||||
extern void clip_own_selection __ARGS((VimClipboard *cbd));
|
||||
extern void clip_lose_selection __ARGS((VimClipboard *cbd));
|
||||
extern void clip_copy_selection __ARGS((void));
|
||||
extern void clip_auto_select __ARGS((void));
|
||||
extern int clip_isautosel __ARGS((void));
|
||||
extern void clip_modeless __ARGS((int button, int is_click, int is_drag));
|
||||
extern void clip_start_selection __ARGS((int col, int row, int repeated_click));
|
||||
extern void clip_process_selection __ARGS((int button, int col, int row, int_u repeated_click));
|
||||
extern void clip_may_redraw_selection __ARGS((int row, int col, int len));
|
||||
extern void clip_clear_selection __ARGS((void));
|
||||
extern void clip_may_clear_selection __ARGS((int row1, int row2));
|
||||
extern void clip_scroll_selection __ARGS((int rows));
|
||||
extern void clip_copy_modeless_selection __ARGS((int both));
|
||||
extern int clip_gen_own_selection __ARGS((VimClipboard *cbd));
|
||||
extern void clip_gen_lose_selection __ARGS((VimClipboard *cbd));
|
||||
extern void clip_gen_set_selection __ARGS((VimClipboard *cbd));
|
||||
extern void clip_gen_request_selection __ARGS((VimClipboard *cbd));
|
||||
extern int vim_is_input_buf_full __ARGS((void));
|
||||
extern int vim_is_input_buf_empty __ARGS((void));
|
||||
extern int vim_free_in_input_buf __ARGS((void));
|
||||
extern int vim_used_in_input_buf __ARGS((void));
|
||||
extern char_u *get_input_buf __ARGS((void));
|
||||
extern void set_input_buf __ARGS((char_u *p));
|
||||
extern void add_to_input_buf __ARGS((char_u *s, int len));
|
||||
extern void add_to_input_buf_csi __ARGS((char_u *str, int len));
|
||||
extern void push_raw_key __ARGS((char_u *s, int len));
|
||||
extern void trash_input_buf __ARGS((void));
|
||||
extern int read_from_input_buf __ARGS((char_u *buf, long maxlen));
|
||||
extern void fill_input_buf __ARGS((int exit_on_error));
|
||||
extern void read_error_exit __ARGS((void));
|
||||
extern void ui_cursor_shape __ARGS((void));
|
||||
extern int check_col __ARGS((int col));
|
||||
extern int check_row __ARGS((int row));
|
||||
extern void open_app_context __ARGS((void));
|
||||
extern void x11_setup_atoms __ARGS((Display *dpy));
|
||||
extern void clip_x11_request_selection __ARGS((Widget myShell, Display *dpy, VimClipboard *cbd));
|
||||
extern void clip_x11_lose_selection __ARGS((Widget myShell, VimClipboard *cbd));
|
||||
extern int clip_x11_own_selection __ARGS((Widget myShell, VimClipboard *cbd));
|
||||
extern void clip_x11_set_selection __ARGS((VimClipboard *cbd));
|
||||
extern int jump_to_mouse __ARGS((int flags, int *inclusive, int which_button));
|
||||
extern int mouse_comp_pos __ARGS((win_T *win, int *rowp, int *colp, linenr_T *lnump));
|
||||
extern win_T *mouse_find_win __ARGS((int *rowp, int *colp));
|
||||
extern int get_fpos_of_mouse __ARGS((pos_T *mpos));
|
||||
extern int vcol2col __ARGS((win_T *wp, linenr_T lnum, int vcol));
|
||||
extern void ui_focus_change __ARGS((int in_focus));
|
||||
extern void im_save_status __ARGS((long *psave));
|
||||
void ui_write __ARGS((char_u *s, int len));
|
||||
void ui_inchar_undo __ARGS((char_u *s, int len));
|
||||
int ui_inchar __ARGS((char_u *buf, int maxlen, long wtime, int tb_change_cnt));
|
||||
int ui_char_avail __ARGS((void));
|
||||
void ui_delay __ARGS((long msec, int ignoreinput));
|
||||
void ui_suspend __ARGS((void));
|
||||
void suspend_shell __ARGS((void));
|
||||
int ui_get_shellsize __ARGS((void));
|
||||
void ui_set_shellsize __ARGS((int mustset));
|
||||
void ui_new_shellsize __ARGS((void));
|
||||
void ui_breakcheck __ARGS((void));
|
||||
void clip_init __ARGS((int can_use));
|
||||
void clip_update_selection __ARGS((void));
|
||||
void clip_own_selection __ARGS((VimClipboard *cbd));
|
||||
void clip_lose_selection __ARGS((VimClipboard *cbd));
|
||||
void clip_copy_selection __ARGS((void));
|
||||
void clip_auto_select __ARGS((void));
|
||||
int clip_isautosel __ARGS((void));
|
||||
void clip_modeless __ARGS((int button, int is_click, int is_drag));
|
||||
void clip_start_selection __ARGS((int col, int row, int repeated_click));
|
||||
void clip_process_selection __ARGS((int button, int col, int row, int_u repeated_click));
|
||||
void clip_may_redraw_selection __ARGS((int row, int col, int len));
|
||||
void clip_clear_selection __ARGS((void));
|
||||
void clip_may_clear_selection __ARGS((int row1, int row2));
|
||||
void clip_scroll_selection __ARGS((int rows));
|
||||
void clip_copy_modeless_selection __ARGS((int both));
|
||||
int clip_gen_own_selection __ARGS((VimClipboard *cbd));
|
||||
void clip_gen_lose_selection __ARGS((VimClipboard *cbd));
|
||||
void clip_gen_set_selection __ARGS((VimClipboard *cbd));
|
||||
void clip_gen_request_selection __ARGS((VimClipboard *cbd));
|
||||
int vim_is_input_buf_full __ARGS((void));
|
||||
int vim_is_input_buf_empty __ARGS((void));
|
||||
int vim_free_in_input_buf __ARGS((void));
|
||||
int vim_used_in_input_buf __ARGS((void));
|
||||
char_u *get_input_buf __ARGS((void));
|
||||
void set_input_buf __ARGS((char_u *p));
|
||||
void add_to_input_buf __ARGS((char_u *s, int len));
|
||||
void add_to_input_buf_csi __ARGS((char_u *str, int len));
|
||||
void push_raw_key __ARGS((char_u *s, int len));
|
||||
void trash_input_buf __ARGS((void));
|
||||
int read_from_input_buf __ARGS((char_u *buf, long maxlen));
|
||||
void fill_input_buf __ARGS((int exit_on_error));
|
||||
void read_error_exit __ARGS((void));
|
||||
void ui_cursor_shape __ARGS((void));
|
||||
int check_col __ARGS((int col));
|
||||
int check_row __ARGS((int row));
|
||||
void open_app_context __ARGS((void));
|
||||
void x11_setup_atoms __ARGS((Display *dpy));
|
||||
void clip_x11_request_selection __ARGS((Widget myShell, Display *dpy, VimClipboard *cbd));
|
||||
void clip_x11_lose_selection __ARGS((Widget myShell, VimClipboard *cbd));
|
||||
int clip_x11_own_selection __ARGS((Widget myShell, VimClipboard *cbd));
|
||||
void clip_x11_set_selection __ARGS((VimClipboard *cbd));
|
||||
int jump_to_mouse __ARGS((int flags, int *inclusive, int which_button));
|
||||
int mouse_comp_pos __ARGS((win_T *win, int *rowp, int *colp, linenr_T *lnump));
|
||||
win_T *mouse_find_win __ARGS((int *rowp, int *colp));
|
||||
int get_fpos_of_mouse __ARGS((pos_T *mpos));
|
||||
int vcol2col __ARGS((win_T *wp, linenr_T lnum, int vcol));
|
||||
void ui_focus_change __ARGS((int in_focus));
|
||||
void im_save_status __ARGS((long *psave));
|
||||
/* vim: set ft=c : */
|
||||
|
Reference in New Issue
Block a user