comparison runtime/doc/insert.txt @ 3526:dd6c2497c997

Fix more 'cpo' issues in runtime files.
author Bram Moolenaar <bram@vim.org>
date Fri, 18 May 2012 21:49:28 +0200
parents 3482d151136b
children 11d40fc82f11
comparison
equal deleted inserted replaced
3525:b1f40dd6f844 3526:dd6c2497c997
1 *insert.txt* For Vim version 7.3. Last change: 2012 Apr 20 1 *insert.txt* For Vim version 7.3. Last change: 2012 May 18
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1015 1015
1016 The function must return the column where the completion starts. It must be a 1016 The function must return the column where the completion starts. It must be a
1017 number between zero and the cursor column "col('.')". This involves looking 1017 number between zero and the cursor column "col('.')". This involves looking
1018 at the characters just before the cursor and including those characters that 1018 at the characters just before the cursor and including those characters that
1019 could be part of the completed item. The text between this column and the 1019 could be part of the completed item. The text between this column and the
1020 cursor column will be replaced with the matches. Return -1 if no completion 1020 cursor column will be replaced with the matches.
1021 can be done, the completion will be cancelled with an error message. Return 1021
1022 -2 to cancel silently. 1022 Special return values:
1023 -1 If no completion can be done, the completion will be cancelled with an
1024 error message.
1025 -2 To cancel silently and stay in completion mode.
1026 -3 To cancel silently and leave completion mode.
1023 1027
1024 On the second invocation the arguments are: 1028 On the second invocation the arguments are:
1025 a:findstart 0 1029 a:findstart 0
1026 a:base the text with which matches should match; the text that was 1030 a:base the text with which matches should match; the text that was
1027 located in the first call (can be empty) 1031 located in the first call (can be empty)