Re: vim-unsubscr...@vim.org

2012-05-20 Thread Tony Mechelynck
On 19/05/12 19:26, Tim Chase wrote: Gotta send it to vim-unsubscr...@vim.org instead of putting it in the subject line. :-) -tim Yeah, and if it bounces, and you have a Google account, see if vim_use isn't mentioned at http://groups.google.com/groups/mysubs — if it is, you can

Re: Having trouble opening utf-16le files.

2012-05-18 Thread Tony Mechelynck
On 18/05/12 19:08, Brian G. Shacklett wrote: Many Windows 7 administrative tools seem to use utf-16le as their default file output. The tree command and the DNS administrative console are two examples. These files are generated with the proper BOM (FFFE, but $encoding is empty when the file is

Re: where can I download vimtips.txt

2012-05-08 Thread Tony Mechelynck
On 08/05/12 06:23, John Beckett wrote: I'm using win7. I don't think it would be very useful, but *if* you can find a text-browser for Windows, you could construct a short script based on ViewHtmlText at: http://vim.wikia.com/wiki/Preview_current_HTML_file to read a text version of a random

Re: Catch error E123: is help correct?

2012-05-06 Thread Tony Mechelynck
On 07/05/12 04:08, John Beckett wrote: At ':help :catch' we see this example to catch error E123: :catch /^Vim\%((\a\+)\)\=:E123/ Isn't the above wrong? Why not just: :catch /E123:/ The help example has ':E123' but it means 'E123:'? What is the '^Vim...' stuff for? The messages on

Re: where can I download vimtips.txt

2012-05-06 Thread Tony Mechelynck
On 06/05/12 13:57, John Beckett wrote: I added a plugin called totd.vim which will show me a tip a day when launch vim, but I don't know where to download vimtips.txt. I went to Vim Tips Wiki but still can't find where to download it, any one knows. Many thanks! I guess that is a very old

Re: highlight groups defintion

2012-05-06 Thread Tony Mechelynck
On 06/05/12 04:37, sinbad wrote: On May 5, 1:57 am, Ben Fritz fritzophre...@gmail.com wrote: On Friday, May 4, 2012 11:16:34 AM UTC-5, sinbad wrote: where can i get the definition for group-name in highlight command. my vim has :hi Function, but i am not able to find group defn for Function,

Re: good 256 color theme for C

2012-04-30 Thread Tony Mechelynck
On 30/04/12 10:23, sinbad wrote: I just started using tmux, and i am exploring 256 color option of the terminal. Is there any good colorscheme that uses theses colors effectively, especially for C programming ? cheers For Vim to use 256 colours effectively, you have to make sure that t_Co

Re: gtk-config not even tried

2012-04-27 Thread Tony Mechelynck
On 27/04/12 17:03, Arno Valentin wrote: I have two HP-UX machines say A and B with HP-UX 11.11 and 11.31 respectively. I'have compiled gvim 7.3 from source an B, and gvim 7.0 on A, both with same options for configure.. On A, gvim uses version with GTK GUI, Compilation with gcc (...) -

Re: map Ctrl with special characters

2012-04-27 Thread Tony Mechelynck
On 27/04/12 17:45, rameo wrote: I still have problems mapping keys. On my keyboard I have these keys I want to map: C-ò C-à C-è C-ù C-ì Tony once told in a message these info: ò = (0xF2, o-grave) and M-r (Alt+0x72, Alt-r) à = (0xE0, a-grave) and M-` (Alt+0x60, Alt-backtick) è = (0xE8, e-grave)

Re: Colorschemes and split window

2012-04-27 Thread Tony Mechelynck
On 27/04/12 18:34, rameo wrote: On Friday, April 27, 2012 6:18:29 PM UTC+2, Ben Fritz wrote: On Friday, April 27, 2012 10:56:55 AM UTC-5, rameo wrote: I use this code in my .vimrc to use my dark colorscheme when I open a .vim page and my light colorscheme when I open whatever other page:

Re: how to send command back to the command line after typing 'v' from linux command line in set -o vi mode?

2012-04-27 Thread Tony Mechelynck
On 27/04/12 20:35, pixelterra wrote: I recently found this out: Suppose you typed a longer command and you noticed that you had made several mistakes, and wanted to do the correction in the vi editor itself. You can type 'v' to edit the command in the editor and not on the command line! But

Re: Can Vim remember modes when switching between tabs?

2012-04-27 Thread Tony Mechelynck
On 27/04/12 23:45, Andrei Zmievski wrote: I originally noticed this in MacVim, but turns out this happens in the terminal as well. If you have two tabs open and enter the Insert mode in one, then switch to the other tab (by clicking on it in GUI, for example), the Insert mode is still active.

Re: Problem displaying euc-jp encoded file

2012-04-26 Thread Tony Mechelynck
On 25/04/12 17:07, Ben Fritz wrote: On Wednesday, April 25, 2012 8:42:50 AM UTC-5, esquifit wrote: I downloaded the Japanese dictionary file SKK-JISYO.M [1] which is required for the skk vim plugin [2]. [1] http://openlab.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1#p5, first link download [2]

Re: How to search in digraphs?

2012-04-13 Thread Tony Mechelynck
On 12/04/12 04:27, Chris Jones wrote: [...] Well.. if you don't know the digraph, it's not going to be possible to search for it anyway.. It makes more sense to do a search on the ISO 10646 long descriptive name (3rd column of rfc1345). e.g. you need an arrow and you do a ‘/arrow’.. a star

Re: Vim exit status

2012-04-06 Thread Tony Mechelynck
On 06/04/12 12:15, Tim Chase wrote: On 04/06/12 03:38, Ben Schmidt wrote: Does anyone know where Vim's behaviour regarding its exit status is documented? I can't find it, but some strange things are happening, so I'm interested in finding out why. The only documentation I know is at :help

Re: Vim exit status

2012-04-06 Thread Tony Mechelynck
On 07/04/12 00:28, Tim Chase wrote: On 04/06/12 17:09, Tony Mechelynck wrote: On 06/04/12 12:15, Tim Chase wrote: :help :cq though there are a few other notes if you do :helpgrep exit\_[- ]*\(code\|status\) The seven results from this helpgrep command are all unrelated to the exit

Re: Write register contents to file

2012-04-01 Thread Tony Mechelynck
On 01/04/12 11:00, howard Schwartz wrote: I would like to write the contents of a register to a file. Easy enough to grab the contents with let variable = getreg('a'). It would then be easy if :echo variable file worked like unix echo, but it doesnt. Any simple way to get contents of some

Re: :help WITHOUT split screen

2012-04-01 Thread Tony Mechelynck
On 30/03/12 15:35, Tarlika Elisabeth Schmitz wrote: On Fri, 30 Mar 2012 14:39:33 +0200 Guido Van Hoecke gui...@gmail.com wrote: Is there a way to prevent :help from splitting the window?! cabbrev h tab help Many thanks - works fine here. I've covered all options in .vimrc now: always

Re: CTRL-X keybindings in insert mode (e.g. ragtag.vim)

2012-03-31 Thread Tony Mechelynck
On 31/03/12 10:19, MikeM wrote: I recently downloaded Tim Pope's ragtag.vim (http://www.vim.org/scripts/script.php?script_id=1896) and note that most of the keybindings therein consist of CTRL-x, followed by another key (e.g. C-xCR to create a pair of tags separated by a newline). One thing

Re: E365 hardcopy

2012-03-31 Thread Tony Mechelynck
On 31/03/12 13:38, Phil Dobbin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, all. Out of the blue this morning my Debian Squeeze Vim (7.2.445 console=huge GUI=gtk2+huge) has started throwing the hardcopy error: `E365: Failed to print Postscript file` this is on both the GUI

Re: [OT] Vim Calendar

2012-03-18 Thread Tony Mechelynck
On 15/03/12 13:47, Elias Diem wrote: Hi Steve On Thu, Mar 15, 2012 at 07:37:44AM -0400, Steve Hall wrote: Is there a version available with the weeks starting at Monday? Or how could I produce it? Just put let g:calendar_monday = 1 at the top of the file. Probably I didn't express myself

Re: Control characters

2012-03-13 Thread Tony Mechelynck
On 09/03/12 21:41, Phil Dobbin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/03/2012 19:33, sc wrote: On Fri, Mar 09, 2012 at 07:05:58PM +, Phil Dobbin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, all. I quite often send various man pages the like to Vim

Re: installing/upgrading Vim

2012-03-03 Thread Tony Mechelynck
On 03/03/12 05:48, Phil Dobbin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, all. I've got a version of Vim (see below) which was the first Vim I used. I compiled it myself from source into /usr/local/ nowadays the Vim I use is in /opt/local/ has very many more features. Question

Re: Which runtime files for console vim?

2012-03-02 Thread Tony Mechelynck
On 29/02/12 18:55, howard Schwartz wrote: Hi, I successfully installed gvim on a redhat installation, which must run in console mode only. It does this fine, and has perhaps double the features enabled as the tiny or expanded console vim. My problem now is how to select the runtime directories

Re: Basic syntax highlighting fail

2012-02-26 Thread Tony Mechelynck
On 27/02/12 05:28, Paul Harris wrote: Hi, I'm using Vim 7.2.445 on Debian, with no .vimrc or .gvimrc. I write a file to the /tmp path, called x.c call(look call_something(); I load up that file in gvim vim /tmp/x.c Turn on syntax :syntax on Split the buffer :sp And put a quote at the end

Re: hg Rollback

2012-02-21 Thread Tony Mechelynck
On 21/02/12 11:10, Axel Bender wrote: Being new to Mercurial a quick question: How would I roll back a source code version e.g. from 7.3.446 to 7.3.441? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more

Re: hg Rollback

2012-02-21 Thread Tony Mechelynck
On 21/02/12 15:44, Axel Bender wrote: Thanks for your help, it worked right out of the box! Is there a way to find out the syntax of the revision number/the available revisions? About the syntax: as I said, hg help revisions An individual revision may be: - a full 40-hex-digit revision ID

Re: tabnew issue

2012-02-21 Thread Tony Mechelynck
On 21/02/12 15:05, naaj_ila wrote: When i opened any file in vim/gvim , I can use :tabnew command to open multiple files . No issues there We are using clearcase in my project. When i set a view and opened a file in vim/gvim :tabnew is not working. Editor command not found If i exit from view ,

Re: Using z in vim

2012-02-21 Thread Tony Mechelynck
On 21/02/12 17:59, Tim Chase wrote: On 02/21/12 10:39, Ven Tadipatri wrote: But I don't want that. I want to make the current line that I'm on scroll to the TOP of the screen. You want either zt or zcr depending on whether you want to reset the cursor to the first column: :help zt :help zCR

Re: strange behaviour with ctrl+A (increment)

2012-02-19 Thread Tony Mechelynck
On 19/02/12 17:01, eNG1Ne wrote: Something odd going on here, and I don't understand: I thought I remembered how to increment numbers, but it seems not :-{ Here's two lines from a file I'm working on bar // 04 bar // 05 If I place the cursor on any digit and press just ctrl+A, I get

Re: mapping insert to shift-insert

2012-02-15 Thread Tony Mechelynck
On 15/02/12 20:50, sinbad wrote: how can i mapinset key to work asShift-Insert i tried the following mapping nmapinsert S-insert it doesn't seem to be working, is it even possible ? basically i wanna copy text from one screen session to other session inside a putty, without using

Re: Redhat Linux has crippled Vim

2012-01-29 Thread Tony Mechelynck
On 29/01/12 05:23, howard Schwartz wrote: Linux ubunix02.acsu.buffalo.edu 2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64 x86_64 x86_64 GNU/Linux Vim: minimal: VIM - Vi IMproved 7.0 (2006 May 7, compiled Aug 4 2010 07:21:53) Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31,

Re: Redhat Linux has crippled Vim

2012-01-28 Thread Tony Mechelynck
On 29/01/12 00:57, howard Schwartz wrote: As mentioned the link does not work. But curious. is their some reason linking gvim to a name like vim would work, when just renaming gvim to vim -- or copying gvim to vim and putting the latter in some directory early in one's path would not work?

Re: Redhat Linux has crippled Vim

2012-01-28 Thread Tony Mechelynck
On 28/01/12 16:43, Benjamin R. Haskell wrote: On Sat, 28 Jan 2012, Tony Mechelynck wrote: [...] if you install gvim, then set up a symlink named vim pointing to it [...] [...] For instance in bash, after installing gvim, you would do pushd ~/bin ln -sv `which gvim` vim popd Why the pushd

Re: Redhat Linux has crippled Vim

2012-01-27 Thread Tony Mechelynck
On 27/01/12 09:25, howardb21 wrote: On Jan 26, 3:39 pm, Steve Halldigit...@dancingpaper.com wrote: On Thu, Jan 26, 2012 at 11:31 AM, howard Schwartzhoward...@gmail.com wrote: Redhat's ``enhanced'' version is not - It adds one or two trivial features. Better check your :version,

Re: Redhat Linux has crippled Vim

2012-01-27 Thread Tony Mechelynck
On 28/01/12 05:03, Tony Mechelynck wrote: On 27/01/12 09:25, howardb21 wrote: On Jan 26, 3:39 pm, Steve Halldigit...@dancingpaper.com wrote: On Thu, Jan 26, 2012 at 11:31 AM, howard Schwartzhoward...@gmail.com wrote: Redhat's ``enhanced'' version is not - It adds one or two trivial

Re: Redhat Linux has crippled Vim

2012-01-27 Thread Tony Mechelynck
On 28/01/12 05:17, howard Schwartz wrote: Thanks for the advice but this did not seem true for me. I did install an X-11 version of vim === a binary rpm package. I got gvim and a creature called evim which I recall is a vim designed to run like a MS windows editor, with no modes. gvim did not

Re: How does S-CR work in gvim?

2012-01-21 Thread Tony Mechelynck
On 21/01/12 01:55, Tim Chase wrote: On 01/20/12 17:31, Gary Johnson wrote: Someone just posted a question to superuser in which they mentioned discovering that Shift-Enter is the same as Ctrl-F. I experimented a little and discovered that that's true, but only in gvim, not vim, and it's not

Re: question about tab bar

2012-01-11 Thread Tony Mechelynck
On 11/01/12 13:03, gaoqiang wrote: when opening too many tab pages, it will be hard to identify a file by the name on the tab bar how can make the tab bar split into two lines automaticlly ? AFAIK, you can't. But you can use fewer tab pages and more windows per tab. With the following

Re: running commands with !

2012-01-08 Thread Tony Mechelynck
On 08/01/12 13:41, Tim Chase wrote: On 01/08/12 06:19, eNG1Ne wrote: I have three different machines with a score-writing package on, and on two of the three I can run the compile equivalent to create PostScript output with !mup -F % On the third, I hit the following snag: !mup {fname}

Re: % doesn't jump between pairs of parenthesis in html

2012-01-07 Thread Tony Mechelynck
On 07/01/12 22:06, Peng Yu wrote: On Sat, Jan 7, 2012 at 2:17 PM, Gary Johnsongaryj...@spocom.com wrote: On 2012-01-07, Peng Yu wrote: What is the output from this command? :verbose set matchpairs? Here is the output. :verbose set match matchpairs matchtime

Re: unicode

2012-01-06 Thread Tony Mechelynck
On 04/01/12 23:01, Zura Kutchava wrote: To: Dear friends finding and trying everything that supports unicode in gvim in windows xp or 2003. No fonts, no digraphs, no countless encodings help to display unicode symbols from 10d0 to 10f0 (georgian) may be somebody have any idea? i little

Re: why is Vim coloring text in txt files?

2012-01-01 Thread Tony Mechelynck
On 01/01/12 00:33, wolfv wrote: On Dec 31, 2:33 pm, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 31/12/11 21:44, wolfv wrote: Try :verbose setlocal tw? wm? fo? :echo $HOME :scriptnames while editing a text file. Then check the help for these options (and

Re: Can't write to ntfs file system

2012-01-01 Thread Tony Mechelynck
On 01/01/12 19:09, Graham Lawrence wrote: I have an external hard drive that is in ntfs file format. Vim will neither create a file, nor write to existing files, on this file system. It returns E212, saying I do not have permission. The drive mounts automatically from my fstab entry when I

Re: why is Vim coloring text in txt files?

2012-01-01 Thread Tony Mechelynck
On 01/01/12 14:54, wolfv wrote: OK Tony, I changed my vimrc file, so lines 2 3 read: source $VIMRUNTIME/vimrc_example.vim au! vimrcEx FileType text and it works. But what does line 3 do? It removes the FileType autocommands for filetype text in autocommand group vimrcEx. The

Re: How to get updated winwidth() after :set guifont ?

2012-01-01 Thread Tony Mechelynck
On 01/01/12 16:37, Zhao Cai wrote: Problem: Right after `set guifont=…`, `winwidth()` returns the old win width instead of the new width which would be changed by new guifont size. I tried to call `redraw` between but it does not work. Any suggestion? Thanks. - Zhao Experiments here show

Re: why is Vim coloring text in txt files?

2012-01-01 Thread Tony Mechelynck
On 01/01/12 23:02, wolfv wrote: Thanks Tony. I couldn't have don't it without you. :-) My pleasure. Tony. -- Cleaning your house while your kids are still growing is like shoveling the walk before it stops snowing. -- Phyllis Diller -- You received this message from the

Re: why is Vim coloring text in txt files?

2011-12-31 Thread Tony Mechelynck
On 31/12/11 18:18, wolfv wrote: On Dec 27, 12:55 am, Tony Mechelynckantoine.mechely...@gmail.com wrote: /vimfiles/filetype.vim filetype detection script (user customizations) I'll say this once only if exists(did_load_filetypes) finish endif allow continuation lines let s:cpo

Re: :view with split first?

2011-12-31 Thread Tony Mechelynck
On 31/12/11 20:16, Tim Chase wrote: On 12/31/11 12:43, Taylor Hedberg wrote: Unless I'm misunderstanding your question, I think you're looking for `:sview`. e.g.: :vert sv some_readonly_file.txt Precisely! I knew it had to be some combination of pieces I already knew, I just didn't try :sv

Re: why is Vim coloring text in txt files?

2011-12-31 Thread Tony Mechelynck
On 31/12/11 21:44, wolfv wrote: On Dec 31, 11:59 am, Tony Mechelynckantoine.mechely...@gmail.com wrote: add a file $HOME/vimfiles/after/ftplugin/text.vim (for Windows) In that file, either the following commands: setlocal wm=0 letl:tw =columns Tony I tried both setlocal wm=0 and letl:tw

Re: why is Vim coloring text in txt files?

2011-12-29 Thread Tony Mechelynck
On 29/12/11 06:46, wolfv wrote: [...] I created C:\Program Files (x86)\Vim\vimfiles\filetype.vim and copied the code that Tony posted on Dec 27, 12:55 into it. Its not my $HOME, but I am the sole user of this PC, so I guess that's OK. Everything works. It's the default $VIM location for your

Re: set font style in Linux

2011-12-29 Thread Tony Mechelynck
On 29/12/11 11:47, Stanley Rice wrote: Hi all I am working on Linux (GNome) and I want to set the font in my vim in italic style. But I don't know how. In windows, the code could be: set guifont=fontname:h11:i where i stands for italic. But the code doesn't work on Linux, how could it be done

Re: weird highlighting when i edit java code

2011-12-29 Thread Tony Mechelynck
[reordered to bottom-posting standards] On 29/12/11 17:19, Walkman wrote: On 2011.12.29., at 12:23, Rian Hunterr...@thelig.ht wrote: hey all i seem to be getting weird behavior when editing java code and i'm not sure why. for some reason every time i have the word register in my source file

Re: why is Vim coloring text in txt files?

2011-12-28 Thread Tony Mechelynck
On 28/12/11 01:53, wolfv wrote: Hi Tony. I didn't get vary far. Here is what I tried. From the Vim EX Line editor I typed::!mkdir $HOME/vimfiles This cmd window popped up: C:\Windows\system32\cmd.exe /c mkdir $HOME/vimfilesThe syntax of the command is incorrect.shell returned 1Hit any key to

Re: Opening something like href=/css/gray.css from an online html file

2011-12-28 Thread Tony Mechelynck
On 27/12/11 16:50, Peng Yu wrote: Hi, vim can open something like http:// But it doesn't open some other files like href=/css/gray.css that is embedded in a html file by default. Is there a way to allow this to happen? Regards, Peng That's a relative link, it is relative to the folder

Re: :language command

2011-12-28 Thread Tony Mechelynck
On 27/12/11 18:22, Axel Bender wrote: Why isn't it possible (in Windows?) to use :lanugage to set the language to e.g. ge-GE.UTF-8 (while ge-GE.1252 would work)? Because Windows does not support non-numeric code pages. This is, I think, contrary to the ISO standard, but Microsoft never cared

Re: :language command

2011-12-28 Thread Tony Mechelynck
On 28/12/11 18:13, Axel Bender wrote: Thanks for your answer Tony. UTF-8 corresponds (afaik) to CodePage 65001. Setting language to this value (e.g. :language English_United States.65001) is possible, however, what are its effects? I'll try to grok through the sources... Oh, you have the

Re: why is Vim coloring text in txt files?

2011-12-27 Thread Tony Mechelynck
On 27/12/11 10:03, Christian Brabandt wrote: Hi Tony! On Mo, 26 Dez 2011, Tony Mechelynck wrote: I could have used the internal mkdir() function, except that it isn't guaranteed to exist on all platforms. On which plattforms doesn't it exists? The help doesn't say. It just says

Re: why is Vim coloring text in txt files?

2011-12-26 Thread Tony Mechelynck
On 26/12/11 08:53, Thilo Six wrote: Tony Mechelynck wrote the following on 26.12.2011 04:47 Hello Thanks Thilo. I found the Generic configuration code in my C:\Program Files (x86)\Vim \vim73\filetype.vim Where in the file should the local configuration code (below) be placed? txt

Re: why is Vim coloring text in txt files?

2011-12-26 Thread Tony Mechelynck
On 26/12/11 09:20, Thilo Six wrote: Hello -- snip -- ,[ ft=text ]--- txt autocmd BufNewFile,BufRead \ *.txt, \\c*README* \ setl ft=text `- I just figured i probably introduced new

Re: why is Vim coloring text in txt files?

2011-12-26 Thread Tony Mechelynck
On 26/12/11 10:32, Thilo Six wrote: Tony Mechelynck wrote the following on 26.12.2011 10:10 Hello Tony, -- snip -- if exists(did_load_filetypes) finish endif Personly i would leave this out as i sometimes deliberately overwrite defaults So what? $VIMRUNTIME/filetype.vim sets its

Re: VIM-Crypt help

2011-12-26 Thread Tony Mechelynck
On 26/12/11 13:12, KasperH wrote: On Wednesday, November 24, 2010 1:23:13 PM UTC+1, KasperH wrote: YES! vim-enhanced is the package for Fedora 14, I've got the Huge version on both systems now, and can decrypt my crypted file with vi -x .. on a newly installed Fedora 14 system

Re: pasting html to vim resulted in additional tags

2011-12-26 Thread Tony Mechelynck
On 26/12/11 18:04, Peng Yu wrote: Pasting within Vim (via some internal register, probably the default register) or pasting from outside (via the clipboard)? I use command+v in mac to paste. I assume this means the second way. See if the 'paste' option can help you. N.B. Compiled with

Re: VIM-Crypt help

2011-12-26 Thread Tony Mechelynck
On 26/12/11 21:53, KasperH wrote: On 26 dec, 13:42, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 26/12/11 13:12, KasperH wrote: on a newly installed Fedora 14 system (running Amahi, headless), I have another issue. I did not notice it on the previously used Ubuntu and Fedora 14

Re: why is Vim coloring text in txt files?

2011-12-26 Thread Tony Mechelynck
On 27/12/11 03:49, wolfv wrote: Thanks Thilo and Tony. I Changed my filetype.vim code so when there is a “#” at the beginning of the first 3 lines, Vim sets generic configuration. i.e. I deleted this line: \ || getline(4) =~ '^#' || getline(5) =~ '^#' My txt files won't have a “#” in

Re: why is Vim coloring text in txt files?

2011-12-26 Thread Tony Mechelynck
On 27/12/11 05:26, wolfv wrote: Thanks Tony. I don't know what else to do. Most of this Vim code is over my head. I am using Vim 7.3 on Windows 7. This is what it says in my :h runtimepath: PC, OS/2: $HOME/vimfiles,

Re: pasting html to vim resulted in additional tags

2011-12-25 Thread Tony Mechelynck
On 25/12/11 18:27, Peng Yu wrote: Hi, html body/body /html If I paste the above code to vim (with command+p) on my mac, I get an extra line on the bottom. It seems that vim tries to matches the tags html andbody without recognizing that they are already matched. /body/html However, the

Re: pasting html to vim resulted in additional tags

2011-12-25 Thread Tony Mechelynck
On 26/12/11 04:14, Tony Mechelynck wrote: On 25/12/11 18:27, Peng Yu wrote: Hi, html body/body /html If I paste the above code to vim (with command+p) on my mac, I get an extra line on the bottom. It seems that vim tries to matches the tags html andbody without recognizing

Re: why is Vim coloring text in txt files?

2011-12-25 Thread Tony Mechelynck
On 26/12/11 01:28, wolfv wrote: Thanks Thilo. I found the Generic configuration code in my C:\Program Files (x86)\Vim \vim73\filetype.vim Where in the file should the local configuration code (below) be placed? txt autocmd BufNewFile,BufRead \ *.txt, \*README* \ setl

Re: How to search from inside a function

2011-12-25 Thread Tony Mechelynck
On 25/12/11 15:49, Asis Hallab wrote: Merry Christmas to all! Hopefully anyone of you can help me with my latest problem: I want to write a function that extends the behaviour of t.T.f and F, so that the character-search does not stop at the end of the current line. I just could not get it to

Re: Abbreviations that depend on the following character

2011-12-25 Thread Tony Mechelynck
On 26/12/11 06:46, Andre Majorel wrote: It would be nice to be able to type, say l bon grain for le bon grain and yet type l'ivraie without having it expand to le'ivraie. A non-id abbreviation for l' like :inoreab l le :inoreab l' l' doesn't work. Not after white space anyway. (Even

Re: cmap

2011-12-22 Thread Tony Mechelynck
On 22/12/11 11:21, Andy Wokula wrote: Am 22.12.2011 08:43, schrieb Marcin Szamotulski: Helo vim_use! I'm trying to make a cmap which mapstab toc-l but only for the :edit command. My idea was to use something like: cnoremapexpr tab getcmdline() =~ '^:\Ce\%[dit]\' ? c-l :tab Any ideas how to

Re: Print plugin

2011-12-22 Thread Tony Mechelynck
On 22/12/11 18:07, Eric Weir wrote: Is there a plugin that enables formatting on print, e.g., minimally setting margins and wrapping by word rather than character? Thanks, No plugin necessary. See :help :hardcopy :help popt-option Margin setting is included. Not sure about

Re: Print plugin

2011-12-22 Thread Tony Mechelynck
On 22/12/11 22:10, Eric Weir wrote: On Dec 22, 2011, at 12:29 PM, Tony Mechelynck wrote: No plugin necessary. See :help :hardcopy :help popt-option Margin setting is included. Not sure about wrapping by words; but you can reformat the text prior to printing, in order

Re: condition in statusline, how ?

2011-12-22 Thread Tony Mechelynck
On 23/12/11 03:52, stardiviner wrote: I want to make a condition in statusline setting. for example: when fileformat is unix, show unix with black color in statusline, if fileformat is dos, then show in statusline with *red* color. here is my statusline setting in my vimrc file: code

Re: about empty clipboard

2011-12-17 Thread Tony Mechelynck
On 17/12/11 07:20, Saturn five wrote: hi, everyone: while i close my gvim(7.3), it will empty clipboard, how to close this feature? Which OS? If under X11, the clipboard (register + used by other programs for Edit→Paste) or the X selection (register * used by other programs for

Re: block edit possibility

2011-12-17 Thread Tony Mechelynck
On 18/12/11 01:34, sergio wrote: On 12/18/2011 03:39 AM, John Beckett wrote: :setl noma :help 'modifiable' Than you, John. And could you say, how to set this flag automatically for readonly buffers. It is possible, but maybe not desired: - If only 'readonly' is set, you can modify the

Re: h j k l -- keys

2011-12-16 Thread Tony Mechelynck
On 16/12/11 14:34, rameo wrote: [...] I checked other national keyboards, they are almost all the same as the US keyboard. [...] Almost… but not exactly, even if we don't count Dvorak keyboards, which are vastly different. English-language keyboards are QWERTY, French-language keyboards are

Re: Find non-printing characters

2011-12-15 Thread Tony Mechelynck
On 15/12/11 22:15, Graham Lawrence wrote: How can I find non-printing characters in a text? I do not know which specific characters I'm looking for, only that two different such exist. I have tried /Ctrl+V Ctrl+A thru Z to no avail. Others that I found visually appeared in vim as ~V ~W etc,

Re: can quickfix achieve this?

2011-12-15 Thread Tony Mechelynck
On 15/12/11 17:21, Jim Green wrote: Hello vimmers! first I am not sure if this is possible: when using cscope with quickfix, if a file has multile matches, each match will show in the quickfix and each match has filename in the beginning. Could the result be grouped by files, so basically if

Re: E365: Failed to print Postscript File

2011-12-15 Thread Tony Mechelynck
On 15/12/11 21:50, octopusgrabbus wrote: I am running vim version 7.2.330 and getting this error E365: Failed to print Postscript File. ha[rdcopy] fails on CupsPDF, or any of my printers. I don't print from vim often. This did work, but I don't know when it started not to work. I would

Re: AW: AW: AW: call to iconv(...) missing somewhere in the code?

2011-12-14 Thread Tony Mechelynck
On 14/12/11 12:14, Paul Maier wrote: -Ursprüngliche Nachricht- Von: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] Im Auftrag von Tony Mechelynck Gesendet: Mittwoch, 14. Dezember 2011 05.03 An: Paul Maier Cc: vim_use@googlegroups.com Betreff: Re: AW: AW: call to iconv

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-13 Thread Tony Mechelynck
On 13/12/11 06:00, Jerry wrote: Thanks a lot, Tony. I will experiment with that. Also I noticed the color scheme is not loaded right. With the same color scheme specified, what showed up in VIM7.2 is different from what is showed up in VIM7.3. Like in the examples of my first post. Do you happen

Re: [Vim-l] Unicode issue

2011-12-13 Thread Tony Mechelynck
On 13/12/11 20:32, Benjamin Fritz wrote: First, you've sent your question to a list discussing the pages on the wiki, not a Vim help list. You should have sent it to vim_use@googlegroups.com, as discussed here: http://vim.wikia.com/wiki/Vim_Tips_Wiki:Community_Portal#Asking_questions I've

Re: AW: AW: call to iconv(...) missing somewhere in the code?

2011-12-13 Thread Tony Mechelynck
see my interspersed comments, especially at the bottom On 13/12/11 11:50, Paul Maier wrote: Hi, German message output is broken when encoding=UTF-8. Maybe calls to convert messages to the current encoding (see :help iconv) are missing in the code? To reproduce here are 2 examples among

Re: How to put a character the statusline?

2011-12-12 Thread Tony Mechelynck
On 12/12/11 06:19, Bee wrote: This returns the decimal value of the byte (character) under the cursor: set statusline+=%b decimal byte :help statusline b N Value of byte under cursor. Since 'b' returns the decimal value as a number (N), could something like this work? (I cannot get it to

Re: AW: call to iconv(...) missing somewhere in the code?

2011-12-12 Thread Tony Mechelynck
On 12/12/11 19:02, Paul Maier wrote: -Ursprüngliche Nachricht- Von: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] Im Auftrag von Tony Mechelynck Gesendet: Sonntag, 11. Dezember 2011 15.11 An: vim_use@googlegroups.com Cc: Paul Maier Betreff: Re: call to iconv(...) missing

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-12 Thread Tony Mechelynck
On 13/12/11 03:24, Jerry wrote: Thank you Tony. I was able to set the font Bitstream\ Vera\ Sans\ Mono\ 11 etc as suggested by the wikia. but I was not able to specify the font I wanted. Do you know why GTK2 can only find a subset of the fonts? thanks. GTK2 ought to be able to find all the

Re: call to iconv(...) missing somewhere in the code?

2011-12-11 Thread Tony Mechelynck
On 11/12/11 13:14, Paul Maier wrote: Hi, German message output is broken when encoding=UTF-8. Maybe calls to convert messages to the current encoding (see :help iconv) are missing in the code? To reproduce here are 2 examples among many others: 1. example: - open new gvim - :set

Re: :make Success

2011-12-11 Thread Tony Mechelynck
On 11/12/11 21:50, Paul wrote: On Saturday, 26 November, 2011 at 23:22:16 GMT, Paul wrote: I want to do this, but only have the ls bit executed if make is successful: :make | !ls I expanded on this by doing a make automatically when a buffer is saved: autocmd BufWritePost *.pl make Now, I

Re: How to put a character the statusline?

2011-12-11 Thread Tony Mechelynck
On 12/12/11 05:13, Bee wrote: I know how to put the decimal and hex equivalent of the character under the cursor in the statusline: set statusline+=%b decimal byte '98' set statusline+=\x%02B hex byte 'x62' How to put the character itself in the statusline? -Bill maybe

Re: Strange font rendering in gVIM 7.3 in Unix

2011-12-11 Thread Tony Mechelynck
On 12/12/11 05:42, Jerry wrote: I recently compiled a VIM 7.3 under Unix. I am using all default options. When opening GVIM, I found that the font rendering is really crappy. It is entirely unacceptable when compared with VIM 7.2 Here are the screen shots for the same piece of code under two

Re: AW: AW: How to give middle mouse button emulation more time?

2011-12-10 Thread Tony Mechelynck
On 10/12/11 13:01, Paul Maier wrote: [...] Windows had these 2 button mice some years ago and I don't know any normal Windows program that pastes using middle mouse, therefore I expect no support in Windows for a middle mouse emulation. That's why I was mentioning Firefox (or Thunderbird or

Re: Careful when using ctrl+w

2011-12-10 Thread Tony Mechelynck
On 10/12/11 03:40, Ven Tadipatri wrote: Hi Tim, The neat thing about VI is that the more you work with it the more neat things you learn about it, mostly through experimenting rather than reading lengthy documentation. Well I wasn't sure what kind of terminal I had - but you're right,

Re: How can I keep vim from keeping context

2011-12-09 Thread Tony Mechelynck
On 09/12/11 17:14, Bruce wrote: I've been annoyed by it for years, but maybe it has become more aggressive. I *HATE* colors because I cannot read blue on black or yellow on white. Those colors are all too common. I *HATE* finding myself in the middle of a file because several months ago I

Re: AW: How to give middle mouse button emulation more time?

2011-12-09 Thread Tony Mechelynck
On 10/12/11 01:38, Paul Maier wrote: Hi, vim emulates a middle mouse button press by clicking left and right mouse button simultaneously. Works fine. But often I'm too slow to click both buttons at the very same time. I'm too slow for the default emulation tolerance. I'm looking for an option

Re: [ANN] Aurum: plugin for Mercurial -- Vim integration

2011-12-03 Thread Tony Mechelynck
On 03/12/11 16:01, zyx@gmail.com wrote: This plugin provides a vim-- VCS (currently only mercurial) integration for your projects. Features: - Partially committing changes (:AuRecord). - Viewing file state at particular revision (aurum://file, :AuFile). - Viewing uncommited changes

Re: F3 acting like 'g~w' with Filetype 'mail'

2011-12-02 Thread Tony Mechelynck
On 02/12/11 12:25, Bastien Dejean wrote: Hi, I was wondering what would lead 'F3' to be mapped to 'g~w' with the 'mail' file type? I want 'F3' to be: nmapsilent F3 :echo hi . synIDattr(synID(line(.),col(.),1),name) . ' trans' . synIDattr(synID(line(.),col(.),0),name) . lo .

Re: F3 acting like 'g~w' with Filetype 'mail'

2011-12-02 Thread Tony Mechelynck
On 02/12/11 15:01, Bastien Dejean wrote: Bastien Dejean a écrit : I just realized F1 and F2 also have a similar behavior: 'F1' seems to be '~', 'F2': '2~', and 'F3': '3~'... ?! When I look at: :h xterm-function-keys I see similar patterns. Any chances it might be related? Greetings,

Re: Installing vim 7.3 as a user - can't copy to/from system clipboard

2011-11-30 Thread Tony Mechelynck
On 30/11/11 11:48, ACR wrote: Hi, I am trying to install vim 7.3 locally on a red hat machine in which I have a user account. I downloaded the source code from vim.org and ran the following commands. ./configure --prefix=/home/username/.local --enable-gui --with-x -- with-features=normal

<    7   8   9   10   11   12   13   14   15   16   >