How to pipe visually selected text into another file?

2011-03-21 Thread John Magolske
I'm trying to create a mapping that would allow me to visually select several lines of text, then create a file consisting of just those lines (preserving indentation, etc), sorta like: visually-selected-text-gets-piped-to | /tmp/file1 ...if that makes any sense. I thought I knew how to do

Re: How to pipe visually selected text into another file?

2011-03-21 Thread Ben Schmidt
On 21/03/11 5:04 PM, John Magolske wrote: I'm trying to create a mapping that would allow me to visually select several lines of text, then create a file consisting of just those lines (preserving indentation, etc), sorta like: visually-selected-text-gets-piped-to| /tmp/file1 Just use

which plugin management system to use?

2011-03-21 Thread Marc Weber
I'd personally say VAM - but others seem to think differently about it. So I started a file which should help you find your tool of choice: https://github.com/MarcWeber/vim-addon-manager/blob/vam-vs/VAM-VS.txt (This list is based on the link list found on vim-scripts.org/vim/tools.html) I'm

Re: Vim as TEXEDIT(or)

2011-03-21 Thread Marc Weber
Excerpts from Mauro Sacchetto's message of Mon Mar 21 08:28:23 +0100 2011: I put in my ~/bashrc the following string: === export TEXEDIT=/usr/bin/vim +%d %s === However, if I have an error in compiling a .tex

Re: which plugin management system to use?

2011-03-21 Thread Tom Link
So I started a file which should help you find your tool of choice:https://github.com/MarcWeber/vim-addon-manager/blob/vam-vs/VAM-VS.txt (This list is based on the link list found on vim-scripts.org/vim/tools.html) I think such a comparison should best be publicly editable. A gdocs

mixed line syntax highlighting

2011-03-21 Thread Eric Smith
I want a line to have mixed styles. For example a line beginning with a space to have the space with bg red and the text that follows in another colour. What is the correct way to define this without the one overriding the other? Thanks vim friends -- - Eric Smith -- You received this

Re: Vim as TEXEDIT(or)

2011-03-21 Thread Mauro Sacchetto
In data lunedì 21 marzo 2011 11:21:59, Marc Weber ha scritto: Excerpts from Mauro Sacchetto's message of Mon Mar 21 08:28:23 +0100 2011: I put in my ~/bashrc the following string: === export TEXEDIT=/usr/bin/vim +%d %s

Re: which plugin management system to use?

2011-03-21 Thread Marc Weber
Excerpts from Tom Link's message of Mon Mar 21 12:39:57 +0100 2011: I think such a comparison should best be publicly editable. A gdocs spreadsheet or a wiki page would IMHO seem to be the better choice. If someone seconds it I'll do so. For now its fine to paste missing info as reply to this

Re: Vim as TEXEDIT(or)

2011-03-21 Thread Marc Weber
Try this: http://xpt.sourceforge.net/tools/latexmake/ (- rubber python script). This will rerun latex 2 times for references etc. More important it parser the error locations so that they can be read by Vim easily using the known :set makeprg=rubber :make rubber-options (:h quickfix :cnext etc)

Re: mixed line syntax highlighting

2011-03-21 Thread Brett Stahlman
On Mar 21, 6:33 am, Eric Smith e...@fruitcom.com wrote: I want a line to have mixed styles. For example a line beginning with a space to have the space with bg red and the text that follows in another colour. Not sure what the use case is here, but you can definitely mix colors and text

Re: Vim as TEXEDIT(or)

2011-03-21 Thread Mauro Sacchetto
In data lunedì 21 marzo 2011 14:47:58, Marc Weber ha scritto: Try this: http://xpt.sourceforge.net/tools/latexmake/ (- rubber python script). This will rerun latex 2 times for references etc. More important it parser the error locations so that they can be read by Vim easily using the

Re: Fold by timestamp?

2011-03-21 Thread sanjay ravat
Hi Tim, Thanks for your reply. Lines are as such [2011-03-21T18:45:46.004-07:00] [Other info]... log message [2011-03-21T18:45:46.008-07:00] [Other info]... log message [2011-03-21T18:45:46.607-07:00] [Other info]... log message I would like to fold based on each part of the timestamp Year,

Re: which plugin management system to use?

2011-03-21 Thread Tom Link
On 21 Mrz., 14:37, Marc Weber marco-owe...@gmx.de wrote: I'd also add bash + git to the list, which I used for a long time. What do you mean by bash + git? Any homegrown shell script that updates a bunch of repos. other requirements, like curl executable er has('python')? External

Re: which plugin management system to use?

2011-03-21 Thread Israel Chauca F.
On Mar 21, 2011, at 5:18 AM, Marc Weber wrote: I'd personally say VAM - but others seem to think differently about it. So I started a file which should help you find your tool of choice: https://github.com/MarcWeber/vim-addon-manager/blob/vam-vs/VAM-VS.txt (This list is based on the link

VimOutliner 0.3.5

2011-03-21 Thread Israel Chauca F.
Hi all, Just to let you now that VimOutliner has been updated after a long time and the 0.3.5 release is available. You can get your hands on it from: http://www.vim.org/scripts/script.php?script_id=3515 Israel -- You received this message from the vim_use maillist. Do not top-post! Type

Re: VimOutliner 0.3.5

2011-03-21 Thread Reid Thompson
On 03/21/2011 03:23 PM, Israel Chauca F. wrote: Hi all, Just to let you now that VimOutliner has been updated after a long time and the 0.3.5 release is available. You can get your hands on it from: http://www.vim.org/scripts/script.php?script_id=3515 Israel the vba file won't download $

Re: VimOutliner 0.3.5

2011-03-21 Thread Israel Chauca F.
On Mar 21, 2011, at 3:19 PM, Reid Thompson wrote: On 03/21/2011 03:23 PM, Israel Chauca F. wrote: Hi all, Just to let you now that VimOutliner has been updated after a long time and the 0.3.5 release is available. You can get your hands on it from:

How to close all files opened by different vim instances

2011-03-21 Thread howard Schwartz
John wrote: That's not necessary; the vim instances invent a unique name for themselves. I think it is necessary since, in general, he wants to use one instance of vim to ``manage' other instances, most of which run in the background. Thus, he might want to write and quite instance2, but

Multiple vim instances versus single instance?

2011-03-21 Thread howard Schwartz
John wrote: Well, multiple instances give more flexibility with window placement, and make use of one's window manager and one's skills with it. There's already multiple windows with browser, xterms, file managers, and so on. Yes, I have a (blind) friend that prefers to manage multiple vim

Re: Multiple vim instances versus single instance?

2011-03-21 Thread ZyX
Reply to message «Multiple vim instances versus single instance?», sent 01:28:56 22 March 2011, Tuesday by howard Schwartz: I have an unsubstantiaed belief that running multiple vim's with multiple files, each writing viminfo, swap, backup, or session files, etc. -- now and then, is asking

Execute string under cursor

2011-03-21 Thread howard Schwartz
I found a handy tip, for executing a string under the cursor, in mswindows by using this mapping: :silent !start rundll32 url.dll,FileProtocolHandler cWORD CR This should call a dll file which knows whether to launch a browser, an email client, a wordprocessor etc. depending on the content of

Re: which plugin management system to use?

2011-03-21 Thread Marc Weber
Excerpts from Tom Link's message of Mon Mar 21 19:44:55 +0100 2011: External programs like: wget, unzip, tar, gzip Perl/python/ruby packages/libraries etc. A perl/python/ruby-based solution usually isn't that easy to use for somebody who doesn't use that language for development and hence

Re: VimOutliner 0.3.5

2011-03-21 Thread Gerhard Siegesmund
Hello Israel Just to let you now that VimOutliner has been updated after a long time and the 0.3.5 release is available. You can get your hands on it from: http://www.vim.org/scripts/script.php?script_id=3515 This is great news, as I use VimOutliner on a daily basis. Thanks for this

Re: which plugin management system to use?

2011-03-21 Thread Marc Weber
Hi Israel Chauca F, On Mar 21, 2011, at 5:18 AM, Marc Weber wrote: * I don't like having a list of plugins in my vimrc. Can you elaborate? Also keep in mind that you can use htis: call vam#Activate(map(glob(~/vim-addons/*),' fnamemodify( something )')) Then only the list of installed plugins

Re: Execute string under cursor

2011-03-21 Thread Jean-Rene David
* howard Schwartz [2011.03.21 19:10]: But when I try this mapping with an html string like www.google.com, vim addes extra characters to the www.google.com string. They appear too fast for me to capture, but include things like %20 which appear to be instructions to a terminal like xterm.

Re: Fold by timestamp?

2011-03-21 Thread Tim Chase
On 03/21/2011 01:43 PM, sanjay ravat wrote: [2011-03-21T18:45:46.004-07:00] [Other info]... log message [2011-03-21T18:45:46.008-07:00] [Other info]... log message [2011-03-21T18:45:46.607-07:00] [Other info]... log message Thanks for the example data and better description. After

Re: Fold by timestamp?

2011-03-21 Thread c b
Hi Tom, Thanks for the expr. It works like a charm. I do have a couple of questions though 1. How can we expand this so that multiple nesting (based on timestamp) will be supported? i.e. if we have logs for two days 2011-03-20 and 2011-03-21, the first level would have only two lines shown (when

How to disable netrw to generate history file?

2011-03-21 Thread Yue Wu
Hi, list, As the title, I notice netrw will create a .netrwhist at my vimfile when on windows(don't know if it do on unix too), how to prevent it from the file creation for security issue sometime. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional

Re: In windows where are the various vimrc and gvimrc hiding and how do I see them?

2011-03-21 Thread Rostyslaw Lewyckyj
Tony Mechelynck wrote: On 19/03/11 04:35, Rostyslaw Lewyckyj wrote: Win 7 x 64 with VIM 7.3 installed as by default from download. into C:\Program Files (x86)\Vim\vim73. 1) Where are the system wide vimrc and gvimrc? i.e. those that get sourced for any execution of vim or gvim. NOT the