Skip to content

Commit

Permalink
updated for version 7.0f01
Browse files Browse the repository at this point in the history
  • Loading branch information
vimboss committed Apr 25, 2006
1 parent 0a913bd commit 2d1be1e
Show file tree
Hide file tree
Showing 39 changed files with 302 additions and 185 deletions.
27 changes: 21 additions & 6 deletions runtime/autoload/rubycomplete.vim
Expand Up @@ -90,9 +90,15 @@ function! GetRubyVarType(v)
return vtp
endif
call setpos('.',pos)
let [lnum,lcol] = searchpos(''.a:v.'\>\s*[+\-*/]*=\s*\([^ \t]\+.\(now\|new\|open\|get_instance\)\>\|[\[{"''/]\|%r{\)','nb',stopline)
if g:rubycomplete_rails == 1 && g:rubycomplete_rails_loaded == 1
let ctors = '\(now\|new\|open\|get_instance\|find\|create\)'
else
let ctors = '\(now\|new\|open\|get_instance\)'
endif

let [lnum,lcol] = searchpos(''.a:v.'\>\s*[+\-*/]*=\s*\([^ \t]\+.' . ctors .'\>\|[\[{"''/]\|%r{\)','nb',stopline)
if lnum != 0 && lcol != 0
let str = matchstr(getline(lnum),'=\s*\([^ \t]\+.\(now\|new\|open\|get_instance\)\>\|[\[{"''/]\|%r{\)',lcol)
let str = matchstr(getline(lnum),'=\s*\([^ \t]\+.' . ctors . '\>\|[\[{"''/]\|%r{\)',lcol)
let str = substitute(str,'^=\s*','','')
call setpos('.',pos)
if str == '"' || str == ''''
Expand Down Expand Up @@ -255,7 +261,7 @@ def load_rails()
file_name = VIM::evaluate('expand("%:t")')
path = buf_path.gsub( file_name, '' )
path.gsub!( /\\/, "/" )
pup = [ "../", "../../", "../../../", "../../../../" ]
pup = [ "./", "../", "../../", "../../../", "../../../../" ]
pok = nil

pup.each do |sup|
Expand All @@ -267,10 +273,19 @@ def load_rails()
end

return if pok == nil

bootfile = pok + "/boot.rb"
if File.exists?( bootfile )
require bootfile
VIM::evaluate('let g:rubycomplete_rails_loaded = 1')
envfile = pok + "/environment.rb"
if File.exists?( bootfile ) && File.exists?( envfile )
begin
require bootfile
require envfile
require 'console_app'
require 'console_with_helpers'
VIM::command('let g:rubycomplete_rails_loaded = 1')
rescue
print "Error loading rails environment"
end
end
end

Expand Down
32 changes: 29 additions & 3 deletions runtime/autoload/vimball.vim
@@ -1,7 +1,7 @@
" vimball : construct a file containing both paths and files
" Author: Charles E. Campbell, Jr.
" Date: Apr 24, 2006
" Version: 7
" Date: Apr 25, 2006
" Version: 8
" GetLatestVimScripts: 1502 1 :AutoInstall: vimball.vim
" Copyright: (c) 2004-2006 by Charles E. Campbell, Jr.
" The VIM LICENSE applies to Vimball.vim, and Vimball.txt
Expand All @@ -15,7 +15,7 @@ if &cp || exists("g:loaded_vimball")
finish
endif
let s:keepcpo = &cpo
let g:loaded_vimball = "v7"
let g:loaded_vimball = "v8"
set cpo&vim

" =====================================================================
Expand Down Expand Up @@ -255,6 +255,32 @@ fun! vimball#Vimball(really)
" call Dret("Vimball")
endfun

" ---------------------------------------------------------------------
" vimball#Decompress: attempts to automatically decompress vimballs {{{2
fun! vimball#Decompress(fname)
" call Dfunc("Decompress(fname<".a:fname.">)")

" decompression:
if expand("%") =~ '.*\.gz' && executable("gunzip")
exe "!gunzip ".a:fname
let fname= substitute(a:fname,'\.gz$','','')
exe "e ".fname
echohl WarningMsg | echo "Source this file to extract it! (:so ".fname.")" | echohl None
elseif expand("%") =~ '.*\.bz2' && executable("bunzip2")
exe "!bunzip2 ".a:fname
let fname= substitute(a:fname,'\.bz2$','','')
exe "e ".fname
echohl WarningMsg | echo "Source this file to extract it! (:so ".fname.")" | echohl None
elseif expand("%") =~ '.*\.zip' && executable("unzip")
exe "!unzip ".a:fname
let fname= substitute(a:fname,'\.zip$','','')
exe "e ".fname
echohl WarningMsg | echo "Source this file to extract it! (:so ".fname.")" | echohl None
endif

" call Dret("Decompress")
endfun

let &cpo= s:keepcpo
unlet s:keepcpo
" =====================================================================
Expand Down
4 changes: 1 addition & 3 deletions runtime/colors/slate.vim
@@ -1,6 +1,6 @@
"%% SiSU Vim color file
" Slate Maintainer: Ralph Amissah <ralph@amissah.com>
" (originally looked at desert Hans Fugal <hans@fugal.net> http://hans.fugal.net/vim/colors/desert.vim (2003/05/06 16:37:49)
" (originally looked at desert Hans Fugal <hans@fugal.net> http://hans.fugal.net/vim/colors/desert.vim (2003/05/06)
:set background=dark
:highlight clear
if version > 580
Expand Down Expand Up @@ -35,10 +35,8 @@ endif
:hi Include guifg=red ctermfg=red
:hi PreProc guifg=red guibg=white ctermfg=red
:hi Operator guifg=Red ctermfg=Red
":hi Operator guifg=CornflowerBlue ctermfg=darkcyan
:hi Define guifg=gold gui=bold ctermfg=yellow
:hi Type guifg=CornflowerBlue ctermfg=2
":hi Type guifg=darkkhaki ctermfg=2
:hi Function guifg=navajowhite ctermfg=brown
:hi Structure guifg=green ctermfg=green
:hi LineNr guifg=grey50 ctermfg=3
Expand Down
12 changes: 6 additions & 6 deletions runtime/doc/autocmd.txt
@@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 7.0f. Last change: 2006 Apr 24
*autocmd.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -196,7 +196,7 @@ Vim recognizes the following events. Vim ignores the case of event names
(e.g., you can use "BUFread" or "bufread" instead of "BufRead").

First an overview by function with a short explanation. Then the list
alpabetically with full explanations |autocmd-events-abc|.
alphabetically with full explanations |autocmd-events-abc|.

Name triggered by ~

Expand All @@ -209,7 +209,7 @@ Name triggered by ~

|FileReadPre| before reading a file with a ":read" command
|FileReadPost| after reading a file with a ":read" command
|FileReadCmd| before reading a file with a ":read" comman |Cmd-event|
|FileReadCmd| before reading a file with a ":read" command |Cmd-event|

|FilterReadPre| before reading a file from a filter command
|FilterReadPost| after reading a file from a filter command
Expand Down Expand Up @@ -651,7 +651,7 @@ MenuPopup Just before showing the popup menu (under the
v Visual
o Operator-pending
i Insert
c Commmand line
c Command line
*QuickFixCmdPre*
QuickFixCmdPre Before a quickfix command is run (|:make|,
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,
Expand Down Expand Up @@ -904,9 +904,9 @@ Examples: >
All the commands for autocommands also work with buffer-local autocommands,
simply use the special string instead of the pattern. Examples: >
:au! * <buffer> " remove buffer-local autotommands for
:au! * <buffer> " remove buffer-local autocommands for
" current buffer
:au! * <buffer=33> " remove buffer-local autotommands for
:au! * <buffer=33> " remove buffer-local autocommands for
" buffer #33
:dobuf :au! CursorHold <buffer> " remove autocmd for given event for all
" buffers
Expand Down
6 changes: 3 additions & 3 deletions runtime/doc/change.txt
@@ -1,4 +1,4 @@
*change.txt* For Vim version 7.0f. Last change: 2006 Apr 11
*change.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -687,7 +687,7 @@ When the {string} starts with "\=" it is evaluated as an expression, see
|sub-replace-expression|. You can use that for any special characters.
Otherwise these characters in {string} have a special meaning:
*:s%*
When {string} is equal to "%" and '/' is included with the 'cpotions' option,
When {string} is equal to "%" and '/' is included with the 'cpoptions' option,
then the {string} of the previous substitute command is used. |cpo-/|

magic nomagic action ~
Expand Down Expand Up @@ -1178,7 +1178,7 @@ gq{motion} Format the lines that {motion} moves over.
evaluated. This can differ for each buffer.
2. If 'formatprg' is not empty an external program
is used.
3. Otherise formatting is done internally.
3. Otherwise formatting is done internally.

In the third case the 'textwidth' option controls the
length of each formatted line (see below).
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/digraph.txt
@@ -1,4 +1,4 @@
*digraph.txt* For Vim version 7.0f. Last change: 2005 Sep 11
*digraph.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -193,7 +193,7 @@ char digraph hex dec official name ~
^S D3 0x13 19 DEVICE CONTROL THREE (DC3)
^T D4 0x14 20 DEVICE CONTROL FOUR (DC4)
^U NK 0x15 21 NEGATIVE ACKNOWLEDGE (NAK)
^V SY 0x16 22 SYNCRONOUS IDLE (SYN)
^V SY 0x16 22 SYNCHRONOUS IDLE (SYN)
^W EB 0x17 23 END OF TRANSMISSION BLOCK (ETB)
^X CN 0x18 24 CANCEL (CAN)
^Y EM 0x19 25 END OF MEDIUM (EM)
Expand Down
23 changes: 12 additions & 11 deletions runtime/doc/eval.txt
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.0f. Last change: 2006 Apr 24
*eval.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -2457,7 +2457,7 @@ extend({expr1}, {expr2} [, {expr3}]) *extend()*

feedkeys({string} [, {mode}]) *feedkeys()*
Characters in {string} are queued for processing as if they
come from a mapping or where typed by user. They are added to
come from a mapping or were typed by user. They are added to
the end of the typeahead buffer, thus if a mapping is still
being executed these characters come after them.
The function does not wait for processing of keys contained in
Expand All @@ -2468,10 +2468,11 @@ feedkeys({string} [, {mode}]) *feedkeys()*
feedkeys('\<CR>') pushes 5 characters.
If {mode} is absent, keys are remapped.
{mode} is a String, which can contain these character flags:
'm' remap keys. This is default.
'n' do not remap keys
't' handle keys as if typed; otherwise they are handled as
if coming from a mapping
'm' Remap keys. This is default.
'n' Do not remap keys.
't' Handle keys as if typed; otherwise they are handled as
if coming from a mapping. This matters for undo,
opening folds, etc.
Return value is always 0.

filereadable({file}) *filereadable()*
Expand Down Expand Up @@ -3259,7 +3260,7 @@ islocked({expr}) *islocked()* *E786*
:echo islocked('alist[1]') " 0
< When {expr} is a variable that does not exist you get an error
message. Use |exists()| to check for existance.
message. Use |exists()| to check for existence.

items({dict}) *items()*
Return a |List| with all the key-value pairs of {dict}. Each
Expand Down Expand Up @@ -3597,7 +3598,7 @@ min({list}) Return the minumum value of all items in {list}.
be used as a Number this results in an error.
An empty |List| results in zero.

*mkdir()* *E749*
*mkdir()* *E739*
mkdir({name} [, {path} [, {prot}]])
Create directory {name}.
If {path} is "p" then intermediate directories are created as
Expand Down Expand Up @@ -3872,7 +3873,7 @@ reltime([{start} [, {end}]]) *reltime()*
Without an argument it returns the current time.
With one argument is returns the time passed since the time
specified in the argument.
With two arguments it returns the time passed betweein {start}
With two arguments it returns the time passed between {start}
and {end}.
The {start} and {end} arguments must be values returned by
reltime().
Expand Down Expand Up @@ -3997,7 +3998,7 @@ rename({from}, {to}) *rename()*
repeat({expr}, {count}) *repeat()*
Repeat {expr} {count} times and return the concatenated
result. Example: >
:let seperator = repeat('-', 80)
:let separator = repeat('-', 80)
< When {count} is zero or negative the result is empty.
When {expr} is a |List| the result is {expr} concatenated
{count} times. Example: >
Expand Down Expand Up @@ -7287,7 +7288,7 @@ A few options contain an expression. When this expression is evaluated it may
have to be done in the sandbox to avoid a security risk. But the sandbox is
restrictive, thus this only happens when the option was set from an insecure
location. Insecure in this context are:
- sourcing a .vimrc or .exrc in the current directlry
- sourcing a .vimrc or .exrc in the current directory
- while executing in the sandbox
- value coming from a modeline

Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/indent.txt
@@ -1,4 +1,4 @@
*indent.txt* For Vim version 7.0f. Last change: 2006 Apr 16
*indent.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -288,7 +288,7 @@ assume a 'shiftwidth' of 4.
int int int
func() func() func()
<
iN Indent C++ base class declarations and contructor
iN Indent C++ base class declarations and constructor
initializations, if they start in a new line (otherwise they
are aligned at the right side of the ':').
(default 'shiftwidth').
Expand Down
15 changes: 10 additions & 5 deletions runtime/doc/insert.txt
@@ -1,4 +1,4 @@
*insert.txt* For Vim version 7.0f. Last change: 2006 Apr 23
*insert.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -594,7 +594,7 @@ Also see the 'infercase' option if you want to adjust the case of the match.

*complete_CTRL-E*
When completion is active you can use CTRL-E to stop it and go back to the
orignally typed text. The CTRL-E will not be inserted.
originally typed text. The CTRL-E will not be inserted.

*complete_CTRL-Y*
When the popup menu is displayed you can use CTRL-Y to stop completion and
Expand Down Expand Up @@ -1353,7 +1353,7 @@ Script completes:
<
Still, to find myClass contents tags file is required.

- function names with additonal info:
- function names with additional info:
- in case of built-in functions list of possible arguments and after | type
data returned by function
- in case of user function arguments and name of file were function was
Expand Down Expand Up @@ -1396,13 +1396,18 @@ The completions provided by CTRL-X CTRL-O are sensitive to the context:
Notes:
- Vim will load/evaluate code in order to provide completions. This may
cause some code execution, which may be a concern.
- In context 1 above, Vim can parse the entire buffer to add a list of
classes to the completion results. This feature is turned off by default,
to enable it add >
let g:rubycomplete_classes_in_global = 1
< to your vimrc
- In context 2 above, anonymous classes are not supported.
- In context 3 above, Vim will attempt to determine the methods supported by
the object.
- Vim can detect and load the Rails environment for files within a rails
project. The feature is disabled by default, to enable it add >
let g:rubycomplete_rails = 1
< to your vimrc.
let g:rubycomplete_rails = 1
< to your vimrc


SYNTAX *ft-syntax-omni*
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/map.txt
@@ -1,4 +1,4 @@
*map.txt* For Vim version 7.0f. Last change: 2006 Apr 20
*map.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -219,7 +219,7 @@ text before the cursor and start omni completion when some condition is met.

Be very careful about side effects! The expression is evaluated while
obtaining characters, if you change buffer text, move the cursor, edit another
file, etc. you may very well make command disfunctional.
file, etc. you may very well make command dysfunctional.

Here is an example that inserts a list number that increases: >
let counter = 0
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/motion.txt
@@ -1,4 +1,4 @@
*motion.txt* For Vim version 7.0f. Last change: 2006 Apr 22
*motion.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -769,7 +769,7 @@ g'{mark} g`{mark}
*:marks*
:marks List all the current marks (not a motion command).
The |'(|, |')|, |'{| and |'}| marks are not listed.
The first column is number zero.
The first column has number zero.
{not in Vi}
*E283*
:marks {arg} List the marks that are mentioned in {arg} (not a
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/options.txt
@@ -1,4 +1,4 @@
*options.txt* For Vim version 7.0f. Last change: 2006 Apr 24
*options.txt* For Vim version 7.0f. Last change: 2006 Apr 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1465,7 +1465,7 @@ A jump table for the options with a short description can be found at |Q_op|.
to use the size for the GUI, put the command in your |gvimrc| file.
When you set this option and Vim is unable to change the physical
number of columns of the display, the display may be messed up.
Mimimum value is 12, maximum value is 10000.
Minimum value is 12, maximum value is 10000.

*'comments'* *'com'* *E524* *E525*
'comments' 'com' string (default
Expand Down

0 comments on commit 2d1be1e

Please sign in to comment.