... The only way I know of is to build a string and then use :exe on the string rather than giving the command directly, e.g. let pattern='apples' "...
132700
Ben Fritz
fritzophrenic@...
Aug 6, 2012 3:51 pm
... This should tell you the current value of the option and what script last set it. -- You received this message from the "vim_use" maillist. Do not...
132701
Ben Fritz
fritzophrenic@...
Aug 6, 2012 4:10 pm
... Under :help 'wildmenu39; it documents <Up> and <Down> as moving into parent/subdirectories during filename completion. For some reason there is no mention of...
132702
Eric Weir
eeweir@...
Aug 6, 2012 4:15 pm
... Thanks for the explanation, Tony. The wikipedia article says that on a mac---US keyboard I take it---the option key functions the way AltGr does. When I do...
132703
Eric Weir
eeweir@...
Aug 6, 2012 4:27 pm
... But the AltGr article has a link to the Option key on a Mac. With its help I found that Option+[ gives “ and Shitf+Option+[ gives ”. Neither of those...
132704
Johannes Deutsch
j_deutsch@...
Aug 6, 2012 4:29 pm
On Mon, 6 Aug 2012 09:10:02 -0700 (PDT) ... Thanks for your reply. But <Up> and <Down> do not pick the selection and close the wildmenu. Ok, it's a way to...
132705
Eric Weir
eeweir@...
Aug 6, 2012 4:30 pm
... Hmm. Thanks. Since I'm trying to move to a Vim/LyX/LaTeX environment that might be in order anyway. ... Eric Weir Decatur, GA eeweir@... "The...
132706
Eric Weir
eeweir@...
Aug 6, 2012 4:52 pm
... Thanks for the clarification, Tim. I now have two ways to address the issue from within Vim, the TeX way---`` and ''---and the Mac way---Option+[ and...
132707
Adri Verhoef
a3@...
Aug 6, 2012 5:39 pm
... Since the keys <Home> and <End> are on my keyboard, I try to use those instead of ^ and $ (and there are no extra mappings required). - Adri -- You...
132708
Bee
beeyawned@...
Aug 6, 2012 6:09 pm
... These do the same thing: let @/ = @/ . pad[c] let @/ .= pad[c] Is there an advantage (speed, space) to use one rather the other? Bill -- You received this...
132709
ping
songpingemail@...
Aug 6, 2012 7:50 pm
thanks Ben. I miss perl on the ability to comment liekt his: ... $dataline=~(/ \s* (\w+) #wanted value \s* = #= \s*{\s* (.*?) #cli \s*}\s* (?: ...
132710
Ben Fritz
fritzophrenic@...
Aug 6, 2012 8:31 pm
... I don't know the internals of Vim's implementation. It might be slightly faster to use "let var .= val" rather than "let var = var . val" because Vim might...
132711
Ben Fritz
fritzophrenic@...
Aug 6, 2012 8:33 pm
... I figured that's what you meant. You can't do that in Vim script in the same way, but you can run perl (or python, scheme, LUA, etc.) directly from Vim...
132712
Peng Yu
pengyu.ut@...
Aug 6, 2012 8:57 pm
Hi, I use the following to set vim as the default paper for man, which works fine. export MANPAGER="col -b -x | vim -R -c 'set ft=man' -" But when I do the...
132713
Peng Yu
pengyu.ut@...
Aug 6, 2012 9:48 pm
vim -E -c "normal gg=G" -c "x" file The above code indent the file from command line. But the following one can not do so. vim -E file <<EOF ... EOF It seems...
132714
wangjun850725@...
Aug 7, 2012 1:00 am
If you do this,why do you use tab? ... ·¢¼þÈË: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] ´ú±í Ben Fritz ·¢ËÍʱ¼ä:...
132715
Tony Mechelynck
antoine.mechelynck@...
Aug 7, 2012 1:13 am
... If on Linux, try (untested) vim -S '/dev/stdin39; file <<EOF normal gg=G x EOF Or you could (partly) resolve the /dev/stdin softlink, and use '/dev/fd/0' or...
132716
His Nerdship
sholtod@...
Aug 7, 2012 1:42 am
... Thanks Christian. I take it you mean this: gvim --servername HgVim --remote-silent "+51,/blobfish/;:call search('blobfish39;,'c')" fish.cpp i.e a comma...
132717
Christian Brabandt
cblists@...
Aug 7, 2012 10:35 am
Hi His! ... Actually, I meant something like this: gvim --servername HgVim --remote-silent "+51,/blobfish/call search('blobfish39;,'c')" fish.cpp But you could...
132718
Christian Brabandt
cblists@...
Aug 7, 2012 11:09 am
Hi Peng! ... Looks like, perldoc pager adds the temporary file as last argument, but you told Vim to read the file from standard input. You should make a...
132719
Peng Yu
pengyu.ut@...
Aug 7, 2012 12:31 pm
... Thanks, Christian. Using the above export, I tried perldoc -f open. But the following line is not showing correctly. I think that probably "ft" be changed ...
132720
ansuman
ansuman.bebarta@...
Aug 7, 2012 1:01 pm
Hi I work with python. I want to use 4 space indentation personally for python files created by me (not associated with project). I know I can achieve this by:...
132721
Daan
bakdoa@...
Aug 7, 2012 2:00 pm
... You have a good point, and I might try those mappings as an alternative! Personally I've remapped 0 to ^, because you usually want the first non-blank...
132722
Ben Fritz
fritzophrenic@...
Aug 7, 2012 2:34 pm
... You have a few options. First, http://vim.wikia.com/wiki/Source_vimrc_and_use_tags_in_a_parent_directory has a list of scripts that do per-directory .vimrc...
132723
Ben Fritz
fritzophrenic@...
Aug 7, 2012 2:38 pm
... From previous discussion, he claims to want the first "blobfish" on or after line 51. While this could be done with the line number match, it seemed...
132724
Charles Campbell
Charles.E.Campbell@...
Aug 7, 2012 2:39 pm
... Hello, Peng! You could try manpageview (http://www.drchip.org/astronaut/vim/index.html#MANPAGEVIEW). ex. :Man sprintf.pl One may use the shell, too: gvim...
132725
Ben Fritz
fritzophrenic@...
Aug 7, 2012 2:42 pm
... I think the problem is you're using +52 as a range, meaning "52 lines after the current line". Since when you load a file Vim starts at line 1, this means...
132726
ansuman
ansuman.bebarta@...
Aug 7, 2012 2:45 pm
Many thanks Ben for your suggestions. Those are exactly what I was needing. Thanks Ansuman -- View this message in context:...
132727
Christian Brabandt
cblists@...
Aug 7, 2012 3:49 pm
Hi Ben! ... It is even easier using the '\%>l' item: \%>51lblobfish this finds the first blobfish after line 51. regards, Christian -- You received this...
132728
Ben Fritz
fritzophrenic@...
Aug 7, 2012 5:35 pm
... Forgot about that one, thanks. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying...