Re: menu.vim: reference to another menu line command

2011-06-17 Thread Tony Mechelynck
On 17/06/11 09:40, rameo wrote: I can't find out how to refer to another menu line in menu.vim p.e. an95.038Search\ Menu.Do\ command\ 1\ :a command of 150 characters an98.002Edit\ Menu.Do\ command\ 2\:my command1 How can I refer to command 1 in command 2 without

Re: Issue: clipboard=unnamed

2011-06-17 Thread Tony Mechelynck
On 17/06/11 11:31, Robert Chan wrote: Setting 'clipboard' to the value 'unnamed' and using commands which affect the clipboard results in vim hanging and windows frozen for over 1-2 minutes; once vim returns, the operating system feels laggy and slugish. Example: 1. create a buffer with 10,000

Re: problems in the key mapping in vimrc

2011-06-17 Thread Tony Mechelynck
On 18/06/11 03:00, milton_viziak wrote: hello i have a doubt to map keys in the vimrc file I have two plugins NERDTree and the Command-T. And he is set to open by pressing the Standing Leader p and I want to change it to Ctrl N. the code looks like this in vimrc silent! nmapsilent Leaderp

Re: 2html optimization

2011-06-17 Thread Tony Mechelynck
On 16/06/11 21:33, Benjamin Fritz wrote: On Wed, Jun 15, 2011 at 1:22 PM, Benjamin Koltaibkolta...@gmail.com wrote: Also, the result of :version is: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 5 2010 16:33:43) Included patches: 1-127, 257 Compiled by 'http://www.opensuse.org/' Is this out

Re: Problem with accented letters

2011-06-16 Thread Tony Mechelynck
On 13/06/11 17:05, Carlo Trimarchi wrote: 2011/6/13 David Bürgindavid.buer...@bluewin.ch You could try to specify the encoding you're using by adding this line to your HTML file: meta http-equiv=Content-Type content=text/html; charset=UTF-8/ thanks, this did the work In all, there are

Re: How to write command for select range of Chinese text

2011-06-16 Thread Tony Mechelynck
On 13/06/11 15:02, Dennis low wrote: Hi I would like to know how to write a command for selecting a range of Chinese text in vim. As I know I can have a command like [a-zA-Z] for the English text. But how to write a command for all the Chinese Text. Example : 我是 Nick Stokes 45678 罪行调查科人员

Re: Annoying @ characters

2011-06-14 Thread Tony Mechelynck
On 14/06/11 19:05, Oursmentvotre wrote: Hi fellow VIM users, I came back to vim after testing many editors, I like to change a lot of editors. Anyway, these days I am writing a lot of latex and my co-workers want it to be soft wrapped (one paragraph is a lng line). I managed to do the soft

Re: VIM Win7 and Cyrilic letters

2011-06-12 Thread Tony Mechelynck
On 11/06/11 22:27, lem torov wrote: On Sat, Jun 11, 2011 at 11:56 PM, Ben Fritz fritzophre...@gmail.com mailto:fritzophre...@gmail.com wrote: On Jun 11, 10:01 am, lem torov ulem...@gmail.com mailto:ulem...@gmail.com wrote: Any way to work on VIM under win7 with cyrilic

Re: How to get number of tabl

2011-06-12 Thread Tony Mechelynck
On 13/06/11 02:10, Tim Johnson wrote: I have vim 7.2 huge version on linux. I would like to get the enumerated number of an open tab. I wouldn't care if numbering started at 0 or 1, as long as the process is consistant. I have the following setting : guitablabel=%N %t which prints out the tab

Re: BUG???? Vim tab auto-completion for buffer names doesn't work (already set wildmode=longest,list in vimrc)‏

2011-06-09 Thread Tony Mechelynck
On 09/06/11 01:38, heirloom wrote: Hi Tony, The requirement of a common left-hand part fortab to be able to auto-complete words seems too **strict** for me. The reason is that: when I typed :b u and pressedtab, it is hoped to SMARTLY autocomplete the words up to :b usa(since this is common

Re: How to check for a variable being set? 'defined' somehow doesn't work for me..

2011-06-09 Thread Tony Mechelynck
On 09/06/11 09:56, Asis Hallab wrote: Dear Vimers, How do I do something like the following: if(defined(tags)) return \c-x\c-] endif The tags-variable is the one set by :set tags=./tags. How do I get the above to work? Many thanks in advance! Asis [...] see :help exists() if

Re: BUG???? Vim tab auto-completion for buffer names doesn't work (already set wildmode=longest,list in vimrc)‏

2011-06-08 Thread Tony Mechelynck
On 08/06/11 19:59, heirloom wrote: Vim tab auto-completion for buffer names doesn't work if files are on different directory levels. Steps to reproduce: (1) set wildmode=longest,list in vimrc (2) vim usa1.txt test/usa2.txt (3) type :b u in EX mode, then press TAB, it is expected to auto

Re: Unable to clear abbreviations

2011-06-08 Thread Tony Mechelynck
On 07/06/11 21:53, Uri Moszkowicz wrote: I don't know. I built my vim from 7.2 source. It's definitely there though: Features: Runs or compiles Groovy scripts. Indents code blocks. Continues comments on adjacent lines.

Re: How to get returned value from python functions in vim scripts ?

2011-06-07 Thread Tony Mechelynck
On 07/06/11 09:31, Marko Mahnič wrote: On Jun 7, 9:26 am, Marko Mahničmarko.mah...@gmail.com wrote: On Jun 7, 8:36 am, Ivan Krasilnikovinf...@gmail.com wrote: function s:MyCallback(param) process endfunc python DoSomething(s:SNR . 'MyCallback', ...) This should probably be: exec

Re: How to get returned value from python functions in vim scripts ?

2011-06-07 Thread Tony Mechelynck
On 07/06/11 14:56, Tony Mechelynck wrote: On 07/06/11 13:55, Marko Mahnič wrote: On 07. 06. 2011 13:39, Tony Mechelynck wrote: On 07/06/11 09:31, Marko Mahnič wrote: On Jun 7, 9:26 am, Marko Mahničmarko.mah...@gmail.com wrote: On Jun 7, 8:36 am, Ivan Krasilnikovinf...@gmail.com wrote

Re: How to get returned value from python functions in vim scripts ?

2011-06-07 Thread Tony Mechelynck
On 07/06/11 15:17, Marko Mahnič wrote: On 07. 06. 2011 15:13, Tony Mechelynck wrote: On 07/06/11 14:56, Tony Mechelynck wrote: On 07/06/11 13:55, Marko Mahnič wrote: On 07. 06. 2011 13:39, Tony Mechelynck wrote: On 07/06/11 09:31, Marko Mahnič wrote: On Jun 7, 9:26 am, Marko Mahničmarko.mah

Re: How to get returned value from python functions in vim scripts ?

2011-06-07 Thread Tony Mechelynck
On 07/06/11 15:30, Tony Mechelynck wrote: On 07/06/11 15:17, Marko Mahnič wrote: On 07. 06. 2011 15:13, Tony Mechelynck wrote: On 07/06/11 14:56, Tony Mechelynck wrote: On 07/06/11 13:55, Marko Mahnič wrote: On 07. 06. 2011 13:39, Tony Mechelynck wrote: On 07/06/11 09:31, Marko Mahnič wrote

Re: Unable to clear abbreviations

2011-06-07 Thread Tony Mechelynck
On 07/06/11 17:38, Uri Moszkowicz wrote: I am using this version of Vim: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 19 2009 17:17:05) Help lists no argument for this command: *:abc* *:abclear* :abc[lear] Remove all

Re: gvim freeze when launched from terminal

2011-06-06 Thread Tony Mechelynck
On 07/06/11 02:02, Mizetha Huang wrote: when I launch gvim from terminal using $ gvim It immediately freeze, using 100% CPU. I can work around it by either launching it using $ gvim -f or using a launcher from the menu. I am not sure if this is a purely gvim issue or also related to its

Re: Unable to clear abbreviations

2011-06-06 Thread Tony Mechelynck
On 07/06/11 02:48, Moszkowicz Uri wrote: I'm trying to clear abbreviations set by my syntax file but am unable to. How do I do this? In a groovy file, :ab returns: i wl @while(){CR}Esckf(aC-R=SNR24_RemoveSpace()CR i tcf @try{CR}catch(){CR}finally{CR}EsckkkACRC-

Re: Using the colon with `execute'

2011-06-05 Thread Tony Mechelynck
On 05/06/11 19:30, Tim Johnson wrote: I'm unclear about when to use and when *not* to use the colon in a string for the `execute' command - as composed programmatically. I'd appreciate it if someone could point me to some documentation or discussion on this topic. :h execute doesn't seem to

Re: Newlines being created automatically

2011-06-05 Thread Tony Mechelynck
On 05/06/11 22:11, Siddhartha Kasivajhula wrote: Noble Vim sages, Lately, vim has started creating a newline as soon as I hit 72 columns in a line. I don't recall this happening before so it's quite possibly a result of my cat's fondness for sitting on my keyboard. Any idea how I can prevent

Re: set display+=lastline ?

2011-06-05 Thread Tony Mechelynck
On 06/06/11 00:36, Bee wrote: Is there any reason to NOT use :set display+=lastline ? I'm not sure. Maybe some people prefer not to see partial lines unless there's no way the current line can fit in the current window. Maybe 'display' empty is the default for compatibility with legacy vi.

Re: Trying to escape tab in exe

2011-06-04 Thread Tony Mechelynck
On 05/06/11 00:30, Tim Johnson wrote: If I type in the following ex command: :e /home/tim/prj/cgi/baker/xmlimport/controllers/ and then press TAB, I get a wildmenu for the target directory. Yay! But I can't get this same function to work programmatically. I have the following two functions:

Re: Trying to escape tab in exe

2011-06-04 Thread Tony Mechelynck
On 05/06/11 02:26, Tim Johnson wrote: * Tony Mechelynckantoine.mechely...@gmail.com [110604 16:09]: vim opens a new file /home/tim/prj/cgi/baker/xmlimport/controllers/Tab grrr! So how do I escape the Tab? I've tried IIRC, the relevant setting is 'wildcharm' (q.v.). Thank you for the reply

Re: Searching for accented characters.

2011-05-30 Thread Tony Mechelynck
On 30/05/11 09:58, Jürgen Krämer wrote: Hi, Beren Sanders wrote: On Sun, May 29, 2011 at 8:25 PM, Tim Chasev...@tim.thechases.com wrote: On 05/29/2011 06:43 PM, Beren Sanders wrote: Is there an easy standard way to make accented characters match searches for their normal counterparts?

Re: langmap utf8 encoding

2011-05-28 Thread Tony Mechelynck
On 28/05/11 14:27, Gour-Gadadhara Dasa wrote: On Fri, 27 May 2011 12:21:02 +0200 Tony Mechelynckantoine.mechely...@gmail.com wrote: This is one of the first mappings I created (in Vim 6.0 or 6.1, when I didn't yet know that my keyboard could produce the Ctrl-] code), it worked then and it

Re: unable to map M-Space

2011-05-27 Thread Tony Mechelynck
On 27/05/11 10:29, A.Daitche wrote: Hallo Taylor, thank you for the link. It is good to know about this topic. However i am using GVim. I've found this behavior so far on debian 6.0 and ubuntu 10.10. Thanks Anton On my gvim (with GTK2/Gnome2 GUI, running on openSUSE with Gnome

Re: langmap utf8 encoding

2011-05-27 Thread Tony Mechelynck
On 27/05/11 11:15, Gour-Gadadhara Dasa wrote: Hello, after some years spent with Emacs (used it due to 'possibly' better Haskell mode), I'm back with here and my wrists are telling me: Thank you!. I want to learn Vim and use it for all my writings which means native texts as well as

Re: unable to map M-Space

2011-05-27 Thread Tony Mechelynck
On 27/05/11 12:12, A.Daitche wrote: Hallo Tony, The behavior you are describing can be disabled in the Gnome settings for keyboard shortcuts (there ALT-Space is assigned to activate the window menu). I have done it already, so my GVim receives the key combination. Concerning the behavior in the

Re: Incorrect interpretation of keycodes.

2011-05-27 Thread Tony Mechelynck
I'm redirecting this question to vim_use (or trying to). On 27/05/11 13:23, Daniel Fishman wrote: According to the documentation (':he keycodes'), in insert mode a key combination 'ctrl-k[key]' (where '[key]' is a key combination described in 'equivalent' column) should insert the string

Re: Incorrect interpretation of keycodes.

2011-05-27 Thread Tony Mechelynck
On 27/05/11 17:00, Daniel Fishman wrote: On Fri, 27 May 2011 15:32:06 +0200, Tony Mechelynckantoine.mechely...@gmail.com wrote: 1. For non-printable keys outside the ASCII or Unicode universe, how they are represented is at the mercy of the keyboard driver and terminal. 2. For historical

Re: vim can't find carriage returns

2011-05-24 Thread Tony Mechelynck
On 24/05/11 14:31, Eljay Love-Jensen wrote: [...] I'm not sure why I have to search FOR multiple \n and replace WITH the \r. That may be a vi-thing, a Vim-thing, or a quirk / detail of my platform (Windows 7, using the prebuilt gVim, using :set ff=unix line endings). Hmmm, I never thought

Re: Unexpected special keys' behaviour.

2011-05-24 Thread Tony Mechelynck
On 24/05/11 18:19, Daniel Fishman wrote: Hello, In documentation about insert mode (':he insert.txt') there is a following example: - An example for using CTRL-G u: :inoremapC-H C-GuC-H This redefines the backspace key to start a new

Re: GVIM menu bar missing

2011-05-24 Thread Tony Mechelynck
On 24/05/11 20:48, Prashanth Prahalad wrote: Hi, When I open GVIM on solaris, the menu bar is missing. Any pointers on what could be going on ? Thanks ! Prashanth What is the answer to :verbose set guioptions? ? See :help 'go-m' HTH, Tony. -- hundred-and-one symptoms of being an

Re: Character encoding in vim

2011-05-24 Thread Tony Mechelynck
On 24/05/11 22:51, Ven Tadipatri wrote: On Thu, May 19, 2011 at 7:44 AM, Ben Fritzfritzophre...@gmail.com wrote: Since there are two bytes being displayed I'm going to guess you're editing a UTF-8 encoded file with your encoding set to the default 8- bit encoding for your system (probably

Re: vim can't find carriage returns

2011-05-24 Thread Tony Mechelynck
On 25/05/11 02:08, Dave Land wrote: [...] PS: While reading up on this, I discovered something new, at least to me: Save typing by using \zs and \ze to set the start and end of a pattern. For example, instead of: :s/Copyright 2007 All Rights Reserved/Copyright 2008 All Rights Reserved/

Re: [BUG] 'non-empty string' ? '' returns false on amd64 arch

2011-05-24 Thread Tony Mechelynck
On 25/05/11 02:56, Ivan Krasilnikov wrote: Also mb_strnicmp() assumes that lowercase and uppercase characters have the same length in UTF-8 representation. This isn't the case. Here are a few counterexamples: $ python -c 'print .join([0x%.2X % n for n in range(65536) if

Re: I would like to open 3 vim windows if possible

2011-05-20 Thread Tony Mechelynck
On 19/05/11 21:02, woodygar wrote: Hi thanks for helping me last time - and i hope im explaining this ok. I have pydiction and it works fine now but Is there any way to automatically open gvim and have a left column window for the current directory list, the large main window for editing the

Re: It is possible to have enabled 2 o more different syntax in the same file?

2011-05-16 Thread Tony Mechelynck
On 17/05/11 02:55, AMDx64BT wrote: I would like to highlight 2 o more different syntax in the same file. For example, I have a file with notes with different languages cpp, matlab, python, bash and I would like to be able to highlight each syntax with colors. Any ideas? It is possible as long

Re: Installing ttf fonts in gvim in windows

2011-05-15 Thread Tony Mechelynck
On 14/05/11 22:49, Linda W wrote: Tony Mechelynck wrote: On 19/04/11 09:36, Alexander Stepanov wrote: Monospace fonts... That's very said. Thank you for explanation. If you mean very sad, this is due to the fixed size of the character cell in gvim, something so fundamental to Vim's mode

Re: netrw emtpies my tagfiles()

2011-05-15 Thread Tony Mechelynck
On 14/05/11 06:53, koffee wrote: One more bit of info: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 24 2011 07:07:46) Included patches: 1-35 Try upgrading: the current version is 7.3.189. The source for 7.3.035 dates back to 24 October 2010. See:

Re: Python

2011-05-15 Thread Tony Mechelynck
On 15/05/11 13:00, Iván Vilches Basaul wrote: Hello guys i am new on vim ,i installed the last version Windows 7 64 bits but i cant compile for Python , what moré i need to do? Thx for your help :) Iván Vilches Basaul You need to make sure that Python is installed, and that the make process

Re: dead key bug.

2011-05-05 Thread Tony Mechelynck
On 04/05/11 16:00, Ben Schmidt wrote: The issue with the dead keys is random. That is, sometimes it happens, sometimes not. Is difficult to predict when it will happen. I work in a Windows XP Professional machine using ISO-8859-1 character set (cp1252 on Windows and cp850 in a MSDOS box) the

Re: Vim's regex dialect [Was: Help me please ^^]

2011-05-05 Thread Tony Mechelynck
On 04/05/11 17:04, Erik Christiansen wrote: On Wed, May 04, 2011 at 10:00:40AM -0400, Charles Campbell wrote: There's probably a history of regular expressions somewhere; ed definitely preceded (the original) vi, and I think sed did, too. Awk followed in sed's footsteps, and Perl came after

Re: Can you override the deletion register when pasting from visual mode?

2011-05-05 Thread Tony Mechelynck
On 04/05/11 16:40, Taylor Hedberg wrote: Andrew Neil, Wed 2011-05-04 @ 16:35:45+0300: Is there any way to prevent the default register from being clobbered when using the paste command in visual mode? By default, when you use the `p` or `P` commands in visual mode, the selected text overwrites

Re: Issue with gvim

2011-05-05 Thread Tony Mechelynck
On 05/05/11 20:05, David Ohlemacher wrote: OK, thanks for the help link. It does say commands like ls and grep mostly work fine. But it seems only for a very bare-bones shell. I was hoping it was possible to get rudimentary commands like ls to work. Is there a way to configure my .gvimrc file

Re: How do define a default highlight for none-linked group?

2011-05-02 Thread Tony Mechelynck
On 02/05/11 10:51, Ben Schmidt wrote: On 2/05/11 6:41 PM, Christian Brabandt wrote: On Mon, May 2, 2011 7:28 am, Ben Schmidt wrote: I have no idea how they could have got the conversion so wrong, when it is so beautifully declared, but there you go. Computers! Pfff! That has been mentioned

Re: How do define a default highlight for none-linked group?

2011-05-02 Thread Tony Mechelynck
On 03/05/11 03:40, Ben Schmidt wrote: That first naïve message of yours arrived here with Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit and correct 8-bit Latin1 content; so it seems that in my case, Google left the message well enough alone even

Re: How do define a default highlight for none-linked group?

2011-05-01 Thread Tony Mechelynck
On 01/05/11 10:01, pansz wrote: [...] Currently, default is only mentioned in hi link. If you had checked my first reply, you would have found at line 4087 of syntax.txt, :hi[ghlight] [default] {group-name} {key}={arg} .. Best regards, Tony. -- hundred-and-one symptoms of being an

Re: How do define a default highlight for none-linked group?

2011-05-01 Thread Tony Mechelynck
On 01/05/11 15:18, Ben Schmidt wrote: On 1/05/11 9:24 PM, Tony Mechelynck wrote: On 01/05/11 10:01, pansz wrote: [...] Currently, default is only mentioned in hi link. If you had checked my first reply, you would have found at line 4087 of syntax.txt, :hi[ghlight] [default] {group-name

Re: How do define a default highlight for none-linked group?

2011-05-01 Thread Tony Mechelynck
On 02/05/11 01:55, Ben Schmidt wrote: Yeah, well at that line in my syntax.txt (dated the same as yours, IIRC--I believe I checked against a date you provided), I find Are you sure? My syntax.txt is dated April 6 (as shown on line 1), Nope. I mustn't have checked after all (or perhaps only

Re: User command with -nargs=1

2011-04-30 Thread Tony Mechelynck
On 30/04/11 06:42, John Beckett wrote: I thought defining a user command with '-nargs=1' would mean that using more than one argument would give an error, however I can't see a difference between nargs=1 and nargs=*. command! -nargs=1 Test call Test('args') function! Test(args) call

Re: Ignore the folding

2011-04-30 Thread Tony Mechelynck
On 30/04/11 08:12, JuanPabloAJ wrote: Hi, I use syntax folding with C++. How do I ignore the folding in my while, if and for constructs? Best regards. -- JuanPabloAJ -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: syntax highlighting colors bold text

2011-04-29 Thread Tony Mechelynck
On 28/04/11 20:05, Michael Hauser wrote: On Thu, Apr 28, 2011 at 19:21, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: I've redircted the output of ':verbose hi' along with the outputs of 'set' for both user and root earlier, and posted them in this thread, and they do differ. Yes; I

Re: vim %character

2011-04-29 Thread Tony Mechelynck
On 28/04/11 15:04, cyboman wrote: i'm trying to learn a bit of vim scripting, specifically i'm trying to understand how to do something similar to scanf(). say we have a command map ,cd :cd %:p:hCR what do those %:p:h mean? can anyone recommend a help file i need do read in order to

Re: Plugin for specific file type

2011-04-29 Thread Tony Mechelynck
On 28/04/11 17:55, Ben Fritz wrote: On Apr 28, 11:26 am, JuanPabloAJjabar...@gmail.com wrote: but, if this plugin is for many language, I cant use theft variable ? Sure you can, but that's not what you asked. You have a few options: 1. Always load the plugin for all file types by placing

Re: how to map 2-leftmouse to open file in netw

2011-04-29 Thread Tony Mechelynck
On 29/04/11 09:09, wei gao wrote: 2011/4/28 Ben Fritz fritzophre...@gmail.com mailto:fritzophre...@gmail.com On Apr 28, 10:09 am, wei gao njugao...@gmail.com mailto:njugao...@gmail.com wrote: Hi, In netw file explorer, the click left mouse on the file/folder will

Re: syntax highlighting colors bold text

2011-04-29 Thread Tony Mechelynck
On 29/04/11 11:33, Ben Schmidt wrote: [...] P.S. I have no idea why 'term' would ever be set to putty on a non-DOS/Windows system, and am unsure about cygwin (does that count as UNIX or WIN3264 in the source code?), but that's what term_bg_default() in option.c does. Ben. IIUC, Cygwin

Re: How do define a default highlight for none-linked group?

2011-04-29 Thread Tony Mechelynck
On 29/04/11 04:00, pansz wrote: hi vimmers, for linked group we can use :hi default link to set a default value, for none-linked group we can't. Suppose my script want to set the default value highlight group CursorIM. i.e. if user color scheme has set the hi CursorIM, let it be, if user color

Re: How to get undo functionality after :bnext

2011-04-29 Thread Tony Mechelynck
On 29/04/11 22:47, Reckoner wrote: Hi, I'm using version 7.3 on a Windows XP machine. When editing multiple buffers, I do :bnext to get to the next buffer. Unfortunately, when I return to that buffer or one of the previously edited buffers, I can no longer undo the changes in the corresponding

Re: execute command from vim in windows

2011-04-27 Thread Tony Mechelynck
On 27/04/11 19:39, cyboman wrote: i need to run an executable from vim. the problem that i'm facing is that directory names in the path to this file contain spaces and vim doesn't recognize that. here is the problem C:\Documents and Settings\myhomedirectory\someotherdirectory \executable.exe

Re: Where is localleader defined?

2011-04-27 Thread Tony Mechelynck
On 27/04/11 19:58, Steve Litt wrote: Hi all, Where islocalleader defined? How would I define a similar variable called voleader so that it's available for use in various Vimscript programs? Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter:

Re: Current Directory; how can I set it permanently?

2011-04-26 Thread Tony Mechelynck
On 26/04/11 10:46, pa...@ezrider.co.uk wrote: Hi All, Basically, VIM remembers the CD (Current Directory) from a file ages ago, and I simply cannot goad VIM into remembering a new one, try as I might. When I manually set CD using :cd /mypath, VIM remembers it for this session, but as soon as

Re: syntax highlighting colors bold text

2011-04-25 Thread Tony Mechelynck
On 25/04/11 14:25, Michael Hauser wrote: Hi I've a user and root account on my system. The .vimrc file is identical. Using urxvt/screen, when I open e.g.: /home/mih/$ vim .zshrc as normal user all colored (syntax highlighted) text is rendered in bold style, which is ugly. When I sudo:

Re: edit alternate file -- e!# vs b!#

2011-04-24 Thread Tony Mechelynck
On 24/04/11 02:41, Bee wrote: On Apr 23, 5:00 pm, Tim Chasev...@tim.thechases.com wrote: On 04/23/2011 11:54 AM, Bee wrote: To edit the alternate file, is there any difference between these: nnoremap ,g :e!#cr nnoremap ,g :b!#cr While there may be other differences, you can edit

Re: Scroll one line up doesn't work in Windows 7 cmdline

2011-04-24 Thread Tony Mechelynck
On 24/04/11 05:57, Fred wrote: Ben Schmidtmail_ben_schm...@yahoo.com.au wrote: On 24/04/11 12:41 PM, Fred wrote: snip I'm using vim in Windows 7 via Start -(search for) vim. When I key in Ctrl+Y, I get Already at newest change. Is there an alternative binding, or what can I do? Sounds

Re: Quitting Vim.

2011-04-24 Thread Tony Mechelynck
On 24/04/11 08:12, Jason Heyes wrote: Hi, How do I quit all windows? Thanks. See :help window-exit for all variations. Here are the main ones: Quit everything, but get an error message instead if there are unsaved changes :qa Quit everything and discard all unsaved changes

Re: Vim: Warning: Input is not from a terminal

2011-04-24 Thread Tony Mechelynck
On 24/04/11 09:29, Joan Miquel Torres Rigo wrote: 2011/4/22 Gary Johnsongaryj...@spocom.com: The point is that there is no functional reason that Vim has to use - to mean that its buffer contents are coming from stdin. My guess is that Vim's use of - is another quirk resulting from its

Re: ErrorMsg highlighting ignored

2011-04-24 Thread Tony Mechelynck
On 23/04/11 20:59, Alan Warren wrote: On Fri, Apr 22, 2011 at 11:25 PM, Ben Schmidt mail_ben_schm...@yahoo.com.au mailto:mail_ben_schm...@yahoo.com.au wrote: The first time I checked the output of the command above for ErrorMsg, it showed me the very light colors I had

Re: edit alternate file -- e!# vs b!#

2011-04-24 Thread Tony Mechelynck
On 24/04/11 16:41, ZyX wrote: Reply to message «Re: edit alternate file -- e!# vs b!#», sent 18:18:38 24 April 2011, Sunday by Tony Mechelynck: Don't forget that with an exclamation mark, if your current buffer (the one you leave to edit the alternate file) is modified, and not open in another

Re: Vim: Warning: Input is not from a terminal

2011-04-22 Thread Tony Mechelynck
On 22/04/11 08:22, Gary Johnson wrote: On 2011-04-22, Tony Mechelynck wrote: On 22/04/11 07:36, Adam Monsen wrote: You've this mistake before, right? cat /tmp/foo.txt | vim when you meant to do cat /tmp/foo.txt | vim - Somewhere early in my Vim learning I figured out the latter, so I

Re: Replacing a visual selection

2011-04-22 Thread Tony Mechelynck
On 22/04/11 11:39, Ben Schmidt wrote: On 21/04/11 8:37 PM, Kai Weber wrote: Hi, Currently my workflow replacing a visual selection is like this: 1. Go to Visual mode 2. Select text 3. y'ank 4. :%s/c-r*/foo/g Something else nobody has mentioned is that putting \V at the beginning of the

Re: how to use alias in vim ?

2011-04-22 Thread Tony Mechelynck
On 22/04/11 22:03, sc wrote: On Friday, April 22, 2011 13:55:07 andy richer wrote: Hi vim guru, I want to use vim build in sort command, and I want to use sort i every time. Please advise me how to set an alias that I typesort and vim treats it assort i unix

Re: ErrorMsg highlighting ignored

2011-04-22 Thread Tony Mechelynck
On 22/04/11 18:23, Alan Warren wrote: Hello, I have a problem with the ErrorMsg highlight group being ignored in my custom colorscheme. I can reproduce this by forcing a typo in my vimrc and reloading my vimrc. Lines starting with Error: or E475 etc. are incorrectly highlighted. Gvim will

Re: ErrorMsg highlighting ignored

2011-04-22 Thread Tony Mechelynck
On 23/04/11 04:26, Alan Warren wrote: On Fri, Apr 22, 2011 at 6:26 PM, Tony Mechelynck antoine.mechely...@gmail.com mailto:antoine.mechely...@gmail.com wrote: On 22/04/11 18:23, Alan Warren wrote: Hello, I have a problem with the ErrorMsg highlight group being

Re: Installing ttf fonts in gvim in windows

2011-04-21 Thread Tony Mechelynck
On 21/04/11 08:15, Alexander Stepanov wrote: How to use non-monospace in gVim? Only monospace fonts are displayed in font list. On gvim with GTK2 GUI (only on X11), you can but it's ugly because the variable-width glyphs are displayed within constant-width screen cells. If you really want

Re: How can a vimscript variables' value be used as a ,or in, a line address?

2011-04-21 Thread Tony Mechelynck
On 22/04/11 05:04, Rostyslaw Lewyckyj wrote: Suppose that I do a pattern search and the search function returns the location into a variable xxx. e.g. let xxx = search(pat,flags,line('y)) and *later* , not immediatly, in the script I'd like to do something like continue my script at xxx or print

Re: Vim: Warning: Input is not from a terminal

2011-04-21 Thread Tony Mechelynck
On 22/04/11 07:36, Adam Monsen wrote: You've this mistake before, right? cat /tmp/foo.txt | vim when you meant to do cat /tmp/foo.txt | vim - Somewhere early in my Vim learning I figured out the latter, so I usually don't repeat the mistake. But why *is* that even a mistake? What is

Re: incrementing number in each line

2011-04-19 Thread Tony Mechelynck
On 19/04/11 10:24, googler wrote: On Apr 18, 9:50 pm, John Beckettjohnb.beck...@gmail.com wrote: googler wrote: This is what I actually used after posting the question. But I was wondering if there is a better way. Use Tim's approach but modify the replacement using:

Re: Installing ttf fonts in gvim in windows

2011-04-19 Thread Tony Mechelynck
On 19/04/11 09:36, Alexander Stepanov wrote: Monospace fonts... That's very said. Thank you for explanation. If you mean very sad, this is due to the fixed size of the character cell in gvim, something so fundamental to Vim's mode of operation that it is not going to change. In gvim for

Re: How can I set the current Cursor to IME mode?

2011-04-19 Thread Tony Mechelynck
On 19/04/11 09:38, pansz wrote: According to :h CursorIM Cursor will use CursorIM color when IME/XIM active, and back to Cursor color when IME disabled. When we have an internal vim script acting as IME/XIM, we need to set the Cursor to IME mode with vim script, is it possible? I *think*

Re: cscope quickfix how does jump work

2011-04-19 Thread Tony Mechelynck
On 19/04/11 17:47, 曾波 wrote: hi, i think you should check wether set cscopequickfix=c-,d-,e-,g-,i-,s-,t- has been set in you .vimrc I happen to have :set csqf=s-,c-,d-,i-,t-,e- (which is the value recommended under :help csqf) but that only determines which cscope commands

Re: Possible bug in indenting behavior

2011-04-19 Thread Tony Mechelynck
On 19/04/11 18:23, Randy Morris wrote: On Tue, Apr 19, 2011 at 05:14:38PM +0200, Christian Brabandt wrote: On Tue, April 19, 2011 4:30 pm, Randy Morris wrote: I may have found a bug in indenting behavior depending on whether or not 'list' is set. Can someone try to reproduce and/or explain

Re: cscope quickfix how does jump work

2011-04-18 Thread Tony Mechelynck
On 18/04/11 11:23, sinbad wrote: hi, while using cscope with qucikfix in quickfix window we can press enter on any line and it automatically goes to the corresponding line in the source file how does it work. thanks It works the same way for every quickfix command (you can see it working

Re: Installing ttf fonts in gvim in windows

2011-04-18 Thread Tony Mechelynck
On 18/04/11 11:50, Alexander Stepanov wrote: I need to install some ttf fonts in gvim. I found instruction how to do it, but this instruction is for linux. What to do if I have windows? You can install your fonts like any other fonts are installed on your OS: gvim (for Windows, and also any

Re: Comparison between using X11 or GTK for gvim?

2011-04-18 Thread Tony Mechelynck
On 18/04/11 21:22, Mun wrote: Hi, What are the advantages/disadvantages between X11 and GTK when compiling gvim? My Linux box uses GTK by default, but I wonder if I would be better served with X11. However, I couldn't find any comparisons between the two which would allow me to make an

Fwd: map tabn and tabp

2011-04-18 Thread Tony Mechelynck
On Apr 18, 11:09 pm, Cliff Oliveira oliveira.cl...@gmail.com wrote: how to map the Mac VIM commands:  :tabn and :tabp? -- Cliff Oliveirawww.tribodeideias.com.br They are not only MacVim commands, they exist on every Vim 7.x compiled with +windows The ex-command :tabn[ext] is synonymous to

Re: Code folding without explicit end matches

2011-04-18 Thread Tony Mechelynck
On 19/04/11 03:04, howard Schwartz wrote: Leslie wrote: I don't know what to make of this. For one thing I can't type it without trailing characters errors. Is it all one line? Is it an ex command? I tried inserting the ^M's with ctrl-q-ctrl-m but it immediately terminated the command. It is

Re: incrementing number in each line

2011-04-18 Thread Tony Mechelynck
On 19/04/11 04:50, googler wrote: Hi, I have a few lines as below. Most of the lines below correspond to a number (starting from 001 and counting upward). I want to change the part -new_cell_name ${eco_prefix}_001 in each line to its corresponding number without having to go to each line and

Re: why autocmd has E488 error

2011-04-17 Thread Tony Mechelynck
On 17/04/11 13:54, Ben Schmidt wrote: E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors. Ensure your script containing the autocommand is saved with Unix line endings and it should go

Re: why autocmd has E488 error

2011-04-17 Thread Tony Mechelynck
On 18/04/11 01:02, Ben Schmidt wrote: On 18/04/11 6:57 AM, Tony Mechelynck wrote: On 17/04/11 13:54, Ben Schmidt wrote: E488 is Trailing characters Perhaps it is occurring because your script has DOS line endings on a Unix/Mac system. That frequently causes these kinds of errors. Ensure your

Re: Shell-like command completion

2011-04-17 Thread Tony Mechelynck
On 18/04/11 04:23, Ted wrote: Hello folks, I've written a command that will replace the contents of a buffer with the output of a shell command. :%r !whatever or if the buffer contains the command's stdin (or if it reads no estdin) :%!whatever in both cases replacing whatever by the

Re: conditional insertion of utf-8 characters

2011-04-16 Thread Tony Mechelynck
On 17/04/11 01:50, AK wrote: Hi, I needed to make a mapping that would insert a bullet if '*' is typed at the beginning of line and insert literal '*' if typed somewhere else. I came up with something that works for me, but I was wondering if there's a shorter / better way to do this.. Here's

Re: why autocmd has E488 error

2011-04-16 Thread Tony Mechelynck
On 17/04/11 06:51, Michael(Xi Zhang) wrote: I want use %s/^M//g to delete the ^M in *.c files. In vimrc file, I added au BufRead *.c :%s/^M//gcr But Vim give me a E488 error. If I use au BufRead *.c :%s/^M//g (delete the cr from above) It will be no error, but I need to press Enter to

Re: syntax coloring

2011-04-15 Thread Tony Mechelynck
On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au VimLeave * exe 'mksession! d:\\Session.vim' My reopened files do not have syntax coloring. I have to do :e in every

Re: Strange key sequence behaviour

2011-04-15 Thread Tony Mechelynck
On 15/04/11 09:41, Steve wrote: Hi, I've been experiencing a strange behaviour when typing several keys *quickly*. The email address I use for mailing lists is the one I use here. From time to time, I have to type it in a message. And lastly, when I type it *quickly*, the screen just erases

Fwd: K not working correctly: WARNING: terminal is not fully functional

2011-04-15 Thread Tony Mechelynck
-- Forwarded message -- From: Ivan ive...@gmail.com Date: Apr 15, 4:49 am Subject: K not working correctly: WARNING: terminal is not fully functional To: vim_mac When pressing K on keyword, in terminal vim it will produce the man page correctly. However, in MacVim, it

Fwd: K not working correctly: WARNING: terminal is not fully functional

2011-04-15 Thread Tony Mechelynck
-- Forwarded message -- From: Tony Mechelynck antoine.mechely...@gmail.com Date: Apr 15, 12:01 pm Subject: K not working correctly: WARNING: terminal is not fully functional To: vim_mac On Apr 15, 4:49 am, Ivan ive...@gmail.com wrote: When pressing K on keyword, in terminal

Re: syntax coloring

2011-04-15 Thread Tony Mechelynck
On 15/04/11 11:31, rameo wrote: On Apr 15, 11:17 am, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au

<    10   11   12   13   14   15   16   17   18   19   >