After collecting several dozen informative posts on the topic, I'm trying out folding on a 20k+ line file, starting out with a single level of folds, using...
125061
ranousse@...
Aug 1, 2011 8:31 am
... My problem with #!/bin/bash and #!/bin/sh is solved. Actually it did not concerned wich shell is used to run the script but the syntax highlighting. I have...
125062
Paul
google01239@...
Aug 1, 2011 9:35 am
... I agree, it should work... but neither of these do: au! BufReadPost * if !empty(&key) | set viminfo= | endif au! BufRead * if !empty(&key) | set...
125063
Paul
google01239@...
Aug 1, 2011 9:38 am
... Try setting 'fold:39; in fillchars, eg. set fillchars="fold: " -- . -- You received this message from the "vim_use" maillist. Do not top-post! Type your...
125064
Nicholas Cole
nicholas.cole@...
Aug 1, 2011 9:47 am
Dear List, I'd like to generate and use a British English dictionary using OED spellings (which are different from the usual en_gb spellings, but essential for...
125065
Nicholas Cole
nicholas.cole@...
Aug 1, 2011 10:09 am
... Gah. I got the path wrong! It should have been ~/.vim/spell/oed It's the simple errors that catch you out, sometimes. N -- You received this message from...
125066
John Little
john.b.little@...
Aug 1, 2011 10:57 am
... That sounds like you have some configuration or customization file that you can't read. I suggest checking the accessibility of everything in your home...
125067
Erik Christiansen
dvalin@...
Aug 1, 2011 11:41 am
... Paul, you're a wizard. :-) Many thanks for that magical fix! Now I can settle down to examine how useful folding is, but even while only experimenting,...
125068
Benjamin R. Haskell
vim@...
Aug 1, 2011 12:30 pm
... Three ways to work around this portion of the problem: 1. Limit the damage by placing a closing foldmarker in a comment: e.g. set...
125069
ZyX
zyx.vim@...
Aug 1, 2011 1:20 pm
Reply to message «Re: sh vs bash syntax coloring», sent 12:31:16 01 August 2011, Monday ... You can put this option somewher in ~/.zshenv. Or, better, use...
125070
ZyX
zyx.vim@...
Aug 1, 2011 1:20 pm
Reply to message «Re: Detecting Encrypted File», sent 13:35:05 01 August 2011, Monday ... BufRead and BufReadPost are the same events....
125071
Erik Christiansen
dvalin@...
Aug 1, 2011 1:22 pm
... That is clever and simple to implement. (And revealing of better ways to think about Vim. :-) ... Chuckle. Yes, the comment is needed. ... Yes, that was...
125072
ranousse@...
Aug 1, 2011 2:25 pm
... Ok thank you. I think this will be sufficient for my need. Actually I didn't say bash was better than zsh, but I learnt sh syntax first (not even bash, so...
... Just to be complete, please read :help ft-syntax-sh (g:is_bash is covered there, for example). Regards, Chip Campbell -- You received this message from...
125075
Thilo Six
T.Six@...
Aug 1, 2011 4:29 pm
Charles Campbell wrote the following on 01.08.2011 18:17 Hello Charles, I think here is a typo: -- <snip> -- ... ^ `- s:ft-syntax-sh:ft-sh-syntax: ':help...
125076
Steffen Prohaska
sprohaska@...
Aug 1, 2011 5:31 pm
On Jul 30, 5:12 pm, Charles E Campbell Jr <drc...@...> ... I observe a similar problem in TREELIST mode with version 142. When I use, for...
125077
ZyX
zyx.vim@...
Aug 1, 2011 5:35 pm
Reply to message «Re: sh vs bash syntax coloring», sent 18:28:38 01 August 2011, Monday ... ?...
125078
Charles Campbell
Charles.E.Campbell@...
Aug 1, 2011 5:36 pm
... Sorry, that should've been :help ft-sh-syntax . Regards, Chip Campbell -- You received this message from the "vim_use" maillist. Do not top-post! Type...
125079
Charles Campbell
Charles.E.Campbell@...
Aug 1, 2011 5:40 pm
... I should've mentioned that I was using :Rex to return to the netrw window. I've made a change to netrw (v143e); you may obtain it from my website: ...
125080
Leiking
jinleileiking@...
Aug 1, 2011 5:42 pm
zsh. ... -- 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,...
125081
Benjamin R. Haskell
vim@...
Aug 1, 2011 7:06 pm
... [Just FYI:] The /bin/sh in Solaris 10 works fine. Wouldn't surprise me if 5.8 or prior didn't... ... Seems like this should be the default, but okay. I...
125082
Simon Nicolussi
Simon.Nicolussi@...
Aug 1, 2011 7:48 pm
... Not all shells support command substitution via $(...), even though it is required by POSIX. The /bin/sh in Solaris comes to mind. If you know you're using...
125083
Ben Fritz
fritzophrenic@...
Aug 1, 2011 8:19 pm
... Most operations done on a closed fold will act on all lines within the fold. For example, if you have a big 1234-line fold, close the fold and press "dd"...
125084
David Ohlemacher
dohlemacher@...
Aug 1, 2011 9:03 pm
I have noticed several times that swap files are created and remain after exiting vim properly. When I start vim again later, I have been manually allowing...
125085
Paul
google01239@...
Aug 1, 2011 10:05 pm
The swap file stays around when vim crashes, for example. When it asks you if you want to recover, note that it also warns you to check the file and manually...
125086
Guido Milanese
guido.milanese@...
Aug 1, 2011 10:20 pm
... Thanks for your suggestion! I checked the whole directory, but there is no hidden configuration file or similar stuff with wrong permissions. In fact, it...
125087
David Ohlemacher
dohlemacher@...
Aug 1, 2011 11:51 pm
So once you have a swap file from a crash its there forever. That is until you delete the swp manually. And if you hit recover, your _newer_ file contents...
125088
Gary Johnson
garyjohn@...
Aug 2, 2011 12:28 am
... It would be more correct to say that if you hit recover, the buffer will be filled from the swap file instead of the file you opened. Nothing has been...
125089
Tony Mechelynck
antoine.mechelynck@...
Aug 2, 2011 1:08 am
... The Vim help mentions swp files (and swo, swn, etc.) extensively. About what happens when Vim finds a swap file for the file you're about to open, see...