mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Merge remote-tracking branch 'vim/master'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
" Vim plugin for formatting XML
|
||||
" Last Change: Thu, 15 Jan 2015 21:26:55 +0100
|
||||
" Last Change: Thu, 22 May 2018 21:26:55 +0100
|
||||
" Version: 0.1
|
||||
" Author: Christian Brabandt <cb@256bit.org>
|
||||
" Script: http://www.vim.org/scripts/script.php?script_id=
|
||||
@@ -30,7 +30,7 @@ func! xmlformat#Format()
|
||||
let lastitem = prev ? getline(prev) : ''
|
||||
let is_xml_decl = 0
|
||||
" split on `<`, but don't split on very first opening <
|
||||
for item in split(getline(v:lnum), '.\@<=[>]\zs')
|
||||
for item in split(join(getline(v:lnum, (v:lnum + v:count - 1))), '.\@<=[>]\zs')
|
||||
if s:EndTag(item)
|
||||
let s:indent = s:DecreaseIndent()
|
||||
call add(result, s:Indent(item))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
" This script tests a color scheme for some errors. Load the scheme and source
|
||||
" this script. e.g. :e colors/desert.vim | :so test_colors.vim
|
||||
" this script. e.g. :e colors/desert.vim | :so check_colors.vim
|
||||
" Will output possible errors.
|
||||
|
||||
let s:save_cpo= &cpo
|
||||
|
||||
+16
-3
@@ -2302,6 +2302,8 @@ range({expr} [, {max} [, {stride}]])
|
||||
List items from {expr} to {max}
|
||||
readfile({fname} [, {binary} [, {max}]])
|
||||
List get list of lines from file {fname}
|
||||
reg_executing() Number get the executing register name
|
||||
reg_recording() String get the recording register name
|
||||
reltime([{start} [, {end}]]) List get time value
|
||||
reltimefloat({time}) Float turn the time value into a Float
|
||||
reltimestr({time}) String turn time value into a String
|
||||
@@ -5820,7 +5822,8 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
listing.
|
||||
|
||||
When there is no mapping for {name}, an empty String is
|
||||
returned.
|
||||
returned. When the mapping for {name} is empty, then "<Nop>"
|
||||
is returned.
|
||||
|
||||
The {name} can have special key names, like in the ":map"
|
||||
command.
|
||||
@@ -5887,9 +5890,10 @@ mapcheck({name} [, {mode} [, {abbr}]]) *mapcheck()*
|
||||
mapping that matches with {name}, while maparg() only finds a
|
||||
mapping for {name} exactly.
|
||||
When there is no mapping that starts with {name}, an empty
|
||||
String is returned. If there is one, the rhs of that mapping
|
||||
String is returned. If there is one, the RHS of that mapping
|
||||
is returned. If there are several mappings that start with
|
||||
{name}, the rhs of one of them is returned.
|
||||
{name}, the RHS of one of them is returned. This will be
|
||||
"<Nop>" if the RHS is empty.
|
||||
The mappings local to the current buffer are checked first,
|
||||
then the global mappings.
|
||||
This function can be used to check if a mapping can be added
|
||||
@@ -6558,6 +6562,15 @@ readfile({fname} [, {binary} [, {max}]])
|
||||
the result is an empty list.
|
||||
Also see |writefile()|.
|
||||
|
||||
reg_executing() *reg_executing()*
|
||||
Returns the single letter name of the register being executed.
|
||||
Returns an empty string when no register is being executed.
|
||||
See |@|.
|
||||
|
||||
reg_recording() *reg_recording()*
|
||||
Returns the single letter name of the register being recorded.
|
||||
Returns an empty string string when not recording. See |q|.
|
||||
|
||||
reltime([{start} [, {end}]]) *reltime()*
|
||||
Return an item that represents a time value. The format of
|
||||
the item depends on the system. It can be passed to
|
||||
|
||||
+1
-1
@@ -1001,7 +1001,7 @@ it behaves in a strange way.
|
||||
pointer instead of the cursor.
|
||||
In the terminal this is the last known
|
||||
position, which is usually at the last click
|
||||
or release (mouse movement is irrelevalt).
|
||||
or release (mouse movement is irrelevant).
|
||||
|
||||
Example: >
|
||||
:popup File
|
||||
|
||||
@@ -907,6 +907,25 @@ In PHP braces are not required inside 'case/default' blocks therefore 'case:'
|
||||
and 'default:' are indented at the same level than the 'switch()' to avoid
|
||||
meaningless indentation. You can use the above option to return to the
|
||||
traditional way.
|
||||
-------------
|
||||
|
||||
*PHP_noArrowMatching*
|
||||
By default the indent script will indent multi-line chained calls by matching
|
||||
the position of the '->': >
|
||||
|
||||
$user_name_very_long->name()
|
||||
->age()
|
||||
->info();
|
||||
|
||||
You can revert to the classic way of indenting by setting this option to 1: >
|
||||
:let g:PHP_noArrowMatching = 1
|
||||
|
||||
You will obtain the following result: >
|
||||
|
||||
$user_name_very_long->name()
|
||||
->age()
|
||||
->info();
|
||||
|
||||
|
||||
|
||||
PYTHON *ft-python-indent*
|
||||
|
||||
@@ -5348,7 +5348,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
more depth, set 'maxfuncdepth' to a bigger number. But this will use
|
||||
more memory, there is the danger of failing when memory is exhausted.
|
||||
Increasing this limit above 200 also changes the maximum for Ex
|
||||
command resursion, see |E169|.
|
||||
command recursion, see |E169|.
|
||||
See also |:function|.
|
||||
|
||||
*'maxmapdepth'* *'mmd'* *E223*
|
||||
|
||||
@@ -213,7 +213,8 @@ gT Go to the previous tab page. Wraps around from the first one
|
||||
:tabN[ext] {count}
|
||||
{count}<C-PageUp>
|
||||
{count}gT Go {count} tab pages back. Wraps around from the first one
|
||||
to the last one.
|
||||
to the last one. Note that the use of {count} is different
|
||||
from |:tabnext|, where it is used as the tab page number.
|
||||
|
||||
:tabr[ewind] *:tabfir* *:tabfirst* *:tabr* *:tabrewind*
|
||||
:tabfir[st] Go to the first tab page.
|
||||
|
||||
@@ -4802,6 +4802,7 @@ PEP8 filetype.txt /*PEP8*
|
||||
PHP_BracesAtCodeLevel indent.txt /*PHP_BracesAtCodeLevel*
|
||||
PHP_autoformatcomment indent.txt /*PHP_autoformatcomment*
|
||||
PHP_default_indenting indent.txt /*PHP_default_indenting*
|
||||
PHP_noArrowMatching indent.txt /*PHP_noArrowMatching*
|
||||
PHP_outdentSLComments indent.txt /*PHP_outdentSLComments*
|
||||
PHP_outdentphpescape indent.txt /*PHP_outdentphpescape*
|
||||
PHP_removeCRwhenUnix indent.txt /*PHP_removeCRwhenUnix*
|
||||
@@ -8296,6 +8297,8 @@ redo-register undo.txt /*redo-register*
|
||||
ref intro.txt /*ref*
|
||||
reference intro.txt /*reference*
|
||||
reference_toc help.txt /*reference_toc*
|
||||
reg_executing() eval.txt /*reg_executing()*
|
||||
reg_recording() eval.txt /*reg_recording()*
|
||||
regexp pattern.txt /*regexp*
|
||||
regexp-changes-5.4 version5.txt /*regexp-changes-5.4*
|
||||
register sponsor.txt /*register*
|
||||
|
||||
@@ -204,7 +204,7 @@ Syntax ~
|
||||
++rows={height} Use {height} for the terminal window
|
||||
height. If the terminal uses the full
|
||||
Vim height (no window above or below
|
||||
th terminal window) the command line
|
||||
the terminal window) the command line
|
||||
height will be reduced as needed.
|
||||
++cols={width} Use {width} for the terminal window
|
||||
width. If the terminal uses the full
|
||||
@@ -243,7 +243,7 @@ Trying to close the window with `CTRL-W :close` also fails. Using
|
||||
You can use `CTRL-W :hide` to close the terminal window and make the buffer
|
||||
hidden, the job keeps running. The `:buffer` command can be used to turn the
|
||||
current window into a terminal window. If there are unsaved changes this
|
||||
fails, use ! to force, as usual.
|
||||
fails, use ! to force, as usual.
|
||||
|
||||
To have a background job run without a window, and open the window when it's
|
||||
done, use options like this: >
|
||||
|
||||
+7
-14
@@ -39,7 +39,7 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Terminal emulator window:
|
||||
- Win32: Termdebug doesn't work, because gdb does not support mi2.
|
||||
- Win32: Termdebug doesn't work, because gdb does not support mi2 on a tty.
|
||||
This plugin: https://github.com/cpiger/NeoDebug runs gdb as a job,
|
||||
redirecting input and output.
|
||||
Open new console for for program with: "set new-console on"
|
||||
@@ -61,13 +61,13 @@ Terminal emulator window:
|
||||
after "run". Everything else works, including communication channel. Not
|
||||
initializing mzscheme avoid the problem, thus it's not some #ifdef.
|
||||
|
||||
Patch to refactor efm_to_regpat(). (Yegappan Lakshmanan, 2018 May 16, #2924)
|
||||
Does not build with MinGW out of the box:
|
||||
- _stat64 is not defined, need to use "struct stat" in vim.h
|
||||
- WINVER conflict, should use 0x0600 by default?
|
||||
|
||||
Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
|
||||
13, #2910) Can't reproduce?
|
||||
|
||||
Deprecate using has("patch213") always include the version number.
|
||||
|
||||
On Win32 when not in the console and t_Co >= 256, allow using 'tgc'.
|
||||
(Nobuhiro Takasaki, #2833) Also check t_Co.
|
||||
|
||||
@@ -123,11 +123,8 @@ CreateFile() returns ERROR_SHARING_VIOLATION (Linwei, 2018 May 5)
|
||||
Should add a test for every command line argument. Check coverage for what is
|
||||
missing: --nofork, -A , -b, -h, etc.
|
||||
|
||||
Completing a command sometimes results in duplicates, since 7.4.672.
|
||||
(Yegappan Lakshmanan, 2018 May 16)
|
||||
Duplication of completion suggestions for ":!hom". Issue #539.
|
||||
Patch by Christian, 2016 Jan 29
|
||||
Another patch in #2733.
|
||||
Patch for variable tabstops. On github (Christian Brabandt, 2014 May 15)
|
||||
Update 2018 March 12, #2711
|
||||
|
||||
Improve the installer for MS-Windows. There are a few alternatives:
|
||||
- Add silent install option. (Shane Lee, #751)
|
||||
@@ -152,6 +149,7 @@ When using :packadd files under "later" are not used, which is inconsistent
|
||||
with packages under "start". (xtal8, #1994)
|
||||
|
||||
Patch to support "xxd -ps". (Erik Auerswald, 2018 May 1)
|
||||
Lacks a test.
|
||||
|
||||
Column number is wrong when using 'linebreak' and 'wrap'. (Keith Smiley, 2018
|
||||
Jan 15, #2555)
|
||||
@@ -160,8 +158,6 @@ Jan 15, #2555)
|
||||
|
||||
Check argument of systemlist(). (Pavlov)
|
||||
|
||||
Patch to add reg_executing() and reg_recording(). (Hirohito Higashi, #2745)
|
||||
|
||||
No maintainer for Vietnamese translations.
|
||||
No maintainer for Simplified Chinese translations.
|
||||
|
||||
@@ -1184,9 +1180,6 @@ Patch for building a 32bit Vim with 64bit MingW compiler.
|
||||
Patch: On MS-Windows shellescape() may have to triple double quotes.
|
||||
(Ingo Karkat, 2015 Jan 16)
|
||||
|
||||
Patch for variable tabstops. On github (Christian Brabandt, 2014 May 15)
|
||||
Update 2018 March 12, #2711
|
||||
|
||||
Redo only remembers the last change. Could use "{count}g." to redo an older
|
||||
change. How does the user know which change? At least have a way to list
|
||||
them: ":repeats".
|
||||
|
||||
@@ -1018,6 +1018,8 @@ Various: *various-functions*
|
||||
getreg() get contents of a register
|
||||
getregtype() get type of a register
|
||||
setreg() set contents and type of a register
|
||||
reg_executing() return the name of the register being executed
|
||||
reg_recording() return the name of the register being recorded
|
||||
|
||||
shiftwidth() effective value of 'shiftwidth'
|
||||
|
||||
|
||||
@@ -14549,12 +14549,37 @@ Changed *changed-8.1*
|
||||
Internal: A few C99 features are now allowed such as // comments and a
|
||||
comma after the last enum entry. See |style-compiler|.
|
||||
|
||||
Since patch 8.0.0029 removed support for older MS-Windows systems, only
|
||||
MS-Windows XP and later are supported.
|
||||
|
||||
|
||||
Added *added-8.1*
|
||||
-----
|
||||
|
||||
Various syntax, indent and other plugins were added.
|
||||
|
||||
Quickfix improvements (by Yegappan Lakshmanan):
|
||||
Added support for modifying any quickfix/location list in the quickfix
|
||||
stack.
|
||||
Added a unique identifier for every quickfix/location list.
|
||||
Added support for associating any Vim type as a context information to
|
||||
a quickfix/location list.
|
||||
Enhanced the getqflist(), getloclist(), setqflist() and setloclist()
|
||||
functions to get and set the various quickfix/location list attributes.
|
||||
Added the QuickFixLine highlight group to highlight the current line
|
||||
in the quickfix window.
|
||||
The quickfix buffer b:changedtick variable is incremented for every
|
||||
change to the contained quickfix list.
|
||||
Added a changedtick variable to a quickfix/location list which is
|
||||
incremented when the list is modified.
|
||||
Added support for parsing text using 'errorformat' without creating a
|
||||
new quickfix list.
|
||||
Added support for the "module" item to a quickfix entry which can be
|
||||
used for display purposes instead of a long file name.
|
||||
Added support for freeing all the lists in the quickfix/location stack.
|
||||
When opening a quickfix window using the :copen/:cwindow commands, the
|
||||
supplied split modifiers are used.
|
||||
|
||||
Functions:
|
||||
All the term_ functions.
|
||||
|
||||
@@ -21591,7 +21616,7 @@ Files: src/main.c
|
||||
|
||||
Patch 8.0.1158
|
||||
Problem: Still old style tests.
|
||||
Solution: Convert serveral tests to new style. (Yegappan Lakshmanan)
|
||||
Solution: Convert several tests to new style. (Yegappan Lakshmanan)
|
||||
Files: src/Makefile, src/testdir/Make_all.mak, src/testdir/Make_vms.mms,
|
||||
src/testdir/main.aap, src/testdir/test33.in,
|
||||
src/testdir/test33.ok, src/testdir/test41.in,
|
||||
|
||||
+82
-22
@@ -3,8 +3,8 @@
|
||||
" Author: John Wellesz <John.wellesz (AT) teaser (DOT) fr>
|
||||
" URL: http://www.2072productions.com/vim/indent/php.vim
|
||||
" Home: https://github.com/2072/PHP-Indenting-for-VIm
|
||||
" Last Change: 2018 May 14
|
||||
" Version: 1.62
|
||||
" Last Change: 2018 May 18th
|
||||
" Version: 1.66
|
||||
"
|
||||
"
|
||||
" Type :help php-indent for available options
|
||||
@@ -82,6 +82,12 @@ else
|
||||
let b:PHP_outdentphpescape = 1
|
||||
endif
|
||||
|
||||
if exists("PHP_noArrowMatching")
|
||||
let b:PHP_noArrowMatching = PHP_noArrowMatching
|
||||
else
|
||||
let b:PHP_noArrowMatching = 0
|
||||
endif
|
||||
|
||||
|
||||
if exists("PHP_vintage_case_default_indent") && PHP_vintage_case_default_indent
|
||||
let b:PHP_vintage_case_default_indent = 1
|
||||
@@ -130,7 +136,7 @@ endif
|
||||
let s:PHP_validVariable = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
|
||||
let s:notPhpHereDoc = '\%(break\|return\|continue\|exit\|die\|else\)'
|
||||
let s:blockstart = '\%(\%(\%(}\s*\)\=else\%(\s\+\)\=\)\=if\>\|\%(}\s*\)\?else\>\|do\>\|while\>\|switch\>\|case\>\|default\>\|for\%(each\)\=\>\|declare\>\|class\>\|trait\>\|use\>\|interface\>\|abstract\>\|final\>\|try\>\|\%(}\s*\)\=catch\>\|\%(}\s*\)\=finally\>\)'
|
||||
let s:functionDecl = '\<function\>\%(\s\+'.s:PHP_validVariable.'\)\=\s*(.*'
|
||||
let s:functionDecl = '\<function\>\%(\s\+&\='.s:PHP_validVariable.'\)\=\s*(.*'
|
||||
let s:endline = '\s*\%(//.*\|#.*\|/\*.*\*/\s*\)\=$'
|
||||
let s:unstated = '\%(^\s*'.s:blockstart.'.*)\|\%(//.*\)\@<!\<e'.'lse\>\)'.s:endline
|
||||
|
||||
@@ -140,7 +146,6 @@ let s:PHP_startindenttag = '<?\%(.*?>\)\@!\|<script[^>]*>\%(.*<\/script>\)\@!'
|
||||
let s:structureHead = '^\s*\%(' . s:blockstart . '\)\|'. s:functionDecl . s:endline . '\|\<new\s\+class\>'
|
||||
|
||||
|
||||
|
||||
let s:escapeDebugStops = 0
|
||||
function! DebugPrintReturn(scriptLine)
|
||||
|
||||
@@ -257,7 +262,7 @@ endfun
|
||||
|
||||
function! Skippmatch() " {{{
|
||||
let synname = synIDattr(synID(line("."), col("."), 0), "name")
|
||||
if synname == "Delimiter" || synname == "phpRegionDelimiter" || synname =~# "^phpParent" || synname == "phpArrayParens" || synname =~# '^php\%(Block\|Brace\)' || synname == "javaScriptBraces" || synname =~# '^php\%(Doc\)\?Comment' && b:UserIsTypingComment
|
||||
if synname ==? "Delimiter" || synname ==? "phpRegionDelimiter" || synname =~? "^phpParent" || synname ==? "phpArrayParens" || synname =~? '^php\%(Block\|Brace\)' || synname ==? "javaScriptBraces" || synname =~? '^php\%(Doc\)\?Comment' && b:UserIsTypingComment
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
@@ -297,6 +302,48 @@ function! BalanceDirection (str)
|
||||
return balance
|
||||
endfun
|
||||
|
||||
function! StripEndlineComments (line)
|
||||
return substitute(a:line,"\\(//\\|#\\)\\(\\(\\([^\"']*\\([\"']\\)[^\"']*\\5\\)\\+[^\"']*$\\)\\|\\([^\"']*$\\)\\)",'','')
|
||||
endfun
|
||||
|
||||
function! FindArrowIndent (lnum) " {{{
|
||||
|
||||
let parrentArrowPos = 0
|
||||
let lnum = a:lnum
|
||||
while lnum > 1
|
||||
let last_line = getline(lnum)
|
||||
if last_line =~ '^\s*->'
|
||||
let parrentArrowPos = indent(a:lnum)
|
||||
break
|
||||
else
|
||||
call cursor(lnum, 1)
|
||||
let cleanedLnum = StripEndlineComments(last_line)
|
||||
if cleanedLnum =~ '->'
|
||||
if ! b:PHP_noArrowMatching
|
||||
let parrentArrowPos = searchpos('->', 'W', lnum)[1] - 1
|
||||
else
|
||||
let parrentArrowPos = indent(lnum) + shiftwidth()
|
||||
endif
|
||||
break
|
||||
elseif cleanedLnum =~ ')'.s:endline && BalanceDirection(last_line) < 0
|
||||
call searchpos(')'.s:endline, 'cW', lnum)
|
||||
let openedparent = searchpair('(', '', ')', 'bW', 'Skippmatch()')
|
||||
if openedparent != lnum
|
||||
let lnum = openedparent
|
||||
else
|
||||
let openedparent = -1
|
||||
endif
|
||||
|
||||
else
|
||||
let parrentArrowPos = indent(lnum) + shiftwidth()
|
||||
break
|
||||
endif
|
||||
endif
|
||||
endwhile
|
||||
|
||||
return parrentArrowPos
|
||||
endfun "}}}
|
||||
|
||||
function! FindTheIfOfAnElse (lnum, StopAfterFirstPrevElse) " {{{
|
||||
|
||||
if getline(a:lnum) =~# '^\s*}\s*else\%(if\)\=\>'
|
||||
@@ -368,7 +415,7 @@ function! FindTheSwitchIndent (lnum) " {{{
|
||||
|
||||
endfunction "}}}
|
||||
|
||||
let s:SynPHPMatchGroups = {'phpParent':1, 'Delimiter':1, 'Define':1, 'Storageclass':1, 'StorageClass':1, 'Structure':1, 'Exception':1}
|
||||
let s:SynPHPMatchGroups = {'phpparent':1, 'delimiter':1, 'define':1, 'storageclass':1, 'structure':1, 'exception':1}
|
||||
function! IslinePHP (lnum, tofind) " {{{
|
||||
let cline = getline(a:lnum)
|
||||
|
||||
@@ -384,7 +431,7 @@ function! IslinePHP (lnum, tofind) " {{{
|
||||
|
||||
let synname = synIDattr(synID(a:lnum, coltotest, 0), "name")
|
||||
|
||||
if synname == 'phpStringSingle' || synname == 'phpStringDouble' || synname == 'phpBacktick'
|
||||
if synname ==? 'phpStringSingle' || synname ==? 'phpStringDouble' || synname ==? 'phpBacktick'
|
||||
if cline !~ '^\s*[''"`]'
|
||||
return "SpecStringEntrails"
|
||||
else
|
||||
@@ -392,7 +439,7 @@ function! IslinePHP (lnum, tofind) " {{{
|
||||
end
|
||||
end
|
||||
|
||||
if get(s:SynPHPMatchGroups, synname) || synname =~ '^php' || synname =~? '^javaScript'
|
||||
if get(s:SynPHPMatchGroups, tolower(synname)) || synname =~ '^php' || synname =~? '^javaScript'
|
||||
return synname
|
||||
else
|
||||
return ""
|
||||
@@ -423,6 +470,10 @@ endfunc
|
||||
|
||||
call ResetPhpOptions()
|
||||
|
||||
function! GetPhpIndentVersion()
|
||||
return "1.66-bundle"
|
||||
endfun
|
||||
|
||||
function! GetPhpIndent()
|
||||
|
||||
let b:GetLastRealCodeLNum_ADD = 0
|
||||
@@ -480,14 +531,14 @@ function! GetPhpIndent()
|
||||
endif
|
||||
|
||||
if synname!=""
|
||||
if synname == "SpecStringEntrails"
|
||||
if synname ==? "SpecStringEntrails"
|
||||
let b:InPHPcode = -1 " thumb down
|
||||
let b:InPHPcode_tofind = ""
|
||||
elseif synname != "phpHereDoc" && synname != "phpHereDocDelimiter"
|
||||
elseif synname !=? "phpHereDoc" && synname !=? "phpHereDocDelimiter"
|
||||
let b:InPHPcode = 1
|
||||
let b:InPHPcode_tofind = ""
|
||||
|
||||
if synname =~# '^php\%(Doc\)\?Comment'
|
||||
if synname =~? '^php\%(Doc\)\?Comment'
|
||||
let b:UserIsTypingComment = 1
|
||||
let b:InPHPcode_checked = 0
|
||||
endif
|
||||
@@ -556,7 +607,7 @@ function! GetPhpIndent()
|
||||
|
||||
if 1 == b:InPHPcode
|
||||
|
||||
if !b:InPHPcode_and_script && last_line =~ '\%(<?.*\)\@<!?>\%(.*<?\)\@!' && IslinePHP(lnum, '?>')=~"Delimiter"
|
||||
if !b:InPHPcode_and_script && last_line =~ '\%(<?.*\)\@<!?>\%(.*<?\)\@!' && IslinePHP(lnum, '?>')=~?"Delimiter"
|
||||
if cline !~? s:PHP_startindenttag
|
||||
let b:InPHPcode = 0
|
||||
let b:InPHPcode_tofind = s:PHP_startindenttag
|
||||
@@ -712,7 +763,8 @@ function! GetPhpIndent()
|
||||
let last_line_num = GetLastRealCodeLNum(last_line_num - 1)
|
||||
let previous_line = getline(last_line_num)
|
||||
endwhile
|
||||
|
||||
elseif cline =~ '^\s*->'
|
||||
return FindArrowIndent(lnum)
|
||||
elseif last_line =~# unstated && cline !~ '^\s*);\='.endline
|
||||
let ind = ind + shiftwidth() " we indent one level further when the preceding line is not stated
|
||||
return ind + addSpecial
|
||||
@@ -724,7 +776,7 @@ function! GetPhpIndent()
|
||||
|
||||
let isSingleLineBlock = 0
|
||||
while 1
|
||||
if ! isSingleLineBlock && previous_line =~ '^\s*}\|;\s*}'.endline " XXX
|
||||
if ! isSingleLineBlock && previous_line =~ '^\s*}\|;\s*}'.endline
|
||||
|
||||
call cursor(last_line_num, 1)
|
||||
if previous_line !~ '^}'
|
||||
@@ -793,8 +845,7 @@ function! GetPhpIndent()
|
||||
|
||||
let AntepenultimateLine = getline(plinnum)
|
||||
|
||||
let last_line = substitute(last_line,"\\(//\\|#\\)\\(\\(\\([^\"']*\\([\"']\\)[^\"']*\\5\\)\\+[^\"']*$\\)\\|\\([^\"']*$\\)\\)",'','')
|
||||
|
||||
let last_line = StripEndlineComments(last_line)
|
||||
|
||||
if ind == b:PHP_default_indenting
|
||||
if last_line =~ terminated && last_line !~# s:defaultORcase
|
||||
@@ -804,11 +855,13 @@ function! GetPhpIndent()
|
||||
|
||||
if !LastLineClosed
|
||||
|
||||
let openedparent = -1
|
||||
|
||||
|
||||
if last_line =~# '[{(\[]'.endline || last_line =~? '\h\w*\s*(.*,$' && AntepenultimateLine !~ '[,(\[]'.endline && BalanceDirection(last_line) > 0
|
||||
|
||||
let dontIndent = 0
|
||||
if last_line =~ '\S\+\s*{'.endline && last_line !~ '^\s*[)\]]\+\s*{'.endline && last_line !~ s:structureHead
|
||||
if last_line =~ '\S\+\s*{'.endline && last_line !~ '^\s*[)\]]\+\(\s*:\s*'.s:PHP_validVariable.'\)\=\s*{'.endline && last_line !~ s:structureHead
|
||||
let dontIndent = 1
|
||||
endif
|
||||
|
||||
@@ -819,18 +872,17 @@ function! GetPhpIndent()
|
||||
if b:PHP_BracesAtCodeLevel || b:PHP_vintage_case_default_indent == 1
|
||||
let b:PHP_CurrentIndentLevel = ind
|
||||
|
||||
return ind + addSpecial
|
||||
endif
|
||||
|
||||
elseif last_line =~ '\S\+\s*),'.endline && BalanceDirection(last_line) < 0
|
||||
elseif last_line =~ '),'.endline && BalanceDirection(last_line) < 0
|
||||
call cursor(lnum, 1)
|
||||
call search('),'.endline, 'W') " line never begins with ) so no need for 'c' flag
|
||||
call searchpos('),'.endline, 'cW')
|
||||
let openedparent = searchpair('(', '', ')', 'bW', 'Skippmatch()')
|
||||
if openedparent != lnum
|
||||
let ind = indent(openedparent)
|
||||
endif
|
||||
|
||||
elseif last_line =~ '^\s*'.s:blockstart
|
||||
elseif last_line =~ s:structureHead
|
||||
let ind = ind + shiftwidth()
|
||||
|
||||
|
||||
@@ -838,9 +890,17 @@ function! GetPhpIndent()
|
||||
let ind = ind + shiftwidth()
|
||||
endif
|
||||
|
||||
|
||||
if openedparent >= 0
|
||||
let last_line = StripEndlineComments(getline(openedparent))
|
||||
endif
|
||||
endif
|
||||
|
||||
if cline =~ '^\s*[)\]];\='
|
||||
if cline =~ '^\s*[)\]];\='
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
|
||||
if last_line =~ '^\s*->' && last_line !~? s:structureHead && BalanceDirection(last_line) <= 0
|
||||
let ind = ind - shiftwidth()
|
||||
endif
|
||||
|
||||
|
||||
+180
-140
@@ -2,9 +2,9 @@
|
||||
" Language: Mutt setup files
|
||||
" Original: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
|
||||
" Maintainer: Kyle Wheeler <kyle-muttrc.vim@memoryhole.net>
|
||||
" Last Change: 18 August 2016
|
||||
" Last Change: 21 May 2018
|
||||
|
||||
" This file covers mutt version 1.7.0
|
||||
" This file covers mutt version 1.10.0
|
||||
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -104,142 +104,175 @@ syn match muttrcKeyName contained "<F[0-9]\+>"
|
||||
syn keyword muttrcVarBool skipwhite contained
|
||||
\ allow_8bit allow_ansi arrow_cursor ascii_chars askbcc askcc attach_split
|
||||
\ auto_tag autoedit beep beep_new bounce_delivered braille_friendly
|
||||
\ check_mbox_size check_new collapse_unread confirmappend confirmcreate
|
||||
\ crypt_autoencrypt crypt_autopgp crypt_autosign crypt_autosmime
|
||||
\ crypt_confirmhook crypt_opportunistic_encrypt crypt_replyencrypt
|
||||
\ crypt_replysign crypt_replysignencrypted crypt_timestamp crypt_use_gpgme
|
||||
\ crypt_use_pka delete_untag digest_collapse duplicate_threads edit_hdrs
|
||||
\ edit_headers encode_from envelope_from fast_reply fcc_clear followup_to
|
||||
\ force_name forw_decode forw_decrypt forw_quote forward_decode forward_decrypt
|
||||
\ forward_quote hdrs header help hidden_host hide_limited hide_missing
|
||||
\ hide_thread_subject hide_top_limited hide_top_missing honor_disposition
|
||||
\ idn_decode idn_encode ignore_linear_white_space ignore_list_reply_to
|
||||
\ imap_check_subscribed imap_list_subscribed imap_passive imap_peek
|
||||
\ imap_servernoise implicit_autoview include_onlyfirst keep_flagged
|
||||
\ browser_abbreviate_mailboxes change_folder_next check_mbox_size check_new
|
||||
\ collapse_unread confirmappend confirmcreate crypt_autoencrypt crypt_autopgp
|
||||
\ crypt_autosign crypt_autosmime crypt_confirmhook crypt_opportunistic_encrypt
|
||||
\ crypt_replyencrypt crypt_replysign crypt_replysignencrypted crypt_timestamp
|
||||
\ crypt_use_gpgme crypt_use_pka delete_untag digest_collapse duplicate_threads
|
||||
\ edit_hdrs edit_headers encode_from envelope_from fast_reply fcc_clear
|
||||
\ flag_safe followup_to force_name forw_decode forw_decrypt forw_quote
|
||||
\ forward_decode forward_decrypt forward_quote hdrs header
|
||||
\ header_color_partial help hidden_host hide_limited hide_missing
|
||||
\ hide_thread_subject hide_top_limited hide_top_missing history_remove_dups
|
||||
\ honor_disposition idn_decode idn_encode ignore_linear_white_space
|
||||
\ ignore_list_reply_to imap_check_subscribed imap_list_subscribed imap_passive
|
||||
\ imap_peek imap_servernoise implicit_autoview include_onlyfirst keep_flagged
|
||||
\ mail_check_recent mail_check_stats mailcap_sanitize maildir_check_cur
|
||||
\ maildir_header_cache_verify maildir_trash mark_old markers menu_move_off
|
||||
\ menu_scroll message_cache_clean meta_key metoo mh_purge mime_forward_decode
|
||||
\ narrow_tree pager_stop pgp_auto_decode pgp_auto_traditional pgp_autoencrypt
|
||||
\ pgp_autoinline pgp_autosign pgp_check_exit pgp_create_traditional
|
||||
\ pgp_ignore_subkeys pgp_long_ids pgp_replyencrypt pgp_replyinline pgp_replysign
|
||||
\ pgp_replysignencrypted pgp_retainable_sigs pgp_show_unusable pgp_strict_enc
|
||||
\ pgp_use_gpg_agent pipe_decode pipe_split pop_auth_try_all pop_last
|
||||
\ postpone_encrypt postpone_encrypt_as print_decode print_split prompt_after
|
||||
\ read_only reflow_space_quotes reflow_text reflow_wrap reply_self resolve
|
||||
\ resume_draft_files resume_edited_draft_files reverse_alias reverse_name
|
||||
\ reverse_realname rfc2047_parameters save_address save_empty save_name score
|
||||
\ sidebar_folder_indent sidebar_new_mail_only sidebar_next_new_wrap
|
||||
\ sidebar_short_path sidebar_sort sidebar_visible sig_dashes sig_on_top
|
||||
\ smart_wrap smime_ask_cert_label smime_decrypt_use_default_key smime_is_default
|
||||
\ sort_re ssl_force_tls ssl_use_sslv2 ssl_use_sslv3 ssl_use_tlsv1
|
||||
\ ssl_usesystemcerts ssl_verify_dates ssl_verify_host status_on_top strict_mime
|
||||
\ strict_threads suspend text_flowed thorough_search thread_received tilde
|
||||
\ ts_enabled uncollapse_jump use_8bitmime use_domain use_envelope_from use_from
|
||||
\ use_idn use_ipv6 user_agent wait_key weed wrap_search write_bcc
|
||||
\ mime_type_query_first narrow_tree pager_stop pgp_auto_decode
|
||||
\ pgp_auto_traditional pgp_autoencrypt pgp_autoinline pgp_autosign
|
||||
\ pgp_check_exit pgp_create_traditional pgp_ignore_subkeys pgp_long_ids
|
||||
\ pgp_replyencrypt pgp_replyinline pgp_replysign pgp_replysignencrypted
|
||||
\ pgp_retainable_sigs pgp_self_encrypt pgp_self_encrypt_as pgp_show_unusable
|
||||
\ pgp_strict_enc pgp_use_gpg_agent pipe_decode pipe_split pop_auth_try_all
|
||||
\ pop_last postpone_encrypt postpone_encrypt_as print_decode print_split
|
||||
\ prompt_after read_only reflow_space_quotes reflow_text reflow_wrap
|
||||
\ reply_self resolve resume_draft_files resume_edited_draft_files
|
||||
\ reverse_alias reverse_name reverse_realname rfc2047_parameters save_address
|
||||
\ save_empty save_name score sidebar_folder_indent sidebar_new_mail_only
|
||||
\ sidebar_next_new_wrap sidebar_short_path sidebar_sort sidebar_visible
|
||||
\ sig_dashes sig_on_top smart_wrap smime_ask_cert_label
|
||||
\ smime_decrypt_use_default_key smime_is_default smime_self_encrypt
|
||||
\ smime_self_encrypt_as sort_re ssl_force_tls ssl_use_sslv2 ssl_use_sslv3
|
||||
\ ssl_use_tlsv1 ssl_usesystemcerts ssl_verify_dates ssl_verify_host
|
||||
\ ssl_verify_partial_chains status_on_top strict_mime strict_threads suspend
|
||||
\ text_flowed thorough_search thread_received tilde ts_enabled uncollapse_jump
|
||||
\ use_8bitmime use_domain use_envelope_from use_from use_idn use_ipv6
|
||||
\ uncollapse_new user_agent wait_key weed wrap_search write_bcc
|
||||
\ nextgroup=muttrcSetBoolAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn keyword muttrcVarBool skipwhite contained
|
||||
\ noallow_8bit noallow_ansi noarrow_cursor noascii_chars noaskbcc noaskcc noattach_split
|
||||
\ noauto_tag noautoedit nobeep nobeep_new nobounce_delivered nobraille_friendly
|
||||
\ nocheck_mbox_size nocheck_new nocollapse_unread noconfirmappend noconfirmcreate
|
||||
\ nocrypt_autoencrypt nocrypt_autopgp nocrypt_autosign nocrypt_autosmime
|
||||
\ nocrypt_confirmhook nocrypt_opportunistic_encrypt nocrypt_replyencrypt
|
||||
\ nocrypt_replysign nocrypt_replysignencrypted nocrypt_timestamp nocrypt_use_gpgme
|
||||
\ nocrypt_use_pka nodelete_untag nodigest_collapse noduplicate_threads noedit_hdrs
|
||||
\ noedit_headers noencode_from noenvelope_from nofast_reply nofcc_clear nofollowup_to
|
||||
\ noforce_name noforw_decode noforw_decrypt noforw_quote noforward_decode noforward_decrypt
|
||||
\ noforward_quote nohdrs noheader nohelp nohidden_host nohide_limited nohide_missing
|
||||
\ nohide_thread_subject nohide_top_limited nohide_top_missing nohonor_disposition
|
||||
\ noidn_decode noidn_encode noignore_linear_white_space noignore_list_reply_to
|
||||
\ noimap_check_subscribed noimap_list_subscribed noimap_passive noimap_peek
|
||||
\ noimap_servernoise noimplicit_autoview noinclude_onlyfirst nokeep_flagged
|
||||
\ nomail_check_recent nomail_check_stats nomailcap_sanitize nomaildir_check_cur
|
||||
\ nomaildir_header_cache_verify nomaildir_trash nomark_old nomarkers nomenu_move_off
|
||||
\ nomenu_scroll nomessage_cache_clean nometa_key nometoo nomh_purge nomime_forward_decode
|
||||
\ nonarrow_tree nopager_stop nopgp_auto_decode nopgp_auto_traditional nopgp_autoencrypt
|
||||
\ noallow_8bit noallow_ansi noarrow_cursor noascii_chars noaskbcc noaskcc
|
||||
\ noattach_split noauto_tag noautoedit nobeep nobeep_new nobounce_delivered
|
||||
\ nobraille_friendly nobrowser_abbreviate_mailboxes nochange_folder_next
|
||||
\ nocheck_mbox_size nocheck_new nocollapse_unread noconfirmappend
|
||||
\ noconfirmcreate nocrypt_autoencrypt nocrypt_autopgp nocrypt_autosign
|
||||
\ nocrypt_autosmime nocrypt_confirmhook nocrypt_opportunistic_encrypt
|
||||
\ nocrypt_replyencrypt nocrypt_replysign nocrypt_replysignencrypted
|
||||
\ nocrypt_timestamp nocrypt_use_gpgme nocrypt_use_pka nodelete_untag
|
||||
\ nodigest_collapse noduplicate_threads noedit_hdrs noedit_headers
|
||||
\ noencode_from noenvelope_from nofast_reply nofcc_clear noflag_safe
|
||||
\ nofollowup_to noforce_name noforw_decode noforw_decrypt noforw_quote
|
||||
\ noforward_decode noforward_decrypt noforward_quote nohdrs noheader
|
||||
\ noheader_color_partial nohelp nohidden_host nohide_limited nohide_missing
|
||||
\ nohide_thread_subject nohide_top_limited nohide_top_missing
|
||||
\ nohistory_remove_dups nohonor_disposition noidn_decode noidn_encode
|
||||
\ noignore_linear_white_space noignore_list_reply_to noimap_check_subscribed
|
||||
\ noimap_list_subscribed noimap_passive noimap_peek noimap_servernoise
|
||||
\ noimplicit_autoview noinclude_onlyfirst nokeep_flagged nomail_check_recent
|
||||
\ nomail_check_stats nomailcap_sanitize nomaildir_check_cur
|
||||
\ nomaildir_header_cache_verify nomaildir_trash nomark_old nomarkers
|
||||
\ nomenu_move_off nomenu_scroll nomessage_cache_clean nometa_key nometoo
|
||||
\ nomh_purge nomime_forward_decode nomime_type_query_first nonarrow_tree
|
||||
\ nopager_stop nopgp_auto_decode nopgp_auto_traditional nopgp_autoencrypt
|
||||
\ nopgp_autoinline nopgp_autosign nopgp_check_exit nopgp_create_traditional
|
||||
\ nopgp_ignore_subkeys nopgp_long_ids nopgp_replyencrypt nopgp_replyinline nopgp_replysign
|
||||
\ nopgp_replysignencrypted nopgp_retainable_sigs nopgp_show_unusable nopgp_strict_enc
|
||||
\ nopgp_use_gpg_agent nopipe_decode nopipe_split nopop_auth_try_all nopop_last
|
||||
\ nopostpone_encrypt nopostpone_encrypt_as noprint_decode noprint_split noprompt_after
|
||||
\ noread_only noreflow_space_quotes noreflow_text noreflow_wrap noreply_self noresolve
|
||||
\ noresume_draft_files noresume_edited_draft_files noreverse_alias noreverse_name
|
||||
\ noreverse_realname norfc2047_parameters nosave_address nosave_empty nosave_name noscore
|
||||
\ nosidebar_folder_indent nosidebar_new_mail_only nosidebar_next_new_wrap
|
||||
\ nosidebar_short_path nosidebar_sort nosidebar_visible nosig_dashes nosig_on_top
|
||||
\ nosmart_wrap nosmime_ask_cert_label nosmime_decrypt_use_default_key nosmime_is_default
|
||||
\ nosort_re nossl_force_tls nossl_use_sslv2 nossl_use_sslv3 nossl_use_tlsv1
|
||||
\ nossl_usesystemcerts nossl_verify_dates nossl_verify_host nostatus_on_top nostrict_mime
|
||||
\ nostrict_threads nosuspend notext_flowed nothorough_search nothread_received notilde
|
||||
\ nots_enabled nouncollapse_jump nouse_8bitmime nouse_domain nouse_envelope_from nouse_from
|
||||
\ nouse_idn nouse_ipv6 nouser_agent nowait_key noweed nowrap_search nowrite_bcc
|
||||
\ nopgp_ignore_subkeys nopgp_long_ids nopgp_replyencrypt nopgp_replyinline
|
||||
\ nopgp_replysign nopgp_replysignencrypted nopgp_retainable_sigs
|
||||
\ nopgp_self_encrypt nopgp_self_encrypt_as nopgp_show_unusable
|
||||
\ nopgp_strict_enc nopgp_use_gpg_agent nopipe_decode nopipe_split
|
||||
\ nopop_auth_try_all nopop_last nopostpone_encrypt nopostpone_encrypt_as
|
||||
\ noprint_decode noprint_split noprompt_after noread_only
|
||||
\ noreflow_space_quotes noreflow_text noreflow_wrap noreply_self noresolve
|
||||
\ noresume_draft_files noresume_edited_draft_files noreverse_alias
|
||||
\ noreverse_name noreverse_realname norfc2047_parameters nosave_address
|
||||
\ nosave_empty nosave_name noscore nosidebar_folder_indent
|
||||
\ nosidebar_new_mail_only nosidebar_next_new_wrap nosidebar_short_path
|
||||
\ nosidebar_sort nosidebar_visible nosig_dashes nosig_on_top nosmart_wrap
|
||||
\ nosmime_ask_cert_label nosmime_decrypt_use_default_key nosmime_is_default
|
||||
\ nosmime_self_encrypt nosmime_self_encrypt_as nosort_re nossl_force_tls
|
||||
\ nossl_use_sslv2 nossl_use_sslv3 nossl_use_tlsv1 nossl_usesystemcerts
|
||||
\ nossl_verify_dates nossl_verify_host nossl_verify_partial_chains
|
||||
\ nostatus_on_top nostrict_mime nostrict_threads nosuspend notext_flowed
|
||||
\ nothorough_search nothread_received notilde nots_enabled nouncollapse_jump
|
||||
\ nouse_8bitmime nouse_domain nouse_envelope_from nouse_from nouse_idn
|
||||
\ nouse_ipv6 nouncollapse_new nouser_agent nowait_key noweed nowrap_search
|
||||
\ nowrite_bcc
|
||||
\ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn keyword muttrcVarBool skipwhite contained
|
||||
\ invallow_8bit invallow_ansi invarrow_cursor invascii_chars invaskbcc invaskcc invattach_split
|
||||
\ invauto_tag invautoedit invbeep invbeep_new invbounce_delivered invbraille_friendly
|
||||
\ invcheck_mbox_size invcheck_new invcollapse_unread invconfirmappend invconfirmcreate
|
||||
\ invcrypt_autoencrypt invcrypt_autopgp invcrypt_autosign invcrypt_autosmime
|
||||
\ invcrypt_confirmhook invcrypt_opportunistic_encrypt invcrypt_replyencrypt
|
||||
\ invcrypt_replysign invcrypt_replysignencrypted invcrypt_timestamp invcrypt_use_gpgme
|
||||
\ invcrypt_use_pka invdelete_untag invdigest_collapse invduplicate_threads invedit_hdrs
|
||||
\ invedit_headers invencode_from invenvelope_from invfast_reply invfcc_clear invfollowup_to
|
||||
\ invforce_name invforw_decode invforw_decrypt invforw_quote invforward_decode invforward_decrypt
|
||||
\ invforward_quote invhdrs invheader invhelp invhidden_host invhide_limited invhide_missing
|
||||
\ invhide_thread_subject invhide_top_limited invhide_top_missing invhonor_disposition
|
||||
\ invidn_decode invidn_encode invignore_linear_white_space invignore_list_reply_to
|
||||
\ invimap_check_subscribed invimap_list_subscribed invimap_passive invimap_peek
|
||||
\ invimap_servernoise invimplicit_autoview invinclude_onlyfirst invkeep_flagged
|
||||
\ invmail_check_recent invmail_check_stats invmailcap_sanitize invmaildir_check_cur
|
||||
\ invmaildir_header_cache_verify invmaildir_trash invmark_old invmarkers invmenu_move_off
|
||||
\ invmenu_scroll invmessage_cache_clean invmeta_key invmetoo invmh_purge invmime_forward_decode
|
||||
\ invnarrow_tree invpager_stop invpgp_auto_decode invpgp_auto_traditional invpgp_autoencrypt
|
||||
\ invpgp_autoinline invpgp_autosign invpgp_check_exit invpgp_create_traditional
|
||||
\ invpgp_ignore_subkeys invpgp_long_ids invpgp_replyencrypt invpgp_replyinline invpgp_replysign
|
||||
\ invpgp_replysignencrypted invpgp_retainable_sigs invpgp_show_unusable invpgp_strict_enc
|
||||
\ invpgp_use_gpg_agent invpipe_decode invpipe_split invpop_auth_try_all invpop_last
|
||||
\ invpostpone_encrypt invpostpone_encrypt_as invprint_decode invprint_split invprompt_after
|
||||
\ invread_only invreflow_space_quotes invreflow_text invreflow_wrap invreply_self invresolve
|
||||
\ invresume_draft_files invresume_edited_draft_files invreverse_alias invreverse_name
|
||||
\ invreverse_realname invrfc2047_parameters invsave_address invsave_empty invsave_name invscore
|
||||
\ invsidebar_folder_indent invsidebar_new_mail_only invsidebar_next_new_wrap
|
||||
\ invsidebar_short_path invsidebar_sort invsidebar_visible invsig_dashes invsig_on_top
|
||||
\ invsmart_wrap invsmime_ask_cert_label invsmime_decrypt_use_default_key invsmime_is_default
|
||||
\ invsort_re invssl_force_tls invssl_use_sslv2 invssl_use_sslv3 invssl_use_tlsv1
|
||||
\ invssl_usesystemcerts invssl_verify_dates invssl_verify_host invstatus_on_top invstrict_mime
|
||||
\ invstrict_threads invsuspend invtext_flowed invthorough_search invthread_received invtilde
|
||||
\ invts_enabled invuncollapse_jump invuse_8bitmime invuse_domain invuse_envelope_from invuse_from
|
||||
\ invuse_idn invuse_ipv6 invuser_agent invwait_key invweed invwrap_search invwrite_bcc
|
||||
\ invallow_8bit invallow_ansi invarrow_cursor invascii_chars invaskbcc
|
||||
\ invaskcc invattach_split invauto_tag invautoedit invbeep invbeep_new
|
||||
\ invbounce_delivered invbraille_friendly invbrowser_abbreviate_mailboxes
|
||||
\ invchange_folder_next invcheck_mbox_size invcheck_new invcollapse_unread
|
||||
\ invconfirmappend invconfirmcreate invcrypt_autoencrypt invcrypt_autopgp
|
||||
\ invcrypt_autosign invcrypt_autosmime invcrypt_confirmhook
|
||||
\ invcrypt_opportunistic_encrypt invcrypt_replyencrypt invcrypt_replysign
|
||||
\ invcrypt_replysignencrypted invcrypt_timestamp invcrypt_use_gpgme
|
||||
\ invcrypt_use_pka invdelete_untag invdigest_collapse invduplicate_threads
|
||||
\ invedit_hdrs invedit_headers invencode_from invenvelope_from invfast_reply
|
||||
\ invfcc_clear invflag_safe invfollowup_to invforce_name invforw_decode
|
||||
\ invforw_decrypt invforw_quote invforward_decode invforward_decrypt
|
||||
\ invforward_quote invhdrs invheader invheader_color_partial invhelp
|
||||
\ invhidden_host invhide_limited invhide_missing invhide_thread_subject
|
||||
\ invhide_top_limited invhide_top_missing invhistory_remove_dups
|
||||
\ invhonor_disposition invidn_decode invidn_encode
|
||||
\ invignore_linear_white_space invignore_list_reply_to
|
||||
\ invimap_check_subscribed invimap_list_subscribed invimap_passive
|
||||
\ invimap_peek invimap_servernoise invimplicit_autoview invinclude_onlyfirst
|
||||
\ invkeep_flagged invmail_check_recent invmail_check_stats invmailcap_sanitize
|
||||
\ invmaildir_check_cur invmaildir_header_cache_verify invmaildir_trash
|
||||
\ invmark_old invmarkers invmenu_move_off invmenu_scroll
|
||||
\ invmessage_cache_clean invmeta_key invmetoo invmh_purge
|
||||
\ invmime_forward_decode invmime_type_query_first invnarrow_tree invpager_stop
|
||||
\ invpgp_auto_decode invpgp_auto_traditional invpgp_autoencrypt
|
||||
\ invpgp_autoinline invpgp_autosign invpgp_check_exit
|
||||
\ invpgp_create_traditional invpgp_ignore_subkeys invpgp_long_ids
|
||||
\ invpgp_replyencrypt invpgp_replyinline invpgp_replysign
|
||||
\ invpgp_replysignencrypted invpgp_retainable_sigs invpgp_self_encrypt
|
||||
\ invpgp_self_encrypt_as invpgp_show_unusable invpgp_strict_enc
|
||||
\ invpgp_use_gpg_agent invpipe_decode invpipe_split invpop_auth_try_all
|
||||
\ invpop_last invpostpone_encrypt invpostpone_encrypt_as invprint_decode
|
||||
\ invprint_split invprompt_after invread_only invreflow_space_quotes
|
||||
\ invreflow_text invreflow_wrap invreply_self invresolve invresume_draft_files
|
||||
\ invresume_edited_draft_files invreverse_alias invreverse_name
|
||||
\ invreverse_realname invrfc2047_parameters invsave_address invsave_empty
|
||||
\ invsave_name invscore invsidebar_folder_indent invsidebar_new_mail_only
|
||||
\ invsidebar_next_new_wrap invsidebar_short_path invsidebar_sort
|
||||
\ invsidebar_visible invsig_dashes invsig_on_top invsmart_wrap
|
||||
\ invsmime_ask_cert_label invsmime_decrypt_use_default_key invsmime_is_default
|
||||
\ invsmime_self_encrypt invsmime_self_encrypt_as invsort_re invssl_force_tls
|
||||
\ invssl_use_sslv2 invssl_use_sslv3 invssl_use_tlsv1 invssl_usesystemcerts
|
||||
\ invssl_verify_dates invssl_verify_host invssl_verify_partial_chains
|
||||
\ invstatus_on_top invstrict_mime invstrict_threads invsuspend invtext_flowed
|
||||
\ invthorough_search invthread_received invtilde invts_enabled
|
||||
\ invuncollapse_jump invuse_8bitmime invuse_domain invuse_envelope_from
|
||||
\ invuse_from invuse_idn invuse_ipv6 invuncollapse_new invuser_agent
|
||||
\ invwait_key invweed invwrap_search invwrite_bcc
|
||||
\ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn keyword muttrcVarQuad skipwhite contained
|
||||
\ abort_nosubject abort_unmodified bounce copy crypt_verify_sig delete
|
||||
\ fcc_attach forward_edit honor_followup_to include mime_forward
|
||||
\ abort_nosubject abort_unmodified abort_noattach bounce copy crypt_verify_sig
|
||||
\ delete fcc_attach forward_edit honor_followup_to include mime_forward
|
||||
\ mime_forward_rest mime_fwd move pgp_mime_auto pgp_verify_sig pop_delete
|
||||
\ pop_reconnect postpone print quit recall reply_to ssl_starttls
|
||||
\ nextgroup=muttrcSetQuadAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn keyword muttrcVarQuad skipwhite contained
|
||||
\ noabort_nosubject noabort_unmodified nobounce nocopy nocrypt_verify_sig nodelete
|
||||
\ nofcc_attach noforward_edit nohonor_followup_to noinclude nomime_forward
|
||||
\ nomime_forward_rest nomime_fwd nomove nopgp_mime_auto nopgp_verify_sig nopop_delete
|
||||
\ nopop_reconnect nopostpone noprint noquit norecall noreply_to nossl_starttls
|
||||
\ noabort_nosubject noabort_unmodified noabort_noattach nobounce nocopy
|
||||
\ nocrypt_verify_sig nodelete nofcc_attach noforward_edit nohonor_followup_to
|
||||
\ noinclude nomime_forward nomime_forward_rest nomime_fwd nomove
|
||||
\ nopgp_mime_auto nopgp_verify_sig nopop_delete nopop_reconnect nopostpone
|
||||
\ noprint noquit norecall noreply_to nossl_starttls
|
||||
\ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn keyword muttrcVarQuad skipwhite contained
|
||||
\ invabort_nosubject invabort_unmodified invbounce invcopy invcrypt_verify_sig invdelete
|
||||
\ invfcc_attach invforward_edit invhonor_followup_to invinclude invmime_forward
|
||||
\ invmime_forward_rest invmime_fwd invmove invpgp_mime_auto invpgp_verify_sig invpop_delete
|
||||
\ invpop_reconnect invpostpone invprint invquit invrecall invreply_to invssl_starttls
|
||||
\ invabort_nosubject invabort_unmodified invabort_noattach invbounce invcopy
|
||||
\ invcrypt_verify_sig invdelete invfcc_attach invforward_edit
|
||||
\ invhonor_followup_to invinclude invmime_forward invmime_forward_rest
|
||||
\ invmime_fwd invmove invpgp_mime_auto invpgp_verify_sig invpop_delete
|
||||
\ invpop_reconnect invpostpone invprint invquit invrecall invreply_to
|
||||
\ invssl_starttls
|
||||
\ nextgroup=muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn keyword muttrcVarNum skipwhite contained
|
||||
\ connect_timeout history imap_keepalive imap_pipeline_depth mail_check
|
||||
\ mail_check_stats_interval menu_context net_inc pager_context pager_index_lines
|
||||
\ pgp_timeout pop_checkinterval read_inc save_history score_threshold_delete
|
||||
\ score_threshold_flag score_threshold_read search_context sendmail_wait
|
||||
\ sidebar_width sleep_time smime_timeout ssl_min_dh_prime_bits time_inc timeout
|
||||
\ wrap wrap_headers wrapmargin write_inc
|
||||
\ connect_timeout error_history history imap_keepalive imap_pipeline_depth
|
||||
\ imap_poll_timeout mail_check mail_check_stats_interval menu_context net_inc
|
||||
\ pager_context pager_index_lines pgp_timeout pop_checkinterval read_inc
|
||||
\ save_history score_threshold_delete score_threshold_flag
|
||||
\ score_threshold_read search_context sendmail_wait sidebar_width sleep_time
|
||||
\ smime_timeout ssl_min_dh_prime_bits time_inc timeout wrap wrap_headers
|
||||
\ wrapmargin write_inc
|
||||
\ nextgroup=muttrcSetNumAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
syn match muttrcFormatErrors contained /%./
|
||||
@@ -284,7 +317,7 @@ syn match muttrcAliasFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\
|
||||
syn match muttrcQueryFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[acent%]/
|
||||
syn match muttrcQueryFormatConditionals contained /%?[e]?/ nextgroup=muttrcFormatConditionals2
|
||||
" The following info was pulled from mutt_attach_fmt in recvattach.c
|
||||
syn match muttrcAttachFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CcDdefImMnQstTuX%]/
|
||||
syn match muttrcAttachFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[CcDdeFfImMnQstTuX%]/
|
||||
syn match muttrcAttachFormatEscapes contained /%[>|*]./
|
||||
syn match muttrcAttachFormatConditionals contained /%?[CcdDefInmMQstTuX]?/ nextgroup=muttrcFormatConditionals2
|
||||
syn match muttrcFormatConditionals2 contained /[^?]*?/
|
||||
@@ -308,7 +341,7 @@ syn match muttrcPGPFormatConditionals contained /%?[nkualfct]?/
|
||||
syn match muttrcPGPCmdFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[pfsar%]/
|
||||
syn match muttrcPGPCmdFormatConditionals contained /%?[pfsar]?/ nextgroup=muttrcFormatConditionals2
|
||||
" The following info was pulled from status_format_str in status.c
|
||||
syn match muttrcStatusFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[bdfFhlLmMnopPrsStuvV%]/
|
||||
syn match muttrcStatusFormatEscapes contained /%\%(\%(-\?[0-9]\+\)\?\%(\.[0-9]\+\)\?\)\?[:_]\?[bdfFhlLmMnopPRrsStuvV%]/
|
||||
syn match muttrcStatusFormatEscapes contained /%[>|*]./
|
||||
syn match muttrcStatusFormatConditionals contained /%?[bdFlLmMnoptuV]?/ nextgroup=muttrcFormatConditionals2
|
||||
" This matches the documentation, but directly contradicts the code
|
||||
@@ -357,27 +390,27 @@ syn match muttrcVPrefix contained /[?&]/ nextgroup=muttrcVarBool,muttrcVarQuad,
|
||||
|
||||
syn match muttrcVarStr contained skipwhite 'my_[a-zA-Z0-9_]\+' nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
syn keyword muttrcVarStr contained skipwhite
|
||||
\ alias_file assumed_charset attach_charset attach_sep certificate_file charset
|
||||
\ config_charset content_type default_hook display_filter dotlock_program
|
||||
\ dsn_notify dsn_return editor entropy_file envelope_from_address escape folder
|
||||
\ forw_format forward_format from gecos_mask hdr_format header_cache
|
||||
\ header_cache_compress header_cache_pagesize history_file hostname
|
||||
\ imap_authenticators imap_delim_chars imap_headers imap_idle imap_login
|
||||
\ imap_pass imap_user indent_str indent_string ispell locale mailcap_path mask
|
||||
\ mbox mbox_type message_cachedir mh_seq_flagged mh_seq_replied mh_seq_unseen
|
||||
\ mixmaster msg_format pager pgp_decryption_okay pgp_good_sign
|
||||
\ pgp_mime_signature_description pgp_mime_signature_filename pgp_sign_as
|
||||
\ pgp_sort_keys pipe_sep pop_authenticators pop_host pop_pass pop_user
|
||||
\ post_indent_str post_indent_string postpone_encrypt_as postponed preconnect
|
||||
\ print_cmd print_command query_command quote_regexp realname record
|
||||
\ reply_regexp send_charset sendmail shell sidebar_delim sidebar_delim_chars
|
||||
\ sidebar_divider_char sidebar_format sidebar_indent_string sidebar_sort_method
|
||||
\ signature simple_search smileys smime_ca_location smime_certificates
|
||||
\ smime_default_key smime_encrypt_with smime_keys smime_sign_as
|
||||
\ smime_sign_digest_alg smtp_authenticators smtp_pass smtp_url sort sort_alias
|
||||
\ sort_aux sort_browser spam_separator spoolfile ssl_ca_certificates_file
|
||||
\ ssl_ciphers ssl_client_cert status_chars tmpdir to_chars trash ts_icon_format
|
||||
\ ts_status_format tunnel visual
|
||||
\ abort_noattach_regexp alias_file assumed_charset attach_charset attach_sep
|
||||
\ attribution_locale certificate_file charset config_charset content_type
|
||||
\ default_hook display_filter dotlock_program dsn_notify dsn_return editor
|
||||
\ entropy_file envelope_from_address escape folder forw_format
|
||||
\ forward_attribution_intro forward_attribution_trailer forward_format from gecos_mask
|
||||
\ hdr_format header_cache header_cache_compress header_cache_pagesize history_file
|
||||
\ hostname imap_authenticators imap_delim_chars imap_headers imap_idle imap_login
|
||||
\ imap_pass imap_user indent_str indent_string ispell locale mailcap_path
|
||||
\ mark_macro_prefix mask mbox mbox_type message_cachedir mh_seq_flagged mh_seq_replied
|
||||
\ mh_seq_unseen mime_type_query_command mixmaster msg_format new_mail_command pager
|
||||
\ pgp_default_key pgp_decryption_okay pgp_good_sign pgp_mime_signature_description
|
||||
\ pgp_mime_signature_filename pgp_sign_as pgp_sort_keys pipe_sep pop_authenticators
|
||||
\ pop_host pop_pass pop_user post_indent_str post_indent_string postpone_encrypt_as
|
||||
\ postponed preconnect print_cmd print_command query_command quote_regexp realname
|
||||
\ record reply_regexp send_charset sendmail shell sidebar_delim sidebar_delim_chars
|
||||
\ sidebar_divider_char sidebar_format sidebar_indent_string sidebar_sort_method
|
||||
\ signature simple_search smileys smime_ca_location smime_certificates
|
||||
\ smime_default_key smime_encrypt_with smime_keys smime_sign_as smime_sign_digest_alg
|
||||
\ smtp_authenticators smtp_pass smtp_url sort sort_alias sort_aux sort_browser
|
||||
\ spam_separator spoolfile ssl_ca_certificates_file ssl_ciphers ssl_client_cert
|
||||
\ status_chars tmpdir to_chars trash ts_icon_format ts_status_format tunnel visual
|
||||
\ nextgroup=muttrcSetStrAssignment,muttrcVPrefix,muttrcVarBool,muttrcVarQuad,muttrcVarNum,muttrcVarStr
|
||||
|
||||
" Present in 1.4.2.1 (pgp_create_traditional was a bool then)
|
||||
@@ -396,6 +429,7 @@ syn keyword muttrcCommand skipwhite
|
||||
\ mailto_allow mime_lookup my_hdr pgp-hook push score sidebar_whitelist source
|
||||
\ unalternative_order unalternative_order unauto_view ungroup unhdr_order
|
||||
\ unignore unmailboxes unmailto_allow unmime_lookup unmono unmy_hdr unscore
|
||||
\ unsidebar_whitelist
|
||||
syn keyword muttrcCommand skipwhite charset-hook nextgroup=muttrcRXString
|
||||
syn keyword muttrcCommand skipwhite unhook nextgroup=muttrcHooks
|
||||
|
||||
@@ -430,7 +464,7 @@ syn match muttrcVariableInner contained "\$[a-zA-Z_-]\+"
|
||||
syn match muttrcEscapedVariable contained "\\\$[a-zA-Z_-]\+"
|
||||
|
||||
syn match muttrcBadAction contained "[^<>]\+" contains=muttrcEmail
|
||||
syn match muttrcFunction contained "\<\%(attach\|bounce\|copy\|delete\|display\|flag\|forward\|parent\|pipe\|postpone\|print\|purge\|recall\|resend\|save\|send\|tag\|undelete\)-message\>"
|
||||
syn match muttrcFunction contained "\<\%(attach\|bounce\|copy\|delete\|display\|flag\|forward\|mark\|parent\|pipe\|postpone\|print\|purge\|recall\|resend\|root\|save\|send\|tag\|undelete\)-message\>"
|
||||
syn match muttrcFunction contained "\<\%(delete\|next\|previous\|read\|tag\|break\|undelete\)-thread\>"
|
||||
syn match muttrcFunction contained "\<link-threads\>"
|
||||
syn match muttrcFunction contained "\<\%(backward\|capitalize\|downcase\|forward\|kill\|upcase\)-word\>"
|
||||
@@ -442,10 +476,12 @@ syn match muttrcFunction contained "\<current-\%(bottom\|middle\|top\)\>"
|
||||
syn match muttrcFunction contained "\<decode-\%(copy\|save\)\>"
|
||||
syn match muttrcFunction contained "\<delete-\%(char\|pattern\|subthread\)\>"
|
||||
syn match muttrcFunction contained "\<display-\%(address\|toggle-weed\)\>"
|
||||
syn match muttrcFunction contained "\<edit\%(-\%(bcc\|cc\|description\|encoding\|fcc\|file\|from\|headers\|mime\|reply-to\|subject\|to\|type\)\)\?\>"
|
||||
syn match muttrcFunction contained "\<echo\>"
|
||||
syn match muttrcFunction contained "\<edit\%(-\%(bcc\|cc\|description\|encoding\|fcc\|file\|from\|headers\|label\|mime\|reply-to\|subject\|to\|type\)\)\?\>"
|
||||
syn match muttrcFunction contained "\<enter-\%(command\|mask\)\>"
|
||||
syn match muttrcFunction contained "\<error-history\>"
|
||||
syn match muttrcFunction contained "\<half-\%(up\|down\)\>"
|
||||
syn match muttrcFunction contained "\<history-\%(up\|down\)\>"
|
||||
syn match muttrcFunction contained "\<history-\%(up\|down\|search\)\>"
|
||||
syn match muttrcFunction contained "\<kill-\%(eol\|eow\|line\)\>"
|
||||
syn match muttrcFunction contained "\<next-\%(line\|new\%(-then-unread\)\?\|page\|subthread\|undeleted\|unread\|unread-mailbox\)\>"
|
||||
syn match muttrcFunction contained "\<previous-\%(line\|new\%(-then-unread\)\?\|page\|subthread\|undeleted\|unread\)\>"
|
||||
@@ -458,6 +494,9 @@ syn match muttrcFunction contained "\<sidebar-\%(next\|next-new\|open\|page-down
|
||||
syn match muttrcFunction contained "\<toggle-\%(mailboxes\|new\|quoted\|subscribed\|unlink\|write\)\>"
|
||||
syn match muttrcFunction contained "\<undelete-\%(pattern\|subthread\)\>"
|
||||
syn match muttrcFunction contained "\<collapse-\%(parts\|thread\|all\)\>"
|
||||
syn match muttrcFunction contained "\<rename-attachment\>"
|
||||
syn match muttrcFunction contained "\<subjectrx\>"
|
||||
syn match muttrcFunction contained "\<\%(un\)\?setenv\>"
|
||||
syn match muttrcFunction contained "\<view-\%(attach\|attachments\|file\|mailcap\|name\|text\)\>"
|
||||
syn match muttrcFunction contained "\<\%(backspace\|backward-char\|bol\|bottom\|bottom-page\|buffy-cycle\|clear-flag\|complete\%(-query\)\?\|copy-file\|create-alias\|detach-file\|eol\|exit\|extract-keys\|\%(imap-\)\?fetch-mail\|forget-passphrase\|forward-char\|group-reply\|help\|ispell\|jump\|limit\|list-reply\|mail\|mail-key\|mark-as-new\|middle-page\|new-mime\|noop\|pgp-menu\|query\|query-append\|quit\|quote-char\|read-subthread\|redraw-screen\|refresh\|rename-file\|reply\|select-new\|set-flag\|shell-escape\|skip-quoted\|sort\|subscribe\|sync-mailbox\|top\|top-page\|transpose-chars\|unsubscribe\|untag-pattern\|verify-key\|what-key\|write-fcc\)\>"
|
||||
syn keyword muttrcFunction contained imap-logout-all
|
||||
@@ -559,6 +598,7 @@ syn match muttrcOptPattern contained skipwhite /[.]/ nextgroup=muttrcString,mutt
|
||||
syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+"+ skip=+\\"+ end=+"+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
|
||||
syn region muttrcPattern contained matchgroup=Type keepend skipwhite start=+'+ skip=+\\'+ end=+'+ contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
|
||||
syn region muttrcPattern contained keepend skipwhite start=+[~](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat
|
||||
syn region muttrcPattern contained keepend skipwhite start=+[~][<>](+ end=+)+ skip=+\\)+ contains=muttrcSimplePat
|
||||
syn match muttrcPattern contained skipwhite /[~][A-Za-z]/ contains=muttrcSimplePat
|
||||
syn match muttrcPattern contained skipwhite /[.]/
|
||||
syn region muttrcPatternInner contained keepend start=+"[~=%!(^]+ms=s+1 skip=+\\"+ end=+"+me=e-1 contains=muttrcSimplePat,muttrcUnHighlightSpace,muttrcSimplePatMetas
|
||||
|
||||
+44
-45
@@ -1,5 +1,5 @@
|
||||
" Language: tmux(1) configuration file
|
||||
" Version: 2.3 (git-14dc2ac)
|
||||
" Version: 2.7 (git-e4e060f2)
|
||||
" URL: https://github.com/ericpruitt/tmux.vim/
|
||||
" Maintainer: Eric Pruitt <eric.pruitt@gmail.com>
|
||||
" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause)
|
||||
@@ -14,7 +14,7 @@ let s:original_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let b:current_syntax = "tmux"
|
||||
setlocal iskeyword+=-
|
||||
syntax iskeyword @,48-57,_,192-255,-
|
||||
syntax case match
|
||||
|
||||
syn keyword tmuxAction none any current other
|
||||
@@ -24,7 +24,7 @@ syn keyword tmuxTodo FIXME NOTE TODO XXX contained
|
||||
|
||||
syn match tmuxColour /\<colour[0-9]\+/ display
|
||||
syn match tmuxKey /\(C-\|M-\|\^\)\+\S\+/ display
|
||||
syn match tmuxNumber /\d\+/ display
|
||||
syn match tmuxNumber /\<\d\+\>/ display
|
||||
syn match tmuxFlags /\s-\a\+/ display
|
||||
syn match tmuxVariable /\w\+=/ display
|
||||
syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
|
||||
@@ -62,30 +62,30 @@ for s:i in range(0, 255)
|
||||
endfor
|
||||
|
||||
syn keyword tmuxOptions
|
||||
\ buffer-limit command-alias default-terminal escape-time exit-unattached
|
||||
\ focus-events history-file message-limit set-clipboard terminal-overrides
|
||||
\ assume-paste-time base-index bell-action bell-on-alert default-command
|
||||
\ buffer-limit command-alias default-terminal escape-time exit-empty
|
||||
\ activity-action assume-paste-time base-index bell-action default-command
|
||||
\ default-shell destroy-unattached detach-on-destroy
|
||||
\ display-panes-active-colour display-panes-colour display-panes-time
|
||||
\ display-time history-limit key-table lock-after-time lock-command
|
||||
\ message-attr message-bg message-command-attr message-command-bg
|
||||
\ message-command-fg message-command-style message-fg message-style mouse
|
||||
\ prefix prefix2 renumber-windows repeat-time set-titles set-titles-string
|
||||
\ display-time exit-unattached focus-events history-file history-limit
|
||||
\ key-table lock-after-time lock-command message-attr message-bg
|
||||
\ message-command-attr message-command-bg message-command-fg
|
||||
\ message-command-style message-fg message-limit message-style mouse
|
||||
\ aggressive-resize allow-rename alternate-screen automatic-rename
|
||||
\ automatic-rename-format clock-mode-colour clock-mode-style force-height
|
||||
\ force-width main-pane-height main-pane-width mode-attr mode-bg mode-fg
|
||||
\ mode-keys mode-style monitor-activity monitor-bell monitor-silence
|
||||
\ other-pane-height other-pane-width pane-active-border-bg
|
||||
\ pane-active-border-fg pane-active-border-style pane-base-index
|
||||
\ pane-border-bg pane-border-fg pane-border-format pane-border-status
|
||||
\ pane-border-style prefix prefix2 remain-on-exit renumber-windows
|
||||
\ repeat-time set-clipboard set-titles set-titles-string silence-action
|
||||
\ status status-attr status-bg status-fg status-interval status-justify
|
||||
\ status-keys status-left status-left-attr status-left-bg status-left-fg
|
||||
\ status-left-length status-left-style status-position status-right
|
||||
\ status-right-attr status-right-bg status-right-fg status-right-length
|
||||
\ status-right-style status-style update-environment visual-activity
|
||||
\ visual-bell visual-silence word-separators aggressive-resize allow-rename
|
||||
\ alternate-screen automatic-rename automatic-rename-format
|
||||
\ clock-mode-colour clock-mode-style force-height force-width
|
||||
\ main-pane-height main-pane-width mode-attr mode-bg mode-fg mode-keys
|
||||
\ mode-style monitor-activity monitor-silence other-pane-height
|
||||
\ other-pane-width pane-active-border-bg pane-active-border-fg
|
||||
\ pane-active-border-style pane-base-index pane-border-bg pane-border-fg
|
||||
\ pane-border-format pane-border-status pane-border-style remain-on-exit
|
||||
\ synchronize-panes window-active-style window-style
|
||||
\ window-status-activity-attr window-status-activity-bg
|
||||
\ status-right-style status-style synchronize-panes terminal-overrides
|
||||
\ update-environment user-keys visual-activity visual-bell visual-silence
|
||||
\ window-active-style window-status-activity-attr window-status-activity-bg
|
||||
\ window-status-activity-fg window-status-activity-style window-status-attr
|
||||
\ window-status-bell-attr window-status-bell-bg window-status-bell-fg
|
||||
\ window-status-bell-style window-status-bg window-status-current-attr
|
||||
@@ -93,32 +93,31 @@ syn keyword tmuxOptions
|
||||
\ window-status-current-format window-status-current-style window-status-fg
|
||||
\ window-status-format window-status-last-attr window-status-last-bg
|
||||
\ window-status-last-fg window-status-last-style window-status-separator
|
||||
\ window-status-style wrap-search xterm-keys
|
||||
\ window-status-style window-style word-separators wrap-search xterm-keys
|
||||
|
||||
syn keyword tmuxCommands
|
||||
\ attach-session attach bind-key bind break-pane breakp capture-pane
|
||||
\ capturep clear-history clearhist choose-buffer choose-client choose-tree
|
||||
\ choose-session choose-window command-prompt confirm-before confirm
|
||||
\ copy-mode clock-mode detach-client detach suspend-client suspendc
|
||||
\ display-message display display-panes displayp find-window findw if-shell
|
||||
\ if join-pane joinp move-pane movep kill-pane killp kill-server
|
||||
\ start-server start kill-session kill-window killw unlink-window unlinkw
|
||||
\ list-buffers lsb list-clients lsc list-keys lsk list-commands lscm
|
||||
\ list-panes lsp list-sessions ls list-windows lsw load-buffer loadb
|
||||
\ lock-server lock lock-session locks lock-client lockc move-window movew
|
||||
\ link-window linkw new-session new has-session has new-window neww
|
||||
\ paste-buffer pasteb pipe-pane pipep refresh-client refresh rename-session
|
||||
\ rename rename-window renamew resize-pane resizep respawn-pane respawnp
|
||||
\ respawn-window respawnw rotate-window rotatew run-shell run save-buffer
|
||||
\ saveb show-buffer showb select-layout selectl next-layout nextl
|
||||
\ previous-layout prevl select-pane selectp last-pane lastp select-window
|
||||
\ selectw next-window next previous-window prev last-window last send-keys
|
||||
\ send send-prefix set-buffer setb delete-buffer deleteb set-environment
|
||||
\ setenv set-hook show-hooks set-option set set-window-option setw
|
||||
\ show-environment showenv show-messages showmsgs show-options show
|
||||
\ show-window-options showw source-file source split-window splitw swap-pane
|
||||
\ swapp swap-window swapw switch-client switchc unbind-key unbind wait-for
|
||||
\ wait
|
||||
\ attach attach-session bind bind-key break-pane breakp capture-pane
|
||||
\ capturep choose-buffer choose-client choose-tree clear-history clearhist
|
||||
\ clock-mode command-prompt confirm confirm-before copy-mode detach
|
||||
\ detach-client display display-message display-panes displayp find-window
|
||||
\ findw if if-shell join-pane joinp kill-pane kill-server kill-session
|
||||
\ kill-window killp has-session has killw link-window linkw list-buffers
|
||||
\ list-clients list-commands list-keys list-panes list-sessions list-windows
|
||||
\ load-buffer loadb lock lock-client lock-server lock-session last-pane
|
||||
\ lastp lockc locks last-window last ls lsb delete-buffer deleteb lsc lscm
|
||||
\ lsk lsp lsw move-pane move-window movep movew new new-session new-window
|
||||
\ neww next next-layout next-window nextl paste-buffer pasteb pipe-pane
|
||||
\ pipep prev previous-layout previous-window prevl refresh refresh-client
|
||||
\ rename rename-session rename-window renamew resize-pane resizep
|
||||
\ respawn-pane respawn-window respawnp respawnw rotate-window rotatew run
|
||||
\ run-shell save-buffer saveb select-layout select-pane select-window
|
||||
\ selectl selectp selectw send send-keys send-prefix set set-buffer
|
||||
\ set-environment set-hook set-option set-window-option setb setenv setw
|
||||
\ show show-buffer show-environment show-hooks show-messages show-options
|
||||
\ show-window-options showb showenv showmsgs showw source source-file
|
||||
\ split-window splitw start start-server suspend-client suspendc swap-pane
|
||||
\ swap-window swapp swapw switch-client switchc unbind unbind-key
|
||||
\ unlink-window unlinkw wait wait-for
|
||||
|
||||
let &cpo = s:original_cpo
|
||||
unlet! s:original_cpo s:bg s:i
|
||||
|
||||
+1
-1
@@ -8712,7 +8712,7 @@ ins_esc(
|
||||
* When recording or for CTRL-O, need to display the new mode.
|
||||
* Otherwise remove the mode message.
|
||||
*/
|
||||
if (Recording || restart_edit != NUL)
|
||||
if (reg_recording != 0 || restart_edit != NUL)
|
||||
showmode();
|
||||
else if (p_smd)
|
||||
MSG("");
|
||||
|
||||
+38
-1
@@ -306,6 +306,8 @@ static void f_pyxeval(typval_T *argvars, typval_T *rettv);
|
||||
#endif
|
||||
static void f_range(typval_T *argvars, typval_T *rettv);
|
||||
static void f_readfile(typval_T *argvars, typval_T *rettv);
|
||||
static void f_reg_executing(typval_T *argvars, typval_T *rettv);
|
||||
static void f_reg_recording(typval_T *argvars, typval_T *rettv);
|
||||
static void f_reltime(typval_T *argvars, typval_T *rettv);
|
||||
#ifdef FEAT_FLOAT
|
||||
static void f_reltimefloat(typval_T *argvars, typval_T *rettv);
|
||||
@@ -754,6 +756,8 @@ static struct fst
|
||||
#endif
|
||||
{"range", 1, 3, f_range},
|
||||
{"readfile", 1, 3, f_readfile},
|
||||
{"reg_executing", 0, 0, f_reg_executing},
|
||||
{"reg_recording", 0, 0, f_reg_recording},
|
||||
{"reltime", 0, 2, f_reltime},
|
||||
#ifdef FEAT_FLOAT
|
||||
{"reltimefloat", 1, 1, f_reltimefloat},
|
||||
@@ -7402,7 +7406,12 @@ get_maparg(typval_T *argvars, typval_T *rettv, int exact)
|
||||
{
|
||||
/* Return a string. */
|
||||
if (rhs != NULL)
|
||||
rettv->vval.v_string = str2special_save(rhs, FALSE);
|
||||
{
|
||||
if (*rhs == NUL)
|
||||
rettv->vval.v_string = vim_strsave((char_u *)"<Nop>");
|
||||
else
|
||||
rettv->vval.v_string = str2special_save(rhs, FALSE);
|
||||
}
|
||||
|
||||
}
|
||||
else if (rettv_dict_alloc(rettv) != FAIL && rhs != NULL)
|
||||
@@ -8711,6 +8720,34 @@ f_readfile(typval_T *argvars, typval_T *rettv)
|
||||
fclose(fd);
|
||||
}
|
||||
|
||||
static void
|
||||
return_register(int regname, typval_T *rettv)
|
||||
{
|
||||
char_u buf[2] = {0, 0};
|
||||
|
||||
buf[0] = (char_u)regname;
|
||||
rettv->v_type = VAR_STRING;
|
||||
rettv->vval.v_string = vim_strsave(buf);
|
||||
}
|
||||
|
||||
/*
|
||||
* "reg_executing()" function
|
||||
*/
|
||||
static void
|
||||
f_reg_executing(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
{
|
||||
return_register(reg_executing, rettv);
|
||||
}
|
||||
|
||||
/*
|
||||
* "reg_recording()" function
|
||||
*/
|
||||
static void
|
||||
f_reg_recording(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
{
|
||||
return_register(reg_recording, rettv);
|
||||
}
|
||||
|
||||
#if defined(FEAT_RELTIME)
|
||||
static int list2proftime(typval_T *arg, proftime_T *tm);
|
||||
|
||||
|
||||
+26
-17
@@ -5161,7 +5161,7 @@ expand_shellcmd(
|
||||
{
|
||||
char_u *pat;
|
||||
int i;
|
||||
char_u *path;
|
||||
char_u *path = NULL;
|
||||
int mustfree = FALSE;
|
||||
garray_T ga;
|
||||
char_u *buf = alloc(MAXPATHL);
|
||||
@@ -5170,6 +5170,9 @@ expand_shellcmd(
|
||||
int flags = flagsarg;
|
||||
int ret;
|
||||
int did_curdir = FALSE;
|
||||
hashtab_T found_ht;
|
||||
hashitem_T *hi;
|
||||
hash_T hash;
|
||||
|
||||
if (buf == NULL)
|
||||
return FAIL;
|
||||
@@ -5183,15 +5186,14 @@ expand_shellcmd(
|
||||
|
||||
flags |= EW_FILE | EW_EXEC | EW_SHELLCMD;
|
||||
|
||||
/* For an absolute name we don't use $PATH. */
|
||||
if (mch_isFullName(pat))
|
||||
path = (char_u *)" ";
|
||||
else if ((pat[0] == '.' && (vim_ispathsep(pat[1])
|
||||
|| (pat[1] == '.' && vim_ispathsep(pat[2])))))
|
||||
if (pat[0] == '.' && (vim_ispathsep(pat[1])
|
||||
|| (pat[1] == '.' && vim_ispathsep(pat[2]))))
|
||||
path = (char_u *)".";
|
||||
else
|
||||
{
|
||||
path = vim_getenv((char_u *)"PATH", &mustfree);
|
||||
/* For an absolute name we don't use $PATH. */
|
||||
if (!mch_isFullName(pat))
|
||||
path = vim_getenv((char_u *)"PATH", &mustfree);
|
||||
if (path == NULL)
|
||||
path = (char_u *)"";
|
||||
}
|
||||
@@ -5202,6 +5204,7 @@ expand_shellcmd(
|
||||
* current directory, to find "subdir/cmd".
|
||||
*/
|
||||
ga_init2(&ga, (int)sizeof(char *), 10);
|
||||
hash_init(&found_ht);
|
||||
for (s = path; ; s = e)
|
||||
{
|
||||
if (*s == NUL)
|
||||
@@ -5214,9 +5217,6 @@ expand_shellcmd(
|
||||
else if (*s == '.')
|
||||
did_curdir = TRUE;
|
||||
|
||||
if (*s == ' ')
|
||||
++s; /* Skip space used for absolute path name. */
|
||||
|
||||
#if defined(MSWIN)
|
||||
e = vim_strchr(s, ';');
|
||||
#else
|
||||
@@ -5243,15 +5243,23 @@ expand_shellcmd(
|
||||
{
|
||||
for (i = 0; i < *num_file; ++i)
|
||||
{
|
||||
s = (*file)[i];
|
||||
if (STRLEN(s) > l)
|
||||
char_u *name = (*file)[i];
|
||||
|
||||
if (STRLEN(name) > l)
|
||||
{
|
||||
/* Remove the path again. */
|
||||
STRMOVE(s, s + l);
|
||||
((char_u **)ga.ga_data)[ga.ga_len++] = s;
|
||||
// Check if this name was already found.
|
||||
hash = hash_hash(name + l);
|
||||
hi = hash_lookup(&found_ht, name + l, hash);
|
||||
if (HASHITEM_EMPTY(hi))
|
||||
{
|
||||
// Remove the path that was prepended.
|
||||
STRMOVE(name, name + l);
|
||||
((char_u **)ga.ga_data)[ga.ga_len++] = name;
|
||||
hash_add_item(&found_ht, hi, name, hash);
|
||||
name = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
vim_free(s);
|
||||
vim_free(name);
|
||||
}
|
||||
vim_free(*file);
|
||||
}
|
||||
@@ -5266,6 +5274,7 @@ expand_shellcmd(
|
||||
vim_free(pat);
|
||||
if (mustfree)
|
||||
vim_free(path);
|
||||
hash_clear(&found_ht);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -714,8 +714,8 @@ readfile(
|
||||
&& st.st_gid != swap_st.st_gid
|
||||
# ifdef HAVE_FCHOWN
|
||||
&& fchown(curbuf->b_ml.ml_mfp->mf_fd, -1, st.st_gid)
|
||||
# endif
|
||||
== -1
|
||||
# endif
|
||||
)
|
||||
swap_mode &= 0600;
|
||||
}
|
||||
@@ -9312,7 +9312,7 @@ trigger_cursorhold(void)
|
||||
|
||||
if (!did_cursorhold
|
||||
&& has_cursorhold()
|
||||
&& !Recording
|
||||
&& reg_recording == 0
|
||||
&& typebuf.tb_len == 0
|
||||
#ifdef FEAT_INS_EXPAND
|
||||
&& !ins_compl_active()
|
||||
|
||||
+3
-3
@@ -1244,7 +1244,7 @@ gotchars(char_u *chars, int len)
|
||||
int todo = len;
|
||||
|
||||
/* remember how many chars were last recorded */
|
||||
if (Recording)
|
||||
if (reg_recording != 0)
|
||||
last_recorded_len += len;
|
||||
|
||||
buf[1] = NUL;
|
||||
@@ -1254,7 +1254,7 @@ gotchars(char_u *chars, int len)
|
||||
c = *s++;
|
||||
updatescript(c);
|
||||
|
||||
if (Recording)
|
||||
if (reg_recording != 0)
|
||||
{
|
||||
buf[0] = c;
|
||||
add_buff(&recordbuff, buf, 1L);
|
||||
@@ -2007,7 +2007,7 @@ vgetorpeek(int advance)
|
||||
init_typebuf();
|
||||
start_stuff();
|
||||
if (advance && typebuf.tb_maplen == 0)
|
||||
Exec_reg = FALSE;
|
||||
reg_executing = 0;
|
||||
do
|
||||
{
|
||||
/*
|
||||
|
||||
+2
-2
@@ -935,8 +935,8 @@ EXTERN long opcount INIT(= 0); /* count for pending operator */
|
||||
EXTERN int exmode_active INIT(= 0); /* zero, EXMODE_NORMAL or EXMODE_VIM */
|
||||
EXTERN int ex_no_reprint INIT(= FALSE); /* no need to print after z or p */
|
||||
|
||||
EXTERN int Recording INIT(= FALSE); /* TRUE when recording into a reg. */
|
||||
EXTERN int Exec_reg INIT(= FALSE); /* TRUE when executing a register */
|
||||
EXTERN int reg_recording INIT(= 0); /* register for recording or zero */
|
||||
EXTERN int reg_executing INIT(= 0); /* register being executed or zero */
|
||||
|
||||
EXTERN int no_mapping INIT(= FALSE); /* currently no mapping allowed */
|
||||
EXTERN int no_zero_mapping INIT(= 0); /* mapping zero not allowed */
|
||||
|
||||
+4
-4
@@ -1025,7 +1025,7 @@ wait_return(int redraw)
|
||||
int oldState;
|
||||
int tmpState;
|
||||
int had_got_int;
|
||||
int save_Recording;
|
||||
int save_reg_recording;
|
||||
FILE *save_scriptout;
|
||||
|
||||
if (redraw == TRUE)
|
||||
@@ -1103,16 +1103,16 @@ wait_return(int redraw)
|
||||
/* Temporarily disable Recording. If Recording is active, the
|
||||
* character will be recorded later, since it will be added to the
|
||||
* typebuf after the loop */
|
||||
save_Recording = Recording;
|
||||
save_reg_recording = reg_recording;
|
||||
save_scriptout = scriptout;
|
||||
Recording = FALSE;
|
||||
reg_recording = 0;
|
||||
scriptout = NULL;
|
||||
c = safe_vgetc();
|
||||
if (had_got_int && !global_busy)
|
||||
got_int = FALSE;
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
Recording = save_Recording;
|
||||
reg_recording = save_reg_recording;
|
||||
scriptout = save_scriptout;
|
||||
|
||||
#ifdef FEAT_CLIPBOARD
|
||||
|
||||
+3
-3
@@ -871,8 +871,8 @@ getcount:
|
||||
|| (nv_cmds[idx].cmd_flags & NV_NCH_ALW) == NV_NCH_ALW
|
||||
|| (ca.cmdchar == 'q'
|
||||
&& oap->op_type == OP_NOP
|
||||
&& !Recording
|
||||
&& !Exec_reg)
|
||||
&& reg_recording == 0
|
||||
&& reg_executing == 0)
|
||||
|| ((ca.cmdchar == 'a' || ca.cmdchar == 'i')
|
||||
&& (oap->op_type != OP_NOP || VIsual_active))))
|
||||
{
|
||||
@@ -9357,7 +9357,7 @@ nv_record(cmdarg_T *cap)
|
||||
#endif
|
||||
/* (stop) recording into a named register, unless executing a
|
||||
* register */
|
||||
if (!Exec_reg && do_record(cap->nchar) == FAIL)
|
||||
if (reg_executing == 0 && do_record(cap->nchar) == FAIL)
|
||||
clearopbeep(cap->oap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1091,14 +1091,14 @@ do_record(int c)
|
||||
yankreg_T *old_y_previous, *old_y_current;
|
||||
int retval;
|
||||
|
||||
if (Recording == FALSE) /* start recording */
|
||||
if (reg_recording == 0) /* start recording */
|
||||
{
|
||||
/* registers 0-9, a-z and " are allowed */
|
||||
if (c < 0 || (!ASCII_ISALNUM(c) && c != '"'))
|
||||
retval = FAIL;
|
||||
else
|
||||
{
|
||||
Recording = c;
|
||||
reg_recording = c;
|
||||
showmode();
|
||||
regname = c;
|
||||
retval = OK;
|
||||
@@ -1111,7 +1111,7 @@ do_record(int c)
|
||||
* needs to be removed again to put it in a register. exec_reg then
|
||||
* adds the escaping back later.
|
||||
*/
|
||||
Recording = FALSE;
|
||||
reg_recording = 0;
|
||||
MSG("");
|
||||
p = get_recorded();
|
||||
if (p == NULL)
|
||||
@@ -1318,7 +1318,7 @@ do_execreg(
|
||||
== FAIL)
|
||||
return FAIL;
|
||||
}
|
||||
Exec_reg = TRUE; /* disable the 'q' command */
|
||||
reg_executing = regname == 0 ? '"' : regname; // disable "q" command
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
+315
-119
@@ -2,7 +2,6 @@
|
||||
#
|
||||
# Do ":help uganda" in Vim to read copying and usage conditions.
|
||||
# Do ":help credits" in Vim to see a list of people who contributed.
|
||||
|
||||
# Copyright (C) 2017
|
||||
# This file is distributed under the same license as the Vim package.
|
||||
# FIRST AUTHOR Ivan Pešić <ivan.pesic@gmail.com>, 2017.
|
||||
@@ -10,14 +9,15 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Vim(Serbian)\n"
|
||||
"Report-Msgid-Bugs-To: <ivan.pesic@gmail.com>\n"
|
||||
"POT-Creation-Date: 2017-12-21 08:34+0400\n"
|
||||
"PO-Revision-Date: 2017-12-27 10:29+0400\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-05-15 11:55+0400\n"
|
||||
"PO-Revision-Date: 2018-05-15 10:50+0400\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: Serbian <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
msgid "E831: bf_key_init() called with empty password"
|
||||
msgstr "E831: bf_key_init() је позвана са празном лозинком"
|
||||
@@ -102,7 +102,9 @@ msgstr "E88: Не може да се иде испред првог бафера
|
||||
|
||||
#, c-format
|
||||
msgid "E89: No write since last change for buffer %ld (add ! to override)"
|
||||
msgstr "E89: Од последње измене није било уписа за бафер %ld (додајте ! да премостите)"
|
||||
msgstr ""
|
||||
"E89: Од последње измене није било уписа за бафер %ld (додајте ! да "
|
||||
"премостите)"
|
||||
|
||||
msgid "E948: Job still running (add ! to end the job)"
|
||||
msgstr "E948: Задатак се још извршава (додајте ! да зауставите задатак)"
|
||||
@@ -117,7 +119,8 @@ msgid "E37: No write since last change"
|
||||
msgstr "E37: Није било уписа од последње промене"
|
||||
|
||||
msgid "W14: Warning: List of file names overflow"
|
||||
msgstr "W14: Упозорење: Прекорачена је максимална величина листе имена датотека"
|
||||
msgstr ""
|
||||
"W14: Упозорење: Прекорачена је максимална величина листе имена датотека"
|
||||
|
||||
#, c-format
|
||||
msgid "E92: Buffer %ld not found"
|
||||
@@ -252,7 +255,8 @@ msgid "E917: Cannot use a callback with %s()"
|
||||
msgstr "E917: Callback не може да се користи са %s()"
|
||||
|
||||
msgid "E912: cannot use ch_evalexpr()/ch_sendexpr() with a raw or nl channel"
|
||||
msgstr "E912: ch_evalexpr()/ch_sendexpr() не може да се користи са raw или nl каналом"
|
||||
msgstr ""
|
||||
"E912: ch_evalexpr()/ch_sendexpr() не може да се користи са raw или nl каналом"
|
||||
|
||||
msgid "E906: not an open channel"
|
||||
msgstr "E906: није отворен канал"
|
||||
@@ -419,8 +423,8 @@ msgstr "Опција 'dictionary' је празна"
|
||||
msgid "'thesaurus' option is empty"
|
||||
msgstr "Опција 'thesaurus' је празна"
|
||||
|
||||
#, c-format
|
||||
msgid "Scanning dictionary %s"
|
||||
#, c-format
|
||||
msgid "Scanning dictionary: %s"
|
||||
msgstr "Скенирање речника: %s"
|
||||
|
||||
msgid " (insert) Scroll (^E/^Y)"
|
||||
@@ -531,21 +535,6 @@ msgstr "E743: променљива је угњеждена сувише дубо
|
||||
msgid "E109: Missing ':' after '?'"
|
||||
msgstr "E109: Недостаје ':' након '?'"
|
||||
|
||||
msgid "E691: Can only compare List with List"
|
||||
msgstr "E691: List може да се пореди само са List"
|
||||
|
||||
msgid "E692: Invalid operation for List"
|
||||
msgstr "E692: Неисправна операција за List"
|
||||
|
||||
msgid "E735: Can only compare Dictionary with Dictionary"
|
||||
msgstr "E735: Dictionary може да се пореди само са Dictionary"
|
||||
|
||||
msgid "E736: Invalid operation for Dictionary"
|
||||
msgstr "E736: Неисправна операција за Dictionary"
|
||||
|
||||
msgid "E694: Invalid operation for Funcrefs"
|
||||
msgstr "E694: Неисправна операција за Funcrefs"
|
||||
|
||||
msgid "E804: Cannot use '%' with Float"
|
||||
msgstr "E804: '%' не може да се користи са Float"
|
||||
|
||||
@@ -575,7 +564,8 @@ msgid "E115: Missing quote: %s"
|
||||
msgstr "E115: Недостаје наводник: %s"
|
||||
|
||||
msgid "Not enough memory to set references, garbage collection aborted!"
|
||||
msgstr "Нема довољно меморије за постављање референци, прекинуто је скупљање отпада"
|
||||
msgstr ""
|
||||
"Нема довољно меморије за постављање референци, прекинуто је скупљање отпада"
|
||||
|
||||
msgid "E724: variable nested too deep for displaying"
|
||||
msgstr "E724: променљива је угњеждена предубоко да би се приказала"
|
||||
@@ -671,6 +661,21 @@ msgstr ""
|
||||
"\n"
|
||||
"\tПоследњи сет од "
|
||||
|
||||
msgid "E691: Can only compare List with List"
|
||||
msgstr "E691: List може да се пореди само са List"
|
||||
|
||||
msgid "E692: Invalid operation for List"
|
||||
msgstr "E692: Неисправна операција за List"
|
||||
|
||||
msgid "E735: Can only compare Dictionary with Dictionary"
|
||||
msgstr "E735: Dictionary може да се пореди само са Dictionary"
|
||||
|
||||
msgid "E736: Invalid operation for Dictionary"
|
||||
msgstr "E736: Неисправна операција за Dictionary"
|
||||
|
||||
msgid "E694: Invalid operation for Funcrefs"
|
||||
msgstr "E694: Неисправна операција за Funcrefs"
|
||||
|
||||
msgid "map() argument"
|
||||
msgstr "map() аргумент"
|
||||
|
||||
@@ -696,6 +701,12 @@ msgstr "E785: complete() може да се користи само у режи
|
||||
msgid "&Ok"
|
||||
msgstr "&Ок"
|
||||
|
||||
#, c-format
|
||||
msgid "+-%s%3ld line: "
|
||||
msgid_plural "+-%s%3ld lines: "
|
||||
msgstr[0] "+-%s%3ld линија: "
|
||||
msgstr[1] "+-%s%3ld линија: "
|
||||
|
||||
#, c-format
|
||||
msgid "E700: Unknown function: %s"
|
||||
msgstr "E700: Непозната функција: %s"
|
||||
@@ -798,10 +809,22 @@ msgstr "E677: Грешка при упису temp датотеке"
|
||||
msgid "E921: Invalid callback argument"
|
||||
msgstr "E921: Неисправан callback аргумент"
|
||||
|
||||
#, c-format
|
||||
msgid "<%s>%s%s %d, Hex %02x, Oct %03o, Digr %s"
|
||||
msgstr "<%s>%s%s %d, Хекс %02x, Окт %03o, Дигр %s"
|
||||
|
||||
#, c-format
|
||||
msgid "<%s>%s%s %d, Hex %02x, Octal %03o"
|
||||
msgstr "<%s>%s%s %d, Хекс %02x, Октално %03o"
|
||||
|
||||
#, c-format
|
||||
msgid "> %d, Hex %04x, Oct %o, Digr %s"
|
||||
msgstr "> %d, Хекс %04x, Окт %o, Дигр %s"
|
||||
|
||||
#, c-format
|
||||
msgid "> %d, Hex %08x, Oct %o, Digr %s"
|
||||
msgstr "> %d, Хекс %08x, Окт %o, Дигр %s"
|
||||
|
||||
#, c-format
|
||||
msgid "> %d, Hex %04x, Octal %o"
|
||||
msgstr "> %d, Хекс %04x, Октално %o"
|
||||
@@ -1104,6 +1127,14 @@ msgstr "Нема старих датотека"
|
||||
msgid "Entering Debug mode. Type \"cont\" to continue."
|
||||
msgstr "Улазак у Debug режим. Откуцајте \"cont\" за наставак."
|
||||
|
||||
#, c-format
|
||||
msgid "Oldval = \"%s\""
|
||||
msgstr "Старавред = \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "Newval = \"%s\""
|
||||
msgstr "Новаавред = \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "line %ld: %s"
|
||||
msgstr "линија %ld: %s"
|
||||
@@ -1134,6 +1165,10 @@ msgstr "Није дефинисана ниједна прекидна тачка
|
||||
msgid "%3d %s %s line %ld"
|
||||
msgstr "%3d %s %s линија %ld"
|
||||
|
||||
#, c-format
|
||||
msgid "%3d expr %s"
|
||||
msgstr "%3d израз %s"
|
||||
|
||||
msgid "E750: First use \":profile start {fname}\""
|
||||
msgstr "E750: Најпре користите \":profile start {fname}\""
|
||||
|
||||
@@ -1179,11 +1214,13 @@ msgstr "није пронађено у '%s': \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "W20: Required python version 2.x not supported, ignoring file: %s"
|
||||
msgstr "W20: Захтевани python version 2.x није подржан, датотека: %s се игнорише"
|
||||
msgstr ""
|
||||
"W20: Захтевани python version 2.x није подржан, датотека: %s се игнорише"
|
||||
|
||||
#, c-format
|
||||
msgid "W21: Required python version 3.x not supported, ignoring file: %s"
|
||||
msgstr "W21: Захтевани python version 3.x није подржан, датотека: %s се игнорише"
|
||||
msgstr ""
|
||||
"W21: Захтевани python version 3.x није подржан, датотека: %s се игнорише"
|
||||
|
||||
msgid "Source Vim script"
|
||||
msgstr "Изворна Vim скрипта"
|
||||
@@ -1249,7 +1286,8 @@ msgid "E197: Cannot set language to \"%s\""
|
||||
msgstr "E197: Језик не може да се постави на \"%s\""
|
||||
|
||||
msgid "Entering Ex mode. Type \"visual\" to go to Normal mode."
|
||||
msgstr "Улазак у Ex режим. Откуцајте \"visual\" да бисте прешли у Нормални режим."
|
||||
msgstr ""
|
||||
"Улазак у Ex режим. Откуцајте \"visual\" да бисте прешли у Нормални режим."
|
||||
|
||||
msgid "E501: At end-of-file"
|
||||
msgstr "E501: На крају-датотеке"
|
||||
@@ -1344,7 +1382,8 @@ msgid "E183: User defined commands must start with an uppercase letter"
|
||||
msgstr "E183: Кориснички дефинисане команде морају да почну великим словом"
|
||||
|
||||
msgid "E841: Reserved name, cannot be used for user defined command"
|
||||
msgstr "E841: Резервисано име, не може да се користи за кориснички дефинисану команду"
|
||||
msgstr ""
|
||||
"E841: Резервисано име, не може да се користи за кориснички дефинисану команду"
|
||||
|
||||
#, c-format
|
||||
msgid "E184: No such user-defined command: %s"
|
||||
@@ -1394,7 +1433,9 @@ msgid "Append File"
|
||||
msgstr "Додавање на крај Датотеке"
|
||||
|
||||
msgid "E747: Cannot change directory, buffer is modified (add ! to override)"
|
||||
msgstr "E747: Директоријум не може да се промени, бафер је измењен (додајте ! за премошћавање)"
|
||||
msgstr ""
|
||||
"E747: Директоријум не може да се промени, бафер је измењен (додајте ! за "
|
||||
"премошћавање)"
|
||||
|
||||
msgid "E186: No previous directory"
|
||||
msgstr "E186: Нема претгодног директоријума"
|
||||
@@ -1693,7 +1734,7 @@ msgstr "[дуге линије преломљене]"
|
||||
msgid "[NOT converted]"
|
||||
msgstr "[НИЈЕ конвертовано]"
|
||||
|
||||
msgid "[convered]"
|
||||
msgid "[converted]"
|
||||
msgstr "[конвертовано]"
|
||||
|
||||
#, c-format
|
||||
@@ -1720,7 +1761,9 @@ msgid "E676: No matching autocommands for acwrite buffer"
|
||||
msgstr "E676: Нема одговарајућих аутокоманди за acwrite бафер"
|
||||
|
||||
msgid "E203: Autocommands deleted or unloaded buffer to be written"
|
||||
msgstr "E203: Аутокоманде су обрисале или уклониле из меморије бафер који требало да буде уписан"
|
||||
msgstr ""
|
||||
"E203: Аутокоманде су обрисале или уклониле из меморије бафер који требало да "
|
||||
"буде уписан"
|
||||
|
||||
msgid "E204: Autocommand changed number of lines in unexpected way"
|
||||
msgstr "E204: Аутокоманде су на неочекиван начин промениле број линија"
|
||||
@@ -1741,19 +1784,24 @@ msgid "is read-only (add ! to override)"
|
||||
msgstr "је само за читање (додајте ! за премошћавање)"
|
||||
|
||||
msgid "E506: Can't write to backup file (add ! to override)"
|
||||
msgstr "E506: Не може да се упише у резервну датотеку (додајте ! за премошћавање)"
|
||||
msgstr ""
|
||||
"E506: Не може да се упише у резервну датотеку (додајте ! за премошћавање)"
|
||||
|
||||
msgid "E507: Close error for backup file (add ! to override)"
|
||||
msgstr "E507: Грешка код затварања за резервну датотеку (додајте ! за премошћавање)"
|
||||
msgstr ""
|
||||
"E507: Грешка код затварања за резервну датотеку (додајте ! за премошћавање)"
|
||||
|
||||
msgid "E508: Can't read file for backup (add ! to override)"
|
||||
msgstr "E508: Резервна датотека не може да се прочита (додајте ! за премошћавање)"
|
||||
msgstr ""
|
||||
"E508: Резервна датотека не може да се прочита (додајте ! за премошћавање)"
|
||||
|
||||
msgid "E509: Cannot create backup file (add ! to override)"
|
||||
msgstr "E509: Резервна датотека не може да се креира (додајте ! за премошћавање)"
|
||||
msgstr ""
|
||||
"E509: Резервна датотека не може да се креира (додајте ! за премошћавање)"
|
||||
|
||||
msgid "E510: Can't make backup file (add ! to override)"
|
||||
msgstr "E510: Резервна датотека не може да се направи (додајте ! за премошћавање)"
|
||||
msgstr ""
|
||||
"E510: Резервна датотека не може да се направи (додајте ! за премошћавање)"
|
||||
|
||||
msgid "E214: Can't find temp file for writing"
|
||||
msgstr "E214: Привремена датотека за упис не може да се пронађе"
|
||||
@@ -1774,15 +1822,17 @@ msgid "E512: Close failed"
|
||||
msgstr "E512: Затварање није успело"
|
||||
|
||||
msgid "E513: write error, conversion failed (make 'fenc' empty to override)"
|
||||
msgstr "E513: грешка при упису, конверзија није успела (оставите 'fenc' празно да премостите)"
|
||||
msgstr ""
|
||||
"E513: грешка при упису, конверзија није успела (оставите 'fenc' празно да "
|
||||
"премостите)"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"E513: write error, conversion failed in line %ld (make 'fenc' empty to "
|
||||
"override)"
|
||||
msgstr ""
|
||||
"E513: грешка при упису, конверзија није успела у линији %ld (оставите 'fenc' празно "
|
||||
"да премостите)"
|
||||
"E513: грешка при упису, конверзија није успела у линији %ld (оставите 'fenc' "
|
||||
"празно да премостите)"
|
||||
|
||||
msgid "E514: write error (file system full?)"
|
||||
msgstr "E514: грешка при упису (систем датотека је пун?)"
|
||||
@@ -1907,14 +1957,16 @@ msgstr "Погледајте \":help W12\" за више информација.
|
||||
|
||||
#, c-format
|
||||
msgid "W11: Warning: File \"%s\" has changed since editing started"
|
||||
msgstr "W11: Упозорење: Датотека \"%s\" је измењена откад је започето уређивање"
|
||||
msgstr ""
|
||||
"W11: Упозорење: Датотека \"%s\" је измењена откад је започето уређивање"
|
||||
|
||||
msgid "See \":help W11\" for more info."
|
||||
msgstr "Погледајте \":help W11\" за више информација."
|
||||
|
||||
#, c-format
|
||||
msgid "W16: Warning: Mode of file \"%s\" has changed since editing started"
|
||||
msgstr "W16: Упозорење: Режим датотеке \"%s\" је измењен откад је започето уређивање"
|
||||
msgstr ""
|
||||
"W16: Упозорење: Режим датотеке \"%s\" је измењен откад је започето уређивање"
|
||||
|
||||
msgid "See \":help W16\" for more info."
|
||||
msgstr "Погледајте \":help W16\" за више информација."
|
||||
@@ -2017,6 +2069,12 @@ msgstr "E350: Склапање не може да се креира са тек
|
||||
msgid "E351: Cannot delete fold with current 'foldmethod'"
|
||||
msgstr "E351: Склапање не може да се обрише са текћим 'foldmethod'"
|
||||
|
||||
#, c-format
|
||||
msgid "+--%3ld line folded "
|
||||
msgid_plural "+--%3ld lines folded "
|
||||
msgstr[0] "+--%3ld линија подвијена"
|
||||
msgstr[1] "+--%3ld линија подвијено"
|
||||
|
||||
msgid "E222: Add to read buffer"
|
||||
msgstr "E222: Додавање у бафер читања"
|
||||
|
||||
@@ -2106,7 +2164,8 @@ msgid "Vim dialog"
|
||||
msgstr "Vim дијалог"
|
||||
|
||||
msgid "E232: Cannot create BalloonEval with both message and callback"
|
||||
msgstr "E232: Не може да се креира BalloonEval и са поруком и са повратним позивом"
|
||||
msgstr ""
|
||||
"E232: Не може да се креира BalloonEval и са поруком и са повратним позивом"
|
||||
|
||||
msgid "_Cancel"
|
||||
msgstr "_Откажи"
|
||||
@@ -2255,7 +2314,8 @@ msgid "E672: Unable to open window inside MDI application"
|
||||
msgstr "E672: Није могуће отварање прозора унутар MDI апликације"
|
||||
|
||||
msgid "Vim E458: Cannot allocate colormap entry, some colors may be incorrect"
|
||||
msgstr "Vim E458: colormap унос не може да се алоцира, неке боје су можда неисправне"
|
||||
msgstr ""
|
||||
"Vim E458: colormap унос не може да се алоцира, неке боје су можда неисправне"
|
||||
|
||||
#, c-format
|
||||
msgid "E250: Fonts for the following charsets are missing in fontset %s:"
|
||||
@@ -2400,7 +2460,8 @@ msgid "E456: Can't find PostScript resource file \"prolog.ps\""
|
||||
msgstr "E456: PostScript resource датотека \"prolog.ps\" не може да се пронађе"
|
||||
|
||||
msgid "E456: Can't find PostScript resource file \"cidfont.ps\""
|
||||
msgstr "E456: PostScript resource датотека \"cidfont.ps\" не може да се пронађе"
|
||||
msgstr ""
|
||||
"E456: PostScript resource датотека \"cidfont.ps\" не може да се пронађе"
|
||||
|
||||
#, c-format
|
||||
msgid "E456: Can't find PostScript resource file \"%s.ps\""
|
||||
@@ -2592,8 +2653,8 @@ msgid ""
|
||||
"E815: Sorry, this command is disabled, the MzScheme libraries could not be "
|
||||
"loaded."
|
||||
msgstr ""
|
||||
"E815: Жао нам је, ова команда је онемогућена, MzScheme библиотеке нису могле да "
|
||||
"се учитају."
|
||||
"E815: Жао нам је, ова команда је онемогућена, MzScheme библиотеке нису могле "
|
||||
"да се учитају."
|
||||
|
||||
msgid ""
|
||||
"E895: Sorry, this command is disabled, the MzScheme's racket/base module "
|
||||
@@ -2653,6 +2714,18 @@ msgstr "linenr је ван опсега"
|
||||
msgid "not allowed in the Vim sandbox"
|
||||
msgstr "није дозвољено у Vim sandbox-у"
|
||||
|
||||
#, c-format
|
||||
msgid "E370: Could not load library %s"
|
||||
msgstr "E370: Библиотека %s није могла да се учита"
|
||||
|
||||
msgid "Sorry, this command is disabled: the Perl library could not be loaded."
|
||||
msgstr ""
|
||||
"Жао нам је, ова команда је онемогућена: Perl библиотека није могла да "
|
||||
"се учита."
|
||||
|
||||
msgid "E299: Perl evaluation forbidden in sandbox without the Safe module"
|
||||
msgstr "E299: Perl одређивање вредности у sandbox-у је забрањено без Safe модула"
|
||||
|
||||
msgid "E836: This Vim cannot execute :python after using :py3"
|
||||
msgstr "E836: Овај Vim не може да изврши :python након коришћења :py3"
|
||||
|
||||
@@ -2660,15 +2733,15 @@ msgid ""
|
||||
"E263: Sorry, this command is disabled, the Python library could not be "
|
||||
"loaded."
|
||||
msgstr ""
|
||||
"E263: Жао нам је, ова команда је онемогућена, Python библиотека није "
|
||||
"могла да се учита."
|
||||
"E263: Жао нам је, ова команда је онемогућена, Python библиотека није могла "
|
||||
"да се учита."
|
||||
|
||||
msgid ""
|
||||
"E887: Sorry, this command is disabled, the Python's site module could not be "
|
||||
"loaded."
|
||||
msgstr ""
|
||||
"E887: Жао нам је, ова команда је онемогућена, Python-ов site модул "
|
||||
"није могао да се учита."
|
||||
"E887: Жао нам је, ова команда је онемогућена, Python-ов site модул није "
|
||||
"могао да се учита."
|
||||
|
||||
msgid "E659: Cannot invoke Python recursively"
|
||||
msgstr "E659: Python не може да се позива рекурзивно"
|
||||
@@ -2682,7 +2755,8 @@ msgstr "E265: $_ мора да буде инстанца String-а"
|
||||
msgid ""
|
||||
"E266: Sorry, this command is disabled, the Ruby library could not be loaded."
|
||||
msgstr ""
|
||||
"E266: Жао нам је, ова команда је онемогућена, Ruby библиотека није могла да се учита."
|
||||
"E266: Жао нам је, ова команда је онемогућена, Ruby библиотека није могла да "
|
||||
"се учита."
|
||||
|
||||
msgid "E267: unexpected return"
|
||||
msgstr "E267: неочекиван return"
|
||||
@@ -2749,22 +2823,26 @@ msgstr "бафер/прозор команда не може да се креи
|
||||
msgid ""
|
||||
"cannot register callback command: buffer/window is already being deleted"
|
||||
msgstr ""
|
||||
"команда повратног позива не може да се региструје: бафер/прозор је већ обрисан"
|
||||
"команда повратног позива не може да се региструје: бафер/прозор је већ "
|
||||
"обрисан"
|
||||
|
||||
msgid ""
|
||||
"E280: TCL FATAL ERROR: reflist corrupt!? Please report this to vim-dev@vim."
|
||||
"org"
|
||||
msgstr ""
|
||||
"E280: TCL ФАТАЛНА ГРЕШКА: reflist је оштећена!? Молимо пријавите ово на vim-dev@vim."
|
||||
"org"
|
||||
"E280: TCL ФАТАЛНА ГРЕШКА: reflist је оштећена!? Молимо пријавите ово на "
|
||||
"vim-dev@vim.org"
|
||||
|
||||
msgid "cannot register callback command: buffer/window reference not found"
|
||||
msgstr "команда повратног позива не може да се региструје: референца бафера/прозора није пронађена"
|
||||
msgstr ""
|
||||
"команда повратног позива не може да се региструје: референца бафера/прозора "
|
||||
"није пронађена"
|
||||
|
||||
msgid ""
|
||||
"E571: Sorry, this command is disabled: the Tcl library could not be loaded."
|
||||
msgstr ""
|
||||
"E571: Жао нам је, ова команда је онемогућена: Tcl библиотека није могла да се учита."
|
||||
"E571: Жао нам је, ова команда је онемогућена: Tcl библиотека није могла да "
|
||||
"се учита."
|
||||
|
||||
#, c-format
|
||||
msgid "E572: exit code %d"
|
||||
@@ -2842,7 +2920,8 @@ msgid "Vim: Error: Failure to start gvim from NetBeans\n"
|
||||
msgstr "Vim: Грешка: Покретање gvim из NetBeans није успело\n"
|
||||
|
||||
msgid "Vim: Error: This version of Vim does not run in a Cygwin terminal\n"
|
||||
msgstr "Vim: Грешка: Ова верзија Vim не може да се покрене из Cygwin терминала\n"
|
||||
msgstr ""
|
||||
"Vim: Грешка: Ова верзија Vim не може да се покрене из Cygwin терминала\n"
|
||||
|
||||
msgid "Vim: Warning: Output is not to a terminal\n"
|
||||
msgstr "Vim: Упозорење: Излаз није у терминал\n"
|
||||
@@ -2900,7 +2979,8 @@ msgid ""
|
||||
"Where case is ignored prepend / to make flag upper case"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Где се мала/велика слова игноришу ставите испред / како би претворили индикатор у велика слова"
|
||||
"Где се мала/велика слова игноришу ставите испред / како би претворили "
|
||||
"индикатор у велика слова"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
@@ -3038,19 +3118,25 @@ msgid "+<lnum>\t\tStart at line <lnum>"
|
||||
msgstr "+<бројл>\t\tПочни на линији <бројл>"
|
||||
|
||||
msgid "--cmd <command>\tExecute <command> before loading any vimrc file"
|
||||
msgstr "--cmd <команда>\tИзврши <команда> пре учитавања било које vimrc датотеке"
|
||||
msgstr ""
|
||||
"--cmd <команда>\tИзврши <команда> пре учитавања било које vimrc датотеке"
|
||||
|
||||
msgid "-c <command>\t\tExecute <command> after loading the first file"
|
||||
msgstr "-c <команда>\t\tИзврши <команда> након учитавања прве датотеке"
|
||||
|
||||
msgid "-S <session>\t\tSource file <session> after loading the first file"
|
||||
msgstr "-S <сесија>\t\tУчитај као извор датотеку <сесија> након учитавања прве датотеке"
|
||||
msgstr ""
|
||||
"-S <сесија>\t\tИзворна датотека <сесија> након учитавања прве "
|
||||
"датотеке"
|
||||
|
||||
msgid "-s <scriptin>\tRead Normal mode commands from file <scriptin>"
|
||||
msgstr "-s <скриптулаз>\tЧитај команде Нормалног режима из датотеке <скриптулаз>"
|
||||
msgstr ""
|
||||
"-s <скриптулаз>\tЧитај команде Нормалног режима из датотеке <скриптулаз>"
|
||||
|
||||
msgid "-w <scriptout>\tAppend all typed commands to file <scriptout>"
|
||||
msgstr "-w <скриптизлаз>\tНадовежи све откуцане команде на крај датотеке <скриптизлаз>"
|
||||
msgstr ""
|
||||
"-w <скриптизлаз>\tНадовежи све откуцане команде на крај датотеке "
|
||||
"<скриптизлаз>"
|
||||
|
||||
msgid "-W <scriptout>\tWrite all typed commands to file <scriptout>"
|
||||
msgstr "-W <скриптизлаз>\tУписуј све откуцане команде у датотеку <скриптизлаз>"
|
||||
@@ -3077,19 +3163,20 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"--remote-wait-silent <files> Same, don't complain if there is no server"
|
||||
msgstr ""
|
||||
"--remote-wait-silent <датотеке> Исто, не буни се ако нема сервера"
|
||||
msgstr "--remote-wait-silent <датотеке> Исто, не буни се ако нема сервера"
|
||||
|
||||
msgid ""
|
||||
"--remote-tab[-wait][-silent] <files> As --remote but use tab page per file"
|
||||
msgstr ""
|
||||
"--remote-tab[-wait][-silent] <датотеке> Као --remote али користи једну картицу по датотеци"
|
||||
"--remote-tab[-wait][-silent] <датотеке> Као --remote али користи једну "
|
||||
"картицу по датотеци"
|
||||
|
||||
msgid "--remote-send <keys>\tSend <keys> to a Vim server and exit"
|
||||
msgstr "--remote-send <тастери>\tПошаљи <тастери> Vim серверу и изађи"
|
||||
|
||||
msgid "--remote-expr <expr>\tEvaluate <expr> in a Vim server and print result"
|
||||
msgstr "--remote-expr <израз>\tИзрачунај <израз> у Vim серверу и одштампај резултат"
|
||||
msgstr ""
|
||||
"--remote-expr <израз>\tИзрачунај <израз> у Vim серверу и одштампај резултат"
|
||||
|
||||
msgid "--serverlist\t\tList available Vim server names and exit"
|
||||
msgstr "--serverlist\t\tИзлистај имена доступних Vim сервера и изађи"
|
||||
@@ -3104,7 +3191,9 @@ msgid "-i <viminfo>\t\tUse <viminfo> instead of .viminfo"
|
||||
msgstr "-i <viminfo>\t\tКористи <viminfo> уместо .viminfo"
|
||||
|
||||
msgid "--clean\t\t'nocompatible', Vim defaults, no plugins, no viminfo"
|
||||
msgstr "--clean\t\t'nocompatible', Vim подразумеване вредности, без додатака, без viminfo"
|
||||
msgstr ""
|
||||
"--clean\t\t'nocompatible', Vim подразумеване вредности, без додатака, без "
|
||||
"viminfo"
|
||||
|
||||
msgid "-h or --help\tPrint Help (this message) and exit"
|
||||
msgstr "-h or --help\tИспиши Помоћ (ову поруку) и изађи"
|
||||
@@ -3161,10 +3250,13 @@ msgid "-borderwidth <width>\tUse a border width of <width> (also: -bw)"
|
||||
msgstr "-borderwidth <ширина>\tКористи оквир ширине <ширина> (такође: -bw)"
|
||||
|
||||
msgid "-scrollbarwidth <width> Use a scrollbar width of <width> (also: -sw)"
|
||||
msgstr "-scrollbarwidth <ширина> Користи Линију за скроловање ширине <ширина> (такође: -sw)"
|
||||
msgstr ""
|
||||
"-scrollbarwidth <ширина> Користи Линију за скроловање ширине <ширина> "
|
||||
"(такође: -sw)"
|
||||
|
||||
msgid "-menuheight <height>\tUse a menu bar height of <height> (also: -mh)"
|
||||
msgstr "-menuheight <ширина>\tКористи линију менија висине <висина> (такође: -mh)"
|
||||
msgstr ""
|
||||
"-menuheight <ширина>\tКористи линију менија висине <висина> (такође: -mh)"
|
||||
|
||||
msgid "-reverse\t\tUse reverse video (also: -rv)"
|
||||
msgstr "-reverse\t\tКористи обрнути видео (такође: -rv)"
|
||||
@@ -3186,7 +3278,9 @@ msgid "-display <display>\tRun vim on <display> (also: --display)"
|
||||
msgstr "-display <дисплеј>\tПокрени vim на <дисплеј> (такође: --display)"
|
||||
|
||||
msgid "--role <role>\tSet a unique role to identify the main window"
|
||||
msgstr "--role <улога>\tПостави јединствену улогу да би се идентификовао главни прозор"
|
||||
msgstr ""
|
||||
"--role <улога>\tПостави јединствену улогу да би се идентификовао главни "
|
||||
"прозор"
|
||||
|
||||
msgid "--socketid <xid>\tOpen Vim inside another GTK widget"
|
||||
msgstr "--socketid <xid>\tОтвори Vim унутар другог GTK виџета"
|
||||
@@ -3284,7 +3378,8 @@ msgid "E286: Failed to open input method"
|
||||
msgstr "E286: Отварање методе уноса није успело"
|
||||
|
||||
msgid "E287: Warning: Could not set destroy callback to IM"
|
||||
msgstr "E287: Упозорење: Постављање повратне функције за уништење IM није успело"
|
||||
msgstr ""
|
||||
"E287: Упозорење: Постављање повратне функције за уништење IM није успело"
|
||||
|
||||
msgid "E288: input method doesn't support any style"
|
||||
msgstr "E288: метод уноса не подржава ниједан стил"
|
||||
@@ -3330,7 +3425,8 @@ msgstr "E302: Промена имена swap датотеке није успе
|
||||
|
||||
#, c-format
|
||||
msgid "E303: Unable to open swap file for \"%s\", recovery impossible"
|
||||
msgstr "E303: Отварање swap датотеке за \"%s\" није успело, опоравак је немогућ"
|
||||
msgstr ""
|
||||
"E303: Отварање swap датотеке за \"%s\" није успело, опоравак је немогућ"
|
||||
|
||||
msgid "E304: ml_upd_block0(): Didn't get block 0??"
|
||||
msgstr "E304: ml_upd_block0(): Блок бр 0 није добављен??"
|
||||
@@ -3382,8 +3478,7 @@ msgstr ""
|
||||
#, c-format
|
||||
msgid ""
|
||||
"E833: %s is encrypted and this version of Vim does not support encryption"
|
||||
msgstr ""
|
||||
"E833: %s је шифрована и ова верзија Vim-а не подржава шифровање"
|
||||
msgstr "E833: %s је шифрована и ова верзија Vim-а не подржава шифровање"
|
||||
|
||||
msgid " has been damaged (page size is smaller than minimum value).\n"
|
||||
msgstr " је оштећена (величина странице је маља од минималне вредности).\n"
|
||||
@@ -3422,7 +3517,8 @@ msgid ""
|
||||
"If you wrote the text file after changing the crypt key press enter"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Ако сте уписали текст датотеку на диск након промене кључа за шифрирање притисните ентер"
|
||||
"Ако сте уписали текст датотеку на диск након промене кључа за шифрирање "
|
||||
"притисните ентер"
|
||||
|
||||
msgid ""
|
||||
"\n"
|
||||
@@ -3469,7 +3565,8 @@ msgstr "E311: Опоравак је прекинут"
|
||||
msgid ""
|
||||
"E312: Errors detected while recovering; look for lines starting with ???"
|
||||
msgstr ""
|
||||
"E312: Откривене су грешке приликом опоравка; потражите линије које почињу са ???"
|
||||
"E312: Откривене су грешке приликом опоравка; потражите линије које почињу "
|
||||
"са ???"
|
||||
|
||||
msgid "See \":help E312\" for more information."
|
||||
msgstr "Погледајте \":help E312\" за више информација."
|
||||
@@ -3957,8 +4054,8 @@ msgid ""
|
||||
"E343: Invalid path: '**[number]' must be at the end of the path or be "
|
||||
"followed by '%s'."
|
||||
msgstr ""
|
||||
"E343: Неисправна путања: '**[број]' мора бити на крају путање или да "
|
||||
"иза њега следи '%s'."
|
||||
"E343: Неисправна путања: '**[број]' мора бити на крају путање или да иза "
|
||||
"њега следи '%s'."
|
||||
|
||||
#, c-format
|
||||
msgid "E344: Can't find directory \"%s\" in cdpath"
|
||||
@@ -4022,7 +4119,8 @@ msgid "E663: At end of changelist"
|
||||
msgstr "E663: На крају листе промена"
|
||||
|
||||
msgid "Type :qa! and press <Enter> to abandon all changes and exit Vim"
|
||||
msgstr "Откуцајте :qa! и притисните <Ентер> да одбаците све измене и напустите Vim"
|
||||
msgstr ""
|
||||
"Откуцајте :qa! и притисните <Ентер> да одбаците све измене и напустите Vim"
|
||||
|
||||
#, c-format
|
||||
msgid "1 line %sed 1 time"
|
||||
@@ -4149,8 +4247,8 @@ msgstr ""
|
||||
"lld од %lld"
|
||||
|
||||
#, c-format
|
||||
msgid "(+%ld for BOM)"
|
||||
msgstr "(+%ld за BOM)"
|
||||
msgid "(+%lld for BOM)"
|
||||
msgstr "(+%lld за BOM)"
|
||||
|
||||
msgid "Thanks for flying Vim"
|
||||
msgstr "Хвала што летите са Vim"
|
||||
@@ -4264,7 +4362,8 @@ msgid "E542: unbalanced groups"
|
||||
msgstr "E542: неуравнотежене групе"
|
||||
|
||||
msgid "E946: Cannot make a terminal with running job modifiable"
|
||||
msgstr "E946: Терминал са задатком који се извршава не може да се учини измењивим"
|
||||
msgstr ""
|
||||
"E946: Терминал са задатком који се извршава не може да се учини измењивим"
|
||||
|
||||
msgid "E590: A preview window already exists"
|
||||
msgstr "E590: Прозор за преглед већ постоји"
|
||||
@@ -4272,6 +4371,9 @@ msgstr "E590: Прозор за преглед већ постоји"
|
||||
msgid "W17: Arabic requires UTF-8, do ':set encoding=utf-8'"
|
||||
msgstr "W17: Арапски захтева UTF-8, извршите ':set encoding=utf-8'"
|
||||
|
||||
msgid "E954: 24-bit colors are not supported on this environment"
|
||||
msgstr "E954: Ово окружење не подржава 24-битне боје"
|
||||
|
||||
#, c-format
|
||||
msgid "E593: Need at least %d lines"
|
||||
msgstr "E593: Потребно је најмање %d линија"
|
||||
@@ -4556,6 +4658,9 @@ msgstr "Vim Упозорење"
|
||||
msgid "shell returned %d"
|
||||
msgstr "командно окружење је вратило %d"
|
||||
|
||||
msgid "E926: Current location list was changed"
|
||||
msgstr "E926: Текућа листа локација је промењена"
|
||||
|
||||
#, c-format
|
||||
msgid "E372: Too many %%%c in format string"
|
||||
msgstr "E372: Превише %%%c стрингу формата"
|
||||
@@ -4594,9 +4699,6 @@ msgstr "E924: Текући прозор је затворен"
|
||||
msgid "E925: Current quickfix was changed"
|
||||
msgstr "E925: Текући quickfix је промењен"
|
||||
|
||||
msgid "E926: Current location list was changed"
|
||||
msgstr "E926: Текућа листа локација је промењена"
|
||||
|
||||
#, c-format
|
||||
msgid "(%d of %d)%s%s: "
|
||||
msgstr "(%d од %d)%s%s: "
|
||||
@@ -4759,6 +4861,9 @@ msgstr "E877: (NFA regexp) Неважећа карактер класа: %ld"
|
||||
msgid "E867: (NFA) Unknown operator '\\z%c'"
|
||||
msgstr "E867: (NFA) Непознати оператор '\\z%c'"
|
||||
|
||||
msgid "E951: \\% value too large"
|
||||
msgstr "E951: Вредност \\% је предугачка"
|
||||
|
||||
#, c-format
|
||||
msgid "E867: (NFA) Unknown operator '\\%%%c'"
|
||||
msgstr "E867: (NFA) Непознати оператор '\\%%%c'"
|
||||
@@ -4792,11 +4897,12 @@ msgid ""
|
||||
"E875: (NFA regexp) (While converting from postfix to NFA), too many states "
|
||||
"left on stack"
|
||||
msgstr ""
|
||||
"E875: (NFA regexp) (Док је вршена конверзија из postfix у NFA), превише стања "
|
||||
"је остало на стеку"
|
||||
"E875: (NFA regexp) (Док је вршена конверзија из postfix у NFA), превише "
|
||||
"стања је остало на стеку"
|
||||
|
||||
msgid "E876: (NFA regexp) Not enough space to store the whole NFA "
|
||||
msgstr "E876: (NFA regexp) Нема довољно простора да се ускладишти комплетан NFA "
|
||||
msgstr ""
|
||||
"E876: (NFA regexp) Нема довољно простора да се ускладишти комплетан NFA "
|
||||
|
||||
msgid "E878: (NFA) Could not allocate memory for branch traversal!"
|
||||
msgstr "E878: (NFA) Није могла да се алоцира меморија за обилазак грана!"
|
||||
@@ -4804,7 +4910,8 @@ msgstr "E878: (NFA) Није могла да се алоцира мемориј
|
||||
msgid ""
|
||||
"Could not open temporary log file for writing, displaying on stderr ... "
|
||||
msgstr ""
|
||||
"Привремена лог датотека није могла да се отвори за упис, приказује се на stderr ... "
|
||||
"Привремена лог датотека није могла да се отвори за упис, приказује се на "
|
||||
"stderr ... "
|
||||
|
||||
#, c-format
|
||||
msgid "(NFA) COULD NOT OPEN %s !"
|
||||
@@ -4938,11 +5045,15 @@ msgstr "E756: Провера правописа није омогућена"
|
||||
|
||||
#, c-format
|
||||
msgid "Warning: Cannot find word list \"%s_%s.spl\" or \"%s_ascii.spl\""
|
||||
msgstr "Упозорење: Листа речи \"%s_%s.spl\" или \"%s_ascii.spl\" не може да се пронађе"
|
||||
msgstr ""
|
||||
"Упозорење: Листа речи \"%s_%s.spl\" или \"%s_ascii.spl\" не може да се "
|
||||
"пронађе"
|
||||
|
||||
#, c-format
|
||||
msgid "Warning: Cannot find word list \"%s.%s.spl\" or \"%s.ascii.spl\""
|
||||
msgstr "Упозорење: Листа речи \"%s.%s.spl\" или \"%s.ascii.spl\" не може да се пронађе"
|
||||
msgstr ""
|
||||
"Упозорење: Листа речи \"%s.%s.spl\" или \"%s.ascii.spl\" не може да се "
|
||||
"пронађе"
|
||||
|
||||
msgid "E797: SpellFileMissing autocommand deleted buffer"
|
||||
msgstr "E797: SpellFileMissing аутокоманда је обрисала бафер"
|
||||
@@ -5091,7 +5202,9 @@ msgstr "Погрешна CHECKCOMPOUNDPATTERN вредност у %s линиј
|
||||
|
||||
#, c-format
|
||||
msgid "Different combining flag in continued affix block in %s line %d: %s"
|
||||
msgstr "Различит индикатор комбиновања у настављеном блоку наставака у %s линија %d: %s"
|
||||
msgstr ""
|
||||
"Различит индикатор комбиновања у настављеном блоку наставака у %s линија %d: "
|
||||
"%s"
|
||||
|
||||
#, c-format
|
||||
msgid "Duplicate affix in %s line %d: %s"
|
||||
@@ -5102,8 +5215,8 @@ msgid ""
|
||||
"Affix also used for BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST in %s "
|
||||
"line %d: %s"
|
||||
msgstr ""
|
||||
"Наставак се такође користиBAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST "
|
||||
"у %s линија %d: %s"
|
||||
"Наставак се такође користи за BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST у %s"
|
||||
"линија %d: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "Expected Y or N in %s line %d: %s"
|
||||
@@ -5163,7 +5276,8 @@ msgstr "Неважећи индикатор у %s линија %d: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "%s value differs from what is used in another .aff file"
|
||||
msgstr "%s вредност се разликује од онога што је коришћено у другој .aff датотеци"
|
||||
msgstr ""
|
||||
"%s вредност се разликује од онога што је коришћено у другој .aff датотеци"
|
||||
|
||||
#, c-format
|
||||
msgid "Reading dictionary file %s ..."
|
||||
@@ -5174,8 +5288,8 @@ msgid "E760: No word count in %s"
|
||||
msgstr "E760: Нема броја речи у %s"
|
||||
|
||||
#, c-format
|
||||
msgid "line %6d, word %6d - %s"
|
||||
msgstr "линија %6d, реч %6d - %s"
|
||||
msgid "line %6d, word %6ld - %s"
|
||||
msgstr "линија %6d, реч %6ld - %s"
|
||||
|
||||
#, c-format
|
||||
msgid "Duplicate word in %s line %d: %s"
|
||||
@@ -5261,8 +5375,9 @@ msgstr "Процењена потребна величина меморије у
|
||||
msgid "E751: Output file name must not have region name"
|
||||
msgstr "E751: Име излазне датотеке не сме да има име региона"
|
||||
|
||||
msgid "E754: Only up to 8 regions supported"
|
||||
msgstr "E754: Подржано је само до 8 региона"
|
||||
#, c-format
|
||||
msgid "E754: Only up to %ld regions supported"
|
||||
msgstr "E754: Подржано је само до %ld региона"
|
||||
|
||||
#, c-format
|
||||
msgid "E755: Invalid region in %s"
|
||||
@@ -5647,6 +5762,10 @@ msgstr ""
|
||||
msgid "Cannot open $VIMRUNTIME/rgb.txt"
|
||||
msgstr "Не може да се отвори $VIMRUNTIME/rgb.txt"
|
||||
|
||||
#, c-format
|
||||
msgid "Kill job in \"%s\"?"
|
||||
msgstr "Да ли да се уништи задатак у \"%s\"?"
|
||||
|
||||
msgid "Terminal"
|
||||
msgstr "Терминал"
|
||||
|
||||
@@ -5662,6 +5781,13 @@ msgstr "ради"
|
||||
msgid "finished"
|
||||
msgstr "завршен"
|
||||
|
||||
#, c-format
|
||||
msgid "E953: File exists: %s"
|
||||
msgstr "E953: Датотека већ постоји: %s"
|
||||
|
||||
msgid "E955: Not a terminal buffer"
|
||||
msgstr "E955: Није терминалски бафер"
|
||||
|
||||
msgid "new shell started\n"
|
||||
msgstr "покренуто ново командно окружење\n"
|
||||
|
||||
@@ -5686,11 +5812,13 @@ msgid "E825: Corrupted undo file (%s): %s"
|
||||
msgstr "E825: Искварена датотека за опозив (%s): %s"
|
||||
|
||||
msgid "Cannot write undo file in any directory in 'undodir'"
|
||||
msgstr "Датотека за опозив не може да се упише ни у један директоријум из 'undodir'"
|
||||
msgstr ""
|
||||
"Датотека за опозив не може да се упише ни у један директоријум из 'undodir'"
|
||||
|
||||
#, c-format
|
||||
msgid "Will not overwrite with undo file, cannot read: %s"
|
||||
msgstr "Неће се вршити преписивање са датотеком опозива, читање није могуће: %s"
|
||||
msgstr ""
|
||||
"Неће се вршити преписивање са датотеком опозива, читање није могуће: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "Will not overwrite, this is not an undo file: %s"
|
||||
@@ -5725,7 +5853,8 @@ msgstr "E823: Није датотека за опозив: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E832: Non-encrypted file has encrypted undo file: %s"
|
||||
msgstr "E832: Датотека која није шифрована има шифровану датотеку за опозив: %s"
|
||||
msgstr ""
|
||||
"E832: Датотека која није шифрована има шифровану датотеку за опозив: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E826: Undo file decryption failed: %s"
|
||||
@@ -5740,7 +5869,8 @@ msgid "E824: Incompatible undo file: %s"
|
||||
msgstr "E824: Некомпатибилна датотека за опозив: %s"
|
||||
|
||||
msgid "File contents changed, cannot use undo info"
|
||||
msgstr "Садржај датотеке је промењен, информације за опозив не могу да се користе"
|
||||
msgstr ""
|
||||
"Садржај датотеке је промењен, информације за опозив не могу да се користе"
|
||||
|
||||
#, c-format
|
||||
msgid "Finished reading undo file %s"
|
||||
@@ -6276,7 +6406,8 @@ msgid "Edits the selected file(s) with Vim"
|
||||
msgstr "Уређује селектовауе датотеку(е) са Vim-ом"
|
||||
|
||||
msgid "Error creating process: Check if gvim is in your path!"
|
||||
msgstr "Грешка приликом креирања процеса: Проверите да ли је gvim у вашој путањи!"
|
||||
msgstr ""
|
||||
"Грешка приликом креирања процеса: Проверите да ли је gvim у вашој путањи!"
|
||||
|
||||
msgid "gvimext.dll error"
|
||||
msgstr "gvimext.dll грешка"
|
||||
@@ -6297,10 +6428,13 @@ msgid "E10: \\ should be followed by /, ? or &"
|
||||
msgstr "E10: Иза \\ треба да је /, ? или &"
|
||||
|
||||
msgid "E11: Invalid in command-line window; <CR> executes, CTRL-C quits"
|
||||
msgstr "E11: Неважеће у прозору командне линије; <CR> извршава, CTRL-C отказује"
|
||||
msgstr ""
|
||||
"E11: Неважеће у прозору командне линије; <CR> извршава, CTRL-C отказује"
|
||||
|
||||
msgid "E12: Command not allowed from exrc/vimrc in current dir or tag search"
|
||||
msgstr "E12: Постији забрана за команду у exrc/vimrc у текућој претрази директоријума или ознаке"
|
||||
msgstr ""
|
||||
"E12: Постоји забрана за команду у exrc/vimrc у текућој претрази "
|
||||
"директоријума или ознаке"
|
||||
|
||||
msgid "E171: Missing :endif"
|
||||
msgstr "E171: Недостаје :endif"
|
||||
@@ -6358,6 +6492,14 @@ msgstr "E474: Неважећи аргумент"
|
||||
msgid "E475: Invalid argument: %s"
|
||||
msgstr "E475: Неважећи аргумент: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E475: Invalid value for argument %s"
|
||||
msgstr "E475: Неважећa вредност за аргумент: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E475: Invalid value for argument %s: %s"
|
||||
msgstr "E475: Неважећa вредност за аргумент %s: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E15: Invalid expression: %s"
|
||||
msgstr "E15: Неважећи израз: %s"
|
||||
@@ -6379,10 +6521,6 @@ msgstr "E364: Позив библиотеке није успео за \"%s()\""
|
||||
msgid "E667: Fsync failed"
|
||||
msgstr "E667: Fsync није успео"
|
||||
|
||||
#, c-format
|
||||
msgid "E370: Could not load library %s"
|
||||
msgstr "E370: Библиотека %s није могла да се учита"
|
||||
|
||||
#, c-format
|
||||
msgid "E448: Could not load library function %s"
|
||||
msgstr "E448: Библиотечка функција %s није могла да се учита"
|
||||
@@ -6412,13 +6550,15 @@ msgid "E25: GUI cannot be used: Not enabled at compile time"
|
||||
msgstr "E25: GUI не може да се користи: Није омогућен у време компилације"
|
||||
|
||||
msgid "E26: Hebrew cannot be used: Not enabled at compile time\n"
|
||||
msgstr "E26: хебрејски не може да се користи: Није омогућен у време компилације\n"
|
||||
msgstr ""
|
||||
"E26: хебрејски не може да се користи: Није омогућен у време компилације\n"
|
||||
|
||||
msgid "E27: Farsi cannot be used: Not enabled at compile time\n"
|
||||
msgstr "E27: фарси не може да се користи: Није омогућен у време компилације\n"
|
||||
|
||||
msgid "E800: Arabic cannot be used: Not enabled at compile time\n"
|
||||
msgstr "E800: арапски не може да се користи: Није омогућен у време компилације\n"
|
||||
msgstr ""
|
||||
"E800: арапски не може да се користи: Није омогућен у време компилације\n"
|
||||
|
||||
#, c-format
|
||||
msgid "E28: No such highlight group name: %s"
|
||||
@@ -6624,7 +6764,8 @@ msgid "E463: Region is guarded, cannot modify"
|
||||
msgstr "E463: Регион је чуван, измена није могућа"
|
||||
|
||||
msgid "E744: NetBeans does not allow changes in read-only files"
|
||||
msgstr "E744: NetBeans не дозвољава измене датотека које смеју само да се читају"
|
||||
msgstr ""
|
||||
"E744: NetBeans не дозвољава измене датотека које смеју само да се читају"
|
||||
|
||||
msgid "E363: pattern uses more memory than 'maxmempattern'"
|
||||
msgstr "E363: шаблон користи више меморије од 'maxmempattern'"
|
||||
@@ -6653,6 +6794,9 @@ msgstr "E850: Неважеће име регистра"
|
||||
msgid "E919: Directory not found in '%s': \"%s\""
|
||||
msgstr "E919: Није пронађен директоријум у '%s': \"%s\""
|
||||
|
||||
msgid "E952: Autocommand caused recursive behavior"
|
||||
msgstr "E952: Аутокомандa je изазвала рекурзивно понашање"
|
||||
|
||||
msgid "search hit TOP, continuing at BOTTOM"
|
||||
msgstr "претрага је достигла ВРХ, наставља се на ДНУ"
|
||||
|
||||
@@ -6692,11 +6836,14 @@ msgstr "очекивала се инстанца bytes() или str(), али ј
|
||||
msgid ""
|
||||
"expected int(), long() or something supporting coercing to long(), but got %s"
|
||||
msgstr ""
|
||||
"очекивало се int(), long() или нешто што подржава спајање са long(), али је добијено %s"
|
||||
"очекивало се int(), long() или нешто што подржава спајање са long(), али је "
|
||||
"добијено %s"
|
||||
|
||||
#, c-format
|
||||
msgid "expected int() or something supporting coercing to int(), but got %s"
|
||||
msgstr "очекивало се int() или нешто што подржава спајање са int(), али је добијено %s"
|
||||
msgstr ""
|
||||
"очекивало се int() или нешто што подржава спајање са int(), али је добијено %"
|
||||
"s"
|
||||
|
||||
msgid "value is too large to fit into C int type"
|
||||
msgstr "вредност је сувише велика да се смести у C int тип"
|
||||
@@ -6729,7 +6876,9 @@ msgstr "Као резултат imp.find_module() очекује се трипл
|
||||
|
||||
#, c-format
|
||||
msgid "expected 3-tuple as imp.find_module() result, but got tuple of size %d"
|
||||
msgstr "Као резултат imp.find_module() очекује се триплет, али је добијена н-торка величине %d"
|
||||
msgstr ""
|
||||
"Као резултат imp.find_module() очекује се триплет, али је добијена н-торка "
|
||||
"величине %d"
|
||||
|
||||
msgid "internal error: imp.find_module returned tuple with NULL"
|
||||
msgstr "интерна грешка: imp.find_module је вратио н-торку са NULL"
|
||||
@@ -6749,7 +6898,9 @@ msgstr "hashtab је промењен током итерације"
|
||||
|
||||
#, c-format
|
||||
msgid "expected sequence element of size 2, but got sequence of size %d"
|
||||
msgstr "очекивао се елемент секвенце величине 2, алил је добијена секвенца величине %d"
|
||||
msgstr ""
|
||||
"очекивао се елемент секвенце величине 2, али је добијена секвенца "
|
||||
"величине %d"
|
||||
|
||||
msgid "list constructor does not accept keyword arguments"
|
||||
msgstr "конструктор листе не прихвата кључне речи за аргументе"
|
||||
@@ -6780,7 +6931,8 @@ msgstr "интерна грешка: ставка није могла да се
|
||||
|
||||
#, c-format
|
||||
msgid "attempt to assign sequence of size %d to extended slice of size %d"
|
||||
msgstr "покушај доделе секвенце величине %d како би се продужио slice величине %d"
|
||||
msgstr ""
|
||||
"покушај доделе секвенце величине %d како би се продужио slice величине %d"
|
||||
|
||||
msgid "failed to add item to list"
|
||||
msgstr "ставка није могла да се дода листи"
|
||||
@@ -6916,3 +7068,47 @@ msgid ""
|
||||
msgstr ""
|
||||
"Путања није могла да се постави: sys.path није у листи\n"
|
||||
"Сада би требало да додате vim.VIM_SPECIAL_PATH на крај sys.path"
|
||||
|
||||
msgid ""
|
||||
"Vim macro files (*.vim)\t*.vim\n"
|
||||
"All Files (*.*)\t*.*\n"
|
||||
msgstr ""
|
||||
"Vim макро датотеке (*.vim)\t*.vim\n"
|
||||
"Све датотеке (*.*)\t*.*\n"
|
||||
|
||||
msgid "All Files (*.*)\t*.*\n"
|
||||
msgstr "Све датотеке (*.*)\t*.*\n"
|
||||
|
||||
msgid ""
|
||||
"All Files (*.*)\t*.*\n"
|
||||
"C source (*.c, *.h)\t*.c;*.h\n"
|
||||
"C++ source (*.cpp, *.hpp)\t*.cpp;*.hpp\n"
|
||||
"VB code (*.bas, *.frm)\t*.bas;*.frm\n"
|
||||
"Vim files (*.vim, _vimrc, _gvimrc)\t*.vim;_vimrc;_gvimrc\n"
|
||||
msgstr ""
|
||||
"Све датотеке (*.*)\t*.*\n"
|
||||
"C изворни код (*.c, *.h)\t*.c;*.h\n"
|
||||
"C++ изворни код (*.cpp, *.hpp)\t*.cpp;*.hpp\n"
|
||||
"VB код (*.bas, *.frm)\t*.bas;*.frm\n"
|
||||
"Vim датотеке (*.vim, _vimrc, _gvimrc)\t*.vim;_vimrc;_gvimrc\n"
|
||||
|
||||
msgid ""
|
||||
"Vim macro files (*.vim)\t*.vim\n"
|
||||
"All Files (*)\t*\n"
|
||||
msgstr ""
|
||||
"Vim макро датотеке (*.vim)\t*.vim\n"
|
||||
"Све датотеке (*)\t*\n"
|
||||
|
||||
msgid "All Files (*)\t*\n"
|
||||
msgstr "Све датотеке (*)\t*\n"
|
||||
|
||||
msgid ""
|
||||
"All Files (*)\t*\n"
|
||||
"C source (*.c, *.h)\t*.c;*.h\n"
|
||||
"C++ source (*.cpp, *.hpp)\t*.cpp;*.hpp\n"
|
||||
"Vim files (*.vim, _vimrc, _gvimrc)\t*.vim;_vimrc;_gvimrc\n"
|
||||
msgstr ""
|
||||
"Све датотеке (*)\t*\n"
|
||||
"C изворни код (*.c, *.h)\t*.c;*.h\n"
|
||||
"C++ изворни код (*.cpp, *.hpp)\t*.cpp;*.hpp\n"
|
||||
"Vim датотеке (*.vim, _vimrc, _gvimrc)\t*.vim;_vimrc;_gvimrc\n"
|
||||
|
||||
+195
-132
@@ -134,10 +134,8 @@ struct efm_S
|
||||
|
||||
static efm_T *fmt_start = NULL; /* cached across qf_parse_line() calls */
|
||||
|
||||
static int qf_init_ext(qf_info_T *qi, int qf_idx, char_u *efile, buf_T *buf, typval_T *tv, char_u *errorformat, int newlist, linenr_T lnumfirst, linenr_T lnumlast, char_u *qf_title, char_u *enc);
|
||||
static void qf_new_list(qf_info_T *qi, char_u *qf_title);
|
||||
static int qf_add_entry(qf_info_T *qi, int qf_idx, char_u *dir, char_u *fname, char_u *module, int bufnum, char_u *mesg, long lnum, int col, int vis_col, char_u *pattern, int nr, int type, int valid);
|
||||
static qf_info_T *ll_new_list(void);
|
||||
static void qf_free(qf_info_T *qi, int idx);
|
||||
static char_u *qf_types(int, int);
|
||||
static int qf_get_fnum(qf_info_T *qi, int qf_idx, char_u *, char_u *);
|
||||
@@ -177,32 +175,6 @@ static bufref_T qf_last_bufref = {NULL, 0, 0};
|
||||
static char *e_loc_list_changed =
|
||||
N_("E926: Current location list was changed");
|
||||
|
||||
/*
|
||||
* Read the errorfile "efile" into memory, line by line, building the error
|
||||
* list. Set the error list's title to qf_title.
|
||||
* Return -1 for error, number of errors for success.
|
||||
*/
|
||||
int
|
||||
qf_init(win_T *wp,
|
||||
char_u *efile,
|
||||
char_u *errorformat,
|
||||
int newlist, /* TRUE: start a new error list */
|
||||
char_u *qf_title,
|
||||
char_u *enc)
|
||||
{
|
||||
qf_info_T *qi = &ql_info;
|
||||
|
||||
if (wp != NULL)
|
||||
{
|
||||
qi = ll_get_or_alloc_list(wp);
|
||||
if (qi == NULL)
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
return qf_init_ext(qi, qi->qf_curlist, efile, curbuf, NULL, errorformat,
|
||||
newlist, (linenr_T)0, (linenr_T)0, qf_title, enc);
|
||||
}
|
||||
|
||||
/*
|
||||
* Maximum number of bytes allowed per line while reading a errorfile.
|
||||
*/
|
||||
@@ -1335,6 +1307,94 @@ restofline:
|
||||
return QF_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate the fields used for parsing lines and populating a quickfix list.
|
||||
*/
|
||||
static int
|
||||
qf_alloc_fields(qffields_T *pfields)
|
||||
{
|
||||
pfields->namebuf = alloc_id(CMDBUFFSIZE + 1, aid_qf_namebuf);
|
||||
pfields->module = alloc_id(CMDBUFFSIZE + 1, aid_qf_module);
|
||||
pfields->errmsglen = CMDBUFFSIZE + 1;
|
||||
pfields->errmsg = alloc_id(pfields->errmsglen, aid_qf_errmsg);
|
||||
pfields->pattern = alloc_id(CMDBUFFSIZE + 1, aid_qf_pattern);
|
||||
if (pfields->namebuf == NULL || pfields->errmsg == NULL
|
||||
|| pfields->pattern == NULL || pfields->module == NULL)
|
||||
return FAIL;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Free the fields used for parsing lines and populating a quickfix list.
|
||||
*/
|
||||
static void
|
||||
qf_free_fields(qffields_T *pfields)
|
||||
{
|
||||
vim_free(pfields->namebuf);
|
||||
vim_free(pfields->module);
|
||||
vim_free(pfields->errmsg);
|
||||
vim_free(pfields->pattern);
|
||||
}
|
||||
|
||||
/*
|
||||
* Setup the state information used for parsing lines and populating a
|
||||
* quickfix list.
|
||||
*/
|
||||
static int
|
||||
qf_setup_state(
|
||||
qfstate_T *pstate,
|
||||
char_u *enc,
|
||||
char_u *efile,
|
||||
typval_T *tv,
|
||||
buf_T *buf,
|
||||
linenr_T lnumfirst,
|
||||
linenr_T lnumlast)
|
||||
{
|
||||
#ifdef FEAT_MBYTE
|
||||
pstate->vc.vc_type = CONV_NONE;
|
||||
if (enc != NULL && *enc != NUL)
|
||||
convert_setup(&pstate->vc, enc, p_enc);
|
||||
#endif
|
||||
|
||||
if (efile != NULL && (pstate->fd = mch_fopen((char *)efile, "r")) == NULL)
|
||||
{
|
||||
EMSG2(_(e_openerrf), efile);
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
if (tv != NULL)
|
||||
{
|
||||
if (tv->v_type == VAR_STRING)
|
||||
pstate->p_str = tv->vval.v_string;
|
||||
else if (tv->v_type == VAR_LIST)
|
||||
pstate->p_li = tv->vval.v_list->lv_first;
|
||||
pstate->tv = tv;
|
||||
}
|
||||
pstate->buf = buf;
|
||||
pstate->buflnum = lnumfirst;
|
||||
pstate->lnumlast = lnumlast;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Cleanup the state information used for parsing lines and populating a
|
||||
* quickfix list.
|
||||
*/
|
||||
static void
|
||||
qf_cleanup_state(qfstate_T *pstate)
|
||||
{
|
||||
if (pstate->fd != NULL)
|
||||
fclose(pstate->fd);
|
||||
|
||||
vim_free(pstate->growbuf);
|
||||
#ifdef FEAT_MBYTE
|
||||
if (pstate->vc.vc_type != CONV_NONE)
|
||||
convert_setup(&pstate->vc, NULL, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Read the errorfile "efile" into memory, line by line, building the error
|
||||
* list.
|
||||
@@ -1375,26 +1435,11 @@ qf_init_ext(
|
||||
|
||||
vim_memset(&state, 0, sizeof(state));
|
||||
vim_memset(&fields, 0, sizeof(fields));
|
||||
#ifdef FEAT_MBYTE
|
||||
state.vc.vc_type = CONV_NONE;
|
||||
if (enc != NULL && *enc != NUL)
|
||||
convert_setup(&state.vc, enc, p_enc);
|
||||
#endif
|
||||
fields.namebuf = alloc_id(CMDBUFFSIZE + 1, aid_qf_namebuf);
|
||||
fields.module = alloc_id(CMDBUFFSIZE + 1, aid_qf_module);
|
||||
fields.errmsglen = CMDBUFFSIZE + 1;
|
||||
fields.errmsg = alloc_id(fields.errmsglen, aid_qf_errmsg);
|
||||
fields.pattern = alloc_id(CMDBUFFSIZE + 1, aid_qf_pattern);
|
||||
if (fields.namebuf == NULL || fields.errmsg == NULL
|
||||
|| fields.pattern == NULL || fields.module == NULL)
|
||||
if ((qf_alloc_fields(&fields) == FAIL) ||
|
||||
(qf_setup_state(&state, enc, efile, tv, buf,
|
||||
lnumfirst, lnumlast) == FAIL))
|
||||
goto qf_init_end;
|
||||
|
||||
if (efile != NULL && (state.fd = mch_fopen((char *)efile, "r")) == NULL)
|
||||
{
|
||||
EMSG2(_(e_openerrf), efile);
|
||||
goto qf_init_end;
|
||||
}
|
||||
|
||||
if (newlist || qf_idx == qi->qf_listcount)
|
||||
{
|
||||
/* make place for a new list */
|
||||
@@ -1442,18 +1487,6 @@ qf_init_ext(
|
||||
*/
|
||||
got_int = FALSE;
|
||||
|
||||
if (tv != NULL)
|
||||
{
|
||||
if (tv->v_type == VAR_STRING)
|
||||
state.p_str = tv->vval.v_string;
|
||||
else if (tv->v_type == VAR_LIST)
|
||||
state.p_li = tv->vval.v_list->lv_first;
|
||||
state.tv = tv;
|
||||
}
|
||||
state.buf = buf;
|
||||
state.buflnum = lnumfirst;
|
||||
state.lnumlast = lnumlast;
|
||||
|
||||
/*
|
||||
* Read the lines in the error file one by one.
|
||||
* Try to recognize one of the error formats in each line.
|
||||
@@ -1526,24 +1559,40 @@ error2:
|
||||
--qi->qf_curlist;
|
||||
}
|
||||
qf_init_end:
|
||||
if (state.fd != NULL)
|
||||
fclose(state.fd);
|
||||
vim_free(fields.namebuf);
|
||||
vim_free(fields.module);
|
||||
vim_free(fields.errmsg);
|
||||
vim_free(fields.pattern);
|
||||
vim_free(state.growbuf);
|
||||
|
||||
if (qf_idx == qi->qf_curlist)
|
||||
qf_update_buffer(qi, old_last);
|
||||
#ifdef FEAT_MBYTE
|
||||
if (state.vc.vc_type != CONV_NONE)
|
||||
convert_setup(&state.vc, NULL, NULL);
|
||||
#endif
|
||||
qf_cleanup_state(&state);
|
||||
qf_free_fields(&fields);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read the errorfile "efile" into memory, line by line, building the error
|
||||
* list. Set the error list's title to qf_title.
|
||||
* Return -1 for error, number of errors for success.
|
||||
*/
|
||||
int
|
||||
qf_init(win_T *wp,
|
||||
char_u *efile,
|
||||
char_u *errorformat,
|
||||
int newlist, /* TRUE: start a new error list */
|
||||
char_u *qf_title,
|
||||
char_u *enc)
|
||||
{
|
||||
qf_info_T *qi = &ql_info;
|
||||
|
||||
if (wp != NULL)
|
||||
{
|
||||
qi = ll_get_or_alloc_list(wp);
|
||||
if (qi == NULL)
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
return qf_init_ext(qi, qi->qf_curlist, efile, curbuf, NULL, errorformat,
|
||||
newlist, (linenr_T)0, (linenr_T)0, qf_title, enc);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the title of the specified quickfix list. Frees the previous title.
|
||||
* Prepends ':' to the title.
|
||||
@@ -3834,6 +3883,80 @@ qf_set_title_var(qf_info_T *qi)
|
||||
qi->qf_lists[qi->qf_curlist].qf_title);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add an error line to the quickfix buffer.
|
||||
*/
|
||||
static int
|
||||
qf_buf_add_line(buf_T *buf, linenr_T lnum, qfline_T *qfp, char_u *dirname)
|
||||
{
|
||||
int len;
|
||||
buf_T *errbuf;
|
||||
|
||||
if (qfp->qf_module != NULL)
|
||||
{
|
||||
STRCPY(IObuff, qfp->qf_module);
|
||||
len = (int)STRLEN(IObuff);
|
||||
}
|
||||
else if (qfp->qf_fnum != 0
|
||||
&& (errbuf = buflist_findnr(qfp->qf_fnum)) != NULL
|
||||
&& errbuf->b_fname != NULL)
|
||||
{
|
||||
if (qfp->qf_type == 1) /* :helpgrep */
|
||||
STRCPY(IObuff, gettail(errbuf->b_fname));
|
||||
else
|
||||
{
|
||||
/* shorten the file name if not done already */
|
||||
if (errbuf->b_sfname == NULL
|
||||
|| mch_isFullName(errbuf->b_sfname))
|
||||
{
|
||||
if (*dirname == NUL)
|
||||
mch_dirname(dirname, MAXPATHL);
|
||||
shorten_buf_fname(errbuf, dirname, FALSE);
|
||||
}
|
||||
STRCPY(IObuff, errbuf->b_fname);
|
||||
}
|
||||
len = (int)STRLEN(IObuff);
|
||||
}
|
||||
else
|
||||
len = 0;
|
||||
IObuff[len++] = '|';
|
||||
|
||||
if (qfp->qf_lnum > 0)
|
||||
{
|
||||
sprintf((char *)IObuff + len, "%ld", qfp->qf_lnum);
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
|
||||
if (qfp->qf_col > 0)
|
||||
{
|
||||
sprintf((char *)IObuff + len, " col %d", qfp->qf_col);
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
}
|
||||
|
||||
sprintf((char *)IObuff + len, "%s",
|
||||
(char *)qf_types(qfp->qf_type, qfp->qf_nr));
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
}
|
||||
else if (qfp->qf_pattern != NULL)
|
||||
{
|
||||
qf_fmt_text(qfp->qf_pattern, IObuff + len, IOSIZE - len);
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
}
|
||||
IObuff[len++] = '|';
|
||||
IObuff[len++] = ' ';
|
||||
|
||||
/* Remove newlines and leading whitespace from the text.
|
||||
* For an unrecognized line keep the indent, the compiler may
|
||||
* mark a word with ^^^^. */
|
||||
qf_fmt_text(len > 3 ? skipwhite(qfp->qf_text) : qfp->qf_text,
|
||||
IObuff + len, IOSIZE - len);
|
||||
|
||||
if (ml_append_buf(buf, lnum, IObuff,
|
||||
(colnr_T)STRLEN(IObuff) + 1, FALSE) == FAIL)
|
||||
return FAIL;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Fill current buffer with quickfix errors, replacing any previous contents.
|
||||
* curbuf must be the quickfix buffer!
|
||||
@@ -3846,8 +3969,6 @@ qf_fill_buffer(qf_info_T *qi, buf_T *buf, qfline_T *old_last)
|
||||
{
|
||||
linenr_T lnum;
|
||||
qfline_T *qfp;
|
||||
buf_T *errbuf;
|
||||
int len;
|
||||
int old_KeyTyped = KeyTyped;
|
||||
|
||||
if (old_last == NULL)
|
||||
@@ -3883,67 +4004,9 @@ qf_fill_buffer(qf_info_T *qi, buf_T *buf, qfline_T *old_last)
|
||||
}
|
||||
while (lnum < qi->qf_lists[qi->qf_curlist].qf_count)
|
||||
{
|
||||
if (qfp->qf_module != NULL)
|
||||
{
|
||||
STRCPY(IObuff, qfp->qf_module);
|
||||
len = (int)STRLEN(IObuff);
|
||||
}
|
||||
else if (qfp->qf_fnum != 0
|
||||
&& (errbuf = buflist_findnr(qfp->qf_fnum)) != NULL
|
||||
&& errbuf->b_fname != NULL)
|
||||
{
|
||||
if (qfp->qf_type == 1) /* :helpgrep */
|
||||
STRCPY(IObuff, gettail(errbuf->b_fname));
|
||||
else
|
||||
{
|
||||
/* shorten the file name if not done already */
|
||||
if (errbuf->b_sfname == NULL
|
||||
|| mch_isFullName(errbuf->b_sfname))
|
||||
{
|
||||
if (*dirname == NUL)
|
||||
mch_dirname(dirname, MAXPATHL);
|
||||
shorten_buf_fname(errbuf, dirname, FALSE);
|
||||
}
|
||||
STRCPY(IObuff, errbuf->b_fname);
|
||||
}
|
||||
len = (int)STRLEN(IObuff);
|
||||
}
|
||||
else
|
||||
len = 0;
|
||||
IObuff[len++] = '|';
|
||||
|
||||
if (qfp->qf_lnum > 0)
|
||||
{
|
||||
sprintf((char *)IObuff + len, "%ld", qfp->qf_lnum);
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
|
||||
if (qfp->qf_col > 0)
|
||||
{
|
||||
sprintf((char *)IObuff + len, " col %d", qfp->qf_col);
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
}
|
||||
|
||||
sprintf((char *)IObuff + len, "%s",
|
||||
(char *)qf_types(qfp->qf_type, qfp->qf_nr));
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
}
|
||||
else if (qfp->qf_pattern != NULL)
|
||||
{
|
||||
qf_fmt_text(qfp->qf_pattern, IObuff + len, IOSIZE - len);
|
||||
len += (int)STRLEN(IObuff + len);
|
||||
}
|
||||
IObuff[len++] = '|';
|
||||
IObuff[len++] = ' ';
|
||||
|
||||
/* Remove newlines and leading whitespace from the text.
|
||||
* For an unrecognized line keep the indent, the compiler may
|
||||
* mark a word with ^^^^. */
|
||||
qf_fmt_text(len > 3 ? skipwhite(qfp->qf_text) : qfp->qf_text,
|
||||
IObuff + len, IOSIZE - len);
|
||||
|
||||
if (ml_append_buf(buf, lnum, IObuff,
|
||||
(colnr_T)STRLEN(IObuff) + 1, FALSE) == FAIL)
|
||||
if (qf_buf_add_line(buf, lnum, qfp, dirname) == FAIL)
|
||||
break;
|
||||
|
||||
++lnum;
|
||||
qfp = qfp->qf_next;
|
||||
if (qfp == NULL)
|
||||
|
||||
+4
-4
@@ -10300,7 +10300,7 @@ showmode(void)
|
||||
&& ((State & INSERT)
|
||||
|| restart_edit
|
||||
|| VIsual_active));
|
||||
if (do_mode || Recording)
|
||||
if (do_mode || reg_recording != 0)
|
||||
{
|
||||
/*
|
||||
* Don't show mode right now, when not redrawing or inside a mapping.
|
||||
@@ -10460,7 +10460,7 @@ showmode(void)
|
||||
|
||||
need_clear = TRUE;
|
||||
}
|
||||
if (Recording
|
||||
if (reg_recording != 0
|
||||
#ifdef FEAT_INS_EXPAND
|
||||
&& edit_submode == NULL /* otherwise it gets too long */
|
||||
#endif
|
||||
@@ -10535,7 +10535,7 @@ clearmode(void)
|
||||
int save_msg_col = msg_col;
|
||||
|
||||
msg_pos_mode();
|
||||
if (Recording)
|
||||
if (reg_recording != 0)
|
||||
recording_mode(HL_ATTR(HLF_CM));
|
||||
msg_clr_eos();
|
||||
|
||||
@@ -10550,7 +10550,7 @@ recording_mode(int attr)
|
||||
if (!shortmess(SHM_RECORDING))
|
||||
{
|
||||
char_u s[4];
|
||||
sprintf((char *)s, " @%c", Recording);
|
||||
sprintf((char *)s, " @%c", reg_recording);
|
||||
MSG_PUTS_ATTR(s, attr);
|
||||
}
|
||||
}
|
||||
|
||||
+20
-1
@@ -4674,6 +4674,7 @@ current_search(
|
||||
{
|
||||
pos_T start_pos; /* position before the pattern */
|
||||
pos_T orig_pos; /* position of the cursor at beginning */
|
||||
pos_T first_match; /* position of first match */
|
||||
pos_T pos; /* position after the pattern */
|
||||
int i;
|
||||
int dir;
|
||||
@@ -4767,6 +4768,8 @@ current_search(
|
||||
ml_get(curwin->w_buffer->b_ml.ml_line_count));
|
||||
}
|
||||
}
|
||||
if (i == 0)
|
||||
first_match = pos;
|
||||
p_ws = old_p_ws;
|
||||
}
|
||||
|
||||
@@ -4783,9 +4786,25 @@ current_search(
|
||||
/* move to match, except for zero-width matches, in which case, we are
|
||||
* already on the next match */
|
||||
if (!one_char)
|
||||
result = searchit(curwin, curbuf, &pos, direction,
|
||||
{
|
||||
p_ws = FALSE;
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
result = searchit(curwin, curbuf, &pos, direction,
|
||||
spats[last_idx].pat, 0L, flags | SEARCH_KEEP, RE_SEARCH, 0,
|
||||
NULL, NULL);
|
||||
/* Search successfull, break out from the loop */
|
||||
if (result)
|
||||
break;
|
||||
/* search failed, try again from the last search position match */
|
||||
pos = first_match;
|
||||
}
|
||||
}
|
||||
|
||||
p_ws = old_p_ws;
|
||||
/* not found */
|
||||
if (!result)
|
||||
return FAIL;
|
||||
|
||||
if (!VIsual_active)
|
||||
VIsual = start_pos;
|
||||
|
||||
+39
-25
@@ -171,8 +171,8 @@ static int term_default_cterm_bg = -1;
|
||||
|
||||
/* Store the last set and the desired cursor properties, so that we only update
|
||||
* them when needed. Doing it unnecessary may result in flicker. */
|
||||
static char_u *last_set_cursor_color = (char_u *)"";
|
||||
static char_u *desired_cursor_color = (char_u *)"";
|
||||
static char_u *last_set_cursor_color = NULL;
|
||||
static char_u *desired_cursor_color = NULL;
|
||||
static int last_set_cursor_shape = -1;
|
||||
static int desired_cursor_shape = -1;
|
||||
static int last_set_cursor_blink = -1;
|
||||
@@ -183,6 +183,31 @@ static int desired_cursor_blink = -1;
|
||||
* 1. Generic code for all systems.
|
||||
*/
|
||||
|
||||
static int
|
||||
cursor_color_equal(char_u *lhs_color, char_u *rhs_color)
|
||||
{
|
||||
if (lhs_color != NULL && rhs_color != NULL)
|
||||
return STRCMP(lhs_color, rhs_color) == 0;
|
||||
return lhs_color == NULL && rhs_color == NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
cursor_color_copy(char_u **to_color, char_u *from_color)
|
||||
{
|
||||
// Avoid a free & alloc if the value is already right.
|
||||
if (cursor_color_equal(*to_color, from_color))
|
||||
return;
|
||||
vim_free(*to_color);
|
||||
*to_color = (from_color == NULL) ? NULL : vim_strsave(from_color);
|
||||
}
|
||||
|
||||
static char_u *
|
||||
cursor_color_get(char_u *color)
|
||||
{
|
||||
return (color == NULL) ? (char_u *)"" : color;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Parse 'termwinsize' and set "rows" and "cols" for the terminal size in the
|
||||
* current window.
|
||||
@@ -823,8 +848,6 @@ free_terminal(buf_T *buf)
|
||||
if (term->tl_out_fd != NULL)
|
||||
fclose(term->tl_out_fd);
|
||||
#endif
|
||||
if (desired_cursor_color == term->tl_cursor_color)
|
||||
desired_cursor_color = (char_u *)"";
|
||||
vim_free(term->tl_cursor_color);
|
||||
vim_free(term);
|
||||
buf->b_term = NULL;
|
||||
@@ -1959,14 +1982,14 @@ term_get_cursor_shape(guicolor_T *fg, guicolor_T *bg)
|
||||
static void
|
||||
may_output_cursor_props(void)
|
||||
{
|
||||
if (STRCMP(last_set_cursor_color, desired_cursor_color) != 0
|
||||
if (!cursor_color_equal(last_set_cursor_color, desired_cursor_color)
|
||||
|| last_set_cursor_shape != desired_cursor_shape
|
||||
|| last_set_cursor_blink != desired_cursor_blink)
|
||||
{
|
||||
last_set_cursor_color = desired_cursor_color;
|
||||
cursor_color_copy(&last_set_cursor_color, desired_cursor_color);
|
||||
last_set_cursor_shape = desired_cursor_shape;
|
||||
last_set_cursor_blink = desired_cursor_blink;
|
||||
term_cursor_color(desired_cursor_color);
|
||||
term_cursor_color(cursor_color_get(desired_cursor_color));
|
||||
if (desired_cursor_shape == -1 || desired_cursor_blink == -1)
|
||||
/* this will restore the initial cursor style, if possible */
|
||||
ui_cursor_shape_forced(TRUE);
|
||||
@@ -1989,10 +2012,7 @@ may_set_cursor_props(term_T *term)
|
||||
#endif
|
||||
if (in_terminal_loop == term)
|
||||
{
|
||||
if (term->tl_cursor_color != NULL)
|
||||
desired_cursor_color = term->tl_cursor_color;
|
||||
else
|
||||
desired_cursor_color = (char_u *)"";
|
||||
cursor_color_copy(&desired_cursor_color, term->tl_cursor_color);
|
||||
desired_cursor_shape = term->tl_cursor_shape;
|
||||
desired_cursor_blink = term->tl_cursor_blink;
|
||||
may_output_cursor_props();
|
||||
@@ -2009,7 +2029,7 @@ prepare_restore_cursor_props(void)
|
||||
if (gui.in_use)
|
||||
return;
|
||||
#endif
|
||||
desired_cursor_color = (char_u *)"";
|
||||
cursor_color_copy(&desired_cursor_color, NULL);
|
||||
desired_cursor_shape = -1;
|
||||
desired_cursor_blink = -1;
|
||||
may_output_cursor_props();
|
||||
@@ -2107,7 +2127,7 @@ terminal_loop(int blocking)
|
||||
while (must_redraw != 0)
|
||||
if (update_screen(0) == FAIL)
|
||||
break;
|
||||
if (!term_use_loop_check(TRUE))
|
||||
if (!term_use_loop_check(TRUE) || in_terminal_loop != curbuf->b_term)
|
||||
/* job finished while redrawing */
|
||||
break;
|
||||
|
||||
@@ -2115,7 +2135,7 @@ terminal_loop(int blocking)
|
||||
restore_cursor = TRUE;
|
||||
|
||||
c = term_vgetc();
|
||||
if (!term_use_loop_check(TRUE))
|
||||
if (!term_use_loop_check(TRUE) || in_terminal_loop != curbuf->b_term)
|
||||
{
|
||||
/* Job finished while waiting for a character. Push back the
|
||||
* received character. */
|
||||
@@ -2166,7 +2186,8 @@ terminal_loop(int blocking)
|
||||
#ifdef FEAT_CMDL_INFO
|
||||
clear_showcmd();
|
||||
#endif
|
||||
if (!term_use_loop_check(TRUE))
|
||||
if (!term_use_loop_check(TRUE)
|
||||
|| in_terminal_loop != curbuf->b_term)
|
||||
/* job finished while waiting for a character */
|
||||
break;
|
||||
|
||||
@@ -2629,13 +2650,7 @@ handle_settermprop(
|
||||
break;
|
||||
|
||||
case VTERM_PROP_CURSORCOLOR:
|
||||
if (desired_cursor_color == term->tl_cursor_color)
|
||||
desired_cursor_color = (char_u *)"";
|
||||
vim_free(term->tl_cursor_color);
|
||||
if (*value->string == NUL)
|
||||
term->tl_cursor_color = NULL;
|
||||
else
|
||||
term->tl_cursor_color = vim_strsave((char_u *)value->string);
|
||||
cursor_color_copy(&term->tl_cursor_color, (char_u*)value->string);
|
||||
may_set_cursor_props(term);
|
||||
break;
|
||||
|
||||
@@ -4716,8 +4731,7 @@ f_term_getcursor(typval_T *argvars, typval_T *rettv)
|
||||
dict_add_nr_str(d, "blink", blink_state_is_inverted()
|
||||
? !term->tl_cursor_blink : term->tl_cursor_blink, NULL);
|
||||
dict_add_nr_str(d, "shape", term->tl_cursor_shape, NULL);
|
||||
dict_add_nr_str(d, "color", 0L, term->tl_cursor_color == NULL
|
||||
? (char_u *)"" : term->tl_cursor_color);
|
||||
dict_add_nr_str(d, "color", 0L, cursor_color_get(term->tl_cursor_color));
|
||||
list_append_dict(l, d);
|
||||
}
|
||||
}
|
||||
@@ -5255,11 +5269,11 @@ f_term_wait(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
{
|
||||
mch_check_messages();
|
||||
parse_queued_messages();
|
||||
ui_delay(10L, FALSE);
|
||||
if (!buf_valid(buf))
|
||||
/* If the terminal is closed when the channel is closed the
|
||||
* buffer disappears. */
|
||||
break;
|
||||
ui_delay(10L, FALSE);
|
||||
}
|
||||
mch_check_messages();
|
||||
parse_queued_messages();
|
||||
|
||||
@@ -231,6 +231,15 @@ func Test_getcompletion()
|
||||
let l = getcompletion('not', 'mapclear')
|
||||
call assert_equal([], l)
|
||||
|
||||
let l = getcompletion('.', 'shellcmd')
|
||||
call assert_equal(['./', '../'], l[0:1])
|
||||
call assert_equal(-1, match(l[2:], '^\.\.\?/$'))
|
||||
let root = has('win32') ? 'C:\\' : '/'
|
||||
let l = getcompletion(root, 'shellcmd')
|
||||
let expected = map(filter(glob(root . '*', 0, 1),
|
||||
\ 'isdirectory(v:val) || executable(v:val)'), 'isdirectory(v:val) ? v:val . ''/'' : v:val')
|
||||
call assert_equal(expected, l)
|
||||
|
||||
if has('cscope')
|
||||
let l = getcompletion('', 'cscope')
|
||||
let cmds = ['add', 'find', 'help', 'kill', 'reset', 'show']
|
||||
@@ -258,8 +267,7 @@ func Test_getcompletion()
|
||||
endif
|
||||
|
||||
" For others test if the name is recognized.
|
||||
let names = ['buffer', 'environment', 'file_in_path',
|
||||
\ 'mapping', 'shellcmd', 'tag', 'tag_listfiles', 'user']
|
||||
let names = ['buffer', 'environment', 'file_in_path', 'mapping', 'tag', 'tag_listfiles', 'user']
|
||||
if has('cmdline_hist')
|
||||
call add(names, 'history')
|
||||
endif
|
||||
|
||||
@@ -923,3 +923,28 @@ func Test_trim()
|
||||
let chars = join(map(range(1, 0x20) + [0xa0], {n -> nr2char(n)}), '')
|
||||
call assert_equal("x", trim(chars . "x" . chars))
|
||||
endfunc
|
||||
|
||||
" Test for reg_recording() and reg_executing()
|
||||
func Test_reg_executing_and_recording()
|
||||
let s:reg_stat = ''
|
||||
func s:save_reg_stat()
|
||||
let s:reg_stat = reg_recording() . ':' . reg_executing()
|
||||
return ''
|
||||
endfunc
|
||||
|
||||
new
|
||||
call s:save_reg_stat()
|
||||
call assert_equal(':', s:reg_stat)
|
||||
call feedkeys("qa\"=s:save_reg_stat()\<CR>pq", 'xt')
|
||||
call assert_equal('a:', s:reg_stat)
|
||||
call feedkeys("@a", 'xt')
|
||||
call assert_equal(':a', s:reg_stat)
|
||||
call feedkeys("qb@aq", 'xt')
|
||||
call assert_equal('b:a', s:reg_stat)
|
||||
call feedkeys("q\"\"=s:save_reg_stat()\<CR>pq", 'xt')
|
||||
call assert_equal('":', s:reg_stat)
|
||||
|
||||
bwipe!
|
||||
delfunc s:save_reg_stat
|
||||
unlet s:reg_stat
|
||||
endfunc
|
||||
|
||||
+24
-15
@@ -4,51 +4,51 @@ func Test_gn_command()
|
||||
noautocmd new
|
||||
" replace a single char by itsself quoted:
|
||||
call setline('.', 'abc x def x ghi x jkl')
|
||||
let @/='x'
|
||||
let @/ = 'x'
|
||||
exe "norm! cgn'x'\<esc>.."
|
||||
call assert_equal("abc 'x' def 'x' ghi 'x' jkl", getline('.'))
|
||||
sil! %d_
|
||||
|
||||
" simple search match
|
||||
call setline('.', 'foobar')
|
||||
let @/='foobar'
|
||||
let @/ = 'foobar'
|
||||
exe "norm! gncsearchmatch"
|
||||
call assert_equal('searchmatch', getline('.'))
|
||||
sil! %d _
|
||||
|
||||
" replace a multi-line match
|
||||
call setline('.', ['', 'one', 'two'])
|
||||
let @/='one\_s*two\_s'
|
||||
let @/ = 'one\_s*two\_s'
|
||||
exe "norm! gnceins\<CR>zwei"
|
||||
call assert_equal(['','eins','zwei'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" test count argument
|
||||
call setline('.', ['', 'abcdx | abcdx | abcdx'])
|
||||
let @/='[a]bcdx'
|
||||
let @/ = '[a]bcdx'
|
||||
exe "norm! 2gnd"
|
||||
call assert_equal(['','abcdx | | abcdx'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" join lines
|
||||
call setline('.', ['join ', 'lines'])
|
||||
let @/='$'
|
||||
let @/ = '$'
|
||||
exe "norm! 0gnd"
|
||||
call assert_equal(['join lines'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" zero-width match
|
||||
call setline('.', ['', 'zero width pattern'])
|
||||
let @/='\>\zs'
|
||||
let @/ = '\>\zs'
|
||||
exe "norm! 0gnd"
|
||||
call assert_equal(['', 'zerowidth pattern'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" delete first and last chars
|
||||
call setline('.', ['delete first and last chars'])
|
||||
let @/='^'
|
||||
let @/ = '^'
|
||||
exe "norm! 0gnd$"
|
||||
let @/='\zs'
|
||||
let @/ = '\zs'
|
||||
exe "norm! gnd"
|
||||
call assert_equal(['elete first and last char'], getline(1,'$'))
|
||||
sil! %d _
|
||||
@@ -61,14 +61,14 @@ func Test_gn_command()
|
||||
|
||||
" backwards search
|
||||
call setline('.', ['my very excellent mother just served us nachos'])
|
||||
let @/='mother'
|
||||
let @/ = 'mother'
|
||||
exe "norm! $cgNmongoose"
|
||||
call assert_equal(['my very excellent mongoose just served us nachos'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" search for single char
|
||||
call setline('.', ['','for (i=0; i<=10; i++)'])
|
||||
let @/='i'
|
||||
let @/ = 'i'
|
||||
exe "norm! cgnj"
|
||||
call assert_equal(['','for (j=0; i<=10; i++)'], getline(1,'$'))
|
||||
sil! %d _
|
||||
@@ -76,28 +76,28 @@ func Test_gn_command()
|
||||
" search hex char
|
||||
call setline('.', ['','Y'])
|
||||
set noignorecase
|
||||
let @/='\%x59'
|
||||
let @/ = '\%x59'
|
||||
exe "norm! gnd"
|
||||
call assert_equal(['',''], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" test repeating gdn
|
||||
call setline('.', ['', '1', 'Johnny', '2', 'Johnny', '3'])
|
||||
let @/='Johnny'
|
||||
let @/ = 'Johnny'
|
||||
exe "norm! dgn."
|
||||
call assert_equal(['','1', '', '2', '', '3'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" test repeating gUgn
|
||||
call setline('.', ['', '1', 'Depp', '2', 'Depp', '3'])
|
||||
let @/='Depp'
|
||||
let @/ = 'Depp'
|
||||
exe "norm! gUgn."
|
||||
call assert_equal(['', '1', 'DEPP', '2', 'DEPP', '3'], getline(1,'$'))
|
||||
sil! %d _
|
||||
|
||||
" test using look-ahead assertions
|
||||
call setline('.', ['a:10', '', 'a:1', '', 'a:20'])
|
||||
let @/='a:0\@!\zs\d\+'
|
||||
let @/ = 'a:0\@!\zs\d\+'
|
||||
exe "norm! 2nygno\<esc>p"
|
||||
call assert_equal(['a:10', '', 'a:1', '1', '', 'a:20'], getline(1,'$'))
|
||||
sil! %d _
|
||||
@@ -113,12 +113,21 @@ func Test_gn_command()
|
||||
" search upwards with nowrapscan set
|
||||
call setline('.', ['foo', 'bar', 'foo', 'baz'])
|
||||
set nowrapscan
|
||||
let @/='foo'
|
||||
let @/ = 'foo'
|
||||
$
|
||||
norm! dgN
|
||||
call assert_equal(['foo', 'bar', '', 'baz'], getline(1,'$'))
|
||||
sil! %d_
|
||||
|
||||
" search using the \zs atom
|
||||
call setline(1, [' nnoremap', '' , 'nnoremap'])
|
||||
set wrapscan&vim
|
||||
let @/ = '\_s\zsnnoremap'
|
||||
$
|
||||
norm! cgnmatch
|
||||
call assert_equal([' nnoremap', '', 'match'], getline(1,'$'))
|
||||
sil! %d_
|
||||
|
||||
set wrapscan&vim
|
||||
endfu
|
||||
|
||||
|
||||
@@ -284,3 +284,9 @@ func Test_named_function_closure()
|
||||
call test_garbagecollect_now()
|
||||
call assert_equal(14, s:Abar())
|
||||
endfunc
|
||||
|
||||
func Test_lambda_with_index()
|
||||
let List = {x -> [x]}
|
||||
let Extract = {-> function(List, ['foobar'])()[0]}
|
||||
call assert_equal('foobar', Extract())
|
||||
endfunc
|
||||
|
||||
@@ -29,9 +29,13 @@ function Test_maparg()
|
||||
\ maparg('foo', '', 0, 1))
|
||||
|
||||
map abc x<char-114>x
|
||||
call assert_equal(maparg('abc'), "xrx")
|
||||
call assert_equal("xrx", maparg('abc'))
|
||||
map abc y<S-char-114>y
|
||||
call assert_equal(maparg('abc'), "yRy")
|
||||
call assert_equal("yRy", maparg('abc'))
|
||||
|
||||
map abc <Nop>
|
||||
call assert_equal("<Nop>", maparg('abc'))
|
||||
unmap abc
|
||||
endfunction
|
||||
|
||||
function Test_range_map()
|
||||
|
||||
+10
-2
@@ -1349,8 +1349,16 @@ call_func(
|
||||
}
|
||||
|
||||
|
||||
/* execute the function if no errors detected and executing */
|
||||
if (evaluate && error == ERROR_NONE)
|
||||
/*
|
||||
* Execute the function if executing and no errors were detected.
|
||||
*/
|
||||
if (!evaluate)
|
||||
{
|
||||
// Not evaluating, which means the return value is unknown. This
|
||||
// matters for giving error messages.
|
||||
rettv->v_type = VAR_UNKNOWN;
|
||||
}
|
||||
else if (error == ERROR_NONE)
|
||||
{
|
||||
char_u *rfname = fname;
|
||||
|
||||
|
||||
@@ -776,6 +776,26 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
20,
|
||||
/**/
|
||||
19,
|
||||
/**/
|
||||
18,
|
||||
/**/
|
||||
17,
|
||||
/**/
|
||||
16,
|
||||
/**/
|
||||
15,
|
||||
/**/
|
||||
14,
|
||||
/**/
|
||||
13,
|
||||
/**/
|
||||
12,
|
||||
/**/
|
||||
11,
|
||||
/**/
|
||||
10,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user