Re: Plugin to manage buffers and tabs

2010-01-22 Thread Maxim Kim
On 22 янв, 02:55, Andy Wokula anw...@yahoo.de wrote: Am 21.01.2010 19:47, schrieb Foss User: It's all builtin: :set swb=usetab :tab sb {part-of-bufname} You can omit :tab here :sb {part-of-bufname} -- You received this message from the vim_use maillist. For more information, visit

Re: How to effectively call a function in another script?

2010-01-22 Thread Sergey Khorev
let s:str1 = test1 let s:str2 = test2 function s:bar()  return s:str2 function Foo()  return s:bar() . s:str1 :help :endfunction -- Sergey Khorev http://sites.google.com/site/khorser Can anybody think of a good tagline I can steal? -- You received this message from the vim_use

Re: netrw can't expand '~' correctly when do gx in windows

2010-01-22 Thread Wu, Yue
On Thu, Jan 21, 2010 at 09:25:47PM -0500, Charles E Campbell Jr wrote: Wu, Yue wrote: As title, I've set $HOME in my .vimrc, but when I try to open the file under cursor on the line such as '~/doc/foo.pdf', vim can't run the app with the file with correct path, apps on windows usually don't

Re: Plugin to manage buffers and tabs

2010-01-22 Thread Andy Wokula
Am 22.01.2010 09:05, schrieb Maxim Kim: On 22 янв, 02:55, Andy Wokulaanw...@yahoo.de wrote: Am 21.01.2010 19:47, schrieb Foss User: It's all builtin: :set swb=usetab :tab sb {part-of-bufname} You can omit :tab here :sb {part-of-bufname} ... yes, when a yet invisible buffer should be

Backspace character in insert mode only beeps on Windows

2010-01-22 Thread Foss User
I am using Vim 7.2 on Windows XP. In insert mode, when I press the backspace key to erase a character, it doesn't do so. Instead it beeps. How to behave it the way it behaves on Linux, i.e delete a character? -- You received this message from the vim_use maillist. For more information, visit

Re: BufWritePost through sessions

2010-01-22 Thread Andy Wokula
Am 20.01.2010 15:32, schrieb ptn: Hello everybody, I have a function that tries to regenerate a project's tag file automatically: function! SetProject() let name = substitute(v:this_session, '.*\(/\|\\\)', '', '') if name == '' let name = input('Project name: ') endif

Re: Fwd: exclusive vs. inclusive actions and selection

2010-01-22 Thread Andy Wokula
Am 09.01.2010 15:48, schrieb Bram Moolenaar: This change will fix it for g_. I wonder if there are other commands that have the same problem. Same issue occurs with ge and gE . I checked :helpg |inclusive $, g$, gEnd, f{char}, t{char}, C-End, e, E, ge, gE Another issue: Given a

Re: Plugin to manage buffers and tabs

2010-01-22 Thread Maxim Kim
On 22 янв, 13:27, Andy Wokula anw...@yahoo.de wrote: Am 22.01.2010 09:05, schrieb Maxim Kim: On 22 янв, 02:55, Andy Wokulaanw...@yahoo.de  wrote: Am 21.01.2010 19:47, schrieb Foss User: It's all builtin: :set swb=usetab :tab sb {part-of-bufname} You can omit :tab here :sb

Re: Backspace character in insert mode only beeps on Windows

2010-01-22 Thread Dennis Benzinger
Foss User wrote: I am using Vim 7.2 on Windows XP. In insert mode, when I press the backspace key to erase a character, it doesn't do so. Instead it beeps. How to behave it the way it behaves on Linux, i.e delete a character? The behavior of the backspace key is controlled by the backspace

Re: Can VIM populate MRU (most recently used) list in windows?

2010-01-22 Thread Reckoner
Thanks for your reply. Actually, I looked there. The problem is that I am interested in the MRU list on the Start Menu in Windows XP, not a MRU that is maintained solely for VIM (as the available plugins do). I could not find a plug-in that populated the MRU list in the Start Menu. I hope that

Re: Vim plugin to maintain journal?

2010-01-22 Thread Gary Bickford
Another possible suggestion - use the docuwiki format, and save the file as .wiki. It's a simple format to use, and can be easily pushed onto the web using docuwiki. AFAI can tell the VIM wiki plugin doesn't have folding support however. -- You received this message from the vim_use maillist.

Re: BufWritePost through sessions

2010-01-22 Thread Marc Weber
function! SetProject() execute 'au BufWritePost * silent! !' . ctags_cmd endfunction You may want to try http://www.vim.org/scripts/script.php?script_id=1582 to run your command. Then you can continue writing code.. Let me know whether it works for you. The doc/ directory should tell you

Re: vim reproducible crash, with backtrace report

2010-01-22 Thread Bram Moolenaar
Dominique Pelle wrote: pansz wrote: The related things: About my system: Linux pansz-pc 2.6.24-26-generic #1 SMP Tue Dec 1 18:37:31 UTC 2009 i686 GNU/Linux Ubuntu 8.04.3 LTS About vim: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 21 2010 14:23:52) Included patches:

Re: Vim plugin to maintain journal?

2010-01-22 Thread Maxim Kim
On 22 янв, 16:27, Gary Bickford gar37...@gmail.com wrote:  AFAI can tell the VIM wiki plugin doesn't have folding support however. As far as I know vimwiki has folding support. But it is quite slow especially for a huge files. For smaller ones it is more than useable though. -- You received

[SOLVED] Re: deadkey in linux gvim

2010-01-22 Thread bill lam
It is ok now after re-installing scim packages. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- You received this message from the vim_use maillist. For more information, visit

Re: Plugin to manage buffers and tabs

2010-01-22 Thread Ben Fritz
On Jan 21, 5:55 pm, Andy Wokula anw...@yahoo.de wrote: It's all builtin: :set swb=usetab :tab sb {part-of-bufname} or just: :set swb=usetab,newtab :sb {part-of-bufname} Note that the 'swb' option is shorthand for 'switchbuf' and the :sb command is shorthand for :sbuffer -- You received

RE: Can VIM populate MRU (most recently used) list in windows?

2010-01-22 Thread Steve Hall
From: Reckoner, Fri, January 22, 2010 8:13 am Actually, I looked there. The problem is that I am interested in the MRU list on the Start Menu in Windows XP, not a MRU that is maintained solely for VIM (as the available plugins do). You could write this very simply. Just write a plugin that

Intenting switch/case in vim with php

2010-01-22 Thread bp1222
Hey all, I'm having an indentation problem that I can't figure out how to solve. Given the following code: switch ($foo) { case 'bar': case 'baz: zook(); break; } Now I run the indention on it by visual select =, or just 1G=G. However, what happens is the following:

Re: gVim stripping diacritics not in keyboard charset

2010-01-22 Thread bill lam
ĵaŭ, 21 Jan 2010, Cyril Slobin skribis: On Tue, Jan 19, 2010 at 10:40 PM, Tuetschek ondrej.du...@atlas.cz wrote: The problem is that some of the diacritical marks get just stripped away, e.g. I type ř and get just r. I second this. I have recently installed an Esperanto extension of the

Re: Plugin to manage buffers and tabs

2010-01-22 Thread Maxim Kim
On 22 янв, 18:24, Ben Fritz fritzophre...@gmail.com wrote: On Jan 21, 5:55 pm, Andy Wokula anw...@yahoo.de wrote: It's all builtin: :set swb=usetab :tab sb {part-of-bufname} or just: :set swb=usetab,newtab :sb {part-of-bufname} Doesn't work for me when when a yet invisible buffer

Re: vim reproducible crash, with backtrace report

2010-01-22 Thread Andy Wokula
Am 22.01.2010 15:13, schrieb Bram Moolenaar: I haven't looked at all of this, but it seems the problem is that an expression mapping is being evaluated, which then redefines that same mapping. The solution would then be to make a copy of the mapping before evaluating the expression. That's not

Re: listing total number of buffers in the statusline

2010-01-22 Thread John Magolske
* Christian Brabandt cbli...@256bit.org [100122 00:47]: On Fri, January 22, 2010 3:12 am, John Magolske wrote: count. Searching around some more, I found this solution [1]: set rulerformat=%22(%{g:zbuflistcount};%M%n\ %=%l,%c%V\ %P%) autocmd BufAdd * let g:zbuflistcount += 1

Re: vim reproducible crash, with backtrace report

2010-01-22 Thread Sean
The hasmapto()-check prevents defining PlugVimimChinesemode again. Andy, you are absolutely correct. Actually that was what I did to the script, but I stripped it out when I posted the message in order to make my point clear. The special key Plug has a strict rule, without following it, vim

Re: Fwd: exclusive vs. inclusive actions and selection

2010-01-22 Thread Bram Moolenaar
Andy Wokula wrote: Am 09.01.2010 15:48, schrieb Bram Moolenaar: This change will fix it for g_. I wonder if there are other commands that have the same problem. Same issue occurs with ge and gE . These move backwards, thus the selection being exclusive doesn't matter. Using b

[announcement] Windows gVim user can do wget without a flashing DOS box

2010-01-22 Thread Sean
When gVim.exe is used on Microsoft Windows and an external program is called, a flashing DOS box displaying on Windows status bar is a constant pain. It is getting worse when system() call if frequently used, as we found while working on VimIM plugin, in which every single keyboard type may be

Help with LocalLeader Setup

2010-01-22 Thread mlip...@gmail.com
Hi, I am relatively new to VIM, so I apologize if this question is ridiculous. I am trying to use a plugin (VimClojure) and cannot seem to execute the default mappings. For example, '\sr' is supposed to open a REPL buffer; however, it seems as though the default leader/ localleader mappings are

Re: Backspace character in insert mode only beeps on Windows

2010-01-22 Thread John Little
On Jan 23, 12:55 am, Dennis Benzinger dennis.benzin...@gmx.net wrote: Foss User wrote: ...backspace key... ... the way it behaves on Linux... Read :help 'backspace' Some Linux distros, Debian and derivatives particularly, have a system vimrc that sets the backspace option. Regards, John

buftabs message overwritten in the command-line area

2010-01-22 Thread John Magolske
The buftabs script [1] shows a handy tabs-like list of buffers in the in the command-line area with brackets enclosing the currently viewed buffer like so: [1-file1.txt] 2-file2.txt2 3-file3.txt Unfortunately there's a Bug: Vim's 'set hidden' option is known to break this plugin - for

Re: Vim plugin to maintain journal?

2010-01-22 Thread Vlad Irnov
On Jan 20, 3:21 pm, Foss User foss...@gmail.com wrote: I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010  * 1:45 AM    * Posted this mail    * Waiting for visitors to come   * 5:50 AM    * Found a new plugin to browser directories * Jan

How to set the path of a file as the current directory of gvim on linux automatically when it is opened ?

2010-01-22 Thread Lenin Lee
On Windows, when I double click a file and open it using gvim, the path of the file will be set as the current directory of gvim. But when I do the same thing on linux, the current directory of gvim always is my home directory. I searched for the question with google, but there is no resolution.

Re: How to set the path of a file as the current directory of gvim on linux automatically when it is opened ?

2010-01-22 Thread Gary Johnson
On 2010-01-23, Lenin Lee wrote: On Windows, when I double click a file and open it using gvim, the path of the file will be set as the current directory of gvim. But when I do the same thing on linux, the current directory of gvim always is my home directory. I searched for the question

Re: search from inside a function

2010-01-22 Thread Tim Chase
meino.cra...@gmx.de wrote: Inside a funtion definition I want to execute a search with a fixed search pattern including regexp portions. When I want to execute a command from inside a function definition I would do a :command and the ':' would switch to command mode. But /string

Re: search from inside a function

2010-01-22 Thread meino . cramer
Tim Chase v...@tim.thechases.com [10-01-23 05:08]: meino.cra...@gmx.de wrote: Inside a funtion definition I want to execute a search with a fixed search pattern including regexp portions. When I want to execute a command from inside a function definition I would do a :command and

Folding with 'cuddled' else

2010-01-22 Thread Benjamin R. Haskell
I vastly prefer 'cuddled' 'else': if ($something) { // do one thing } else { // do another } to 'uncuddled' 'else': if ($something) { // do one thing } else { // do another } But, 'cuddled else' yields undesirable folding: +-- 5

Re: Bullet character across Vim platforms

2010-01-22 Thread AndyHancock
I've compiled gvim on solaris before. It is something for which I have to schedule a lot of time. However, many of the problems I had may have stemmed from the fact that I only had a user account, and if I recall correctly, this may have caused problems with installation of prerequisite