Execute string under cursor

2011-03-22 Thread howard Schwartz
'www.google.com' is not an html string, it's a host name. It's likely been interpreted as a URL when you tried that command because things like '%20' are escape sequence for encoding special characters in a URL, not terminal instructions. To me it is a string, that happens to describe a URL. I

Is this behaviour of append by design?

2011-03-22 Thread Rostyslaw Lewyckyj
On some files if a line starts with a and I do an append followed by a carriage return, then the next line gets a inserted as the first character. e.g. if I have: 1and this is number 1 2Let vx=1 3etc. et.c ... And put the cursor on the 1 in line 1 Press an a to start append

Re: Execute string under cursor

2011-03-22 Thread Christian Brabandt
On Tue, March 22, 2011 7:31 am, howard Schwartz wrote: 'www.google.com' is not an html string, it's a host name. It's likely been interpreted as a URL when you tried that command because things like '%20' are escape sequence for encoding special characters in a URL, not terminal instructions.

Re: Fold by timestamp?

2011-03-22 Thread Christian Brabandt
On Tue, March 22, 2011 5:58 am, c b wrote: 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

Shortcut for write + buffer delete

2011-03-22 Thread Marco
Hi, I often use :wCR:bdCR. I wonder if there's a shortcut for this quite common sequence. Or is it best to create a mapping? Marco -- 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

Re: Is this behaviour of append by design?

2011-03-22 Thread Ben Schmidt
On 22/03/11 5:31 PM, Rostyslaw Lewyckyj wrote: On some files if a line starts with a and I do an append followed by a carriage return, then the next line gets a inserted as the first character. e.g. if I have: 1 and this is number 1 2 Let vx=1 3 etc. et.c ... And put the cursor on the 1 in

Re: which plugin management system to use?

2011-03-22 Thread Marko Mahnič
On Mar 21, 8:16 pm, Israel Chauca F. israelvar...@fastmail.fm wrote: * I don't like having a list of plugins in my vimrc. I manage plugins in a separate file like this: let s:bundlerc = $MYVIMDIR . '/vimbundlerc' or: let s:bundlerc = globpath(rtp, 'vimbundlerc') if filereadable(s:bundlerc)

Compiling vim7.3 with python-interp support

2011-03-22 Thread neophilic
Hello, I am trying to compile vim7.3 with '--enable-pythoninterp' flag. The configure log says that .. checking --enable-pythoninterp argument... yes checking for python... /usr/bin/python checking Python version... 2.6 Now, I have both python2.6 and python2.7 installed. I wish vim to use

Re: How to disable netrw to generate history file?

2011-03-22 Thread Charles Campbell
Yue Wu wrote: 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. There's no built-in way to prevent .netrwhist generation at the current time. However,

Re: Fold by timestamp?

2011-03-22 Thread Simon Ruderich
On Tue, Mar 22, 2011 at 08:25:22AM +0100, Christian Brabandt wrote: 2. The [Other info] in the example is info I don't really care about. Is there a concept of a vertical fold/any way to hid the [Other info] fields? No. Well you could use the conceal feature to hide the [Other info] text.

Re: How to disable netrw to generate history file?

2011-03-22 Thread Yue Wu
On Tue, Mar 22, 2011 at 09:37:17AM -0400, Charles Campbell wrote: Yue Wu wrote: 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. There's no

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

2011-03-22 Thread Ben Fritz
On Mar 22, 12:43 am, Rostyslaw Lewyckyj urj...@bellsouth.net wrote: Sorry to bother you, but I must be doing something wrong. I fired up Gvim and echoed $HOME and $VIM. I copied the example_vimrc.vim and example_gvimrc.vim files to $VIM\vimrc and $VIM\gvimrc Then I tried to create private

where to paste my vimrc for mac's root

2011-03-22 Thread Ricardo S
Hey people, I'm new user in Mac, though being already a some years Linux user. I have a customized vimrc for working on my Mac, however as root in the system I don't know where to put it. I managed to have everything working for all users in the machine. But when I log as root (sudo) I don't have

folding

2011-03-22 Thread Wojciech Brański
Hi With default vim setting the folowing code: a) void fun(){ ... b) void fun() { is folding as: a) +--- x lines: void fun() --- ... b) void fun() +--- x lines: --- Is there any possibility to treat both code statement same. ie

Re: where to paste my vimrc for mac's root

2011-03-22 Thread Ben Schmidt
On 23/03/11 12:37 AM, Ricardo S wrote: Hey people, I'm new user in Mac, though being already a some years Linux user. I have a customized vimrc for working on my Mac, however as root in the system I don't know where to put it. I managed to have everything working for all users in the machine.

Re: where to paste my vimrc for mac's root

2011-03-22 Thread Ricardo S
Hey Ben, I did it before... however after sending the question... anyway thanks for your help. Ricardo. On Tue, Mar 22, 2011 at 4:38 PM, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: On 23/03/11 12:37 AM, Ricardo S wrote: Hey people, I'm new user in Mac, though being already a some

Re: which plugin management system to use?

2011-03-22 Thread Marc Weber
Excerpts from Marko Mahnič's message of Tue Mar 22 11:05:45 +0100 2011: I prefer to enable the plugins in a two step process. First I Add() In Vam you have two functions: Install and ActivateAddons representing both phases. Internally you can access a dict to find out which addons have been

Re: which plugin management system to use?

2011-03-22 Thread Marc Weber
Excerpts from Marc Weber's message of Tue Mar 22 00:53:37 +0100 2011: I've added a new bug to VAM's issue tracker: https://github.com/MarcWeber/vim-addon-manager/issues/34 If you support the idea of separating installation implementation from runtime path handling so that external scripting

Re: Execute string under cursor

2011-03-22 Thread Vlad Irnov
On Mar 21, 7:00 pm, howard Schwartz howard...@gmail.com wrote: 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,

Re: Scrolling by timestamp

2011-03-22 Thread Malte Forkel
Am 20.03.2011 06:52, schrieb Ben Schmidt: No, I don't think you can. Late in that thread there is a workaround for that, which basically works by using 'diffexpr' to 'intercept' the files on their way to diff and remove the parts of the lines you don't want to compare (in your case,

Re: Scrolling by timestamp

2011-03-22 Thread Andy Wokula
Am 22.03.2011 19:31, schrieb Malte Forkel: Am 20.03.2011 06:52, schrieb Ben Schmidt: No, I don't think you can. Late in that thread there is a workaround for that, which basically works by using 'diffexpr' to 'intercept' the files on their way to diff and remove the parts of the lines you

Re: Execute string under cursor

2011-03-22 Thread David Fishburn
On 3/22/2011 1:09 PM, Vlad Irnov wrote: On Mar 21, 7:00 pm, howard Schwartzhoward...@gmail.com wrote: I found a handy tip, for executing a string under the cursor, in mswindows by using this mapping: :silent !start rundll32 url.dll,FileProtocolHandlercWORD CR This should call a dll file

How to close all files opened by different vim instances

2011-03-22 Thread howard Schwartz
ZyX zyx@gmail.com wrote: When I want to edit a file I just type `vim file'. What I am supposed to do if I want to keep one vim session? Don't suggest me switching to other terminal window and typing anything there. I thought this would be obvious: If you work in unix/linux with

The `Perfect' Grep within vim?

2011-03-22 Thread howard Schwartz
For a while I've looked for what for me would be the `perfect' grep: It would display each line containing a searched for pattern, with one or more context lines (so I can discern the lines Im looking for). When I clicked on one of these lines, the corresponding file would open with the cursor

Extracting part of previous line in substitute command

2011-03-22 Thread Dennis Benzinger
Hi! I have a log file with timestamps and messages: 01:00 x 02:00 y 03:00 z To compare the time elapsed between two events I want to prefix each line with the timestamp of the previous time. I tried to use %s/^/\=matchstr(getline(line(.)-1), \\d\\{2}:\\d\\{2} ) but somehow the first match

Re: Extracting part of previous line in substitute command

2011-03-22 Thread Israel Chauca F.
On Mar 22, 2011, at 3:33 PM, Dennis Benzinger wrote: Hi! I have a log file with timestamps and messages: 01:00 x 02:00 y 03:00 z To compare the time elapsed between two events I want to prefix each line with the timestamp of the previous time. I tried to use

Re: Extracting part of previous line in substitute command

2011-03-22 Thread Benjamin R. Haskell
On Tue, 22 Mar 2011, Dennis Benzinger wrote: Hi! I have a log file with timestamps and messages: 01:00 x 02:00 y 03:00 z To compare the time elapsed between two events I want to prefix each line with the timestamp of the previous time. I tried to use %s/^/\=matchstr(getline(line(.)-1),

Re: Extracting part of previous line in substitute command

2011-03-22 Thread Tim Chase
On 03/22/2011 03:33 PM, Dennis Benzinger wrote: Hi! I have a log file with timestamps and messages: 01:00 x 02:00 y 03:00 z To compare the time elapsed between two events I want to prefix each line with the timestamp of the previous time. I tried to use %s/^/\=matchstr(getline(line(.)-1),

Re: How to close all files opened by different vim instances

2011-03-22 Thread ZyX
Reply to message «How to close all files opened by different vim instances», sent 23:16:30 22 March 2011, Tuesday by howard Schwartz: I thought this would be obvious: If you work in unix/linux with x-windows, then alias gvim thus: alias gvim gvim --remote-tab-silent Now `vim filename'

Env Vars in Makefile have () so gf does not work

2011-03-22 Thread Wes
Hi, I haven't found an answer to this on the web. Hopefully you guys can help. I love the 'gf' and 'gF' commands but unfortunately they don't work in Makefiles, which I edit a lot. The reason is that environment variables have to have () in the name, such as:

Re: Execute string under cursor

2011-03-22 Thread Steve Litt
On Tuesday 22 March 2011 15:20:46 David Fishburn wrote: On 3/22/2011 1:09 PM, Vlad Irnov wrote: On Mar 21, 7:00 pm, howard Schwartzhoward...@gmail.com wrote: I found a handy tip, for executing a string under the cursor, in mswindows by using this mapping: :silent !start rundll32

Re: Shortcut for write + buffer delete

2011-03-22 Thread John Degen
On Mar 22, 9:23 am, Marco net...@lavabit.com wrote: Hi, I often use :wCR:bdCR. I wonder if there's a shortcut for this quite common sequence. Or is it best to create a mapping? Marco There does not seem to be a built in command to do this so, yes, you can do e.g. :noremap \w :wCR: bdCR

Re: Edit same in two windows same Vim session

2011-03-22 Thread Charles E Campbell Jr
Colin Beighley wrote: Actually I didn't test this before I sent the message (sorry) and it appears that Vim automatically does this when you edit the same file in two windows in the same session. On Mar 1, 8:48 pm, Benjamin R. Haskellv...@benizi.com wrote: On Tue, 1 Mar 2011, Colin

Re: Slow scrolling / high CPU usage with spaces-at-end-of-line syntax highlighting

2011-03-22 Thread Justin Lebar
Aha. I figured this out. The problem was that I had the following in my vimrc: autocmd BufNewFile,BufReadPost,FilterReadPost,FileReadPost,Syntax * SpaceHi So whenever I switched away and then back to a buffer, the SpaceHi function would be run. That function does the following: function!