map to in command line

2009-08-28 Thread Simson Liu
Hi all, I'm have trouble with the following command: noremap! In Insert mode, the mapping is OK. I can exit insert mode by Alt-[ But in command-line mode, the mapping has some problems. Such as :ls "note the is Alt-[ key the 'ls' command is always been exectued! The normal action

Re: Replace Just Needed

2009-08-28 Thread Christian Brabandt
Hi Simon! On Mi, 26 Aug 2009, Simon Ruderich wrote: > On Wed, Aug 26, 2009 at 09:44:10PM +0800, bill lam wrote: > > Was it configurable to delete TOFU automatically in un-modified > > mutt? > > Not AFAIK. But there's t-prot and of course manual editing. And t-prot only helps for displaying, no

RE: map to in command line

2009-08-28 Thread John Beckett
Simson Liu wrote: > I'm have trouble with the following command: > noremap! You might want to look over: http://vim.wikia.com/wiki/Esc which points out that Ctrl-[ is already Esc so mapping Alt-[ might not be necessary. However, you do have a point, illustrated here: :cnoremap qq :echo

Re: map to in command line

2009-08-28 Thread Jürgen Krämer
Hi, Simson Liu wrote: > > I'm have trouble with the following command: > > noremap! > > In Insert mode, the mapping is OK. I can exit insert mode by Alt-[ > But in command-line mode, the mapping has some problems. Such as > > :ls "note the is Alt-[ key > > the 'ls' command is a

Re: Unexpected tabdo behaivor

2009-08-28 Thread Fredrik Melander
Ben Fritz schrieb: > [snip] >> Something like that. Opening vim with N files results in N-1 correctly >> displayed tabs plus one always ends up completely blank. I'd blame my >> own ignorance if it weren't for the fact that if I comment out the >> tabdo-line, open the files and then manually run "

RE: map to in command line

2009-08-28 Thread Simson Liu
Jürgen Krämer wrote: > this is VI-compatible behavior. In VI pressing on the command > line executed the command. The only way to cancel a command was to > press Ctrl-C. You should thus > > :nmap > > For more information > > :help c_ > :help c_ > > Regards, > Jürgen > cnoremap

RE: map to in command line

2009-08-28 Thread Simson Liu
John Beckett wrote: > You might want to look over: > http://vim.wikia.com/wiki/Esc > > which points out that Ctrl-[ is already Esc so mapping Alt-[ > might not be necessary. > > However, you do have a point, illustrated here: > > :cnoremap qq > :echo helloqq > > As soon as the second '

setting completion to use tagfiles

2009-08-28 Thread Kevin
I'm on the verge of giving up using omnicomplete with python. Ideally I'd have nice context aware completions, but it seems that nobody knows how omnicomplete actually works with python ( I certainly do not. ) So, moving forward: What would be the best way to set up tagfiles to get completions

Function name in status bar

2009-08-28 Thread Salvatore Benedetto
Hi, is it possible to have the function name, while editing a C/C++ file in the status bar (or whatever it's called) beside the opened file and the line number? Regards, S. --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more info

Re: : NoDeadKeys under WinXP with gvim

2009-08-28 Thread Ben Fritz
On Aug 27, 10:24 pm, meino.cra...@gmx.de wrote: > > Is the keyboard reference control panel part of the Windows XP > installation or another executable, which I need to download from > elsewhere? In the latter case, I am not allowed to do so. > In Windows XP, you can switch keyboard layouts by

Re: dbext with sqlite when use auto quit?

2009-08-28 Thread David Fishburn
On Fri, Aug 28, 2009 at 1:22 AM, fvw wrote: > > Hello all: >      When use dbext,  if i type omnicomplete , the gvim quit > immediately. > >      My setting is: >      let g:dbext_default_profile='sqlite0' >      let > g:dbext_default_profile_sqlite0='type=SQLITE:SQLITE_bin=/usr/bin/sqlite:dbna

Re: dbext with sqlite when use auto quit?

2009-08-28 Thread David Fishburn
> First, I can reproduce your issue. > > Second, my gvim blows up when I return the following from the > completion routine: > ['tbl1'] > > But it works fine when I use a different supported database and return > the same List. > > So this means two things: > 1.  There is a bug in Vim and I will r

Re: : NoDeadKeys under WinXP with gvim

2009-08-28 Thread Matt Wozniski
On Fri, Aug 28, 2009 at 10:56 AM, Ben Fritz wrote: > > > > On Aug 27, 10:24 pm, meino.cra...@gmx.de wrote: >> >> Is the keyboard reference control panel part of the Windows XP >> installation or another executable, which I need to download from >> elsewhere? In the latter case, I am not allowed to

Re: Function name in status bar

2009-08-28 Thread Mikalai Chaly
If you are using taglist plugin, there is such ability. Just open :help taglist.txt and search for "status line". Here is an example from taglist help file: :set statusline=%<%f%=%([%{Tlist_Get_Tagname_By_Line()}]%) Looks pretty nice, at least in .c files. Mikalai On Fri, Aug 28, 2009 at 4

Re: setting completion to use tagfiles

2009-08-28 Thread Hari Krishna Dara
On Fri, Aug 28, 2009 at 5:48 AM, Kevin wrote: > > I'm on the  verge of giving up using omnicomplete with python. > Ideally I'd have nice context aware completions, but it seems that > nobody knows how omnicomplete actually works with python ( I certainly > do not. ) > > So, moving forward:  What w

Re: Function name in status bar

2009-08-28 Thread David Lam
On Fri, Aug 28, 2009 at 6:22 AM, Salvatore Benedetto wrote: > > Hi, > > is it possible to have the function name, while editing a C/C++ file > in the status bar (or whatever it's called) beside the opened file > and the line number? > > yup you can- i asked the same question a month ago... sylvain

Re: map to in command line

2009-08-28 Thread Matt Wozniski
On Fri, Aug 28, 2009 at 6:00 AM, Simson Liu wrote: > > Jürgen Krämer wrote: > >> this is VI-compatible behavior. In VI pressing on the command >> line executed the command. The only way to cancel a command was to >> press Ctrl-C. You should thus >> >>   :nmap >> >> For more information >> >>  

Re: International characters and case handling - mixed results

2009-08-28 Thread Tony Mechelynck
On 26/08/09 22:05, Magnus ... wrote: > > On Aug 26, 9:57 am, Tony Mechelynck > wrote: >> On 26/08/09 06:09, Magnus ... wrote: >>> I've been working with case manipulation (~ for example) on >>> international characters, such as (áéíóú, and þæð). This works on my >>> Windows GVim, but on the Linux

Re: Replace Just Needed

2009-08-28 Thread Simon Ruderich
On Fri, Aug 28, 2009 at 09:37:55AM +0200, Christian Brabandt wrote: > Hi Simon! > > On Mi, 26 Aug 2009, Simon Ruderich wrote: >> On Wed, Aug 26, 2009 at 09:44:10PM +0800, bill lam wrote: >>> Was it configurable to delete TOFU automatically in un-modified >>> mutt? >> >> Not AFAIK. But there's t-pro

Re: Function name in status bar

2009-08-28 Thread David Chanters
2009/8/28 Mikalai Chaly : > > > If you are using taglist plugin, there is such ability. Just open :help > taglist.txt and search for "status line". > > Here is an example from taglist help file: > >     :set statusline=%<%f%=%([%{Tlist_Get_Tagname_By_Line()}]%) > > Looks pretty nice, at least in .

Vim Suggestion: adapting tw to displayed with (vs. termwidth) if numbering

2009-08-28 Thread Linda W
Suggesting [programmatically, :-) ]: When (vimoption(number) == true)) { when ("one uses text autoformat" (aka 'gqap')) { setlocal tw=disp_width'(dflt==0)) /' - nuw'(vimdflt=4,compat=8) /' } } ? Linda --~--~-~--~~~---~--~~ You received this message from

Re: dbext with sqlite when use auto quit?

2009-08-28 Thread fvw
On Fri, Aug 28, 2009 at 11:21:54AM -0400, David Fishburn wrote: > >> First, I can reproduce your issue. >> >> Second, my gvim blows up when I return the following from the >> completion routine: >> ['tbl1'] >> >> But it works fine when I use a different supported database and return >> the same Li

Re: setting completion to use tagfiles

2009-08-28 Thread Chiggsy
> Are you guys aware of ? I thought the issue was generating > the tags to begin with, not with getting a list of them. Yes, aware of how to do tag completion like that. It's just that I'm trying to automate it, or get it a bit more context aware. --~--~-~--~~~---~--

Re: setting completion to use tagfiles

2009-08-28 Thread Ben Fritz
On Aug 28, 2:06 pm, Hari Krishna Dara wrote: > > Coming up with a simple tag completion function using taglist() > function is very straight-forward, but it won't perform well when > there are many matches (e.g., you have only one. Here is one that I > came up with starting from the example at

ANN: Tortoise : Automate TortoiseSVN from vim

2009-08-28 Thread Hari Krishna Dara
I just uploaded this plugin that I have been using for over a couple of years for my own use. When I started using TortoiseSVN, I really liked how snappy its interface is and how it made several things very convenient to do. Ideally I would love to do everything in Vim, but none of the existing ve

Re: Replace Just Needed

2009-08-28 Thread bill lam
On Fri, 28 Aug 2009, Simon Ruderich wrote: > There is a patch on the t-prot page to also use it when replying > [1]. It's also described on the t-prot page (scroll down a bit) > [2]. But it looks like it doesn't work anymore with the newest > mutt (or I did something wrong). I'll use vim macro fo

Re: Function name in status bar

2009-08-28 Thread Mikalai Chaly
Yes - from the beginning function name is empty. I'm not expert in taglist, so I can just make an assumption. I suppose, plugin automatically updates its dictionary files only when taglist window is visible. I was succeeded to show function name using ":TlistAddFiles %" So - that task can be au