Re: how to map CTRL with none-letter keys

2012-03-27 Thread Jan Larres
Tim Chase : > I don't think they're available in gvim either. I just pulled up gvim > (GTK2, v7.2 on Debian Linux) and tried several unconventional > control+{nonalpha char} mapping combinations and had hit-or-miss > results. If I mapped them by issuing control+V followed by the > character in qu

Re: maps in "if" statement can not work.

2012-03-27 Thread Jürgen Krämer
Hi, stardiviner wrote: > I found a tips on wikia, it can autocapitalize first character in sentence. > Bellowing is the code in my vimrc. > But I found that those mappings in "if" statement can not work. > Is there anyone know why ? > (The original code does not have the "if" statement. I add it

maps in "if" statement can not work.

2012-03-27 Thread stardiviner
I found a tips on wikia, it can autocapitalize first character in sentence. Bellowing is the code in my vimrc. But I found that those mappings in "if" statement can not work. Is there anyone know why ? (The original code does not have the "if" statement. I add it by myself.) "Inputing '/' canc

Typeahead character loss at startup.

2012-03-27 Thread Kaz Kylheku
I'm using Vim 7.3 on Ubuntu 11.x. When I run "vim file.txt" from the shell, and start typing a command like /quicksort before Vim loads the file and refreshes the user interface, some of the characters end up missing. It might end up as /qu or /quit, et cetera. Either a suffix of what I typed is m

Re: Synchronized editing in vim's buffers

2012-03-27 Thread Ben Fritz
On Tuesday, March 27, 2012 1:21:17 PM UTC-5, vtadipatri wrote: > Hi, >    I was trying to figure out how to edit 2 files in parallel, side by side. > This post helped: > > > href="http://stackoverflow.com/questions/4120518/how-do-i-synchronously-view-and-scroll-vertically-split-buffers-in-vim";

Synchronized editing in vim's buffers

2012-03-27 Thread Ven Tadipatri
Hi, I was trying to figure out how to edit 2 files in parallel, side by side. This post helped: http://stackoverflow.com/questions/4120518/how-do-i-synchronously-view-and-scroll-vertically-split-buffers-in-vim But I have some sort of paging error, where the lines seem to be off, and I'm not

Re: Bash's vi command line editing mode

2012-03-27 Thread Ven Tadipatri
Hi Chip, Sorry for not being clear. I typed in a command from the bash shell, then launched vim by doing the and v, which resulted in the command being put into vim. This is the part where I got stuck, because it seemed like no matter what I did (:wq or :q!) it still executed the command when I

Re: Bash's vi command line editing mode

2012-03-27 Thread AK
On 03/27/2012 12:54 PM, Gary Johnson wrote: On 2012-03-27, AK wrote: When you hit Esc and v in bash (or zsh), it does start the vim editor, and when you exit it, it puts the buffer in command line, it doesn't run it immediately but waits for you to press Enter. It has never waited for me, usi

Re: Bash's vi command line editing mode

2012-03-27 Thread Gary Johnson
On 2012-03-27, AK wrote: > When you hit Esc and v in bash (or zsh), it does start the vim > editor, and when you exit it, it puts the buffer in command line, > it doesn't run it immediately but waits for you to press Enter. It has never waited for me, using either ksh or bash--the shell has alway

Re: Bash's vi command line editing mode

2012-03-27 Thread Charles Campbell
AK wrote: When you hit Esc and v in bash (or zsh), it does start the vim editor, and when you exit it, it puts the buffer in command line, it doesn't run it immediately but waits for you to press Enter. Ah, I see -- I usually use ksh (pdksh, actually) and it doesn't do that. Regards, Chip Camp

Re: Bash's vi command line editing mode

2012-03-27 Thread AK
On 03/27/2012 12:27 PM, Charles Campbell wrote: AK wrote: On 03/27/2012 12:03 PM, Charles Campbell wrote: Ven Tadipatri wrote: Well...duh..there's an easy fix for this. Just prefix the command with '#' Then hit :wq to save it and "run" it. Still...why does it behave this way? Shouldn't I be ab

Re: :set nu -> how to copy lines with line numbers?

2012-03-27 Thread Gilson Filho
With file generated with :TOHtml not is good? -- _ *Gilson Filho* *Desenvolvedor Web* http://gilsondev.com -- 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: Bash's vi command line editing mode

2012-03-27 Thread Charles Campbell
AK wrote: On 03/27/2012 12:03 PM, Charles Campbell wrote: Ven Tadipatri wrote: Well...duh..there's an easy fix for this. Just prefix the command with '#' Then hit :wq to save it and "run" it. Still...why does it behave this way? Shouldn't I be able to choose not to run the command when I exit f

Re: Bash's vi command line editing mode

2012-03-27 Thread AK
On 03/27/2012 12:03 PM, Charles Campbell wrote: Ven Tadipatri wrote: Well...duh..there's an easy fix for this. Just prefix the command with '#' Then hit :wq to save it and "run" it. Still...why does it behave this way? Shouldn't I be able to choose not to run the command when I exit from Bash's

Re: Bash's vi command line editing mode

2012-03-27 Thread Charles Campbell
Ven Tadipatri wrote: Well...duh..there's an easy fix for this. Just prefix the command with '#' Then hit :wq to save it and "run" it. Still...why does it behave this way? Shouldn't I be able to choose not to run the command when I exit from Bash's vi editing mode? This is on a Centos 5 machi

Re: how to map CTRL with none-letter keys

2012-03-27 Thread Tim Chase
On 03/27/12 10:52, Yichao Zhou wrote: We can change C-J C-k but not C-M. Well, you can change C-M, but it also alters the behavior of hitting on most platforms. In Normal mode, this is fairly benign, since (1) the behavior is duplicated by "+" and (2) that behavior is pretty rarely used in

Re: how to map CTRL with none-letter keys

2012-03-27 Thread Yichao Zhou
We can change C-J C-k but not C-M. -- 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 http://www.vim.org/maillist.php

Re: how to map CTRL with none-letter keys

2012-03-27 Thread 曾波
some question here, why let , , as , , and so on, can we change it in vim 2012/3/27 Yichao Zhou > Yes. This should really be improved. In vim, we can not map > , . And we even can not map since > they are the synonyms of and . And these combination is > valid on GVim. > > -- > You rec

Re: ...missing expansion of ~/...

2012-03-27 Thread Bram Moolenaar
Meino Cramer wrote: > when doing something like (mccramer is me) > > :r ~mccramer/> > > nothing happens while > > : r~/ > > works. I doing this on Linux. > > Why does it behave like this? It works fine for me. No idea why it would not work for you. The todo item is for completing

Re: how to map CTRL with none-letter keys

2012-03-27 Thread Yichao Zhou
Yes. This should really be improved. In vim, we can not map , . And we even can not map since they are the synonyms of and . And these combination is valid on GVim. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to

Re: how to map CTRL with none-letter keys

2012-03-27 Thread Tim Chase
On 03/27/12 09:21, Taylor Hedberg wrote: You don't mention whether you're using Vim in a terminal or GVim. In a terminal, this is generally not possible, because typically, terminals can only receive Ctrl key combinations which have a corresponding ASCII control character, and none of the charact

Re: how to map CTRL with none-letter keys

2012-03-27 Thread Taylor Hedberg
You don't mention whether you're using Vim in a terminal or GVim. In a terminal, this is generally not possible, because typically, terminals can only receive Ctrl key combinations which have a corresponding ASCII control character, and none of the characters you listed do. In GVim, I don't see wh

how to map CTRL with none-letter keys

2012-03-27 Thread Jeri Raye
Hi I'm having difficulties with mapping CTRL + none-letter keys Is it possible to make a mapping for CTRL + the ( character? Something like imap Hello This doesn't work for me. Then I thought apparently shift needs to be added imap Hello This doesn't work either. How to do that? And what abou

Re: verbose map doesn't always shows the mapping

2012-03-27 Thread Jeri Raye
Hi Christian, Thanks. Rgds, Jeri -- 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 http://www.vim.org/maillist.php

Re: Horizontal Ruler in interface?

2012-03-27 Thread Christian Brabandt
On Tue, March 27, 2012 09:46, rameo wrote: > On Sunday, March 25, 2012 12:21:43 PM UTC+2, coot_. wrote: >> > > 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 http://www.vim.org/mai

Re: Horizontal Ruler in interface?

2012-03-27 Thread rameo
On Sunday, March 25, 2012 12:21:43 PM UTC+2, coot_. wrote: > > > 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 http://www.vim.org/maillist.php > > > > If you don't want the first l