# HG changeset patch # User Bram Moolenaar # Date 1396786153 -7200 # Node ID d735e62f59253eddf9ca18c35633d5bbb939ed8c # Parent 755931e042e41a3331380adc74a8a912c234c354 Updated runtime files. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.4. Last change: 2014 Apr 05 +*eval.txt* For Vim version 7.4. Last change: 2014 Apr 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1144,7 +1144,7 @@ specified by what is prepended: |local-variable| l: Local to a function. |script-variable| s: Local to a |:source|'ed Vim script. |function-argument| a: Function argument (only inside a function). -|vim-variable| v: Global, predefined by Vim. +|vim-variable| v: Global, predefined by Vim. The scope name by itself can be used as a |Dictionary|. For example, to delete all script-local variables: > diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -70,7 +70,13 @@ Problem using ":try" inside ":execute". Python: ":py raw_input('prompt')" doesn't work. (Manu Hack) -Using autoconf 2.69 gives a lot of warnings. +Crash in setqflist(). (Benoit Mortgat, 2010 Nov 18) + +MS-Windows: Crash opening very long file name starting with "\\". +(Christian Brock, 2012 Jun 29) + +Crash in autocmd that unloads buffers in a BufUnload event. (Andrew Pimlott, +2012 Aug 11) Disallow :new when BufUnload is being handled? Spell files use a latin single quote. Unicode also has another single quote. Adjust spell file scripts to duplicate words to support both quotes. @@ -354,9 +360,6 @@ In the ATTENTION message about an existi process that is running. It might actually be some other program, e.g. after a reboot. -MS-Windows: Crash opening very long file name starting with "\\". -(Christian Brock, 2012 Jun 29) - Patch to have text objects defined by arbitrary single characters. (Daniel Thau, 2013 Nov 20, 2014 Jan 29, 2014 Jan 31) Ben Fritz: problem with 'selection' set to "exclusive". @@ -427,9 +430,6 @@ Should be possible to enable/disable mat Add a check for b:no_match_paren in Highlight_matching_Pair() (Marcin Szamotulski, 2012 Nov 8) -Crash in autocmd that unloads buffers in a BufUnload event. (Andrew Pimlott, -2012 Aug 11) Disallow :new when BufUnload is being handled? - Issue 72: 'autochdir' causes problems for :vimgrep. Session file creation: 'autochdir' causes trouble. Keep it off until after @@ -841,8 +841,6 @@ Patch: Let rare word highlighting overru When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines instead of one. (Constantin Pan, 2010 Sep 10) -Crash in setqflist(). (Benoit Mortgat, 2010 Nov 18) - Gui menu edit/paste in block mode insert only inserts in one line (Bjorn Winckler, 2011 May 11) Requires a map mode for Insert mode started from blockwise Visual mode. diff --git a/runtime/ftplugin/j.vim b/runtime/ftplugin/j.vim --- a/runtime/ftplugin/j.vim +++ b/runtime/ftplugin/j.vim @@ -2,14 +2,17 @@ " Language: J " Maintainer: David Bürgin <676c7473@gmail.com> " URL: https://github.com/glts/vim-j -" Last Change: 2014-03-17 +" Last Change: 2014-04-05 if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 -setlocal iskeyword=48-57,65-90,_,97-122 +let s:save_cpo = &cpo +set cpo&vim + +setlocal iskeyword=48-57,A-Z,_,a-z setlocal comments=:NB. setlocal commentstring=NB.\ %s setlocal formatoptions-=t @@ -17,3 +20,56 @@ setlocal shiftwidth=2 softtabstop=2 expa setlocal matchpairs=(:) let b:undo_ftplugin = 'setlocal matchpairs< expandtab< softtabstop< shiftwidth< formatoptions< commentstring< comments< iskeyword<' + +" Section movement with ]] ][ [[ []. The start/end patterns below are amended +" inside the function in order to avoid matching on the current cursor line. +let s:sectionstart = '.\{-}\<\%([0-4]\|13\|noun\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(:\s*0\|def\s\+0\|define\)\>.*' +let s:sectionend = '\s*)\s*' + +function! s:SearchSection(end, backwards, visualmode) abort + if a:visualmode !=# '' + normal! gv + endif + let flags = a:backwards ? 'bsW' : 'sW' + if a:end + call search('^' . s:sectionend . (a:backwards ? '\n\_.\{-}\%#' : '$'), flags) + else + call search('^' . s:sectionstart . (a:backwards ? '\n\_.\{-}\%#' : '$'), flags) + endif +endfunction + +noremap