Re: Synchronizing or merging undo across platforms

2011-11-28 Thread Tony Mechelynck
On 28/11/11 06:31, Christian Brabandt wrote: Hi Bram! On So, 27 Nov 2011, Bram Moolenaar wrote: Christian Brabandt wrote: On Wed, November 16, 2011 9:38 pm, Paul wrote: On Nov 16, 1:42 am, Christian Brabandtcbli...@256bit.org wrote: Well, first check that :echo undofile(@%) points to

Re: How to customize CTRL-W CTRL-F?

2011-11-27 Thread Tony Mechelynck
On 27/11/11 18:28, Peng Yu wrote: Hi, I want to customize the behavior of CTRL-W CTRL-F. For example, it is of the pattern #includeheader.h, I will search for C and C++ header file directories. If it is of the pattern import os, I'll search for python library directories for file os.py. More

Re: gvim doesn't start from desktop icons or unity launcher but from shell

2011-11-23 Thread Tony Mechelynck
On 23/11/11 08:28, punknroll wrote: I found out that the error exists in the .vimrc file. when i rename it gvim starts again. https://github.com/spf13/spf13-vim/blob/master/.vimrc what can prevent the gui from starting here? Hard to tell by eyeball alone; experimenting is your friend. Now

Re: How do I make vim.exe / gvim.exe use ncftp.exe instead of ftp.exe?

2011-11-21 Thread Tony Mechelynck
On 22/11/11 00:35, Haider Raza wrote: I have tried the 'let g:netrw_ftp_cmd=ncftp' command in vim and in the _vimrc file. I also edited the netwr.vim file directly and put ncftp there but when I look at the dos box that comes up when the ftp request is made to edit a file, I see that vim is

Re: can I disable input method in vim normal mode

2011-11-21 Thread Tony Mechelynck
On 21/11/11 18:37, jason.桂林 wrote: I normally input code in vim, it's all ascii chars, but sometime I need type chinese, for document and comment. The input method is chinese at insert mode, and I press esc, and then I type some vim command, but this command can't be execute unless I switch

Re: In script always search from start of buffer

2011-11-21 Thread Tony Mechelynck
On 21/11/11 14:19, porphyry5 wrote: On Sun, Nov 20, 2011 at 5:10 PM, Tony Mechelynck [via VIM] [hidden email] /user/SendEmail.jtp?type=nodenode=5010492i=0 wrote: Yes, and why not use bar-separated commands? You _are_ running in 'nocompatible' mode aren't you? The following (untested

Re: In script always search from start of buffer

2011-11-21 Thread Tony Mechelynck
On 21/11/11 15:23, Graham Lawrence wrote: On Mon, Nov 21, 2011 at 4:44 AM, Tim Chasev...@tim.thechases.com wrote: In normal-mode, the number prefixing a search is a count, to find the Nth match. In command-line mode (entered when you hit the colon), it's the line at which to start. But one

Re: In script always search from start of buffer

2011-11-21 Thread Tony Mechelynck
On 21/11/11 12:22, porphyry5 wrote: On Sun, Nov 20, 2011 at 1:25 PM, Gary Johnson-4 [via VIM] [hidden email] /user/SendEmail.jtp?type=nodenode=5010270i=0 wrote: On 2011-11-20, porphyry5 wrote: In a script, how can I get repeated searches always to begin at the start of the buffer? If

Re: can I disable input method in vim normal mode

2011-11-21 Thread Tony Mechelynck
On 22/11/11 04:23, pansz wrote: 2011/11/22 Tony Mechelynckantoine.mechely...@gmail.com: - for X11 (compiled with +xim) :help mbyte-XIM - for all versions (compiled with either of the above) :help 'imactivatekey' :help 'imcmdline' :help 'imdisable' :help

Re: In script always search from start of buffer

2011-11-20 Thread Tony Mechelynck
On 20/11/11 22:24, Gary Johnson wrote: On 2011-11-20, porphyry5 wrote: In a script, how can I get repeated searches always to begin at the start of the buffer? If I precede the search with gg or :cursor(1, 1) I get E492, with 1G I get E464. :map p$ ggdd:while @ != CR:b#CR:cursor (1,

Re: _vimrc file on Windows with 7.3

2011-11-20 Thread Tony Mechelynck
On 21/11/11 01:44, Henry Hertz Hobbit wrote: I use these function keys on Linux with no problems (the zz is lower case, not upper case and was done to get rid of some strange behavior on OpenSuse 11.2 until I altered what caused it not to come back to where I was at but shoved the line to the

Re: [HELP]Gvim can't find all the fonts on my system

2011-11-19 Thread Tony Mechelynck
On 20/11/11 04:42, zhang listar wrote: I have installed gvim72 on my system but gvim can't find all the fonts installed on my system. How to fix it? Thanks in advance. You can't, unless you're using gvim with GTK2 (on X11 which normally means Unix-like but not macvim) and even on GTK2

Re: Gvim can't find all the fonts on my system

2011-11-19 Thread Tony Mechelynck
On 20/11/11 05:29, zhang listar wrote: 在 2011年11月20日 上午11:56,Ben Fritzfritzophre...@gmail.com 写道: On Nov 19, 9:42 pm, zhang listarlistarmings...@gmail.com wrote: I have installed gvim72 on my system but gvim can't find all the fonts installed on my system. How to fix it? Thanks in

Re: Gvim can't find all the fonts on my system

2011-11-19 Thread Tony Mechelynck
On 20/11/11 05:41, Tony Mechelynck wrote: [...] - See http://vim/wikia.com/wiki/Setting_the_font_in_the_GUI for details. Oops! http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI Best regards, Tony. -- It seems like the less a statesman amounts to, the more he loves the flag. -- You

Re: gvim doesn't start from desktop icons or unity launcher but from shell

2011-11-18 Thread Tony Mechelynck
On 15/11/11 08:20, punknroll wrote: hi all, when i try to start gvim from the desktop icon or the unity launcher the gvim process shows up for a few seconds when i run top in the shell but doesn't start. When I enter the same command in the shell gvim -f %F gvim starts without errors. Any

Re: What does '* in 'exists(*GetAwkIndent)' mean?

2011-11-18 Thread Tony Mechelynck
On 15/11/11 04:38, Tim Chase wrote: On 11/14/11 21:29, Peng Yu wrote: I don't know how to search for the usage of * in the following vim code. Could anybody which keyword I should search in vim help for its usage? exists(*GetAwkIndent) Reading at :help exists() mentions that the * prefix

Re: autocommand to replace special characters into a file.

2011-11-14 Thread Tony Mechelynck
On 14/11/11 11:37, Eddine wrote: Hello At work I have to edit regurlarly files containing special characters like*^M or ^A* for the moment Im' at the first stage where I just try to make replace a string by another one in my autocommand: *au VimEnter,BufNewFile,BufRead,BufEnter *.log

Re: autocommand to replace special characters into a file.

2011-11-14 Thread Tony Mechelynck
On 14/11/11 12:52, Eddine wrote: yes I know s/string1/string2 will not replace ^M or ^A ; I just want to make a first try to replace string1 to string2 first before replacing string1 by ^M 2011/11/14 Tony Mechelynck antoine.mechely...@gmail.com mailto:antoine.mechely...@gmail.com On 14/11

Re: Combined commands provide wrong result

2011-11-12 Thread Tony Mechelynck
On 12/11/11 11:30, Guido Van Hoecke wrote: Hi, I want to edit a csv file with e.g. following content: tag2,2011/10/31,28250,28208,0,0,0.9985 tag1,2011/10/31,1591,1583,8,0,1 tag2,2011/10/30,15046,15008,0,0,0.9975 tag1,2011/10/30,981,975,6,0,1 tag2,2011/10/29,13019,12993,0,0,0.998

Re: Setting encoding for a type of file

2011-11-11 Thread Tony Mechelynck
On 11/11/11 04:52, Ben Fritz wrote: On Nov 10, 3:26 pm, Marcio Gilmarciom...@bol.com.br wrote: On Nov 10, 6:09 pm, Christian Brabandtcbli...@256bit.org wrote: autocmd FileType dosbatch :e! ++enc=cp850 works, but put the syntax highlight off On Nov 10, 6:16 pm, Tony

Re: How to copy strings into system's clipboard on n900 (maemo)?

2011-11-11 Thread Tony Mechelynck
On 11/11/11 09:31, Yue Wu wrote: On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz fritzophre...@gmail.com wrote: On Nov 10, 8:21 am, Yue Wu vano...@gmail.com wrote: Hello list, Sorry I've posted a same mail on vim_dev then I realized that I've posted in a wrong mailing list. My question is

Re: No 'authochdir' in maemo port of vim[Was: How to copy strings into system's clipboard on n900 (maemo)?]

2011-11-11 Thread Tony Mechelynck
On 11/11/11 09:38, Yue Wu wrote: On Fri, 11 Nov 2011 16:20:42 +0800, Yue Wu vano...@gmail.com wrote: On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz fritzophre...@gmail.com wrote: On Nov 10, 8:21 am, Yue Wu vano...@gmail.com wrote: Hello list, Sorry I've posted a same mail on vim_dev then

Re: autowrapping when editing a line

2011-11-11 Thread Tony Mechelynck
On 11/11/11 13:08, Eric Smith wrote: I know that vim does not rewrap lines as you extend them like many other editors. What I was wondering is what makes this so difficult to implement in vim and could it ever be implemented? (Sorry to ask) It was already implemented when I met Vim, which

Re: Possible bug with user-defined commands used in autocommands

2011-11-11 Thread Tony Mechelynck
On 11/11/11 15:34, Taylor Hedberg wrote: I'm running into some strange behavior with autocommands, using Vim 7.3.353. I'm not sure whether it's a bug, or just one of those gotchas that seem to pop up throughout Vim's syntax. I have a command defined as follows: command! WinWidth execute

Re: what should I know if I want to wrote a simple plugin like this

2011-11-11 Thread Tony Mechelynck
On 11/11/11 15:36, Jason wrote: I just need a very simple plugin, I want do it myself, when I press {enter , it become below `I` means cursor { I } if I press ({enter it goes to ({ I }) |( = (|) |{ = {|} I don't want to know every thing about plugin development, but I

Re: python scripting: get current visual selection

2011-11-11 Thread Tony Mechelynck
On 11/11/11 18:16, Gelonida N wrote: Hi, I am rather new to the python scripting module of vim. I wanted to write a small test script, which is analyzing all text, that I yanked into named buffers. (not sure if 'named-buffer' is the correct vi term) Small example buf_names = 'abcd' for

Re: python scripting: get current visual selection

2011-11-11 Thread Tony Mechelynck
On 11/11/11 18:56, AK wrote: On 11/11/2011 12:49 PM, Gelonida N wrote: On 11/11/2011 06:39 PM, AK wrote: On 11/11/2011 12:16 PM, Gelonida N wrote: Hi, I am rather new to the python scripting module of vim. I wanted to write a small test script, which is analyzing all text, that I yanked

Re: How to copy to or paste from clipboard at mac OS X

2011-11-11 Thread Tony Mechelynck
On 11/11/11 19:03, jason.桂林 wrote: I am using MacVim now, copy paste is a very big trouble for me. If I use Cmd+V to paste, the indent and some auto things will make the code totally chaos. If I select and use Cmd+C to copy, the line number will include in the code I am mess up -- Best

Re: what is vim's printf, as it is in c

2011-11-10 Thread Tony Mechelynck
On 10/11/11 05:29, Ben Fritz wrote: On Nov 8, 11:07 pm, Steve liusliu@gmail.com wrote: On Wed, Nov 9, 2011 at 12:59 PM, Marc Webermarco-owe...@gmx.de wrote: Excerpts from Steve liu's message of Wed Nov 09 05:47:10 +0100 2011: I finally got it. I don't know your words at all yesterday.

Re: How to copy strings into system's clipboard on n900 (maemo)?

2011-11-10 Thread Tony Mechelynck
On 10/11/11 17:29, Charles Campbell wrote: Ben Fritz wrote: [snip] I don't know, I am pretty sure if your Vim is compiled for it, it should work. But then, I don't know what n900 refers to. Maybe you need an X server running. [snip] Hello, A quick google search shows that Nokia makes a

Re: Setting encoding for a type of file

2011-11-10 Thread Tony Mechelynck
On 10/11/11 20:06, Marcio Gil wrote: When I edit a DOS batch (for example), I always need to put ':e + +enc=cp850'. Can I add in my _vimrc file a auto command for this? Example: autocmd FileType dosbatch setlocal fileencoding=cp850 (don't works!) Thanks, Marcio. The FileType autocommand

Re: Setting encoding for a type of file

2011-11-10 Thread Tony Mechelynck
On 10/11/11 22:52, Marcio Gil wrote: On Nov 10, 7:26 pm, Marcio Gilmarciom...@bol.com.br wrote: This works for me: exec 'autocmd BufReadPre *.bat set fileencodings=ucs-bom,cp850,latin1' I put this in my _vimrc: autocmd BufNewFile,BufReadPre *.bat,*.sys,*.cmd,*.prg,*.ch set

Re: Abbreviation with an @

2011-11-06 Thread Tony Mechelynck
On 06/11/11 23:51, Quincy Bowers wrote: I would like to create an abbreviation like the following: :iabbrev @author @author Author Name But when I attempt this I get the error 'E474: Invalid argument'. This works fine though: :iabbrev @ @author Author Name Can anyone tell me the right way

Re: Abbreviation with an @

2011-11-06 Thread Tony Mechelynck
On 07/11/11 06:37, Bee wrote: On Nov 6, 9:14 pm, Christian Brabandtcbli...@256bit.org wrote: Hi Tim! On So, 06 Nov 2011, Tim Chase wrote: On 11/06/11 19:04, Quincy Bowers wrote: Ah, I wonder if abbreviations can only be defined if they don't cross keyword boundaries... And if that is

Re: copy the output of :%g command to a register

2011-11-06 Thread Tony Mechelynck
On 07/11/11 07:16, sinbad wrote: hi, how to copy the output of :%g command to a register cheers The :g command produces no output; the output is from the ex-command after the second slash in :[range]g/pattern/command. For the default :p command, see :help :redir Best regards, Tony. --

Re: mapping ALT-backspace

2011-11-05 Thread Tony Mechelynck
On 05/11/11 17:21, Benjamin R. Haskell wrote: On Sat, 5 Nov 2011, Tony Mechelynck wrote: Well, under Linux each different terminal (Linux console, KDE konsole, gnome-terminal, xterm, mlterm, ...) can react differently, but gvim has a better grasp of what you type than any of them, because

Re: Compound search

2011-11-05 Thread Tony Mechelynck
On 06/11/11 02:02, Bee wrote: [...] PS Is there any way to edit or delete a post? As long as you're still composing it, you can change anything. Once you send it, it's too late. :-P Best regards, Tony. -- If that makes any sense to you, you have a big problem. -- C.

Re: Compound search

2011-11-05 Thread Tony Mechelynck
On 06/11/11 04:13, Bee wrote: On Nov 5, 6:54 pm, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 06/11/11 02:02, Bee wrote: [...] PS Is there any way to edit or delete a post? As long as you're still composing it, you can change anything. Once you send it, it's too late. :-P Best

Re: mapping ALT-backspace

2011-11-04 Thread Tony Mechelynck
On 03/11/11 17:07, meino.cra...@gmx.de wrote: Tony Mechelynckantoine.mechely...@gmail.com [11-11-03 17:00]: On 03/11/11 03:54, meino.cra...@gmx.de wrote: Tony Mechelynckantoine.mechely...@gmail.com [11-11-02 06:40]: On 02/11/11 03:53, meino.cra...@gmx.de wrote: Hi, the zsh I am using is

Re: Ubuntu packages of latest Vim? (to fix bug)

2011-11-04 Thread Tony Mechelynck
On 05/11/11 04:03, John Little wrote: Does anyone have packages for Ubuntu Oneiric of the latest Vim? Building your own vim from the Mecurial repository is much easier than you might expect. For Ubuntu start with sudo apt-get build-dep vim-gnome then follow Tony's instructions at

Re: mapping ALT-backspace

2011-11-03 Thread Tony Mechelynck
On 03/11/11 03:54, meino.cra...@gmx.de wrote: Tony Mechelynckantoine.mechely...@gmail.com [11-11-02 06:40]: On 02/11/11 03:53, meino.cra...@gmx.de wrote: Hi, the zsh I am using is recoginzing ALT-backspace as delete one word backward, which is very handy. Unfortunately I have not found a

Re: Mapping Problem. Down key have a slow response time.

2011-11-03 Thread Tony Mechelynck
On 03/11/11 06:47, ozhan fenerci wrote: Dear List, I have remapped up-down-right-left keyboard keys. It is like Vim Mappings My Mappings h-move leftk j-move downb k-move upn l-move rightl I have remapped these keys in the .vimrc file to work in insert mode and

Re: replacing all characters in the current line?

2011-11-01 Thread Tony Mechelynck
On 02/11/11 05:21, Jose Caballero wrote: Hi, this happened to me today. I had a line like this one === and I wanted to replace all characters by '-', so I could have something like I thought I could do it by combining 'g' and 'r' as I understood 'g' is good

Re: How to enable mouse wheel scrolling in non-gui vim.exe?

2011-11-01 Thread Tony Mechelynck
On 02/11/11 05:23, Toddintr wrote: I meant to say How can I enable mouse scroll WHEEL in non-gui vim.exe? -- sorry. Todd AFAICT it depends on the terminal; and I have freed myself from Windows some time ago (months? years? Years I think) so I cannot experiment on a Windows console. Here

Re: mapping ALT-backspace

2011-11-01 Thread Tony Mechelynck
On 02/11/11 03:53, meino.cra...@gmx.de wrote: Hi, the zsh I am using is recoginzing ALT-backspace as delete one word backward, which is very handy. Unfortunately I have not found a way to map this in a similiar way for vim. How can I map ALT-backspace in vim? Thank you very much in advance

Re: function to apply multiple whole-file substitutions

2011-11-01 Thread Tony Mechelynck
On 02/11/11 03:53, eda wizard wrote: Greetings all, I'm trying to craft a function to apply a series of pattern-matching substitutions to the file. So far I've got this in my .vimrc function Scrub () :%s// /g :%s/\s*$//g endfunction map :call Scrub () but it's not working, seems to complain

Re: Mapping shortcuts

2011-10-31 Thread Tony Mechelynck
On 31/10/11 21:15, Chris Jones wrote: On Mon, Oct 31, 2011 at 01:06:45PM EDT, George Papanikolaou wrote: I know this is simple. but I can't figure it out by Googling... so. Nothing wrong with googling, but there's no guarantee whoever posted his favorite trick fully understands the problem

Re: Mapping shortcuts

2011-10-31 Thread Tony Mechelynck
On 31/10/11 22:03, Benjamin R. Haskell wrote: [...] The problem is sometimes that it's too complete, and isn't organized by the person who's looking for the information (naturally). Google often cuts through that problem (e.g. by allowing synonyms that the help writer didn't consider, or terms

Re: Filetype error

2011-10-29 Thread Tony Mechelynck
On 29/10/11 03:47, Justin Lafferty wrote: For the longest of times my .vimrc has looked as follows: Because some options may not be vi compatible set nocompatible Turns on filetype plugins filetype plugin on filetype indent on Ignore case when searching set ignorecase set smartcase Highlight

Re: how to make 'h,j,k,l' faster ?

2011-10-28 Thread Tony Mechelynck
On 28/10/11 17:21, Ben Fritz wrote: On Oct 28, 6:16 am, Tim Chasev...@tim.thechases.com wrote: On 10/27/11 22:20, gaoqiang wrote: I feel those keys slow. and word-move-keys are a little diffcult to make a accurate move. While it's a bit of a non-answer, I'd recommend using Vim's many

Re: Pernanent disable comment next line

2011-10-28 Thread Tony Mechelynck
On 28/10/11 17:36, Michael D. Berger wrote: In a previous thread I read that I could disable automatically commenting of the next line with: :set formatoptions-=ro This works, but I have to do it every time I open a file. So on my Fedora 15_64 system, I added that set line to

Re: Please fix: make Windows Vim use same files as unix. No reason not to and it's confusing in mixed envirionments.

2011-10-28 Thread Tony Mechelynck
On 28/10/11 22:26, Linda W wrote: [...] If you put a symlink on linux, windows will see it as a hardlink. That means any file copies will go through it. [...] If you set a symlink on a Linux (ext2, ext3, ext4, reiser, etc.) filesystem, Windows won't see it at all because it cannot read those

Re: printfont doesn't change font only height on Linux

2011-10-27 Thread Tony Mechelynck
On 27/10/11 15:23, octoploid wrote: I'm trying to change the font that vim uses with the hardcopy command: set printfont=Consolas:h9 This changes the font height but the font used is still Courier: %%PageResources: font Courier Is there a way to actually choose a different font? :help

Re: Please fix: make Windows Vim use same files as unix. No reason not to and it's confusing in mixed envirionments.

2011-10-26 Thread Tony Mechelynck
On 13/10/11 01:47, Linda W wrote: Jürgen Krämer wrote: (at least when I launch from explorer...)...so if it finds my .vim and .gvim, why doesn't it find .vim/colors/.vim? did you change the 'runtimepath' option? On Windows the directory for user-specific scripts is ~/vimfiles by

Re: Syntax highlighting Problem in for Bash

2011-10-21 Thread Tony Mechelynck
On 21/10/11 15:17, Tom Bodine wrote: I was bitten by the old unexpected EOF while looking for matching `' error in bash. Where you start a comment some where in the middle of your script and forget to place a quote mark at the end. After searching through the text I could not find any

Re: One line without EOL

2011-10-21 Thread Tony Mechelynck
On 21/10/11 17:25, meino.cra...@gmx.de wrote: Hi, is it possible to create a line of text with vim which do not contain any \n, \ra ? Or in other words: The line should contain nothing more than the visible chars. I need this to generate test data for testing a VFD... How can I

Re: Can change X11 window title after vim started?

2011-10-20 Thread Tony Mechelynck
On 20/10/11 16:23, LiaoCaiYuan wrote: dear all, in emacs, I can set it by (set-frame-name NewName) how can I do it in vim? Whether or not it is possible at all depends on whether you are using gvim or Console Vim (and, in the latter case, in which terminal). See :help 'title'

Re: Tracing Vim into a log file.

2011-10-20 Thread Tony Mechelynck
On 20/10/11 23:49, Eddine wrote: Hello Yet another question, I have a strange behavior in my Vim at work. I often edit logs from process still working and still writing the log I'm reading in VIm (I have set autoread so it reloads) and I often have a behavior where my file is like folded ; All

Re: trying to understand my own (very old) vim macros

2011-10-19 Thread Tony Mechelynck
On 19/10/11 21:25, oexel wrote: hello list! I'm trying to understand the vim macros I wrote with the valuable help from YOU (perhaps your parents :-) some 10 years ago. there are a lot of mappings where the rhs is backslash-tilde-letter, for example: map \~O :let @z='q.pck'c-M\~W and

Re: winwidth winheight doesn't work here

2011-10-17 Thread Tony Mechelynck
On 15/10/11 13:23, Roger wrote: On Sun, Oct 09, 2011 at 11:37:56PM +0200, Tony Mechelynck wrote: On 09/10/11 11:08, Roger wrote: Reading the good book Learning the VIM Editor(s) and see winwidth winheight mentioned, but am having trouble getting it working here! Why, when settings winwidth

Re: css3 syntax file

2011-10-15 Thread Tony Mechelynck
On 15/10/11 05:09, stardiviner wrote: [...] If i can write syntax file, I will do it by myself. But I ask here because I can not ... Maybe I should learn it now. which part should I reference in vim help ? What about :help syntax.txt ? Best regards, Tony. -- Flying saucers on occasion

Re: Jump between the beginning and the end of a block of python code (such as function, class)?

2011-10-15 Thread Tony Mechelynck
On 15/10/11 05:28, Peng Yu wrote: Hi, I language use {} to denote function, class, etc. I can use % to jump between the beginning and end of a block of code. But python doesn't use {}. I'm wondering if there is a way to do so in python? Python uses indenting, and nothing else, to define code

Re: Tab Stop Colors

2011-10-15 Thread Tony Mechelynck
On 15/10/11 23:54, kageska wrote: How do I change the color of the tab stops in Vim? Everytime I hit tab to align the text in my code it goes red. Is there a way to turn this off? With 'list' off, hard tabs should be coloured the same as whitespace, unless they have a special meaning in the

Re: install vim 7.0.109 on Ubuntu 10.04

2011-10-15 Thread Tony Mechelynck
On 15/10/11 23:53, Frederico Cadete wrote: I had a similar experience when I recompiled Vim, coming from using vim as packaged by Ubuntu. The differences in behaviour were annoying, but they were not because of the compiling options; it was because of the system vimrc (in this case

Re: css3 syntax file

2011-10-14 Thread Tony Mechelynck
On 14/10/11 06:25, stardiviner wrote: Is there css3 syntax file which support HTML5 tags ? I find that onle css2 syntax can be found in linux system. and I searched plugins on vim.org. there are two syntax files for css3. but non of them support *and* this code: @media screen and

Re: Need Syntax file for the Linux

2011-10-13 Thread Tony Mechelynck
On 13/10/11 07:36, Dayananda wrote: Could you please point me to the syntax file /*syntax.vim*/ When I do *:syntax enable : *It is not finding the syntax.vim file, and the syntax is not getting highlighted. Could you please help me get the syntax file. Thanks and Regards, Dayananda The

Re: Need Syntax file for the Linux

2011-10-13 Thread Tony Mechelynck
On 13/10/11 08:34, Dayananda wrote: Thank you SC and sorry for very short description of the problem. I am able to find the syntax file in the */usr/share/vim/vim63/syntax* [...] That's the $VIMRUNTIME directory for Vim 6.3, which is long obsolete by now: Vim 6.4 was released on 15-Oct-2005

Re: Vim 7.2 on CentOS 6 - set ruler has no effect

2011-10-13 Thread Tony Mechelynck
On 08/10/11 05:39, Ismail, Mohd F. wrote: From: Christian Brabandtcbli...@256bit.org Date: Thu, 6 Oct 2011 20:11:31 +0200 Local: Thurs, Oct 6 2011 1:11 pm Subject: Re: Vim 7.2 on CentOS 6 - set ruler has no effect Print | Individual message | Show original | Report this message | Find messages

Re: jumping to corresponding syntax element

2011-10-13 Thread Tony Mechelynck
On 13/10/11 10:12, Gergely Buday wrote: Hi, the percent sign makes vi jump to the corresponding closing parenthesis, should I point to the opening one. How can I program a similar functionality for other classes of syntactical elements? In Standard ML, there is a let - in - end construct that

Re: Can VIM display two files simultaneously?

2011-10-12 Thread Tony Mechelynck
On 12/10/11 04:26, wolfv wrote: I am considering learning VIM (vim-cucumber to be exact). Can VIM display two files simultaneously (a step definitions file and it's feature file)? Thanks. I don't know what vim-cucumber might be; but Vim itself can display any number of files simultaneously

Re: avoid CursorHoldI causing delay

2011-10-12 Thread Tony Mechelynck
On 11/10/11 12:04, Szabolcs wrote: Dear group member, I am using CursorHold and CursorHoldI with a delay of 800 ms to constantly auto-save the LaTeX file that is being edited. (Which in turn causes it to be automatically recompiled and shown in a PDF reader. I do this to get real-time

Re: what's a conversion error and how do I correct it?

2011-10-07 Thread Tony Mechelynck
On 22/05/11 13:00, Christian Brabandt wrote: Hi eNG1Ne! On So, 22 Mai 2011, eNG1Ne wrote: Working on a Linux box (Ubuntu 10.4), I've successfully copy/pasted a block of text from a Planmaker spreadsheet into a vim file. The text includes U+2012 dashes, which are correctly displayed in vim …

Re: Highlighting for tabline for Tabbed Windows feature

2011-10-07 Thread Tony Mechelynck
On 07/10/11 08:21, Roger wrote: [...] One still unanswered question, is why the tabline scheme is different between Linux Virtual Terminal, X URXVT Default Color Themed Terminal, and X URXVT User Customized Color Themed Terminal. Linux Virtual Terminal (/dev/tty1 to /dev/tty6) has only 8

Re: Highlighting for tabline for Tabbed Windows feature

2011-10-06 Thread Tony Mechelynck
On 06/10/11 21:52, Roger wrote: The following scenarios are what I get here for a tabline for Tabbed Windows. There seems to be inconsistencies for tabline color scheme or theme for my scenarios, and am wondering how best to fix, or in the case of URXVT default and my settings, what is hindering

Re: Vim 7.2 on CentOS 6 - set ruler has no effect

2011-10-03 Thread Tony Mechelynck
On 03/10/11 06:15, Ismail, Mohd F. wrote: [...] When I type :verbose set ruler?, I got, at the bottom left corner, in red background E519: Option not supported: ruler? [...] That's clear enough: the 'ruler' functionality was excluded at compile-time. But I'm curious: try running

Re: replace e flag works in command but fails if that command in key mapping

2011-10-02 Thread Tony Mechelynck
On 02/10/11 16:04, porphyry5 wrote: Well, I think I finally have this figured out. If I'm using sessions, any session includes its own .vimrc, being that .vimrc in effect when the session was first begun. Then changing the actual .vimrc file has no effect on the session, because it will never

Re: Vim 7.2 on CentOS 6 - set ruler has no effect

2011-10-02 Thread Tony Mechelynck
On 02/10/11 18:24, Ismail, Mohd F. wrote: Hi Tony, When I type that command in vim window, it gives me nothing. It just returns the cursor position to its initial position. Am I supposed to type it some where else? You should be using Vim in Normal mode, then type :echo

Re: Set gfn based on screen resolution

2011-10-01 Thread Tony Mechelynck
On 01/10/11 10:15, philipx wrote: Is there a way to determine the screen resolution in gVim and act upon that information, for example to set a different font size? I seem to find myself working in two different modes: either on my laptop or on a large screen. Maybe I'm getting old, or maybe

Re: Vim 7.2 on CentOS 6 - set ruler has no effect

2011-10-01 Thread Tony Mechelynck
On 02/10/11 02:09, Ismail, Mohd F. wrote: Hi, I'm using CentOS 6, with vim 7.2. For whatever reason, there is no row and column info at the bottom right corner. I check the /etc/vimrc and set ruler is enabled. What could be the problem? --Farid What does Vim answer to :echo

Re: setloclist() doesn't work

2011-09-30 Thread Tony Mechelynck
On 30/09/11 08:44, sinbad wrote: hi, i am trying to store the contents of location list, so as to use multiple location lists for the same split-window window. here is what i did. created a location list for some pattern. now i ran the following commands in vi. I hope you mean Vim, and in

Re: Link to part of the same file

2011-09-30 Thread Tony Mechelynck
On 30/09/11 19:04, Fernando Basso wrote: What would be a good way (if possible at all) to have vim link, say, a table of contents to each section? I use vim for taking all kinds of notes and that would be terrific. Thanks in advance. It depends on the filetype (tables of contents are written

Re: creating a new location list

2011-09-29 Thread Tony Mechelynck
On 29/09/11 07:48, sinbad wrote: hi, i know that we can have multiple location lists for a window. i read through the documentation but couldn't find the command or function that creates a new location list. lexpr doesn't take window nr as argument. so i was wondering how can i create a new

Re: Vim as default email (thunderbird) editor

2011-09-28 Thread Tony Mechelynck
On 28/09/11 17:50, Fernando Basso wrote: On Sep 28, 10:58 am, Quincy Bowersqui...@quakbo.com wrote: Make sure you setup External Editor to call 'gvim --nofork' or it won't work properly. Other than that I can't imagine what would be wrong. It still doesn't work. Even using gvim --nofork.

Re: Stop a libcall loop

2011-09-27 Thread Tony Mechelynck
On 27/09/11 08:13, niva wrote: Hi, I have done a dll that go into a while loop. It freeze gvim interface and I wonder if I can recode this loop in order to stop it by signal sent or another way ? Thanks for help Hm, here are a few ideas: 1. Have you tried Esc or Ctrl-Break? Does it do

Re: Highlight current line number when using set number

2011-09-27 Thread Tony Mechelynck
On 26/09/11 16:03, Francesc Salvat-Pujol wrote: On Mon, Sep 26, 2011 at 2:07 PM, Ben Fritz fritzophre...@gmail.com mailto:fritzophre...@gmail.com wrote: On Sep 25, 4:04 am, Francesc Salvat-Pujol f.sal...@gmail.com mailto:f.sal...@gmail.com wrote: Hi, When using the

Re: sort content of a register

2011-09-25 Thread Tony Mechelynck
On 25/09/11 02:46, porphyry5 wrote: One by one I have appended a number of lines to a register (z). I need to sort them and then paste them at the start of the document. Without complaint, vim accepts the command :zsort but the content of z is unchanged. Is it possible to do this in the

Re: Remembering syntax when moving in and out of buffers

2011-09-25 Thread Tony Mechelynck
On 25/09/11 17:35, Spiros Bousbouras wrote: On Sep 21, 7:38 pm, Benjamin R. Haskellv...@benizi.com wrote: On Wed, 21 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 11:14 pm, Benjamin R. Haskell wrote: Actually I have disabled running the Debian specific stuff in /etc/vim/vimrc so the

Re: How to map CTRL + Right Arrow

2011-09-25 Thread Tony Mechelynck
On 25/09/11 18:02, Roy Fulbright wrote: I currently have the following mapping, which works fine, to move to the next tab in my edit session: noremap silentLeaderright :tabnextCR It would be much more convenient to use CTRL + Right Arrow instead of backslash (my Leader character) + Right

Re: Substitutions Triggered by autocmd Are Noisy

2011-09-25 Thread Tony Mechelynck
On 25/09/11 18:49, Bastien Dejean wrote: Hi, I'm trying to removed some of the default mutt headers since there's no facility for doing so inside mutt. Hence the following: autocmd FileType mail :%s/^\(Reply-To\|Bcc\): \n//e The only problem is that I get the Press ENTER or type command

Re: How to map CTRL + Right Arrow

2011-09-25 Thread Tony Mechelynck
On 25/09/11 20:19, Tony Mechelynck wrote: On 25/09/11 18:02, Roy Fulbright wrote: I currently have the following mapping, which works fine, to move to the next tab in my edit session: noremap silentLeaderright :tabnextCR It would be much more convenient to use CTRL + Right Arrow instead

Re: Remembering syntax when moving in and out of buffers

2011-09-19 Thread Tony Mechelynck
On 19/09/11 01:35, Benjamin R. Haskell wrote: On Mon, 19 Sep 2011, Tony Mechelynck wrote: On 19/09/11 00:14, Benjamin R. Haskell wrote: = What [the OP was] doing: = 1. in your .vimrc (1 line): autocmd BufReadPost,BufNewFile *.myfile source ~/myfile.vim 2. in ~/myfile.vim (6 lines of code

Re: ctermbg different depending on terminal

2011-09-19 Thread Tony Mechelynck
On 19/09/11 17:56, Nathan Neff wrote: Hello, I have two terminals that I use -- xterm and urxvt. If I open up vim in urxvt, the Visual highlighting is this: Visual xxx term=reverse ctermbg=7 guibg=LightGrey If I open up vim in xterm, the Visual highlighting is this: Visual xxx

Re: libcall problem under windows

2011-09-19 Thread Tony Mechelynck
On 19/09/11 20:17, niva wrote: Hi, After linking this dll ... .h extern C __declspec(dllexport) char * decrease(int * a); .cpp extern C __declspec(dllexport) char * decrease(int * a) { *a = - *a; return NULL; } ...I call it from gvim with this command echo

Re: Setting the bold attribute for Normal text

2011-09-18 Thread Tony Mechelynck
On 18/09/11 16:40, Spiros Bousbouras wrote: I start a buffer not belonging to any specific filetype. I type some random stuff and then do :highlight Normal ctermfg=green I get green letters. But if instead I do :highlight Normal cterm=bold term=bold I don't get bold text. What am I doing wrong ?

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Tony Mechelynck
On 19/09/11 00:14, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 5:45 pm, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: The problem is that the filetype is being detected again every time you switch buffers. Apparently Debian

Re: vim and tmux

2011-09-17 Thread Tony Mechelynck
On 17/09/11 14:40, Michael Henry wrote: On 09/15/2011 11:20 PM, meino.cra...@gmx.de wrote: tmux uses C-b as prefix to its commands. I don't run tmux, but for use with GNU screen, I use the key prefix CTRL-@ (CTRL-2 works without the SHIFT key as well), since that's not used by Vim or anything

Re: Interrupt a while as CTRL_C

2011-09-15 Thread Tony Mechelynck
On 15/09/11 20:19, niva wrote: Hi, I am running this script and would like to interrupt it from a call feedkeys(\C-c) but it does not work. while 1 calll system(myexe) sleep 1000m redraw endwhile When I type CTRL + C on my keyboard, it works and stop the while loop. When I click on amenu

Re: gvim or vim in console...

2011-09-14 Thread Tony Mechelynck
On 14/09/11 22:55, Shay wrote: Just switched. After 8-9 years or so, I went a little deeper into colorschemes and plugins and found that vim was trashed outside of X. I'm sure there's a way to call vim from the command line without plugins or .vimrc, but I wouldn't remember it. [...] without

Re: recolor the extra gray pixels around fullscreen gvim.

2011-09-13 Thread Tony Mechelynck
On 14/09/11 02:01, Shay wrote: Looks like gvim maximizes to the greatest number of full lines and columns? The rest of the screen is filled with pale gray. Can I recolor the filled area? Changing my gtk theme doesn't seem to help. If your GTK or KDE (or Windows or Mac) theme doesn't help,

Re: yank inner word

2011-09-12 Thread Tony Mechelynck
On 12/09/11 20:24, Spiros Bousbouras wrote: On Sep 12, 3:40 pm, Ben Fritzfritzophre...@gmail.com wrote: Yikes! Text-objects are way more useful without using visual mode, Ok , I'm convinced text objects are wonderful. Is there a way to get the line range covered by a text object to be used

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