... I have the following in my vimrc. I got it from this list, I think. Apologies for losing credit to whomever first posted it. " Don't screw up folds when...
126736
Ronald
R.onald@...
Oct 30, 2011 10:44 pm
perl-code containing references intends stange. For example: <code> while ($ok) { if ($tbs) { &show("step 1", \@arr, [24,60,60]); &show("step 1", \@arr,...
126737
Tim Chase
vim@...
Oct 31, 2011 1:45 am
... I don't recall seeing a reply to this and it's been a couple days so I'll take a rough stab at it ... You might try something like autocmd BufRead...
126738
Ben Fritz
fritzophrenic@...
Oct 31, 2011 3:04 am
... It may have been from here: http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text "Sproing". Good description :-) -- You received this message...
126739
Niels Grundtvig Nielsen
communicator.ngn@...
Oct 31, 2011 8:54 am
Can't get the full answer from Tim to open this morning ... but I'd turn to grep if I wanted to search across multiple files. Not quite as convenient as "se ...
126740
Niels Grundtvig Nielsen
communicator.ngn@...
Oct 31, 2011 8:56 am
... (hm: what happened there, I wonder; and no Edit option) ... search in open files, but might help. On Mon, Oct 31, 2011 at 9:53 AM, Niels Grundtvig Nielsen...
126741
Erik Christiansen
dvalin@...
Oct 31, 2011 9:07 am
... Ooooh yes, many thanks Paul. (And Ben, for the link.) That does the trick, just Vimderfully! Erik -- My grandmother currently runs ubuntu. This was not my...
126742
stardiviner
numbchild@...
Oct 31, 2011 11:17 am
I want to bind key Alt-n/p to next/previous LocationList or next/previous QuickFix list. So I need to detect which List in current buffer. then bind Alt-n/p to...
126743
Tim Chase
vim@...
Oct 31, 2011 11:49 am
... (I presume those 2nd mappings should be <A-p> to prevent overwriting the previous mapping...) A rough (untested) pair of mappings might look something like...
126744
Andy Wokula
anwoku@...
Oct 31, 2011 12:51 pm
... You could check for empty(getloclist(0)) " Second approach: always do :lnext and if that fails, try :cnext nnoremap <A-n> :NextError<CR> nnoremap <A-p>...
126745
Andy Wokula
anwoku@...
Oct 31, 2011 12:58 pm
... I use ... to insert fold markers. E.g. typing "before fof<Enter>text" results in before {{{ text }}} The idea is to have a mapping/abbrev that inserts {{{...
126746
Andy Wokula
anwoku@...
Oct 31, 2011 12:59 pm
... Yes. How it reads with spaces: [ ( ) { } \ [ \] ] ... BUT ... -- Andy -- You received this message from the "vim_use" maillist. Do not top-post! Type your...
126747
Ben Fritz
fritzophrenic@...
Oct 31, 2011 2:39 pm
... -- 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...
126748
Tim Chase
vim@...
Oct 31, 2011 2:43 pm
... Given that you subject-line reads "Abridged summary", it sounds like you need to change your settings (wherever you get your access to vim-use) to get full...
126749
Eric Maquiling
ericmaquiling@...
Oct 31, 2011 3:26 pm
... SWEEETNESSSSSSS!! Works like a charm! Thank you! -- Eric -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below...
126750
George Papanikolaou
g3orge.app@...
Oct 31, 2011 5:07 pm
I know this is simple. but I can't figure it out by Googling... so. How can I map a specific keyboard shortcut? For example, I want to press <CTRL>+F to...
126751
AK
andrei.avk@...
Oct 31, 2011 5:09 pm
... <cr> there means 'carriage return', i.e. Enter. -ak -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the...
126752
Sven Guckes
guckes@...
Oct 31, 2011 5:12 pm
... Sven -- 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,...
126753
Chris Jones
cjns1989@...
Oct 31, 2011 8:15 pm
... Nothing wrong with googling, but there's no guarantee whoever posted his favorite trick fully understands the problem and that whatever worked in his case...
126754
Chris Jones
cjns1989@...
Oct 31, 2011 8:33 pm
On Mon, Oct 31, 2011 at 04:15:00PM EDT, Chris Jones wrote: [..] ... Actually, I take that back: a ‘/mapping<enter>’ on the first page of the user manual...
126755
Tony Mechelynck
antoine.mechelynck@...
Oct 31, 2011 8:48 pm
... Also, IMHO there are two "must read" sections, about searching the help. First, hit the F1 key in vim or gvim and read what you find there. Later, when you...
126756
Benjamin R. Haskell
vim@...
Oct 31, 2011 9:04 pm
... A valid point, but as with Wikipedia, if you don't want 100% accuracy (rather an introductory overview), googling is usually quicker. ... The problem is...
126757
Tony Mechelynck
antoine.mechelynck@...
Oct 31, 2011 9:44 pm
On 31/10/11 22:03, Benjamin R. Haskell wrote: [...] ... [...] Yes, the Vim help is as complete and as accurate as is humanly possible, but sometimes it...
126758
Dotan Cohen
dotancohen@...
Oct 31, 2011 10:50 pm
I have this line in some PHP code: require_once(DIR . '/includes/functions_misc.php39;); DIR is actually /var/www/html/forum/ ... However, gf insists that it...
126759
AK
andrei.avk@...
Oct 31, 2011 10:57 pm
... Vim needs a built-in google-like search. Type a few words, get a list of entries, best matches on top. helpgrep is not nearly the same thing - it's...
126760
Gary Johnson
garyjohn@...
Oct 31, 2011 11:06 pm
... The problem is that that last segment of the path name, /includes/functions_misc.php, begins with a "/" which Vim understands to mean the beginning of an...
126761
subhash
subhash.rao@...
Oct 31, 2011 11:35 pm
Hi, Could someone help me understand how to set up diffexpr variable in vim (by defining my own diff function) so that I can ignore C comments while diff'ing....
126762
Gary Johnson
garyjohn@...
Nov 1, 2011 12:42 am
... Here's what I've done in my ~/.vimrc to add the -d option to diff on Unix. I used the MyDiff() function in the default Windows _vimrc as an example. set...
126763
Matthew Pettis
matthew.pettis@...
Nov 1, 2011 2:47 am
This is a great thread -- I'm all about using the manual and help when I can, but I agree, most software that has substantial documentation and is complex has...
126764
stardiviner
numbchild@...
Nov 1, 2011 3:34 am
Thanks to upper two guys hints. empty(getloclist(0)) is more simple. Andy Wokula, which one is for QuickFix like getloclist(0), I can not find it even I use...