variable tabstops on your tty (linux, vt100/102/200?... similar)?

2013-06-04 Thread Linda W
Seeing the conversation on variable tabs in Vim, thought some might find the attached script of use if they use certain text terms... FWIW, the linux type terminal implements a large subset of the VT102 and ECMA-48/ISO ANSI x4.64 terminal controls... Within this feature set, is the abilty to

Re: How to fix h1 id strings?

2013-06-04 Thread BPJ
2013-06-04 01:16, Andrei Olsen skrev: And finally... let's take a look at the snippet in question: snippet h1 h1 id=${1:heading}${2:$1}/h1 You type h1TAB and you'll get h1 id=headingheading/h1. Cursor at the first tabstop and id value is highlighted and ready to be replaced. Now you type a

Re: insert mode mapping to move to a column

2013-06-04 Thread Willy Gfn
Salman Halim wrote: On Mon, Jun 3, 2013 at 10:38 AM, Ben Fritz fritzophre...@gmail.com wrote: On Monday, June 3, 2013 1:31:08 AM UTC-5, sinbad wrote: On Thursday, May 30, 2013 10:59:52 AM UTC+5:30, sinbad wrote: set ve=all is little annoying to be set all the time, at least i'm

Re: How to fix h1 id strings?

2013-06-04 Thread Chris Lott
On Mon, Jun 3, 2013 at 1:07 PM, Steve Litt sl...@troubleshooters.com wrote: I just won't let any two h? texts be the same, and actually, why would that happen in normal authoring? Really? Happens to me all the time: h1Monkey h2 Habitat h2 Dances h1Pig h2Habitat h2Dances Headers outline a

Re: How to fix h1 id strings?

2013-06-04 Thread Steve Litt
On Tue, 4 Jun 2013 07:36:57 -0800 Chris Lott ch...@chrislott.org wrote: On Mon, Jun 3, 2013 at 1:07 PM, Steve Litt sl...@troubleshooters.com wrote: I just won't let any two h? texts be the same, and actually, why would that happen in normal authoring? Really? Happens to me all the

Re: How to fix h1 id strings?

2013-06-04 Thread Steve Litt
On Tue, 4 Jun 2013 10:13:52 -0700 (PDT) Bee fo...@calcentral.com wrote: I have been trying the ZenCoding.vim plugin, still going thru the tutorial. http://www.vim.org/scripts/script.php?script_id=2981 Cool. Yet another tool I need to investigate before making my final decision. Thanks for

Re: How to fix h1 id strings?

2013-06-04 Thread Steve Litt
On Tue, 4 Jun 2013 10:13:52 -0700 (PDT) Bee fo...@calcentral.com wrote: I have been trying the ZenCoding.vim plugin, still going thru the tutorial. http://www.vim.org/scripts/script.php?script_id=2981 Would someone compare ZenCoding with snipMate? Hi Bee, After spending about 8 hours with

I'm unable to override indentexpr

2013-06-04 Thread Steve Litt
Hi all, I'm using Vim 7.3 in Xubuntu 12.10. When editing my html files, this happens when I set indentexpr?: indentexpr=HtmlIndentGet(v:lnum) That's no good because HtmlIndentGet(v:lnum) does a horrible job of indenting: I'd rather have no indentation at all. No prob -- I'll just set

close all folds but current?

2013-06-04 Thread steen
Hey folks, I have a problem that I suspect there is an invocation or possibly a plugin for, but I have been unable to find or figure it out. I work a lot with outline-style documents, where sections are defined by either indentation or occasionally markdown headers (mostly using Vimwiki or TVO),

Re: I'm unable to override indentexpr

2013-06-04 Thread Gary Johnson
On 2013-06-04, Steve Litt wrote: Hi all, I'm using Vim 7.3 in Xubuntu 12.10. When editing my html files, this happens when I set indentexpr?: indentexpr=HtmlIndentGet(v:lnum) That's no good because HtmlIndentGet(v:lnum) does a horrible job of indenting: I'd rather have no indentation

Re: close all folds but current?

2013-06-04 Thread Tim Chase
On 2013-06-04 18:41, steen wrote: What I would like to do is to be able to close all folds in a document except the one I am currently working in. It sounds like zMzO would do what you want: zM closes all folds, then zO (that's a capital oh-for-open, not a zero) opens all folds under the

Re: How to fix h1 id strings?

2013-06-04 Thread David Fishburn
:noremap C-F5 0/id\s*=Entervi:s/\%V /_/gEnter The inobvious trick is the \%V, which allows the substitution to work only on the highlighted text. Otherwise, it operates on the whole line. The preceding map appears to work consistently, as long as you're in normal mode and on the line

Re: I'm unable to override indentexpr

2013-06-04 Thread Steve Litt
On Tue, 4 Jun 2013 19:11:19 -0700 Gary Johnson garyj...@spocom.com wrote: On 2013-06-04, Steve Litt wrote: Hi all, I'm using Vim 7.3 in Xubuntu 12.10. When editing my html files, this happens when I set indentexpr?: indentexpr=HtmlIndentGet(v:lnum) That's no good because

Re: I'm unable to override indentexpr

2013-06-04 Thread Gary Johnson
On 2013-06-04, Steve Litt wrote: Thanks Gary, You're right. I confirmed it by making ~/.vim/after/indent/html.vim, putting in indentexpr=, and running Vim again. I can toggle indentexpr by commenting and uncommenting that line in ~/.vim/after/indent/html.vim, so you're for sure right.