Re: Mac Questions

2007-02-01 Thread Benji Fisher
$PATH. :help mac-faq As it says there, the system vimrc files in the versions distributed at macvim.org/OSX already use this method. The same method should work for other environment variables ... but AFAIK the only one that matters is $PATH. HTH --Benji Fisher

Re: Pasting utf8

2006-12-04 Thread Benji Fisher
and vim. Do you have a problem with gvim or with vim running in other terminals? I use gnome-terminal, but I get the same (expected) result when I try with uxterm. HTH --Benji Fisher

Re: Execute command for current block of code

2006-11-25 Thread Benji Fisher
should have help tags for v_a% . See also :help matchit-newlang for how to recognize your custom tags. HTH --Benji Fisher

Re: syntax file from different directory

2006-11-25 Thread Benji Fisher
ft? syntax? What do you get? Also, do you have syntax highlighting for other file types? HTH --Benji Fisher

Re: Rephrased: debugging errorformat strings.

2006-11-25 Thread Benji Fisher
will be clearer than my earlier post. [snip] Can you try making the question shorter? --Benji Fisher

Re: Can't change search background color

2006-11-22 Thread Benji Fisher
ma right, then chaining guibg is not going to help. Try :hi Search ctermbg=14 instead. :help :hi in general and :help highlight-args in particular. HTH --Benji Fisher

Re: Problem with Quickfix and Latex

2006-11-17 Thread Benji Fisher
at it. --Benji Fisher

Re: search between two brackets

2006-11-13 Thread Benji Fisher
. HTH --Benji Fisher

Re: Search unfolded lines only

2006-11-13 Thread Benji Fisher
find the option you did not know existed, :options HTH --Benji Fisher

Re: RFE: :amap and :menu buffer

2006-11-10 Thread Benji Fisher
with disabled menus. --Benji Fisher

RFE: :amap and :menu buffer

2006-11-09 Thread Benji Fisher
. --Benji Fisher

Re: Lapsus in usr_10.txt?

2006-11-06 Thread Benji Fisher
. Thanks for reporting this. In the future, you can make things a little easier for Bram if you produce a patch, like the one below. For details on patch format, see my tip at http://www.vim.org/tips/tip.php?tip_id=618 HTH --Benji Fisher *** /usr/local/share

Re: disappearing echo in ':nmap *'

2006-11-06 Thread Benji Fisher
, or if the screen redraws, then I see the bla bla. Aha: this seems to help: :nnoremap * :execute norm! * Bar redraw Bar echomsg bla blaCR HTH --Benji Fisher

Re: noimd don't works under linux

2006-11-06 Thread Benji Fisher
On Mon, Nov 06, 2006 at 07:28:35PM +0800, Eddy Zhao wrote: 2006/11/6, Benji Fisher [EMAIL PROTECTED]: [snip] Part of the problem is that you defined the :map commands with notation before setting 'nocp'. From another post on this thread, I see that you want to try this with gvim

Re: noimd don't works under linux

2006-11-05 Thread Benji Fisher
in the status line is too terse, you could be a little fancier. For example, :set laststatus=2 stl=%{imd?'IM\ disabled':'IM\ enabled'} HTH --Benji Fisher

Re: script able to detect +NUM commandline option ?

2006-11-03 Thread Benji Fisher
Dictionary? Of course, the old ones would have to be kept around for compatibility for a few releases ... HTH --Benji Fisher

Re: --remote diff to tab

2006-11-02 Thread Benji Fisher
? I do not use this, so I have no idea what the syntax of the :VCSVimDiff command is. HTH --Benji Fisher

Re: long line display in gvimdiff

2006-11-02 Thread Benji Fisher
-diff windows, I suggest the following command: Diffdo command applies :command in all windows where 'diff' is set. :command! -nargs=+ -complete=command Diffdo \ windo if diff Bar execute q-args Bar endif HTH --Benji Fisher

Re: Command line tab completion

2006-11-02 Thread Benji Fisher
in the first case and preserve in the second, but I was stuck with termi and preser. HTH --Benji Fisher P.S. Has there been a patch that affects this? I am still using vim 7.0.000 .

Re: Smart use of Tab

2006-11-01 Thread Benji Fisher
line up. Has anyone got any suggestions or am I asking too much from my editor?! :help 'preserveindent' :help 'copyindent' HTH --Benji Fisher

Re: mapping with delay processing

2006-10-29 Thread Benji Fisher
--Benji Fisher

Re: Setting window size at startup under linux

2006-10-29 Thread Benji Fisher
file, then looking at these messages should point to it. HTH --Benji Fisher

Re: Smart use of Tab

2006-10-27 Thread Benji Fisher
, and it should be pretty easy to use the same idea for your function. (It just takes a little :while loop.) HTH --Benji Fisher

Re: Problems with Align.vim

2006-10-25 Thread Benji Fisher
autoload/vimball.vim doc/pi_vimball.txt plugin/vimballPlugin.vim Like you, I had some wrong files installed at this point. I cleaned up with $ cd ~/.vim $ rm -i */*[[[* HTH --Benji Fisher

Re: jumplist/mark ' problem

2006-10-25 Thread Benji Fisher
'' Then follow the links to :keepjumps (in the same file) or restore-position (different file) and try '' or C-O in either case. HTH --Benji Fisher

Re: Bold font in OS X GUI?

2006-10-25 Thread Benji Fisher
, but it is hard to find a volunteer to work on this problem. If none of the suggestions at http://macvim.org/OSX/index.php#FAQ (item #2) then you will have to wait until someone fixes the problem. HTH --Benji Fisher

Re: inserting backticks

2006-10-25 Thread Benji Fisher
(Problem Exists Between Keyboard And Vim). HTH --Benji Fisher

Re: inserting backticks

2006-10-25 Thread Benji Fisher
. Is this a matter of my configuration? Or where is the ` waiting? On Wed, Oct 25, 2006 at 08:23:40PM +0200, Alexander 'boesi' Bösecke wrote: Hi Am 25.10.2006 15:08:23 schrieb Benji Fisher: [snip] I suggest typing CTRL-V before the back-tick and before the space. Just to be sure, I would also try

Re: Need to write a language

2006-10-25 Thread Benji Fisher
-in functions, :help functions HTH --Benji Fisher

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread Benji Fisher
of an index function than a table-of-contents function: it searches for words (matching a given regular expression) and appends them to the end of the file, one per line. /plug HTH --Benji Fisher

Re: Vim function to toggle Ruby block type

2006-10-24 Thread Benji Fisher
. If you want to use [% with ruby, first get the latest matchit.vim from http://www.vim.org/scripts/script.php?script_id=39 . HTH --Benji Fisher

Re: [PATCH] zip plugin: support any filename

2006-10-23 Thread Benji Fisher
--Benji Fisher

Re: REQ: gq and swap file stuff?

2006-10-21 Thread Benji Fisher
. Both the web site and his e-mail address (the latter somewhat obfuscated) are in the comments at the top of the syntax file. HTH --Benji Fisher

Re: getchar() trick with recursive expr map

2006-10-20 Thread Benji Fisher
with u and repeat it with .? HTH --Benji Fisher

Re: Plain TeX support ?

2006-10-20 Thread Benji Fisher
--Benji Fisher

Re: Plain TeX support ?

2006-10-20 Thread Benji Fisher
On Fri, Oct 20, 2006 at 03:31:33PM -0400, Benji Fisher wrote: B. Next version. This is not too hard to do. What viewer do you use? xdvi maybe? I forgot: you mentioned Kdvi in an earlier post. I have not tried it, but there is already a script that translates various non-ASCII

Re: path is changing mysteriously...

2006-10-19 Thread Benji Fisher
that does it. I suspect you are right, but then the question is where 'acd' was set. The way to find out is :verbose set acd? It is also possible that an autocommand (perhaps from a system vimrc file) is causing the directory changes. HTH --Benji

Re: checking for cp in plugins

2006-10-19 Thread Benji Fisher
it is less likely to annoy. So one bails out when 'cp' is set, and the other saves and restores. HTH --Benji Fisher

Re: filename completion not recognising pdf's

2006-10-19 Thread Benji Fisher
listed suffixes lower priority, and the second removes them completely. :help 'suffixes' :help 'wildignore' :verbose set suffixes? wildignore? HTH --Benji Fisher

Re: search visual block

2006-10-18 Thread Benji Fisher
? . l:pattern . \CR and execute normal / . l:pattern . \CR HTH --Benji Fisher

Re: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread Benji Fisher
. In the long run, it is easier to fix things in your own vim directory. Thanks, Uday HTH --Benji Fisher

Re: gvim-7-0-118.exe virus found??

2006-10-16 Thread Benji Fisher
use CVS or SVN (and , if so, what command did you use)? HTH --Benji Fisher

Re: Undo between sessions

2006-10-16 Thread Benji Fisher
it on files that matter! HTH --Benji Fisher

Re: Auto-guessing file encoding and integration with Vim (works for Latin1, GBK, and Big5 now)

2006-10-14 Thread Benji Fisher
On Sat, Oct 14, 2006 at 03:36:19AM +0200, A.J.Mechelynck wrote: Yongwei Wu wrote: Hi Benji, On 10/12/06, Benji Fisher [EMAIL PROTECTED] wrote: Perhaps you can package your vim functions as a plugin so that they can be used without adding anything to the vimrc file. :help write-plugin

:diffsplit | verbose set fdm?

2006-10-13 Thread Benji Fisher
:verbose set fdm? foldmethod=manual --Benji Fisher

Re: diffoff

2006-10-13 Thread Benji Fisher
fdm=marker :diffsplit bar.txt do some editing ending in bar.txt :wq :diffoff :set fdm? foldmethod=manual This is the expected behavior. HTH --Benji Fisher

Re: Local scope ?

2006-10-12 Thread Benji Fisher
l:ignorecase to access (read and write) the local value of the option. If the option happens to be global, I do not think using the l: prefix will cause any problems. HTH --Benji Fisher

Re: Auto-guessing file encoding and integration with Vim (works for Latin1, GBK, and Big5 now)

2006-10-12 Thread Benji Fisher
functions as a plugin so that they can be used without adding anything to the vimrc file. :help write-plugin HTH --Benji Fisher

Re: BOF

2006-10-12 Thread Benji Fisher
. HTH --Benji Fisher

Re: number of folds in foldtext

2006-10-12 Thread Benji Fisher
:, ) (untested). HTH --Benji Fisher

Re: diffoff

2006-10-12 Thread Benji Fisher
about what you are trying to do, someone can give a more helpful answer. HTH --Benji Fisher

Re: select/insert switching

2006-10-11 Thread Benji Fisher
in Insert mode (except for a slight delay on some terminals) and actually goes to Insert mode from Normal mode if you manage to get there. HTH --Benji Fisher

Re: BUG: inputdialog() does not resize on Mac

2006-10-11 Thread Benji Fisher
(+) or not (-): [snip] I can confirm the problem. I am cc'ing the vim-mac list. Maybe someone there can look into it. HTH --Benji Fisher

Re: Non-intuitive default behaviour of gI

2006-09-27 Thread Benji Fisher
with this distinction.) Thus g is used in vim for a wide variety of commands, with gchar usually meaning some variant of char. See :help g for a list. HTH --Benji Fisher

Re: escape button to alt space

2006-09-27 Thread Benji Fisher
--Benji Fisher

Re: abbreviations + indent + movement commands

2006-09-26 Thread Benji Fisher
the search history. (It does affect the , and ; commands, though.) HTH --Benji Fisher

Re: Piping messages from ex commands into a new tab

2006-09-26 Thread Benji Fisher
a function to take advantage of local variables. fun! TabMessage(cmd) redir = message silent execute a:cmd redir END tab split put=message endfun command! -nargs=+ -complete=command TabMessage call TabMessage(q-args) HTH --Benji Fisher

Re: per-window search highlighting/colors

2006-09-26 Thread Benji Fisher
be changed for the preview window, but the Search highlight group is not syntax-based. --Benji Fisher

Re: Turning abbreviations on and off

2006-09-25 Thread Benji Fisher
in keys(s:abbs) execute 'iunabbrev buffer' lhs endfor let b:myabbrev_set = 0 return 0 else unrecognized parameter return 1 endif endfun HTH --Benji Fisher

Re: Plain TeX support ?

2006-09-25 Thread Benji Fisher
for translating umlauts into teX sequences. HTH --Benji Fisher

Re: accents and tex

2006-09-25 Thread Benji Fisher
On Mon, Sep 25, 2006 at 12:04:45PM -0300, Matias Grana wrote: On Tue, Sep 19, 2006 at 08:36:13AM -0400, Benji Fisher wrote: On Mon, Sep 18, 2006 at 04:47:14PM -0300, Matias Grana wrote: [snip] excerpt of .vimrc - augroup acentos autocmd

Re: sorting lines on lenght of characters

2006-09-23 Thread Benji Fisher
with setline(): :call setline(', sort(a, MyCmp)) Yes, it can all be done in one line (exercise for the reader). :help getline() :help setline() :help sort() HTH --Benji Fisher

Re: Plain TeX support ?

2006-09-23 Thread Benji Fisher
as such. What are the three features you miss most from AucTeX? HTH --Benji Fisher

Re: [BUG] with 'scrolloff' and Visual mode

2006-09-22 Thread Benji Fisher
). HTH --Benji Fisher On Thu, Sep 21, 2006 at 04:32:31PM -0700, Max Dyckhoff wrote: Addendum: You actually have to drag with the mouse. Just double clicking on a word will not cause this erroneous behaviour. [1-4]-clicking and then dragging will make

Re: ctrl-v after a o command

2006-09-22 Thread Benji Fisher
--Benji Fisher

Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-09-22 Thread Benji Fisher
your log files come from? Are you using a script to compile vim? If you tell me what you do to configure and build, I can try to reproduce the problem. HTH --Benji Fisher

Re: :helpgrep and 'ignorecase'

2006-09-21 Thread Benji Fisher
: :helpgrep [EMAIL PROTECTED] HTH --Benji Fisher

Re: How pair g /g

2006-09-19 Thread Benji Fisher
--Benji Fisher

Re: accents and tex

2006-09-19 Thread Benji Fisher
with older versions of vim, you can see how this is done in the Mark() function defined in foo.vim, my file of example vim functions: http://www.vim.org/script.php?script_id=72 HTH --Benji Fisher

Re: How does vim recognize file type?

2006-09-18 Thread Benji Fisher
in .tex and are not being recognized as LaTeX (i.e., the 'filetype' option is not being set to tex) then the simplest solution is probably to add the line let tex_flavor = latex to your vimrc file. See :help ft-tex-plugin HTH --Benji Fisher

Re: Convert to HTML patch. Opinions / Testing.

2006-09-16 Thread Benji Fisher
On Fri, Sep 15, 2006 at 01:37:57PM +0100, Edd Barrett wrote: On 15/09/06, Benji Fisher [EMAIL PROTECTED] wrote: I think the decision of whether to include the p tags should be based on principles of logical mark-up: are these naturally paragraphs? This depends upon if you are writing

Re: Matchit's match_words Question

2006-09-14 Thread Benji Fisher
the cursor somewhere other than at the start of the match. HTH --Benji Fisher

Re: Convert to HTML patch. Opinions / Testing.

2006-09-11 Thread Benji Fisher
for the contribution. HTH --Benji Fisher

Re: testing patchlevel from script

2006-09-11 Thread Benji Fisher
: variable. I agree that a List of patch numbers would be convenient. You can test for a specific patch with has(patch86). :help has-patch HTH --Benji Fisher

Re: +clientserver on Mac OS X

2006-09-07 Thread Benji Fisher
. --Benji Fisher

Re: matchparen tweak

2006-09-06 Thread Benji Fisher
On Wed, Sep 06, 2006 at 02:15:36AM +0200, A.J.Mechelynck wrote: Benji Fisher wrote: Now that the problem has been pointed out, I think the patch should be made in the official distribution. How about (simple but oh, so clever) let plist = split(matchpairs, '.\zs.') which

mixed filetypes (was: Smarter Indent)

2006-09-06 Thread Benji Fisher
On Wed, Sep 06, 2006 at 11:54:23AM +, Yakov Lerner wrote: On 8/7/06, Benji Fisher [EMAIL PROTECTED] wrote: Let me take this opportunity to try once again to drum up support for an idea that I have proposed before. IMO it is too restrictive to make options (such as syntax

matchparen tweak (was: vim 7 errors)

2006-09-05 Thread Benji Fisher
with multibyte characters? Are these even allowed in 'matchpairs'? HTH --Benji Fisher P.S. cc'ed to vim-dev for further discussion

Re: Syntax question regarding \%[

2006-09-05 Thread Benji Fisher
--Benji Fisher

Re: vim 7 errors

2006-09-05 Thread Benji Fisher
, your setting pairs ? with : and = with ; . The matchparen plugin uses the 'matchpairs' option as well. For more details, :help 'matchpairs' HTH --Benji Fisher

matchparen tweak (was: vim 7 errors)

2006-09-05 Thread Benji Fisher
with multibyte characters? Are these even allowed in 'matchpairs'? HTH --Benji Fisher P.S. cc'ed to vim-dev for further discussion

Re: Fixing cweb.vim

2006-09-02 Thread Benji Fisher
On Sat, Sep 02, 2006 at 01:36:06AM +0300, Ilya wrote: Benji Fisher wrote: On Fri, Sep 01, 2006 at 09:36:55AM +0300, Ilya wrote: David Brown wrote: [...] However, tex.vim frequently will enclose large sections of the document within a region and the cweb.vim which the webCRegion

Re: Using commands that use unix EDITOR environment variable

2006-09-02 Thread Benji Fisher
set the EDITOR as vi , everything works. Any clues ? -Ujjal I think the problem is that, by default, gvim forks and immediately returns control to the calling process. Try setting EDITOR to vim or to gvim --nofork. HTH --Benji Fisher

Re: bug in confirm() and default option

2006-09-02 Thread Benji Fisher
. Is there another trick to not select any of the choices? I get the same behavior on Linux (FC2). In vim (not gvim), :echo confirm(Save changes?, Yes\nNo\nCancel, 0) echoes 0 if I hit CR without making a choice. HTH --Benji Fisher

Re: Fixing cweb.vim

2006-09-01 Thread Benji Fisher
synIDattr(synID(line(.), col(.), 1), name) IIUC, synIDattr() always returns a syn-match or syn-keyword group. It does not tell you whether you are in a syn-region. HTH --Benji Fisher

Re: better recognising of tex vs plaintex filetype

2006-08-30 Thread Benji Fisher
On Tue, Aug 29, 2006 at 09:16:41PM +0200, Stefano Zacchiroli wrote: On Tue, Aug 29, 2006 at 03:06:39PM -0400, Benji Fisher wrote: I do not think there is any reliable way to distinguish between plain TeX and LaTeX. After my RFC, I decided to treat plain TeX as the default, since

vim mailing lists

2006-08-30 Thread Benji Fisher
to the list because some server between my ISP and the vim-dev list is on its blacklist. Do you have any plans to move the vim mailing lists to a new server, where you (or someone more responsive) has administrative control? --Benji Fisher

Re: Re [2]: again: % does not work with ' ( '

2006-08-30 Thread Benji Fisher
Yes, b:match_skip is relevant here. The matchit default is to skip strings and comments (unless you use % starting inside a string or comment). The matchit script relies on the syntax mechanism to recognize strings and comments. HTH --Benji Fisher

Re: better recognising of tex vs plaintex filetype

2006-08-29 Thread Benji Fisher
more common now. I suggest adding let tex_flavor = latex to your vimrc file. HTH --Benji Fisher

Re: How to insert text via script/function call ?

2006-08-18 Thread Benji Fisher
vim functions, foo.vim : http://www.vim.org/script.php?script_id=72 This one is pretty old: I wrote it before there were such things as buffer-local mappings and ftplugins. HTH --Benji Fisher

Re: an indentation question

2006-08-18 Thread Benji Fisher
(if they exist) as well as your personal vimrc files on the two systems. HTH --Benji Fisher

Re: more on local additions in help.txt -- debian bug?

2006-08-17 Thread Benji Fisher
variables that control its behavior. HTH --Benji Fisher

Re: more on local additions in help.txt

2006-08-16 Thread Benji Fisher
files. It does not matter whether you have installed the help files with :helptags . Does this explain what you see? HTH --Benji Fisher

Re: [RFC] fixing f-args wrt '\\ ' handling

2006-08-14 Thread Benji Fisher
that. So if you want 'a\b', use 'a\\b' and if you want 'a\\b', then use 'ab'. $0.02 --Benji Fisher P.S. I cannot resist tweaking a vim function: command! -nargs=* XX :call Test(f-args) fun! Test(...) echo XX: .a:0. args( echo XX: a:0 args( Both :echo

Re: Invoke _gvimrc.vim / unexpected expansions

2006-08-14 Thread Benji Fisher
, then fixing the first problem will fix the second. HTH --Benji Fisher

Re: Indentation changes when calling functions

2006-08-09 Thread Benji Fisher
insert_text()CR which solves the problem as the cursor doesn't jump out, but isn't there a cleaner way to do this? This is slightly simpler: imap \sf xBSc-o:call insert_text()CR HTH --Benji Fisher

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-07 Thread Benji Fisher
Vim does a lot of optimization of regular expressions, but I do not know how it would perform in this case. I would just try it and see. If it does not work well, that would be a good reason to try :syn match instead of :match . HTH --Benji Fisher On Sun

Re: editing within visual block

2006-08-07 Thread Benji Fisher
? HTH --Benji Fisher

Re: Smarter Indent (an odd problem)

2006-08-07 Thread Benji Fisher
vim to treat different sections of a file as having different file types. Examples: * code snippets in an e-mail * PHP in an HTML file (or vice-versa) * perl/python/ruby inside a vim script * comments, text, and math inside LaTeX/plain TeX/conTeXt --Benji

Re: can vim do this?

2006-08-03 Thread Benji Fisher
--Benji Fisher

  1   2   3   >