Re: set keymap to none/default

2010-03-18 Thread Tony Mechelynck
On 19/03/10 01:24, Kenneth R. Beesley wrote: On Mar 18, 5:08 pm, Gary Johnson wrote: On 2010-03-18, Kenneth Reid Beesley wrote: I've successfully written a number of keymap files, and I successfully choose them with the set command, e.g. :set keymap=myKeymapFile_utf-8 and I know t

Re: Cursor column on line 1 not remembered

2010-03-18 Thread Benjamin R. Haskell
On Thu, 18 Mar 2010, Benjamin R. Haskell wrote: > On Thu, 18 Mar 2010, Jean Johner wrote: > > > On Mar 17, 6:36 pm, "Brian L. Matthews" wrote: > > > It works for me, but I might be restoring the cursor position > > > > Hi Brian, > > > > Adding your 8 lines of code in my .vimrc results in good

Re: ?kb in redo-register

2010-03-18 Thread Dasn
On Thu, 18 Mar 2010 16:43:27 +0800, anna wrote: Hi all, I am quite puzzled why the backspace in redo-register is represented as '?kb'. How to differentiate a backspace with string "?kb"? Thank you. Anna I'm puzzled by your question also; what do you mean by "represensted as '?kb'? Do you

Re: +/- clientserver

2010-03-18 Thread MK
On Thu, 18 Mar 2010 21:00:03 -0400 MK wrote: > What determines whether clientserver is compiled in? There is nothing > about it under "configure --help". apt-get build-dep resolved this (thanks again John) but I am still curious which package would be required, if anyone knows... Is there any

Re: can't find X headers

2010-03-18 Thread MK
On Thu, 18 Mar 2010 17:25:26 -0700 (PDT) John Little wrote: > I expect you're missing libxt-dev. Vim's configure checks for > Intrinsic.h in that package. > > IIUC gnewsense is Debian based, so you should be to > > sudo apt-get build-dep vim-gtk Thanks much John. -- MK -- You received thi

Re: paste via "shift+insert" in gnome-terminal sucks when set fo+=cro

2010-03-18 Thread Ryan J M
On Fri, Mar 19, 2010 at 7:52 AM, John Little wrote: > > No, vim is just getting the pasted text from gnome-terminal, as if > you'd typed it.  It seems to be hard coded into gnome-terminal (or the > terminal widget it uses); there's chatter about it in the bug > trackers.  If you press shift-inser

+/- clientserver

2010-03-18 Thread MK
My gnewsense compile is getting wierder. I use clientserver mode in vim, and up until now it has always been available with a straight compile of 7.2: ./configure But for some reason after compile when I check :version I have "-clientconfig". I am using the exact same source tarball I always do

Re: select/copy a line every 6 lines

2010-03-18 Thread Tim Chase
Jorge Timón wrote: Hi, I have a file numbers in gropus of four that i want to separate this way: - 0,2010 0.149036564840167 > To File A 0.174286165702154 > To File B 0.148561021969625 > To File C 0.197299757855822

Re: select/copy a line every 6 lines

2010-03-18 Thread John Little
Assuming the pattern /^-$/ matches lines 1,7,13,19 and so on, you can use g with relative line numbers to delete lines. For File A, copy and use :g/^-$/d2|+,+3d for File B, copy and use :g/^-$/d3|+,+2d for File C, copy and use :g/^-$/d4|+d for File D, copy and :g/^-$/d5 Regards, John --

Re: can't find X headers

2010-03-18 Thread John Little
On Mar 19, 3:01 am, MK wrote: > I'm trying to build vim on gnewsense.  I have the relevent x11 dev > packages... I expect you're missing libxt-dev. Vim's configure checks for Intrinsic.h in that package. IIUC gnewsense is Debian based, so you should be to sudo apt-get build-dep vim-gtk Rega

Re: set keymap to none/default

2010-03-18 Thread Kenneth R. Beesley
On Mar 18, 5:08 pm, Gary Johnson wrote: > On 2010-03-18, Kenneth Reid Beesley wrote: > > > > > > > I've successfully written a number of keymap files, and I > > successfully choose them with the set command, e.g. > > > :set keymap=myKeymapFile_utf-8 > > > and I know that  CTRL-^  will toggle bac

Re: can't find X headers -- but X headers are installed

2010-03-18 Thread bill lam
ĵaŭ, 18 Mar 2010, MK skribis: > Sorry to bump this, rather surprised it is apparently unique and > unanswerable... > > On Thu, 18 Mar 2010 10:01:31 -0400 > MK wrote: > > > I'm trying to build vim on gnewsense. I have the relevent x11 dev > > packages. For some reason it was not finding the hea

Re: can't find X headers -- but X headers are installed

2010-03-18 Thread MK
Sorry to bump this, rather surprised it is apparently unique and unanswerable... On Thu, 18 Mar 2010 10:01:31 -0400 MK wrote: > I'm trying to build vim on gnewsense. I have the relevent x11 dev > packages. For some reason it was not finding the headers, so I > compiled: > > --x-includes=/usr/

Re: paste via "shift+insert" in gnome-terminal sucks when set fo+=cro

2010-03-18 Thread John Little
On Mar 18, 11:07 pm, Ryan J M wrote: ...pasting trouble... > I tried to remap > in .vimrc to "set paste!" before and after pasting, but it seems only > works in gvim, not for my gnome-terminal+vim. > I guess "shift+insert" > has been translated into another code by gnome-terminal... No, vim is

Re: set keymap to none/default

2010-03-18 Thread Gary Johnson
On 2010-03-18, Kenneth Reid Beesley wrote: > I've successfully written a number of keymap files, and I > successfully choose them with the set command, e.g. > > :set keymap=myKeymapFile_utf-8 > > and I know that CTRL-^ will toggle back and forth between the > current keymap and the previous key

Re: Cursor column on line 1 not remembered

2010-03-18 Thread Brian L. Matthews
- The cursor column is remembered for line 1 only if the 8 lines are present in your .vimrc Sorry, should have been clearer. This one, with the lines I posted in my .vimrc, cursor restoration works fine. I haven't tried it without them. Brian -- You received this message from the "vim_

Re: Background task under windows fails

2010-03-18 Thread Gary Johnson
On 2010-03-18, epanda wrote: > >     Character  Syntax                Definition > >     -    --- > >     & [...]    command1 & command2   Use to separate multiple > >                                      commands on one command line. > >    

Re: Background task under windows fails

2010-03-18 Thread epanda
I have modified the commands like that in order to take the good targetfile " Test Two let cmd1 = '!start cmd /c "cppCheck ' . a:dir . ' -a --enable=all -- template gcc 1> c:/infos.txt 2> cppcheck.out' let cmd2 = '!start cmd /c "vim --servername ' . v:servername . ' -- remo

select/copy a line every 6 lines

2010-03-18 Thread Jorge Timón
Hi, I have a file numbers in gropus of four that i want to separate this way: - 0,2010 0.149036564840167 > To File A 0.174286165702154 > To File B 0.148561021969625 > To File C 0.197299757855822 > T

Re: Background task under windows fails

2010-03-18 Thread epanda
ok it seems this one work fine : " Test Two let cmd1 = '!start cmd /c "cppCheck ' . a:dir . ' -a --enable=all -- template gcc 1> infos.txt 2> cppcheck.out' let cmd2 = '!start cmd /c "vim --servername ' . v:servername . ' -- remote-expr "GetAsyncText('."'infos.txt'". ')"'

set keymap to none/default

2010-03-18 Thread Kenneth Reid Beesley
I've successfully written a number of keymap files, and I successfully choose them with the set command, e.g. :set keymap=myKeymapFile_utf-8 and I know that CTRL-^ will toggle back and forth between the current keymap and the previous keymap. My Problem: I often use multiple keymaps, one a

Re: Background task under windows fails

2010-03-18 Thread epanda
>     Character  Syntax                Definition >     -    --- >     & [...]    command1 & command2   Use to separate multiple >                                      commands on one command line. >                                      Cmd.ex

Re: Background task under windows fails

2010-03-18 Thread Gary Johnson
On 2010-03-18, epanda wrote: > > > > let cmd = '!start cmd /c "binary.exe c:/temp/sources -a --enable=all -- > > template gcc 1> infos.txt 2> cppcheck.out & vim --servername GVIM1 -- > > remote-expr "GetAsyncText('infos.txt')" & pause "' > > > > > > > Don't worry about the nested quotes, cmd.exe i

Re: Background task under windows fails

2010-03-18 Thread epanda
> > let cmd = '!start cmd /c "binary.exe c:/temp/sources -a --enable=all -- > template gcc 1> infos.txt 2> cppcheck.out & vim --servername GVIM1 -- > remote-expr "GetAsyncText('infos.txt')" & pause "' > > > Don't worry about the nested quotes, cmd.exe is dumb enough to do the > right thing, not w

Re: map ò character (ò)

2010-03-18 Thread rameo
Thank you Tony. How would you map the backtick ` self? The backtick isn't default on the italian keyboard. As you know ,in vim the backtick is used to go back to last edited line ( `. ) I tried to map the backtick doing this: map ` but that doesn't work. (maybe because of the fact that my keyb

Re: Background task under windows fails

2010-03-18 Thread Ben Fritz
On Mar 17, 4:34 pm, epanda wrote: > Hi, > > this command aims to launch a binary in background task but it fails: > > let cmd = '!start cmd /c binary.exe c:/temp/sources -a --enable=all -- > template gcc 1> infos.txt 2> cppcheck.out & vim --servername GVIM1 -- > remote-expr "GetAsyncText('infos.

Re: Cursor column on line 1 not remembered

2010-03-18 Thread Benjamin R. Haskell
On Thu, 18 Mar 2010, Jean Johner wrote: > On Mar 17, 6:36 pm, "Brian L. Matthews" wrote: > > It works for me, but I might be restoring the cursor position > > Hi Brian, > > Adding your 8 lines of code in my .vimrc results in good memorization > of cursor column even on line 1. > > When you sa

can't find X headers

2010-03-18 Thread MK
I'm trying to build vim on gnewsense. I have the relevent x11 dev packages. For some reason it was not finding the headers, so I compiled: --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11 Which I've never had to do that before (also tried without the X11 suffix). The headers (X.h, etc)

Re: PHP highlighting breaks inside the

2010-03-18 Thread Benjamin R. Haskell
[Shoot. Glad Tony revived this thread. Apparently my response was sent from the wrong email address.] [On Mon, 11 Jan 2010, Benjamin R. Haskell wrote:] On Sun, 10 Jan 2010, JohnTyree wrote: > When using php inside of a html tag, highlighting is broken > for html afterwards. I have tried the

Unexpected effect of "g:netrw_fastbrowse=2"

2010-03-18 Thread Jean Johner
Hello, Consider a directory with 3 files file1, file2, file3 1) Case where "let g:netrw_fastbrowse=2" is not in .vimrc Please do the following: gvim file1 (to open file1) :e. (to list current directory with netrw) click file2 (to open file2) :e. click file3 (to open file3) Use Menu/Buffers/Previou

Re: How to open a file using gf or similar command in another specific window?

2010-03-18 Thread Tony Mechelynck
On 13/01/10 02:27, yixiaodaf...@gmail.com wrote: Hi, I have a list of files in one window and I have four windows in my gvim. So I want to open the file in a specific window. Using gf command, it will open the file in the same window as the list. How can I open the file in another window instead

paste via "shift+insert" in gnome-terminal sucks when set fo+=cro

2010-03-18 Thread Ryan J M
Hi there, when I paste C code from another vim (located at another gnome-terminal tab) to my working vim, "shift+insert" auto commented and aligned the code, which is not what I want. After a quick search using google, I found a workaround, ":set paste" before I press shift+insert. Howev

Re: Cursor column on line 1 not remembered

2010-03-18 Thread Jean Johner
On Mar 17, 6:36 pm, "Brian L. Matthews" wrote: > It works for me, but I might be restoring the cursor position Hi Brian, Adding your 8 lines of code in my .vimrc results in good memorization of cursor column even on line 1. When you say "It works for me", do you mean: - The cursor column is rem

?kb in redo-register

2010-03-18 Thread anna
Hi all, I am quite puzzled why the backspace in redo-register is represented as '?kb'. How to differentiate a backspace with string "?kb"? Thank you. Anna -- 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 info

Re: Screen line numbers plugin

2010-03-18 Thread AK
sc wrote: On Thursday 18 March 2010 02:32:03 am AK wrote: > Hi, I wrote a small (but nice!) plugin that works similarly to > :set number, except that it uses :signs to show line numbers > of current screen, from 1 to last screen line. It maps > (via 'H') to go to [count] screen line and whe

Re: Screen line numbers plugin

2010-03-18 Thread sc
On Thursday 18 March 2010 02:32:03 am AK wrote: > Hi, I wrote a small (but nice!) plugin that works similarly to > :set number, except that it uses :signs to show line numbers > of current screen, from 1 to last screen line. It maps > (via 'H') to go to [count] screen line and when no > count

Screen line numbers plugin

2010-03-18 Thread AK
Hi, I wrote a small (but nice!) plugin that works similarly to :set number, except that it uses :signs to show line numbers of current screen, from 1 to last screen line. It maps (via 'H') to go to [count] screen line and when no count is given, it refreshes the numbers. One issue that I've run