Skip to content

Commit

Permalink
Merge branch 'vim'
Browse files Browse the repository at this point in the history
  • Loading branch information
genoma committed Jul 11, 2014
2 parents b2fdf43 + f589277 commit 8e023ef
Show file tree
Hide file tree
Showing 22 changed files with 636 additions and 52 deletions.
4 changes: 2 additions & 2 deletions runtime/doc/eval.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.4. Last change: 2014 Jul 02
*eval.txt* For Vim version 7.4. Last change: 2014 Jul 06


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -5653,7 +5653,7 @@ sort({list} [, {func} [, {dict}]]) *sort()* *E702*

The sort is stable, items which compare equal (as number or as
string) will keep their relative position. E.g., when sorting
on numbers, text strings will sort next to eachother, in the
on numbers, text strings will sort next to each other, in the
same order as they were originally.

Also see |uniq()|.
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/insert.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*insert.txt* For Vim version 7.4. Last change: 2013 Jul 12
*insert.txt* For Vim version 7.4. Last change: 2014 Jul 06


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1302,7 +1302,7 @@ HTML *ft-html-omni*
XHTML *ft-xhtml-omni*

CTRL-X CTRL-O provides completion of various elements of (X)HTML files. It is
designed to support writing of XHTML 1.0 Strict files but will also works for
designed to support writing of XHTML 1.0 Strict files but will also work for
other versions of HTML. Features:

- after "<" complete tag name depending on context (no div suggestion inside
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/starting.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*starting.txt* For Vim version 7.4. Last change: 2014 Jun 14
*starting.txt* For Vim version 7.4. Last change: 2014 Jul 09


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1507,7 +1507,7 @@ most of the information will be restored).
already set (registers, marks, |v:oldfiles|, etc.)
will be overwritten {not in Vi}

*:wv* *:wviminfo* *E137* *E138* *E574*
*:wv* *:wviminfo* *E137* *E138* *E574* *E886*
:wv[iminfo][!] [file] Write to viminfo file [file] (default: see above).
The information in the file is first read in to make
a merge between old and new info. When [!] is used,
Expand Down
1 change: 1 addition & 0 deletions runtime/doc/tags
Original file line number Diff line number Diff line change
Expand Up @@ -4370,6 +4370,7 @@ E882 eval.txt /*E882*
E883 eval.txt /*E883*
E884 eval.txt /*E884*
E885 sign.txt /*E885*
E886 starting.txt /*E886*
E89 message.txt /*E89*
E90 message.txt /*E90*
E91 options.txt /*E91*
Expand Down
29 changes: 6 additions & 23 deletions runtime/doc/todo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*todo.txt* For Vim version 7.4. Last change: 2014 Jul 04
*todo.txt* For Vim version 7.4. Last change: 2014 Jul 10


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -34,13 +34,7 @@ not be repeated below, unless there is extra information.
*known-bugs*
-------------------- Known bugs and current work -----------------------

Sort is still not stable, add an index in the array.
See patch from Takimoto.

Another follow-up patch for breakindent. (Christian, 2014 Jun 28)

After patch 7.4.305 the termresponse isn't requested at all?
(Tomas Janousek, 2014 Jul 1, Jul 2)
Forfeit test_listlbr when encoding is not utf8? (Danek Duvall)

Regexp problems:
- Bug with pattern: '\vblock (\d+)\.\n.*\d+%(\1)@<!\.$'
Expand All @@ -55,26 +49,17 @@ Regexp problems:
- Does not work with NFA regexp engine:
\%u, \%x, \%o, \%d followed by a composing character

Patch to set y_width when getting the register from the clipboard.
(Yukihiro Nakadaira, 2014 Jul 10)

Problem that a previous silent ":throw" causes a following try/catch not to
work. (ZyX, 2013 Sep 28)

Completion for :buf does not use 'wildignorecase'. (Akshay H, 2014 May 31)

Patch to avoid inconsistency of using \v and \V after $ in regexp.
(Ozaki Kiichi, 2014 Jul 2)

":cd C:\Windows\System32\drivers\etc*" does not work, even though the
directory exists. (Sergio Gallelli, 2013 Dec 29)

Make matchparen faster by not using winsaveview()/winrestview().
(Alexey Radkov, 2014 Jun 28)

Patch to avoid flicker when filling the preview window.
(Hirohito Higashi, 2014 Jul 2)

matchaddpos() doesn't handle wrong byte length well, e.g. using 1 on a
multi-byte charcter. (lcd47, 2014 Jun 29)

The entries added by matchaddpos() are returned by getmatches() but can't be
set with setmatches(). (lcd47, 2014 Jun 29)

Expand All @@ -92,9 +77,6 @@ MS-Windows: Crash opening very long file name starting with "\\".

Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)

Patch to translate 0xce in K_NUL 3. (Yasuhiro Matsumoto, 2014 June 6)
Update by Nobuhiro Takasaki, Jun 19.

Adding "~" to 'cdpath' doesn't work for completion? (Davido, 2013 Aug 19)

"hi link" does not respect groups with GUI settings only. (Mark Lodato, 2014
Expand Down Expand Up @@ -375,6 +357,7 @@ Patch to allow setting w:quickfix_title via setqflist() and setloclist()
functions. (Christian Brabandt, 2013 May 8, update May 21)
Patch to add getlocstack() / setlocstack(). (Christian Brabandt, 2013 May 14)
Second one. Update May 22.
Update by Daniel Hahler, 2014 Jul 4.

Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec)

Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/usr_08.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_08.txt* For Vim version 7.4. Last change: 2006 Jul 18
*usr_08.txt* For Vim version 7.4. Last change: 2014 Jul 06

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -532,7 +532,7 @@ window. And you will notice a bar at the top with the two file names:

You now have two tab pages. The first one has a window for "thisfile" and the
second one a window for "thatfile". It's like two pages that are on top of
eachother, with a tab sticking out of each page showing the file name.
each other, with a tab sticking out of each page showing the file name.

Now use the mouse to click on "thisfile" in the top line. The result is

Expand Down
20 changes: 17 additions & 3 deletions runtime/filetype.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <[email protected]>
" Last Change: 2014 Jun 12
" Last Change: 2014 Jul 09

" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
Expand Down Expand Up @@ -864,7 +864,7 @@ func! s:FThtml()
setf xhtml
return
endif
if getline(n) =~ '{%\s*\(extends\|block\)\>'
if getline(n) =~ '{%\s*\(extends\|block\|load\)\>'
setf htmldjango
return
endif
Expand Down Expand Up @@ -1649,6 +1649,20 @@ else
au BufNewFile,BufRead *.rnw,*.snw setf rnoweb
endif

" R Markdown file
if has("fname_case")
au BufNewFile,BufRead *.Rmd,*.rmd,*.Smd,*.smd setf rmd
else
au BufNewFile,BufRead *.rmd,*.smd setf rmd
endif

" R reStructuredText file
if has("fname_case")
au BufNewFile,BufRead *.Rrst,*.rrst,*.Srst,*.srst setf rrst
else
au BufNewFile,BufRead *.rrst,*.srst setf rrst
endif

" Rexx, Rebol or R
au BufNewFile,BufRead *.r,*.R call s:FTr()

Expand Down Expand Up @@ -2664,7 +2678,7 @@ au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')

" Plain text files, needs to be far down to not override others. This avoids
" the "conf" type being used if there is a line starting with '#'.
au BufNewFile,BufRead *.txt,*.text setf text
au BufNewFile,BufRead *.txt,*.text,README setf text


" Use the filetype detect plugins. They may overrule any of the previously
Expand Down
31 changes: 31 additions & 0 deletions runtime/ftplugin/r.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
" Vim filetype plugin file
" Language: R
" Maintainer: Jakson Alves de Aquino <[email protected]>
" Last Change: Sun Feb 23, 2014 04:07PM

" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
finish
endif

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

setlocal iskeyword=@,48-57,_,.
setlocal formatoptions-=t
setlocal commentstring=#\ %s
setlocal comments=:#',:###,:##,:#

if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "R Source Files (*.R)\t*.R\n" .
\ "Files that include R (*.Rnw *.Rd *.Rmd *.Rrst)\t*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
\ "All Files (*.*)\t*.*\n"
endif

let b:undo_ftplugin = "setl cms< com< fo< isk< | unlet! b:browsefilter"

let &cpo = s:cpo_save
unlet s:cpo_save
29 changes: 29 additions & 0 deletions runtime/ftplugin/rhelp.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
" Vim filetype plugin file
" Language: R help file
" Maintainer: Jakson Alves de Aquino <[email protected]>
" Last Change: Wed Jul 09, 2014 06:23PM

" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
finish
endif

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

setlocal iskeyword=@,48-57,_,.

if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
\ "All Files (*.*)\t*.*\n"
endif

let b:undo_ftplugin = "setl isk< | unlet! b:browsefilter"

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: sw=2
43 changes: 43 additions & 0 deletions runtime/ftplugin/rmd.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
" Vim filetype plugin file
" Language: R help file
" Maintainer: Jakson Alves de Aquino <[email protected]>
" Last Change: Wed Jul 09, 2014 06:23PM
" Original work by Alex Zvoleff (adjusted for rmd by Michel Kuhlmann)

" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
finish
endif

runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim

setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s
setlocal formatoptions+=tcqln
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+
setlocal iskeyword=@,48-57,_,.

let s:cpo_save = &cpo
set cpo&vim

" Enables pandoc if it is installed
unlet! b:did_ftplugin
runtime ftplugin/pandoc.vim

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
\ "All Files (*.*)\t*.*\n"
endif

if exists('b:undo_ftplugin')
let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
else
let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
endif

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: sw=2
40 changes: 40 additions & 0 deletions runtime/ftplugin/rnoweb.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
" Vim filetype plugin file
" Language: Rnoweb
" Maintainer: Jakson Alves de Aquino <[email protected]>
" Last Change: Wed Jul 09, 2014 06:23PM

" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
finish
endif

let s:cpo_save = &cpo
set cpo&vim

runtime! ftplugin/tex.vim

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

" Enables Vim-Latex-Suite, LaTeX-Box if installed
runtime ftplugin/tex_*.vim

setlocal iskeyword=@,48-57,_,.
setlocal suffixesadd=.bib,.tex
setlocal comments=b:%,b:#,b:##,b:###,b:#'

if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
\ "All Files (*.*)\t*.*\n"
endif

if exists('b:undo_ftplugin')
let b:undo_ftplugin .= " | setl isk< sua< com< | unlet! b:browsefilter"
else
let b:undo_ftplugin = "setl isk< sua< com< | unlet! b:browsefilter"
endif

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: sw=2
37 changes: 37 additions & 0 deletions runtime/ftplugin/rrst.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
" Vim filetype plugin file
" Language: reStructuredText documentation format with R code
" Maintainer: Jakson Alves de Aquino <[email protected]>
" Last Change: Wed Jul 09, 2014 06:23PM
" Original work by Alex Zvoleff

" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
finish
endif

" Don't load another plugin for this buffer
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s
setlocal formatoptions+=tcqln
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+
setlocal iskeyword=@,48-57,_,.

if has("gui_win32") && !exists("b:browsefilter")
let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst\n" .
\ "All Files (*.*)\t*.*\n"
endif

if exists('b:undo_ftplugin')
let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
else
let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
endif

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: sw=2
17 changes: 17 additions & 0 deletions runtime/ftplugin/text.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
" Vim filetype plugin
" Language: Text
" Maintainer: David Barnett <[email protected]>
" Last Change: 2014 Jul 09

if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1

let b:undo_ftplugin = 'setlocal comments< commentstring<'

" We intentionally don't set formatoptions-=t since text should wrap as text.

" Pseudo comment leaders to indent bulleted lists.
setlocal comments=fb:-,fb:*
setlocal commentstring=
Loading

0 comments on commit 8e023ef

Please sign in to comment.