Highlight after invoking a function

2012-05-02 Thread rameo
I would like to know how to highlight matches after invoking a function p.e. function! s:MyFunction() let search = '\d\+' let @/ = search return normal n endfunction :call SIDTest()CR does not highlight the matches. I know I can add :set hlsCR after the function call but that

Re: restore vim settings

2012-05-02 Thread Дмитрий Долгов
I use Ubuntu 12.04 64bit, but I solved this problem) After copying config files have right to access only from root, and vim couldn't open them. On 2 май, 02:52, Ben Fritz fritzophre...@gmail.com wrote: On Tuesday, May 1, 2012 11:51:14 AM UTC-5, Дмитрий Долгов wrote: I have vimrc and copy of

motion t} does not work

2012-05-02 Thread A Loumiotis
Hi, The motion t{char} does not work when the character I choose is }. Does anyone know why? I use gvim 7.3 on Windows XP. Thanks, Antonis -- 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 information, visit

RE: motion t} does not work

2012-05-02 Thread John Beckett
A Loumiotis The motion t{char} does not work when the character I choose is }. Does anyone know why? I use gvim 7.3 on Windows XP. Please spell out what happens and what you expect. Does it work after starting with 'vim -N -u NONE'? On next line, 0vt} correctly selects 'abc{def' on my

Re: motion t} does not work

2012-05-02 Thread A Loumiotis
Thank you for your help John. Your example does work. I now realize that t{char} is a line motion. I thought (wrongly) it was looking for the first matching character to the right or below where the cursor is. Is there a way to quickly select all text starting from the current position of the

Re: motion t} does not work

2012-05-02 Thread Christian Brabandt
On Mi, 02 Mai 2012, A Loumiotis wrote: For example if the cursor is between d and e on the next two lines abc{def ghijkl}mn I would like to figure out a quick way for Vim to select 'ef ghijkl' The plugin ft_improved http://www.vim.org/scripts/script.php?script_id=3877 does this,

Re: motion t} does not work

2012-05-02 Thread A Loumiotis
On Wed, May 2, 2012 at 3:48 PM, Christian Brabandt cbli...@256bit.org wrote: On Mi, 02 Mai 2012, A Loumiotis wrote: For example if the cursor is between d and e on the next two lines abc{def ghijkl}mn I would like to figure out a quick way for Vim to select 'ef ghijkl' The plugin

vim says No protocol specified and I have no idea what it means

2012-05-02 Thread Kevin O'Gorman
I have a few files I use to script my backups. I've been tweaking them as usual. Suddenly vim is acting very strange, and the files are misbehaving. The main symptoms are the message No protocol specified which appears both on the editing session (with a different background) and on the

Re: gtk-config not even tried

2012-05-02 Thread Arno Valentin
Am Dienstag, 1. Mai 2012 03:29:01 UTC+2 schrieb John Little: On Tuesday, May 1, 2012 2:32:51 AM UTC+12, Arno Valentin wrote: ... I'm offered gtk+-1.2.10, gtk+2-2.24.10, gtk+3-3.2.4 ... IIUC, gtk+2-2.24.10 is the one you want, being gtk 2. In my config.log, configure tries to see what

Re: Cursor anomoly: apparent and actual positions differ

2012-05-02 Thread Christian Brabandt
Hi John! On Mo, 30 Apr 2012, John Beckett wrote: I confirm there is a bug (Vim 7.3.509 on Windows). I slightly simplified the example to show the minimum that demonstrates the problem, as below: --- start bug.txt -- To show anomaly, launch Vim as: vim -N -u

Re: motion t} does not work

2012-05-02 Thread Ben Fritz
On Wednesday, May 2, 2012 7:33:15 AM UTC-5, runner wrote: Thank you for your help John. Your example does work. I now realize that t{char} is a line motion. I thought (wrongly) it was looking for the first matching character to the right or below where the cursor is. Is there a way to

Re: Cursor anomoly: apparent and actual positions differ

2012-05-02 Thread Bram Moolenaar
Christian Brabandt wrote: On Mo, 30 Apr 2012, John Beckett wrote: I confirm there is a bug (Vim 7.3.509 on Windows). I slightly simplified the example to show the minimum that demonstrates the problem, as below: --- start bug.txt -- To show anomaly,

Re: good 256 color theme for C

2012-05-02 Thread Chris Jones
On Mon, Apr 30, 2012 at 08:45:51PM EDT, John Beckett wrote: Chris Jones wrote: Ok, My terminal supports 256 colors, How can i use all the 256 colors in VIM in a non gui terminal. http://vim.wikia.com/wiki/256_colors_in_vim Provided the OP does NOT read the tip and reads Steven

OT: (was: vim says No protocol specified and I have no idea what it means)

2012-05-02 Thread Thilo Six
Hello Excerpt from Thilo Six: -- snip -- I believe this is Vim trying to talk to your X server and failing. I suspect you're running X as non-root and then su'ed to root. A couple options exist depending on the solution you want: 1) try starting Vim with -X to tell vim not to bother

Re: motion t} does not work

2012-05-02 Thread Chris Lott
On Wed, May 2, 2012 at 6:55 AM, Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, May 2, 2012 7:33:15 AM UTC-5, runner wrote: Is there a way to quickly select all text starting from the current position of the cursor to the specified character even if the specified character is not on

Re: gtk-config not even tried

2012-05-02 Thread John Little
On Thursday, May 3, 2012 11:29:46 AM UTC+12, I wrote: My reading of the configure script indicates that pkg-config is needed to compile vim-gtk. There's a package for it at the HP porting centre. My sympathies, how were you supposed to know that? I've just checked that the gtk+2-2.24.10