sponsor Vim development Vim logo Vim Book Ad

ywtxt : Ease vim to write plain documents.

 script karma  Rating 1/1, Downloaded by 1434    Comments, bugs, improvements  Vim wiki

created by
Yue Wu
 
script type
utility
 
description
1  Introduce:
  
   Ease vim to write plain document. It's at the very early stage, with
   some fancy highlights. Any advice is welcome. My email is:

   ywupub AT gmail DOT com

2  Usage:

   Open a new file: test.ywtxt, done.

3  ywtxt file format:
3.1  Heading format:

ywtxt treats lines start with "#  " or "1  "(note the following 2
spaces) as a 1st level heading, "#.#  " or "1.1  "(note the following 2
spaces) as a 2nd level heading, so forth.

Lines started with optional spaces and "%" are treated as a comment
line. Characters between *bold* will get bolded, /italic/ italic,
_underlined_ underlined.

TODO and NOTE in document will get highlighted.
  
"Figure #.  ", "Fig. #.  ", "图 #.  ", "Table #.  ",  "表 #.  ",
"Figure #-#.  ", "Fig. #-#.  ", "图 #-#.  ", "Table #-#.  ",  "表 #-#.  "
will make ywtxt know it's a figure/table, and can generate the figures/tables
of contents for them(note there are 2 spaces following the "#.".

The first line in document with a trailing space is a title:
        This is a title, note the spaces after the dot.  

ywtxt use foldmethod 'marker' for mom document, so everything you can do with vim folding marker also can be implemented with ywtxt.

3.2  Snip support:

Hit <Ctrl-j> then s will prompt you insert a filetype of snip,
you can use <tab> to auto-complete the filetype name. The snip region
will get highlighted according to the syntax of it(if vim supports it).
Warn, if you insert a filetype which vim doesn't support, you will meet
error warning when opening the file.

Note: Trying to insert ywtxt filetype as a snip will make ywtxt's
folding fragible.

3.3  Cross-references

Define a anchor: '[#anchor]' without the prefix '*', then hit <enter> on the
string "*[path/to/file#anchor]" will let you go to the anchor.

Hit <Enter> on the pattern "*[path/to/file#anchor]" in document will let you
go to the file and locate onto the "[#anchor]" position.
For example:
    *[./mini2.ywtxt#string]
Will go to mini2.ywtxt and locate on the anchor [#string].

If you omit the "file" part in the pattern, then ywtxt will try to
locate the position in the current document.
For example:
    *[#string]
Will go to the anchor [#string] in the current document.

If document doesn't contain [#string], ywtxt will warn you and go to normal
string "string".

3.4  More highlightings

There are times, however, when the simple markup isn't flexible enough.
In such cases, You can use Txtfmt (The Vim Highlighter) to add arbitrary
highlighting to my journal entries. The trick is to set 'filetype' equal
to ywtxt.txtfmt instead of ywtxt alone. The following screenshot shows
the result:
    
   http://txtfmt.webs.com/ywtxt.htm
    
The highlighting provided by Txtfmt is similar to "rich text" in a word
processor: foreground/background colors and all combinations of
underline, bold, italic, etc...
    
Txtfmt (The Vim Highlighter):
http://www.vim.org/scripts/script.php?script_id=2208

4  Key maps:
4.1  Key maps for the normal window(mother file window):

      <Tab>               Fold/unfold. Under ^[keyword], echo the corresponding reference name. Under the lines in the bibliography section, jump to the citing point of the document.
      <Enter>             Under ^[keyword] or the lines in the bibliography section, jump into the .bib file and located to the coressponding location.
      \t                  Open a table of contents(toc) window of the current document, it's named as "_<file you're writing>_TOC_" .
      <Ctrl-j>            Prompt for inserting a new (parent/current/child/other level heading)/Non_export2html/Reference/Snip.
      \o                  Insert a current level heading line.
      \O                  Insert a parent level heading line.
      \q                  Close the toc window.
      \<tab>              Jump into the toc window without refreshing.

4.2  key maps for insert mode
      <Ctrl-j>            Prompt for inserting a new (parent/current/child/other level heading)/Non_export2html/Reference/Snip.
      _{                  _{} insert a subscript.
      ^{                  ^{} insert a superscript.
      ^[                  ^[] insert a citation.

4.3  key maps for toc window:

      <Enter>             Jump into the coressponding location of the document.
      <space>             Jump into the coressponding location of the document without leaving the toc window.
      x                   Jump into the coressponding location of the document and close the toc window.
      <Leader><tab>       Jump into the mother file window without changing the position.
      q                   Close the toc window.
      r                   Refresh the toc window.
      Shift_H             Decrease the level of heading.
      Shift_L             Increase the level of heading.
      Shift_J             Move current heading region down.
      Shift_K             Move current heading region up.
      Shift_D             Delete current heading region, and put the content into register z.
      Shift_Y             Yank current heading region, and put the content into register z.
      Shift_S             Auto number the sections mark(#.) in mother file according to the toc's showing.
      w                   Save the mother file.
      u                   Undo the mother file.
      ctrl_R              Redo the mother file.
      Shift_E             Export the ywtxt file to simple html file.
      Shift_X             Outline/un-outline the document. (Not working yet)
      Shift_j             Go to the next line and outline the document. (Not working yet)
      Shift_k             Go to the previous line and outline the document. (Not working yet)
      t                   Toggle the toc type: "Con(t)ents/(F)igures/Ta(b)les/(A)nchors/(L)inks".

5  html export feature:

   In toc window, hit <shift-e> will export .ywtxt to .html file, after
   saved the new openning buffer of the generated html file, you can
   open the html in your browser, or even copy and paste it into your
   office suite to reserve the looking of .ywtxt.

   All strings _{} will become subscript, ^{} superscript. Comment lines
   will be deleted. [/path/to/file.bmp] will display directly in
   html(supports jpg, png, bmp and gif).

   Hit <ctrl-j> then % will insert region mark: "^% BEGIN_NOHTML {{{", "^% END_NOHTML }}}". Regions between "^% BEGIN_NOHTML {{{", "^% END_NOHTML }}}" will not be exported to html. Warn!!!: please don't try to nested the region, otherwise you might break up your document!!!

   Hint: You can export the .ywtxt to .html, then paste it into Microsoft Word, then the levels of heading will abey with the html.

6  Misc vars:
6.1  g:ywtxt_autonumber

Configuring auto-setting the heading number after creating the heading. Note if you feel it makes vim slow down, you's better disable it.
Example: set g:ywtxt_autonumber=0

6.2  g:ywtxt_browserapp

Configure the browser app for viewing the html after exported.
You must make sure browser app is runable.
Example: set g:ywtxt_browserapp = 'opera'

6.3  g:ywtxt_tocwidth

Configuration for toc window's width. Default is the document's 1/4.
Example: set g:ywtxt_tocwidth=20

6.4  g:ywtxt_headings_hl

Specify the colors for headings, you must strictly follow the following pattern:

    \ 'heading level':[['color for dark term', 'color for light term'], ['color for dark gui',], ['color for light gui'],

otherwise, ywtxt will produce error.  Also note that the colors you specify must be ones that vim knows. The setting format is(example is the default setting) is:

    let g:ywtxt_headings_hl = {
                \ '1':[['blue', 'blue'],['LightSkyBlue', 'Blue1']],
                \ '2':[['yellow', 'yellow'],['LightGoldenrod', 'DarkGoldenrod']],
                \ '3':[['cyan', 'cyan'],['Cyan1', 'Purple']],
                \ '4':[['red', 'red'],['red1', 'red']],
                \ '5':[['green', 'green'],['PaleGreen', 'ForestGreen']],
                \ '6':[['magenta', 'magenta'],['Aquamarine', 'CadetBlue']],
                \ '7':[['blue', 'blue'],['LightSteelBlue', 'Orchid']],
                \ '8':[['green', 'green'],['LightSalmon', 'RosyBrown']],
                \ '9':[['blue', 'blue'],['LightSkyBlue', 'Blue1']],
                \ '10':[['yellow', 'yellow'],['LightGoldenrod', 'DarkGoldenrod']],
                \}

You can add more highlighting levels than 10 as you wish.

TIP: You can assign blank value for the default bg/fg color in bold face.

let g:ywtxt_headings_hl = {
            \ '1':[['', ''],['', '']],
            \ '2':[['', ''],['', '']],
            \ '3':[['', ''],['', '']],
            \ '4':[['', ''],['', '']],
            \ '5':[['', ''],['', '']],
            \ '6':[['', ''],['', '']],
            \ '7':[['', ''],['', '']],
            \ '8':[['', ''],['', '']],
            \ '9':[['', ''],['', '']],
            \ '10':[['', ''],['', '']],
            \}

6.5  g:ywtxt_2htmlpre_usercmds, g:ywtxt_2htmlpost_usercmds

You can run cmds before and after the 2html routine, format:

    let g:ywtxt_2htmlpre_usercmds=['vim_cmd1', 'vim_cmd2']
    let g:ywtxt_2htmlpost_usercmds=['vim_cmd3', 'vim_cmd4']

for example,

    let g:ywtxt_2htmlpre_usercmds=['set nonumber']
    let g:ywtxt_2htmlpost_usercmds=['set number']

will make the 2html routine disable the number the lines then back to 'number' option after 2html. However, if you want to do some modification operators, it's very dangrous, use at your own risk!!!
7  Advanced features
7.1  Customize section number style:

For global effect: add a line as the following line in your .vimrc:

    let g:ywtxt_HeadingsPat = '"Chapter #" "Section #" "#." "#.#"'

For buffer effect: Add a line into .ywtxt(Must add it from a start of line, no any space allowed before the '%'):

    % HEADINGS "Chapter #" "Section #" "#." "#.#"

To immune from the global effect for some files: Add a line into .ywtxt(Must add it from a start of line, no any space allowed before the '%'):

    % HEADINGS NONE

Explanation:

If you've defined the headings pattern as the above way, then next time you open the document,  ywtxt will use all(here is "Chapter #" "Section #" "#.") of patterns excluding the last one(here is "#.#") as the very first level headings' pattern, the last one is used for ywtxt to determine how to auto-generate the following deeper levels, in this example, the 1st level heading will be "Chapter #  ", 2nd "Section #  ", 3th "#.  ", 4th '#.# ', 5th '#.#.# ', and so on(Note the 2 spaces after the heading). You can omit the last one be a ywtxt's known pattern, then ywtxt will auto-generate the levels from the last one you've specified with "#.#", "#.#.#", ..., if you want ywtxt to auto-generate with other level, then you have to specify the last one with ywtxt's known heading pattern, e.g.  "#", "#.#", "#.#.#"... Heading is always followed by 2 spaces(but you don't need to specify the space here, ywtxt always auto-inserts them for you.).

7.2  include other files

    Lines starting with '% input /dir/to/file' will include another file when 2html. The feature is very limited at present, no proper heading syntax supporting.

7.3  Advanced .bib file support:

   Warn: It needs you have some basic knowledge on the bib file and its
   format, if you haven't heard of it, please skip this section. ywtxt's
   bib supporting is very limited, now it just fits for me, only works
   for article class.

7.3.1  Usage:

      1) In .ywtxt, you can insert the text like '^[keyword1]' or
      '^[keyword1, 2]' to mean referrig to a single or multiple references.
      "keyword1" means the keyword in .bib file.

      2) Add the following 2 lines into your foo.ywtxt file whereever you like:

      % bibfile = '/path/to/your/bib/file.bib'
      % endbib

      3) In toc window, hit <Shift-b> will generate the Bibliography in
      between the lines of mensioned above for you.

      Warn!!! everything between the above lines will be deleted, you've been warned!

      You can
      
        let g:ywtxt_bib_nump = 0

      to disable the [<number>] ahead of the reference list.

      4) Under the ^[keyword], use <Tab> to show you the reference name,
      under the lines in the Bibliography section, use <Tab> to go to the
      citing location in the document.

      Under the ^[keyword] or lines in the Bibliography section, use
      <Enter> to jump into the .bib file and located under the
      corresponding location.

      After exporting to html, ^[keyword] will change into ^[<num>].

7.3.2  multiple references sections:

You can use multiple references section, just be sure that every
references section has the following two lines:

      % bibfile = '/path/to/your/bib/file.bib'
      % endbib

7.3.3  .bib format:

      It has some restrictions with the bib file: every item must start at a new line, and be embraced by {}, ended with a comma ','. Every entry must be ended at a separated line with '}', following is an example:

      @article{keyword1,
      title = {title},
      author = {author1 and author2},
      journal = {journal},
      volumn = {1},
      number = {1},
      year = {2010},
      pages = {1--2},
      }

      @book{keyword2,
      author = {author1 and author2},
      address = {Nanjing},
      publisher = {publisher},
      year = {2010},
      }

      Customize bib entry type:

      To customize your own types of bib entry, you need to let ywvim know all of them firstly:

          let g:ywtxt_bib_entrytypes = ["article", "book"] :

      Then specify the format for each bib entry that you have specified before, the format is a list: g:ywtxt_bib_entries_{type}, with the items [entry, trailing character] or [entry, heading character, traling character], the default in ywtxt is:

          let g:ywtxt_bib_entries_article = [
                      \["author",". "],
                      \["title",". "],
                      \["journal",", "],
                      \["year",", "],
                      \["volume",""],
                      \["number","(", ") :"],
                      \["pages",". "],
                      \]
          let s:ywtxt_bib_entries_book = [
                      \["author",". "],
                      \["title",". "],
                      \["address",": "],
                      \["publisher",", "],
                      \["year",". "],
                      \]

8  Thanks

   txtbrowser[http://www.vim.org/scripts/script.php?script_id=2899]'s author Guoyooo Ping for the inspiration.

9  Todoes:
   1) Support to bib input's auto-completion and other input
   auto-completions

   2) To integrate vimwiki's table support.
 
install details
Installation: Extract the downloaded script tarball into ~/.vim/, it has following files:

    plugin/ywtxt.vim
    ftplugin/ywtxt.vim
    syntax/ywtxt.vim

Add the following line into ~/.vimrc:

    au BufRead,BufNewFile *.ywtxt set ft=ywtxt

Done. If you don't like the file name's suffix .ywtxt, you can change it to whatever you want.

An Example file mini.ywtxt:
=======> mini.ywtxt start <========
                                  Title

% HEADINGS "Chapter #" "Section #" "#." "#.#"

Chapter 1  Hello

Fig. #.  wfwefe

*[#anchor]

Section 1  Bla
% [#anchor]

Figure #.  wfwefef
Refer to ^[bibkw]
Refer to ^[bibkw3]

Section 2  References
% bibfile = './mini.bib'
[1] Ref Title 1. Yue Wu 1. Ref Jou 1. 2010. 1(2) :3--4.
[2] Ref Title 3. Yue Wu 3. Ref Jou 3. 2010. 1(2) :3--4.
% endbib

Chapter 2  Hello2

Table #.  wfwefef

Section 1  Bla2

Refer to ^[bibkw2]
Refer to ^[bibkw]
Refer to ^[bibkw3]
Refer to the book^[bibkw4].

Section 2  References

% bibfile = './mini.bib'
[1] Ref Title 2. Yue Wu 2. Ref Jou 2. 2010. 1(2) :3--4.
[2] Ref Title 1. Yue Wu 1. Ref Jou 1. 2010. 1(2) :3--4.
[3] Ref Title 3. Yue Wu 3. Ref Jou 3. 2010. 1(2) :3--4.
[4] Yue Wu book. Book1. Pekin: publisher, 2010.
% endbib

% vim:ft=ywtxt:
=======> mini.ywtxt end <========

An Example file mini.bib:
=======> mini.bib start <========
@article{bibkw,
    author = {Yue Wu 1},
    title = {Ref Title 1},
    journal = {Ref Jou 1},
    year = {2010},
    volume = {1},
    number = {2},
    pages = {3--4},
}
@article{bibkw2,
    author = {Yue Wu 2},
    title = {Ref Title 2},
    journal = {Ref Jou 2},
    year = {2010},
    volume = {1},
    number = {2},
    pages = {3--4},
}
@article{bibkw3,
    author = {Yue Wu 3},
    title = {Ref Title 3},
    journal = {Ref Jou 3},
    year = {2010},
    volume = {1},
    number = {2},
    pages = {3--4},
}
@book{bibkw4,
    author = {Yue Wu book},
    title = {Book1},
    address = {Pekin},
    publisher = {publisher},
    year = {2010},
}
=======> mini.bib end <========
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ywtxt_0.18.tar.bz2 0.18 2010-08-03 7.0 Yue Wu 1. Greatly improved: speed issue for large document.

2. Major changed: foldmethod changed from 'syntax' to 'marker' in documnet for speed issue, so you need to append '{{{' and '}}} to lines '^% BEGIN.*$' and '^% END.*$' respectively to fold your old format of ywtxt documents. Method:
:%s/^\(% BEGIN.*\)/\1 {{{/c
:%s/^\(% END.*\)/\1 }}}/c
Sorry for inconvenience!

3. Fixed: bug in wrong location when inserting nohtml region.

4. Changed: heading creation will prompt you to insert heading text.

5. Improved toc generation speed.
ywtxt_0.17.tar.bz2 0.17 2010-07-31 7.0 Yue Wu 1. Added: In toc window, keymap J, K to move a heading region up/down. D/Y to delete/yank a heading region, and put deleted/yanked content into "z.
2. Changed: key map to re-indent heading level in toc window \> -> L; \< -> H
3. Changed: Doesn't fold document's headings for speed issue.
4. Changed: g:ywtxt_autonumber is on by default, heading creation will set section number.
5. Improved: g:ywtxt_headings_hl, now you can assign blank value for the default bg/fg color in bold face.
6. Improved: heading syntax.
7. Fixed: bug in heading creation.
8. Fixed: export2html bug in nohtml region
ywtxt_0.16_1.tar.bz2 0.16_1 2010-05-27 7.0 Yue Wu Added support for non_export2html region "^% BEGIN_NOHTML", "^% END_NOHTML"(keymap: <ctrl-o>%).

Improved the function for switching the types of toc: "Con(t)ents/(F)igures/Ta(b)les/(A)nchors/(L)inks"

Fixed non-working keymap for <space> in toc window.

Fixed reindentation bug with customized headings.

Fixed a heading level bug with the customized heading which contains "#.".
ywtxt_0.16.tar.bz2 0.16 2010-05-21 7.0 Yue Wu 1) Changed the reference region format, please see document for details.

2) Abandoned var: g:ywtxt_biblioname.

3) Added operator to create arbitrary heading level(<Ctrl-j> o).

4) Added syntax for title: The first line in document with a trailing space.

5) Added book type to the default bib type.
[1] Authors. Book name. City: publisher, year.

6) Changed export-to-html routine, now will generate a tmp file firstly(foo.ywtxt -> foo_ywtxt -> foo_ywtxt.html -> rm foo_ywtxt).

7) Added vars: g:ywtxt_2htmlpre_usercmds, g:ywtxt_2htmlpost_usercmds, see doc for details(Section 6.5).

8) Added var: g:ywtxt_bib_nump to set/unset [<number>] in References list when generating references. Default: 1.

9) Added feature '% input file', to include another file when 2html. The feature is very limited, no proper heading syntax supporting.

10) Improved syntax for bold/underlined/italic chars in-between * around the Chinese charactors.

11) Improved the cursor postion in the document after doing operators in toc window.

12) Fixed locating back to the document after finishing exporting to html.

13) Fixed non-working of changing bib keywords to numbers while exporting to html.

14) Fixed a bug of heading recorgnization.

15) Fixed a bug with the function of the bib file finding.

16) Fixed error while hit <tab> on '~'.

17) Fixed error related to <tab> (reference recognization).
ywtxt_0.15_6.tar.bz2 0.15_6 2010-04-23 7.0 Yue Wu 1) Changed, removed and integrated keymaps for creating headings/reference/snip, works both in normal/insert mode(<Ctrl-j>).
2) Added var for configuring auto-setting the heading number after creating a heading(set g:ywtxt_autonumber=1). Note it will be slow.
3) Improved syntax bug for bold/underlined/italic/.
ywtxt_0.15_5.tar.bz2 0.15_5 2010-04-03 7.0 Yue Wu Fixed a bug of location with <space>, thanks Zhang Xin's good catch.
ywtxt_0.15_4.tar.bz2 0.15_4 2010-04-03 7.0 Yue Wu Fixed snip inserting bug which is brought by the last update.
ywtxt_0.15_3.tar.bz2 0.15_3 2010-04-03 7.0 Yue Wu 1) Added syntax for figure/table(figure #-#.; table #-#.)
2) Fixed comment region bug.
3) Removed setting to nowrap in toc window.
4) Removed '[' as a file name charactor, now <C-x><C-f> can complete the file name after '['.
ywtxt_0.15_2.tar.bz2 0.15_2 2010-03-25 7.0 Yue Wu 1) Improved anchor-locating behavior for Chinese and English.
2) Changed highlight for anchor.
3) Added keymap for insert mode: _{ _{}
ywtxt_0.15_1.tar.bz2 0.15_1 2010-03-24 7.0 Yue Wu 1) Added definition for anchor "[#anchor]", please see the section cross-references in document. Thanks for Adrien Pied Piérard's suggestion.
2) Removed keymap in insert mode: _(_{}). Thanks for Adrien Pied Piérard's suggestion.
3) Added syntax highligh for anchor. Thanks for Adrien Pied Piérard's suggestion.
4) Removed textwidth setting.
5) Suppressed new file msg when open toc window.
ywtxt_0.15.tar.bz2 0.15 2010-03-23 7.0 Yue Wu 1) Added var g:ywtxt_browserapp to support opening html directly after export to html, see section "Misc vars" for detail.
2) Added support for Cross-references(*[file#anchor]). Please see the section "ywtxt file format" for details.
ywtxt_0.14_2.tar.bz2 0.14_2 2010-03-22 7.0 Yue Wu 1) Fixed outline/unoutline in toc window.
2) Suppressed the not pattern found warning when exporting to html.
ywtxt_0.14_1.tar.bz2 0.14_1 2010-03-19 7.0 Yue Wu Fixed toc window not refresh after undo/redo
ywtxt_0.14.tar.bz2 0.14 2010-03-19 7.0 Yue Wu 1) Added configurable heading highlighting(g:ywtxt_headings_hl) support. Please see the document for details.
2) Added encoding declaration in syntax/ywtxt.vim and ftplugin/ywtxt.vim, to prevent encoding issue. thanks zhangxin's report.
3) Improved italic, bold, and underlined definition to allow blank spaces in between.
ywtxt_0.13_2.tar.bz2 0.13_2 2010-03-16 7.0 Yue Wu 1) Fixed errors caused by operations on toc window title line. Thanks pengo's catching.
2) Speeded up a little for the toc window opening and jumping.
3) Added syntax: "图 #.  ",  "表 #.  ".
ywtxt_0.13_1.tar.bz2 0.13_1 2010-03-15 7.0 Yue Wu Fixed bug: operations in toc winodow unworking.
ywtxt_0.13.tar.bz2 0.13 2010-03-15 7.0 Yue Wu 1) Added feature: Customized heading pattern can be set globally(g:ywtxt_HeadingsPat), please see the advanced features in the document for details.
2) Improved: The setting for customized heading pattern needn't force user to specify the last pattern to be a ywtxt known pattern.
3) Improved the handling of the title line in toc window.
4) Improved uncontinious section support, thanks for zhangxin's catch.
5) Ignore the unproper user setting for customized section pattern.
6) Fixed a bug in keymap shift-x: Outline/un-outline.
ywtxt_0.12_3.tar.bz2 0.12_3 2010-03-13 7.0 Yue Wu Fixed a bug in customize section pattern which has spaces in name.
ywtxt_0.12_2.tar.bz2 0.12_2 2010-03-13 7.0 Yue Wu Fixed a bug in bib generation.
Fixed a heading syntax bug.
ywtxt_0.12_1.tar.bz2 0.12_1 2010-03-13 7.0 Yue Wu Fixed bug: toc location uncorrectly.
Fixed reindent bug.
ywtxt_0.12.tar.bz2 0.12 2010-03-13 7.0 Yue Wu 1) Added feature to customize section number style, please see the advanced features section in document.

2) Improved snip folding and syntax supportings.

3) Improved the displaying of toc.

4) Improved keymap in toc window: Shift-x fold/unfold all.
Thanks for pengo's suggestion.

5) Added warning before trying to generate references region.
Thanks for pengo's suggestion.

6) Improved the uncontinuous headings handling.
thanks for pengo's catching.

7) Changed: Syntax for figure and table to:
"Figure #.  "
"Fig. #.  "
"Table #.  "

8) Added support on Figure/table of contents. Hit 't' in toc window to toggle
toc's type.

9) Added support for the Multiple reference sections. Please see the
advanced feature in document.
ywtxt_0.11_2.tar.bz2 0.11_2 2010-03-10 7.0 Yue Wu 1) Fixed non-working toc window.
2) Fixed references region identification. Thanks for pengo's catching.
3) Improved toc window intendation. Thanks for pengo's suggestion.
ywtxt_0.11_1.tar.bz2 0.11_1 2010-03-10 7.0 Yue Wu Fixed folding and toc highlighting bugs.
ywtxt_0.11.tar.bz2 0.11 2010-03-10 7.0 Yue Wu 1) NOTE! Imcompatible changed!!!: heading format changed again till 0.10: "1  ", "#.#  "(note the following has 2 spaces!)
How to upgrade:
0.10 user: :call Ywtxt_old2new()<CR> This function will be abandoned in next release.
earlier than 0.10 user: :%s/^\(\%(\%(#\|\d\+\)\.\)*\)\(#\|\d\+\)\.\(\s\)/\1\2\3 /g
2) snip support. <Leader>I inserts snip, auto-completion supported. See the document for details.
3) Added keymaps for toc window: J, K: outline next/previous line.
4) Abandoned indentation feature.
5) Fixed html export bugs. Thanks for pengo's great catch.
6) note and todo strings get highlighted anywhere.
7) Added done(DONE) syntax.
8) Optimized the toc display.
ywtxt_0.10_3.tar.bz2 0.10_3 2010-03-10 7.0 Yue Wu This will be the last 0.10 series verion, please see all 0.10 series's changelog and the updated document to get how to update. Note again! you can use :call Ywtxt_old2new() then ggVG= to reformat the old version, but please care the inproperly reformat!!! Ywtxt_old2new() will be abandoned in next version! You've been warned.
1) Fixed a heading determination error.
ywtxt_0.10_2.tar.bz2 0.10_2 2010-03-10 7.0 Yue Wu This will be the last 0.10 series verion, please see all 0.10 series's changelog and the updated document to get how to update. Note again! you can use :call Ywtxt_old2new() then ggVG= to reformat the old version, but please care the inproperly reformat!!! Ywtxt_old2new() will be abandoned in next version! You've been warned.
1) Improved heading determination
2) Improved Indentation function
ywtxt_0.10_1.tar.bz2 0.10_1 2010-03-09 7.0 Yue Wu Fixed: a serious toc heading bug.
Note!!! Please see the version *0.10*'s changelog and the updated document for detailed changes, otherwise ywtxt will not work properly with the older format in the new version!
ywtxt_0.10.tar.bz2 0.10 2010-03-09 7.0 Yue Wu 1) Uncompatible Changed!: Heading format changed to "#. ", "   #.# ", old user can use :call Ywtxt_old2new() to reformat the old format of ywtxt, note that function Ywtxt_old2new() will abandon in next version.
2) Widened: Comment region definition: Lines starts with optional spaces and % considered as comment.
3) Changed: Delete comment region when export to html.
4) Added: Markup for superscript(^{}) and subscript(_{})
5) Added: imap for _(_{}), ^{(^{}) and ^[(^[])
6) Added: g:ywtxt_tocwidth for configuration of toc window's width. Thanks for pengo's suggestion.
7) Improved: Highlight note and todo strings in headings. Add "注意" in note syntax. Thanks for pengo's suggestion.
8) Added: markup of "[/path/to/local.pic]" (jpg, png, bmp, gif) can be viewed in exporting html directly.
9) Changed: bibliography's name to references.
10) Added: Auto Indent.
11) Improved: toc window cursorline.
12) Improved: reindent func.
ywtxt_0.9.tar.bz2 0.9 2010-03-07 7.0 Yue Wu 1) Added simple html export. Hit <Shift-e> in toc window will export .ywtxt to .html, set the references keyword to number in document.
2) Added keymap in toc window: <Shift-X> will outline the heading in document.
3) Changed definition of keymap <space>: open the heading in document without leaving the toc window.
4) Abandoned the :call Ywtxt_GenBibliography() way to generate bibliography, use <Shift-b> in toc window instead.
5) Improved reindent function.
6) Suppressed the no folding found warning of <tab>.
ywtxt_0.8.tar.bz2 0.8 2010-03-05 7.0 Yue Wu 1) Changed toc window openning from horizotally to vertically.
2) Added syntax for TODO, NOTE.
ywtxt_0.7.tar.bz2 0.7 2010-03-02 7.0 Yue Wu 1) Added support and keymaps for bibliography generation and viewing, please see the advancd feature in the document for details.
2) Improved the header creation funtion.
3) Added syntax for Figure capture.
ywtxt_0.6.tar.bz2 0.6 2010-02-28 7.0 Yue Wu 1) Added feature: auto number the section numbers in file according to the toc, and added key maps in toc window(S, w, <leader><tab>, <C-r>, u) and normal file(<leader><tab>). See the document for details.
2) Added syntax for bold(*b*), underline(_u_) and italic(/i/).
3) Fixed cursor location of toc window.
4) Cleaned some unused vars.
ywtxt_0.5.tar.bz2 0.5 2010-02-27 7.0 Yue Wu 1. Improved the toc refresh.
2. Removed the dangerous saving operation when changing the level of header.
ywtxt_0.4.tar.bz2 0.4 2010-02-27 7.0 Yue Wu Added support for auto-generating numbered sections in toc window.
Fixed unprecisely jumping from toc's bug.
ywtxt_0.3.tar.bz2 0.3 2010-02-27 7.0 Yue Wu 1) Fixed syntax for headers matching bug.
2) Added feature of changing the level of headers with \< and \> in toc window (Warn!: file will get saved!).
3) Added keymap <enter>, x for toc window, see the document for detail.
4) Added syntax for [keywords,keywords], figures(Fig. #.<space>) and tables(Table #).
ywtxt_0.2.tar.bz2 0.2 2010-02-26 7.0 Yue Wu 1) Added highlight for headers(up to 10 levels).
2) Fixed toc generation and cursor location bugs.
3) Remove normal window key maps for toc window.
4) Changed toc window name to the _<file name root>_TOC_
5) Added Function for refreshing the toc window(bind it to r in toc window).
6) Added key map for normal window: \q      Close the toc window.
ywtxt_0.1.tar.bz2 0.1 2010-02-26 7.0 Yue Wu Initial upload
ip used for rating: 54.205.106.111

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo