Re: vim 7.0, Edit with Vim, and x64 WinXP
Phil Edwards wrote: As it happens, neither of those helps, because the shell extension is not being used at all. After some more research, I've found that 32-bit shell extensions are not loaded into the 64-bit Windows Explorer, regardless of registry entries (like the first suggestion). I would not be happy using the proposed workaround in the second suggestion, but since the entries will not appear *anywhere* in the context menu -- it's all or nothing -- it won't matter. :-) It sounds like you are running x86 (Win32) binaries on Win64. You can find native Win64 binaries at http://www.georgevreilly. com/vim/ /George
Re: Encryption issue with Gvim 7 on Windows XP!
Here are the :version result on Windows: VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7 2006 16:23:43) MS-Windows 32 bit GUI version with OLE support Compiled by [EMAIL PROTECTED] I cannot give the result of version of Vim installed on my Slackware box but it is the default package that shipped with Slackware 10.2. I've just check at Slackware site and actually it is vim-6.3.086, not 6.8 as I've mentioned previously. Sorry for the mistake. On 28/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, folks! I am using GVim version 7.0 on Microsoft Windows XP box. I have a question regarding Vim capability to encrypt a text file (the :X command). These are steps how I create the encrypted text file: - I fire up Vim ; - Type :X and enter an encryption key twice ; - Type some text ; - Write the buffer into a file with :w encrypted_text.txt ; - Quit Vim with :q ; When I fire up Vim back and type :e encrypted_text.txt, it sweetly prompts me for the encryption key to read the content. The problem is when I open the from Windows Explorer by right clicking on the file and choose `Edit with Vim` from the popped menu, Vim display the content of the file in plain text without prompting for the encryption key that was set to the text file. I checked gui_w32.txt file and read about adding `Edit with Vim` entry via registry. I do not see any parameters were set in there so I assumed, choosing `Edit with Vim` is simple running `gvim.exe file_name.ext`. So, I manually try running `gvim.exe encrypted_text.txt` from console and yes, it DOES NOT prompt me for encryption key and the content of the file is displayed in plain text. Curios about this issue, I switch to my GNU/Linux box (Slackware 10.2 with the vim-6.8). I recreate the encrypted_text.txt and by running the command `gvim encrypted_text.txt` from console, it DOES PROMPT me efor the encryption key to view the content. I have asked folks in #vim on Freenode and one of them said that when they do the same thing as I've described here, it DOES prompt for the encryption key. My questions are: - Is it a `feature`? :) ; - Any idea what possibly could cause this if it is not a `feature`? Many thanks in advanced if any Vim enlightened user would share some knowledge. Which version and patchlevel are your Windows Vim and your Linux Vim? (as obtained from the first five lines of the :version output, or from the second non-blank line in the :intro screen) There never was a Vim 6.8 so that cannot be the actual Vim version of your Slackware Vim. Best regards, Tony.
Re: vim.org refreshed mockup
[EMAIL PROTECTED] wrote: I made a mockup of a refreshed version of vim.org, trying to maintain as much of the original look as possible: http://panos.solhost.org/mockups/vimorg-01.png A clear improvement. However, the light-gray text is hard to read. How about having a search form directly on every page, instead of having to go to a special page? Also, allow users to log in directly from the home page. /George -- /George V. Reilly [EMAIL PROTECTED] http://www.georgevreilly.com/blog The biggest mistake is not learning from all your other mistakes.
reg expression in vim
Can you help me please? I have a long text and I need to find all words beginning with hell and copy these words at the end of the file. I found a helpful command :g/hell/t$ But this command copies the whole line. I want only the relevant word (and each word on a new line). Does anybody know how to solve this? thanks!!! -- View this message in context: http://www.nabble.com/reg-expression-in-vim-tf2374614.html#a6615808 Sent from the Vim - General mailing list archive at Nabble.com.
Re: reg expression in vim
thank you - yes, it works absolutely correctly. One more question: searching for hell for just an example. In fact, I need to search for V$ (i.e. looking for V$SESSION_EVENT, V$SYSTEM_EVENT and so on). What would be correct syntax? I have problem with the $ sign, of course. thank you for your help time. Yakov Lerner-3 wrote: On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can you help me please? I have a long text and I need to find all words beginning with hell and copy these words at the end of the file. I found a helpful command :g/hell/t$ But this command copies the whole line. I want only the relevant word (and each word on a new line). Does the following do what you want, when you press F5: function! CopyHellWords() exe norm Gmao\escgg let kount=0 while line('.') = line('a) if expand('cword') =~ ^hell call append(line('$'), expand('cword')) let kount = kount + 1 endif call search('\') endw echo kount . words copied endfun nmap F5 :call CopyHellWords()cr Yakov -- View this message in context: http://www.nabble.com/reg-expression-in-vim-tf2374614.html#a6616847 Sent from the Vim - General mailing list archive at Nabble.com.
Re: reg expression in vim
thanks, I already tried this and it does not work. It freezes the whole editor. (I am using gVim on Win XP, but it should not matter, I believe.) Yakov Lerner-3 wrote: On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yakov Lerner-3 wrote: On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can you help me please? I have a long text and I need to find all words beginning with hell and copy these words at the end of the file. I found a helpful command :g/hell/t$ But this command copies the whole line. I want only the relevant word (and each word on a new line). Does the following do what you want, when you press F5: function! CopyHellWords() exe norm Gmao\escgg let kount=0 while line('.') = line('a) if expand('cword') =~ ^hell call append(line('$'), expand('cword')) let kount = kount + 1 endif call search('\') endw echo kount . words copied endfun nmap F5 :call CopyHellWords()cr thank you - yes, it works absolutely correctly. One more question: searching for hell for just an example. In fact, I need to search for V$ (i.e. looking for V$SESSION_EVENT, V$SYSTEM_EVENT and so on). What would be correct syntax? I have problem with the $ sign, of course. thank you for your help time. If you mean V$ at beginning of the word, then if expand('cword') =~ '^V\$' If you mean V$ anywhere in the word, then if expand('cword') =~ 'V\$' and then Yakov -- View this message in context: http://www.nabble.com/reg-expression-in-vim-tf2374614.html#a6617059 Sent from the Vim - General mailing list archive at Nabble.com.
Re: reg expression in vim
Great, it works. Thank you so much. It will save me plenty of time! bye Yakov Lerner-3 wrote: On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thanks, I already tried this and it does not work. It freezes the whole editor. (I am using gVim on Win XP, but it should not matter, I believe.) Yes, you need to add $ char to your isk setting. (iskeyword). Try :set isk+=36 Yakov Lerner-3 wrote: On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yakov Lerner-3 wrote: On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can you help me please? I have a long text and I need to find all words beginning with hell and copy these words at the end of the file. I found a helpful command :g/hell/t$ But this command copies the whole line. I want only the relevant word (and each word on a new line). Does the following do what you want, when you press F5: function! CopyHellWords() exe norm Gmao\escgg let kount=0 while line('.') = line('a) if expand('cword') =~ ^hell call append(line('$'), expand('cword')) let kount = kount + 1 endif call search('\') endw echo kount . words copied endfun nmap F5 :call CopyHellWords()cr thank you - yes, it works absolutely correctly. One more question: searching for hell for just an example. In fact, I need to search for V$ (i.e. looking for V$SESSION_EVENT, V$SYSTEM_EVENT and so on). What would be correct syntax? I have problem with the $ sign, of course. thank you for your help time. If you mean V$ at beginning of the word, then if expand('cword') =~ '^V\$' If you mean V$ anywhere in the word, then if expand('cword') =~ 'V\$' and then Yakov -- View this message in context: http://www.nabble.com/reg-expression-in-vim-tf2374614.html#a6617059 Sent from the Vim - General mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/reg-expression-in-vim-tf2374614.html#a6617231 Sent from the Vim - General mailing list archive at Nabble.com.
Re: Enhancement of syntax/cpp.vim
* On Thu, Jun 29, 2006 at 08:19:48PM +0300, Yakov Lerner [EMAIL PROTECTED] wrote: [...] I had similar problem, namely that syn-keyword (like static etc) prevent syn-match from matching the keywords. The detailed explanation and hint at possible solition is at: http://marc.theaimsgroup.com/?l=vimm=114321198924381w=2 http://marc.theaimsgroup.com/?l=vimm=114322806510413w=2 http://marc.theaimsgroup.com/?l=vimm=114323035711653w=2 I don't know how to make syn-match to match keywords. I proposed once to add explicit 'priority=N' attribute to syntax rules to make it possible. Thank you for the pointers Yakov. I'll have a look at them. -- Luc Hermitte http://hermitte.free.fr/vim/
Re: cscope key mappings for mac osx 10.4
Benji, Thanks for the reply. I found the problem - it had to do with my ~/.vimrc file: set laststatus=2 syntax enable filetype indent on source ~/.vim/cscope_maps.vim.txt . . . When I used the vimrc_example.vim file instead, and added source ~/.vim/cscope_maps.vim.txt to the end of it, the key mappings started to work again. BTW, this Mac gvim is really really great! So much better than using the Mac terminal vim. Ed -- Benji Fisher [EMAIL PROTECTED] wrote: Return-Path: [EMAIL PROTECTED] Received: from mx01.nyc.untd.com (mx01.nyc.untd.com [10.140.24.61]) by maildeliver24.lax.untd.com with SMTP id AABCEAX2XAX64RQ2 for [EMAIL PROTECTED] (sender [EMAIL PROTECTED]); Fri, 14 Apr 2006 19:14:45 -0700 (PST) Received: from foobar.math.fu-berlin.de (foobar.math.fu-berlin.de [160.45.45.151]) by mx01.nyc.untd.com with SMTP id AABCEAX2XAFB6LSJ for [EMAIL PROTECTED] (sender [EMAIL PROTECTED]); Fri, 14 Apr 2006 19:14:45 -0700 (PDT) Received: (qmail 26117 invoked by uid 200); 15 Apr 2006 02:14:32 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk Delivered-To: mailing list vim@vim.org Received: (qmail 26109 invoked from network); 15 Apr 2006 02:14:32 - Received: from ns1.wilbury.sk (HELO mrspock.ltc.sk) (217.73.17.21) by foobar.math.fu-berlin.de with SMTP; 15 Apr 2006 02:14:32 - Received: from kumar.ltc.sk (kumar.ltc.sk [217.73.17.16]) by mrspock.ltc.sk (Postfix) with ESMTP id C03DC95A36 for vim@vim.org; Sat, 15 Apr 2006 04:14:01 +0200 (CEST) Received: from mrspock.ltc.sk ([217.73.17.21]) by kumar.ltc.sk (kumar.ltc.sk [217.73.17.16]) (amavisd-new, port 12424) with ESMTP id 41091-17 for vim@vim.org; Sat, 15 Apr 2006 04:13:57 +0200 (CEST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.200.81]) by mrspock.ltc.sk (Postfix) with ESMTP id 942E295A47 for vim@vim.org; Sat, 15 Apr 2006 04:13:56 +0200 (CEST) Received: from localhost.localdomain (c-24-91-120-61.hsd1.ma.comcast.net[24.91.120.61]) by comcast.net (sccrmhc11) with ESMTP id 2006041502135501100fc0oue; Sat, 15 Apr 2006 02:13:56 + Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.11/8.12.11) with ESMTP id k3F2DtLL003113 for vim@vim.org; Fri, 14 Apr 2006 22:13:55 -0400 Received: (from [EMAIL PROTECTED]) by localhost.localdomain (8.12.11/8.12.11/Submit) id k3F2DtlI003112 for vim@vim.org; Fri, 14 Apr 2006 22:13:55 -0400 X-Authentication-Warning: localhost.localdomain: benji set sender to [EMAIL PROTECTED] using -f Date: Fri, 14 Apr 2006 22:13:55 -0400 From: Benji Fisher [EMAIL PROTECTED] To: vim@vim.org Subject: Re: cscope key mappings for mac osx 10.4 Message-ID: [EMAIL PROTECTED] Mail-Followup-To: vim@vim.org References: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: [EMAIL PROTECTED] User-Agent: Mutt/1.4.1i X-Virus-Scanned-kumar: amavisd-new at ltc.sk X-ContentStamp: 5:2:3705939156 X-MAIL-INFO:41832ef7dada8b4ac3c76f2ec35f6bea02b71ec7 X-UNTD-Peer-Info: 160.45.45.151|foobar.math.fu-berlin.de|foobar.math.fu-berlin.de|[EMAIL PROTECTED] X-UNTD-UBE:-1 On Fri, Apr 14, 2006 at 08:03:27AM +, [EMAIL PROTECTED] wrote: Hi, On my Mac 0SX 10.4 Powerbook, I have been using the terminal vim (6.2) with cscope and the cscope key mapping file 'cscope_maps.vim.txt'. This file defines various key mappings, such as 'CTRL-\ s', which finds all references to the token under the cursor. When I run vim7.0d (gvim), these key mappings don't work. If I type 'map', I see them. I can type the equivalent cmd, 'cs find g xxx', and cscope finds it. But the key maps don't seem to work. Can somebody explain how to make them work? Can you give a sample of the :map commands in cscope_maps.vim.txt or a pointer to where we can find this file? HTH --Benji Fisher