cterm colors from gui colorscheme

2011-03-25 Thread meino . cramer
Hi, via www.vim.org I found a script, which converts gui-only color schemes on-the-fly into cterm color schemes. It processes the the original colorscheme when it gets read via :ColorScheme instead of :colorscheme Normally I set my preferred color scheme via .vimrc (Linux). But: It s

VIM 7.2: vsplit leads to scrolled window

2011-03-25 Thread Roland Koebler
Hi, I've got a question about ViM, and didn't find an answer in the net, so I'm asking you: When I open a file in VIM, and then :vsplit the window, I expect that the "left part" of the window doesn't change. But in VIM 7.2 (Debian Squeeze), the left part always scrolls so that the current cursor-

Re: Orgmode in Vim

2011-03-25 Thread Daniel Meneses Báez
what about vimwiki? http://code.google.com/p/vimwiki/ On Fri, Mar 25, 2011 at 5:52 PM, tux. wrote: > Vlad Irnov wrote: > > VimOrganizer: >> http://www.vim.org/scripts/script.php?script_id=3342 >> vim-orgmode: >> https://github.com/jceb/vim-orgmode >> > > One of them needs a binary patc

vim hompage: script rating vs. google search

2011-03-25 Thread Tom Link
Hi, When you search the vim.org page using the custom google search, some links to plugins link to the page with &rating=life_changing added to the url. Consequently, clicking on the url in the search results will change the rating of the plugin. I'd suggest to either blacklist urls with &rati

Strange Tab Behaviour When Cancelling a Close-Window

2011-03-25 Thread Yongwei Wu
Hi Bram and other gurus, I noticed this behaviour when my plug-in cost me data loss, and would like to have your comment. Operations: 1. Open a file in the first Vim tab, and make some edits 2. Open another with tabedit 3. Click the top-right corner, or press Alt-F4, to close Vim 4. Click on Can

Grab text in command-line area & insert it to the buffer text?

2011-03-25 Thread John Magolske
To run visually selected text though a scheme interpreter and display its output in Vim's command line area, I'm using this mapping: " run visually selected text through the chicken scheme interpreter vmap c :w! /tmp/scheme-snippet:!csi-vim-cmd where csi-vim-cmd is a shell script like so:

Re: Another search 'n' highlight question

2011-03-25 Thread meino . cramer
Tim Chase [11-03-26 04:04]: > On 03/25/2011 09:37 PM, meino.cra...@gmx.de wrote: > >possible to do two totally different searches in the function > >and get highlighted the matches of *both* searches when the > >function returns control to the user. Due to teh complexity of > >the regular expressi

Re: Another search 'n' highlight question

2011-03-25 Thread Tim Chase
On 03/25/2011 09:37 PM, meino.cra...@gmx.de wrote: possible to do two totally different searches in the function and get highlighted the matches of *both* searches when the function returns control to the user. Due to teh complexity of the regular expressions of that matches it will be nearly imp

Another search 'n' highlight question

2011-03-25 Thread meino . cramer
Hi in a function there is one search at the end which hihlights its matches when the function returns control to the user (thanks to previous threads infos :) ) Now it would be great, when it would possible to do two totally different searches in the function and get highlighted the matches of

C header indentation question

2011-03-25 Thread Simon Leung
Hi all, I'm trying to indent C header with that supports C++ linkage (somebody else' code and I don't want to remove them). The problem is that, the following code extern "C" { extern int foo(); } would be indented into extern "C" { extern int foo(); } which is OK but not what I wanted

Capture output of command line completion in script

2011-03-25 Thread Rickard Lindberg
Hi, If I type CTRL-D on the command line it will show a list of possible matches (:e foo). Is it possible to capture this result list in a vim script? -- 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 informat

Re: Orgmode in Vim

2011-03-25 Thread tux.
Vlad Irnov wrote: VimOrganizer: http://www.vim.org/scripts/script.php?script_id=3342 vim-orgmode: https://github.com/jceb/vim-orgmode One of them needs a binary patch though :) -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text

Re: Bug in the behavior of &diff when executing vimdiff?

2011-03-25 Thread Gary Johnson
On 2011-03-25, Bram Moolenaar wrote: > Gary Johnson wrote: > > > I'm trying to configure Vim so that I can > > > > 1. choose which filetypes have syntax coloring enabled and > > > > 2. set syntax off when diffing files. > > > > Without the latter, some syntax foreground colors and diff > > ba

Execute script commands after ctrl-C?

2011-03-25 Thread howard Schwartz
Hi, I wrote a little script that launces a browser or email client for the word under the cursor, after checking that the word is, indeed an email address or URL. Works fine, if you exit the browser or email normally. But if you interrupt the shell with ctrl-C when in the browser, I reenter m

Re: Bug in the behavior of &diff when executing vimdiff?

2011-03-25 Thread Bram Moolenaar
Gary Johnson wrote: > I'm trying to configure Vim so that I can > > 1. choose which filetypes have syntax coloring enabled and > > 2. set syntax off when diffing files. > > Without the latter, some syntax foreground colors and diff > background colors are such that the text is impossible to

RE: Missing selection register (*)?

2011-03-25 Thread Suresh Govindachar
Tim Chase wrote: >On 03/25/2011 02:41 PM, Suresh Govindachar wrote: > >> On Windows, after yanking a line, :echo @* shows the yanked >> line. But on Unix, there doesn't seem to be anything in >> the * register -- it is as though there is no * register at >> all! Version of vim used

Re: Keeping hlsearch on after function call

2011-03-25 Thread Tim Chase
On 03/25/2011 03:17 PM, meino.cra...@gmx.de wrote: I used :/pattern instead of /pattern/ In a function, they should be the same. E.g: function! Tim() /pattern/ endfunction and function! Meino() :/pattern/ endfunction! should be exactly the same. and I also add "the

Re: Missing selection register (*)?

2011-03-25 Thread Gary Johnson
On 2011-03-25, Tim Chase wrote: > On 03/25/2011 02:41 PM, Suresh Govindachar wrote: > > On Windows, after yanking a line, :echo @* shows the yanked > > line. But on Unix, there doesn't seem to be anything in the * > > register -- it is as though there is no * register at all! > > Version o

Re: Keeping hlsearch on after function call

2011-03-25 Thread meino . cramer
Tim Chase [11-03-25 21:04]: > On 03/25/2011 02:20 PM, meino.cra...@gmx.de wrote: > >After the funtino has returned control back to the user > >the matched keywords should be highlighted as if > >the user her-/himself did the search... > > My second function worked for me to do what you describe:

Re: Bug in the behavior of &diff when executing vimdiff?

2011-03-25 Thread Gary Johnson
On 2011-03-25, Ben Fritz wrote: > On Mar 25, 1:21 pm, Gary Johnson wrote: > > I'm trying to configure Vim so that I can > > > > 1.  choose which filetypes have syntax coloring enabled and > > > > 2.  set syntax off when diffing files. > > > > Without the latter, some syntax foreground colors and d

Re: Keeping hlsearch on after function call

2011-03-25 Thread Tim Chase
On 03/25/2011 02:20 PM, meino.cra...@gmx.de wrote: After the funtino has returned control back to the user the matched keywords should be highlighted as if the user her-/himself did the search... My second function worked for me to do what you describe: If you want to have the pattern from yo

Re: Missing selection register (*)?

2011-03-25 Thread Tim Chase
On 03/25/2011 02:41 PM, Suresh Govindachar wrote: On Windows, after yanking a line, :echo @* shows the yanked line. But on Unix, there doesn't seem to be anything in the * register -- it is as though there is no * register at all! Version of vim used on Fedora 14 was: :versio

Missing selection register (*)?

2011-03-25 Thread Suresh Govindachar
Hello, On Windows, after yanking a line, :echo @* shows the yanked line. But on Unix, there doesn't seem to be anything in the * register -- it is as though there is no * register at all! Version of vim used on Fedora 14 was: :version VIM - Vi IMproved 7.3 (2010 Aug 15, com

Re: Keeping hlsearch on after function call

2011-03-25 Thread Ben Fritz
On Mar 25, 1:31 pm, meino.cra...@gmx.de wrote: > Hi, > > sorry for the diffuse subject ... I simply dont know how to > name the "problem" I have in the length of a subject line: > I a function I a search (":/") at the last step. > : > But regardless how intense I define 'set hlsearch' -- > when t

Re: Keeping hlsearch on after function call

2011-03-25 Thread meino . cramer
Hi Tim, sorry for the confusing input I sent... Before I call the function, there is nothing searched but hls is set via .vimrc (I am on Linux). The function does sort a few lines of text, and the last thing, which the function performs is a search of certain keywords. After the funtino has re

Re: Keeping hlsearch on after function call

2011-03-25 Thread Tim Chase
On 03/25/2011 01:31 PM, meino.cra...@gmx.de wrote: I a function I a search (":/") at the last step. : But regardless how intense I define 'set hlsearch' -- when the function returns, the matches marked via hlsearch are gone. I'm not sure whether you do or don't want the highlighting, and if so

Re: Bug in the behavior of &diff when executing vimdiff?

2011-03-25 Thread Ben Fritz
On Mar 25, 1:21 pm, Gary Johnson wrote: > I'm trying to configure Vim so that I can > > 1.  choose which filetypes have syntax coloring enabled and > > 2.  set syntax off when diffing files. > > Without the latter, some syntax foreground colors and diff > background colors are such that the text

Way to keep non-diff folds in sync?

2011-03-25 Thread Ben Fritz
I made the amazing realization the other day, that since 'number' and 'relativenumber' are both window-local options, I can do this: :aboveleft vsp | setl nu scrollbind cursorbind | exec 'vert resize' &numberwidth | setl winfixwidth | wincmd p | setl rnu scrollbind cursorbind Now I have BOTH rela

Keeping hlsearch on after function call

2011-03-25 Thread meino . cramer
Hi, sorry for the diffuse subject ... I simply dont know how to name the "problem" I have in the length of a subject line: I a function I a search (":/") at the last step. : But regardless how intense I define 'set hlsearch' -- when the function returns, the matches marked via hlsearch are gone.

Bug in the behavior of &diff when executing vimdiff?

2011-03-25 Thread Gary Johnson
I'm trying to configure Vim so that I can 1. choose which filetypes have syntax coloring enabled and 2. set syntax off when diffing files. Without the latter, some syntax foreground colors and diff background colors are such that the text is impossible to read. I've discovered when diffing tw

Re: close all unvisible buffers

2011-03-25 Thread Bob Hiestand
On Thu, Mar 24, 2011 at 4:07 AM, Caesarmv wrote: > This is my first message. Can you see me? Yes. > My question is: how to close all unvisible buffers? > For example: I have 5 tabs opened (5 visible buffers) and many unvisible > buffers (I am seeing with :ls command). You could define a functi

Re: svn plugin for vim not work

2011-03-25 Thread Bob Hiestand
On Fri, Mar 25, 2011 at 11:17 AM, coolesting wrote: > Svn(1.6.5) was installed, the ~/.subversion is exist, but i don`t know  how > to make this plugin to running, Is the file that you're editing in a directory that is already under subversion control? As Jean-Rene asked, is there a .svn directo

Re: svn plugin for vim not work

2011-03-25 Thread coolesting
Svn(1.6.5) was installed, the ~/.subversion is exist, but i don`t know how to make this plugin to running, hit the command "vcscommand-install" , it return me "Not an editor command: vcscommand-install" this "VCSStatus", return "VCSCommand: No suitable plugin " -- View this message in contex

Re: Orgmode in Vim

2011-03-25 Thread Vlad Irnov
On Mar 25, 9:01 am, Felipe Espinoza Castillo wrote: > Hi > > Are they any good plugin to have orgmode in vim? I tried a couple, but they > didn't work as espected It depends on what you mean by "good plugin". There are at least two new projects that aim to replicate the Org-mode in Vim. VimOrgan

Re: Compiling vim7.3 with python-interp support

2011-03-25 Thread neophilic
Hello all, Problem is solved now. I installed python-dev from "maverick-updates" repository like answered at http://askubuntu.com/q/31973/3973. I compiled vim73 and :version shows +python. yay! Thank you all. -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Re: Orgmode in Vim

2011-03-25 Thread Jean-Rene David
* Felipe Espinoza Castillo [2011.03.25 09:10]: > Are they any good plugin to have orgmode in vim? I tried a couple, but they > didn't work as espected There's VimOutliner, which isn't exactly the same but in the same spirit. And someone posted something about an orgmode for vim on this list not

Re: svn plugin for vim not work

2011-03-25 Thread Jean-Rene David
* Christian Brabandt [2011.03.25 03:40]: > > no error message, whatever i enter any commands of the svn plugin, just > > return me this "VCScommand: No suitable plugin " > > ok, this error message seems to come from the plugin. This means the plugin couldn't figure out which version control syste

Re: svn plugin for vim not work

2011-03-25 Thread Jean-Rene David
* coolesting [2011.03.25 00:10]: > what should i do something for svn , installing it ? or anything else . Are you saying you don't have svn installed? Because yes, you have to install it for the plugin to work. -- JR -- You received this message from the "vim_use" maillist. Do not top-post!

Orgmode in Vim

2011-03-25 Thread Felipe Espinoza Castillo
Hi Are they any good plugin to have orgmode in vim? I tried a couple, but they didn't work as espected -- 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: which plugin management system to use?

2011-03-25 Thread Marc Weber
Excerpts from Israel Chauca F.'s message of Fri Mar 25 00:35:56 +0100 2011: > That looks a bit convoluted to me, maybe because I'm not sure I got the idea. Final result: system wide setup (or other user): /usr/vim-plugins/snipmate your setup (vam-default): ~/vim-addons/snipmate -> /usr/v

Re: Compiling vim7.3 with python-interp support

2011-03-25 Thread neophilic
> I would still recommend downgrading to make your system a sane state. > However this is not really a vim compilation problem, you may seek better > advice in ubuntu support forum. Anyways, thanks for pointing in the right direction. Will downgrade python and re-build vim7.3. -- You received th

Re: Compiling vim7.3 with python-interp support

2011-03-25 Thread bill lam
I would still recommend downgrading to make your system a sane state. However this is not really a vim compilation problem, you may seek better advice in ubuntu support forum. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subke

Re: Compiling vim7.3 with python-interp support

2011-03-25 Thread neophilic
Hi Christian > That means, version 2.6.6-2ubuntu2 is installed, while in the main > archive is only version 2.6.6-2ubuntu1 is available. It doesn't know a > repository with your version, so that's why it says /var/lib/dpkg/status > in it's output. That means, either you have temporarily enabled an

Re: svn plugin for vim not work

2011-03-25 Thread Christian Brabandt
Hi coolesting! On Fr, 25 Mär 2011, coolesting wrote: > Thanks Christian , > no error message, whatever i enter any commands of the svn plugin, just > return me this "VCScommand: No suitable plugin " > ok, this error message seems to come from the plugin. I don't know the plugin, so I suggest t

Re: svn plugin for vim not work

2011-03-25 Thread coolesting
Thanks Christian , no error message, whatever i enter any commands of the svn plugin, just return me this "VCScommand: No suitable plugin " my PC system is the ubuntu of linux, vim version is the 7.2.245. the filetype command get me this message "filetype detection:ON plugin:ON indent:ON "