Skip to content

Commit

Permalink
updated for version 7.0072
Browse files Browse the repository at this point in the history
  • Loading branch information
vimboss committed May 18, 2005
1 parent 3267f42 commit 8ce9c3b
Show file tree
Hide file tree
Showing 18 changed files with 1,289 additions and 683 deletions.
10 changes: 9 additions & 1 deletion runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
*syntax.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
*syntax.txt* For Vim version 7.0aa. Last change: 2005 May 18


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1579,6 +1579,14 @@ $VIMRUNTIME/syntax/syntax.vim).
mv_finance mv_logic mv_powseries
MATHEMATICA *mma.vim* *mma-syntax* *mathematica-syntax*

Empty *.m files will automatically be presumed to be Matlab files unless you
have the following in your .vimrc: >
let filetype_m = "mma"
MOO *moo.vim* *moo-syntax*

If you use C-style comments inside expressions and find it mangles your
Expand Down
53 changes: 38 additions & 15 deletions runtime/doc/todo.txt
@@ -1,4 +1,4 @@
*todo.txt* For Vim version 7.0aa. Last change: 2005 Apr 24
*todo.txt* For Vim version 7.0aa. Last change: 2005 May 18


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -30,33 +30,46 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs*
-------------------- Known bugs and current work -----------------------

This doesn't work: "a[var1:var2]". Requires space before/after ':'. Can this
be fixed? Otherwise document it.

regmatch(): "regstack" could start with a fixed block of data for speed.
"backpos" is never freed. (Alexei Alexandrov)

Starting without any buffers, set nocp, ":b <Tab>" gives error message.
(Ciaran McCressh for Aron Griffis)

Problem with 'insertmode'. (Georg Dahn, 2005 April 9, expl. April 14)
Problem with CTRL-V pasting more than one line. (Georg Dahn, 2005 April 11)

Patch for setqflist() (Yegappan Lakshmanan, 2005 April 11)

":help \=<Tab>" doesn't find "sub-replace-\=".

In an errorfile expand "~/" to home directory. (Arnout Engelen)

Patch for 2html.vim to disable folding (Michael Schaap, 2005 April 12)

Win32: Alt-F10 no longer working? (Bill McCarthy, April 18)

Patch for if_python to make exit work better with threads. (ugo)

With "wa" in 'formatoptions', backspace at start-of-line doesn't work. It
should delete the space at the end of the previous line. (Alan Isaac)

GTK GUI: Running a script that does :vsp and :quit, causing the left scrollbar
to appear and disappear, causes resizing. (gvcolors.vim from Charles Campbell,
2005 April 25)

Problem with ":mksession" for "vim -o "+argdel *" prog1 prog2 prog3"
(Bill McCarthy, 2005 April 26)

getreg('=') returns the result of evaluating the expression. How to get the
expression itself, so that it can be restored? (David Fishburn) Perhaps use
getreg('=', 1). Also make setreg('=') work then.

Win32: With the taskbar at the top of the screen, scrolling doesn't redraw
properly. (Sergey Khorev, 2005 April 27)

Mac unicode patch (Da Woon Jung):
- selecting proportional font breaks display
- UTF-8 text causes display problems. Font replacement causes this.

When 'shortmess' is empty and 'keymap' set to accents, in Insert mode CTRL-N
may cause the hit-enter prompt. Typing 'a then doesn't result in the accented
character. (Ilya Dogolazky)

autoload:
- Add a Vim script in $VIMRUNTIME/tools that takes a file with a list of
script names and a help file and produces a script that can be sourced to
Expand All @@ -74,9 +87,17 @@ Win32: Balloon text can't contain line break.
Add has("balloon_multiline")

setline() should accept a List.

smsg() uses IObuff. The checks for the result not fitting are complicated,
find another solution. Add vsnprintf() and snprintf() functions?
http://www.ijs.si/software/snprintf/

Add ":[range]sort" command. Sort on specified field, using a regexp? Remove
duplicates?

Patch to alternate fold highlighting. (Anthony Iano-Fletcher, 2005 May 12)
More levels?

Awaiting response:
- Patch for mch_FullName() also in Vim 6.3? os_mswin.c
- Win32: tearoff menu window should have a scrollbar when it's taller than
Expand All @@ -90,6 +111,8 @@ PLANNED FOR VERSION 7.0:

- Add SPELLCHECKER, with support for many languages.
- Use "engspchk" from Charles Campbell for ideas.
- Is it worth trying the trie structure (see code from Olaf Seibert, 2005
May 9)
- Spell checking code todo's:
- Implement user and project word lists. Commands to add words and to
mark words as wrong.
Expand Down Expand Up @@ -265,6 +288,9 @@ PLANNED FOR VERSION 7.0:

Adjust src/main.aap for installing manpages like in Makefile.

Also generate the .pdb file that can be used to generate a useful crash report
on MS-Windows. (George Reilly)

Add strtol() to avoid the problems with leading zero causing octal conversion.

Try new POSIX tests, made after my comments. (Geoff Clare, 2005 April 7)
Expand Down Expand Up @@ -323,8 +349,6 @@ Updated Ruby interface. (Ryan Paul)

Awaiting updated patches:
--- awaiting updated patch ---
8 Add GTK 2.3 file dialog support. Patch by Grahame Bowland, 2004 Mar
15, but it doesn't use "initdir" or "dflt". (will update patch)
8 Add ":n" to fnamemodify(): normalize path, remove "../" when possible.
Aric Blumer has a patch for this.
He will update the patch for 6.3.
Expand Down Expand Up @@ -2104,6 +2128,7 @@ Autocommands:
changing the buffer name.
8 Add ScriptReadCmd event: used to load remote Vim scripts, e.g.
"vim -u http://mach/path/vimrc".
7 Add TagJump event: do something after jumping to a tag.
8 Use another option than 'updatetime' for the CursorHold event. The two
things are unrelated for the user (but the implementation is more
difficult).
Expand Down Expand Up @@ -2786,7 +2811,7 @@ Searching:
7 From xvim: Allow a newline in search patterns (also for :s, can delete
newline). Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
[not in xvim:] Add option to switch on matches crossing ONE line boundary.
7 Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron)
7 Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron) (Zellner)
Also ":dselect".


Expand Down Expand Up @@ -3334,8 +3359,6 @@ Various improvements:
changes all together instead of for each command (e.g. for the rot13
macro).
- Add command like "[I" that also shows the tree of included files.
- Add command like ":ts" that shows the output of "[I" and asks for a match
to jump to. (Zellner)
- ":set sm^L" results in ":set s", because short names of options are also
expanded. Is there a better way to do this?
- Add ":@!" command, to ":@" like what ":source!" is to ":source".
Expand Down
6 changes: 3 additions & 3 deletions runtime/doc/various.txt
Expand Up @@ -400,13 +400,13 @@ N *+X11* Unix only: can restore window title |X11|
:redi[r] @{a-zA-Z} Redirect messages to register {a-z}. Append to the
contents of the register if its name is given
uppercase {A-Z}. {not in Vi}
:redi[r] @{a-z}> Append messages to register {a-z}. {not in Vi}
:redi[r] @{a-z}>> Append messages to register {a-z}. {not in Vi}

:redi[r] @* Redirect messages to the clipboard. {not in Vi}
:redi[r] @*> Append messages to the clipboard. {not in Vi}
:redi[r] @*>> Append messages to the clipboard. {not in Vi}

:redi[r] @" Redirect messages to the unnamed register. {not in Vi}
:redi[r] @"> Append messages to the unnamed register. {not in Vi}
:redi[r] @">> Append messages to the unnamed register. {not in Vi}

:redi[r] => {var} Redirect messages to a variable. If the variable
doesn't exist, then it is created. If the variable
Expand Down
11 changes: 10 additions & 1 deletion runtime/doc/version7.txt
@@ -1,4 +1,4 @@
*version7.txt* For Vim version 7.0aa. Last change: 2005 Apr 24
*version7.txt* For Vim version 7.0aa. Last change: 2005 May 18


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -619,6 +619,9 @@ window.

Added the "%s" item to 'errorformat'. (Yegappan Lakshmanan)

GTK GUI: use the GTK file dialog when it's available. Mix from patches by
Grahame Bowland and Evan Webb.

==============================================================================
COMPILE TIME CHANGES *compile-changes-7*

Expand Down Expand Up @@ -1059,4 +1062,10 @@ we find the same position again and advance one character.
When in diff mode and making a change that causes the "changed" highlighting
to disappear or reappear, it was still highlighted in another window.

When a ":next" command fails because the user selects "Abort" at the ATTENTION
prompt the argument index was advanced anyway.

When "~" is in 'iskeyword' the "gd" doesn't work, it's used for the previous
substitute pattern. Put "\V" in the pattern to avoid that.

vim:tw=78:ts=8:ft=help:norl:
18 changes: 14 additions & 4 deletions runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2005 Apr 13
" Last Change: 2005 May 18

" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
Expand Down Expand Up @@ -822,7 +822,11 @@ fun! s:FTm()
endif
let n = n + 1
endwhile
setf matlab
if exists("g:filetype_m")
exe "setf " . g:filetype_m
else
setf matlab
endif
endfun

" Maya Extension Language
Expand Down Expand Up @@ -1435,8 +1439,14 @@ au BufNewFile,BufRead *.il setf skill
au BufNewFile,BufRead .slrnrc setf slrnrc
au BufNewFile,BufRead *.score setf slrnsc

" Smalltalk
au BufNewFile,BufRead *.st,*.cls setf st
" Smalltalk (and TeX)
au BufNewFile,BufRead *.st setf st
au BufNewFile,BufRead *.cls
\ if getline(1) =~ '^%' |
\ setf tex |
\ else |
\ setf st |
\ endif

" Smarty templates
au BufNewFile,BufRead *.tpl setf smarty
Expand Down
75 changes: 75 additions & 0 deletions runtime/indent/mma.vim
@@ -0,0 +1,75 @@
" Vim indent file
" Language: Mathematica
" Author: steve layland <layland@wolfram.com>
" Last Change: Sat May 10 18:56:22 CDT 2005
" Source: http://vim.sourceforge.net/scripts/script.php?script_id=1274
" http://members.wolfram.com/layland/vim/indent/mma.vim
"
" NOTE:
" Empty .m files will automatically be presumed to be Matlab files
" unless you have the following in your .vimrc:
"
" let filetype_m="mma"
"
" Credits:
" o steve hacked this out of a random indent file in the Vim 6.1
" distribution that he no longer remembers...sh.vim? Thanks!

" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
endif
let b:did_indent = 1

setlocal indentexpr=GetMmaIndent()
setlocal indentkeys+=0[,0],0(,0)
setlocal nosi "turn off smart indent so we don't over analyze } blocks

if exists("*GetMmaIndent")
finish
endif

function GetMmaIndent()

" Hit the start of the file, use zero indent.
if v:lnum == 0
return 0
endif

" Find a non-blank line above the current line.
let lnum = prevnonblank(v:lnum - 1)

" use indenting as a base
let ind = indent(v:lnum)
let lnum = v:lnum

" if previous line has an unmatched bracket, or ( indent.
" doesn't do multiple parens/blocks/etc...

" also, indent only if this line if this line isn't starting a new
" block... TODO - fix this with indentkeys?
if getline(v:lnum-1) =~ '\\\@<!\%(\[[^\]]*\|([^)]*\|{[^}]*\)$' && getline(v:lnum) !~ '\s\+[\[({]'
let ind = ind+&sw
endif

" if this line had unmatched closing block,
" indent to the matching opening block
if getline(v:lnum) =~ '[^[]*]\s*$'
" move to the closing bracket
call search(']','bW')
" and find it's partner's indent
let ind = indent(searchpair('\[','',']','bWn'))
" same for ( blocks
elseif getline(v:lnum) =~ '[^(]*)$'
call search(')','bW')
let ind = indent(searchpair('(','',')','bWn'))

" and finally, close { blocks if si ain't already set
elseif getline(v:lnum) =~ '[^{]*}'
call search('}','bW')
let ind = indent(searchpair('{','','}','bWn'))
endif

return ind
endfunction

46 changes: 43 additions & 3 deletions runtime/plugin/gzip.vim
@@ -1,6 +1,6 @@
" Vim plugin for editing compressed files.
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2005 Mar 24
" Last Change: 2005 May 18

" Exit quickly when:
" - this plugin was already loaded
Expand Down Expand Up @@ -48,12 +48,41 @@ fun s:check(cmd)
exe "return s:have_" . name
endfun

" Set b:gzip_comp_arg to the gzip argument to be used for compression, based on
" the flags in the compressed file.
" The only compression methods that can be detected are max speed (-1) and max
" compression (-9).
fun s:set_compression(line)
" get the Compression Method
let l:cm = char2nr(a:line[2])
" if it's 8 (DEFLATE), we can check for the compression level
if l:cm == 8
" get the eXtra FLags
let l:xfl = char2nr(a:line[8])
" max compression
if l:xfl == 2
let b:gzip_comp_arg = "-9"
" min compression
elseif l:xfl == 4
let b:gzip_comp_arg = "-1"
endif
endif
endfun


" After reading compressed file: Uncompress text in buffer with "cmd"
fun s:read(cmd)
" don't do anything if the cmd is not supported
if !s:check(a:cmd)
return
endif

" for gzip check current compression level and set b:gzip_comp_arg.
silent! unlet b:gzip_comp_arg
if a:cmd[0] == 'g'
call s:set_compression(getline(1))
endif

" make 'patchmode' empty, we don't want a copy of the written file
let pm_save = &pm
set pm=
Expand Down Expand Up @@ -121,7 +150,11 @@ fun s:write(cmd)
let nm = resolve(expand("<afile>"))
let nmt = s:tempname(nm)
if rename(nm, nmt) == 0
call system(a:cmd . " " . nmt)
if exists("b:gzip_comp_arg")
call system(a:cmd . " " . b:gzip_comp_arg . " " . nmt)
else
call system(a:cmd . " " . nmt)
endif
call rename(nmt . "." . expand("<afile>:e"), nm)
endif
endif
Expand All @@ -131,8 +164,15 @@ endfun
fun s:appre(cmd)
" don't do anything if the cmd is not supported
if s:check(a:cmd)
" Rename to a weird name to avoid the risk of overwriting another file
let nm = expand("<afile>")
" for gzip check current compression level and set b:gzip_comp_arg.
silent! unlet b:gzip_comp_arg
if a:cmd[0] == 'g'
call s:set_compression(readfile(nm, "b", 1)[0])
endif

" Rename to a weird name to avoid the risk of overwriting another file
let nmt = expand("<afile>:p:h") . "/X~=@l9q5"
let nmte = nmt . "." . expand("<afile>:e")
if rename(nm, nmte) == 0
Expand Down

0 comments on commit 8ce9c3b

Please sign in to comment.