vimwiki dev

2010-03-10 21:23; Tags:

While I was quite busy at my current ‘doings for a life’, vimwiki has got new developer — Mikhail Trishchenkov. And he does a very good job at hacking vimwiki and fixing its bugs!

We also released 0.9.9 version — I had no time to post about it here.

But you can check the current vimwiki’s dev version (vimwiki-dev-2010-03-10.zip) with the following changes:

  • NEW: Issue 44: Shift-Tab should move cursor to the previous table cell.
  • NEW: Issue 46: Do not htmlize some wiki pages (blacklist). New placeholder is added: %nohtml. See vimwiki-nohtml.
  • FIX: Issue 47: Lists aren’t HTMLized properly.
  • FIX: Issue 49: Table is not HTMLized properly at the end of wiki page.
  • FIX: Issue 50: Inline formatting is not performed in table cells.
  • FIX: Issue 51: Cannot insert ‘-’ (minus) into table cells of the first column.
  • FIX: Issue 52: Table cell width is incorrect when double wide characters are used (ie. Chinese). Check g:vimwiki_CJK_length.
  • NEW: Issue 54: Highlight for placeholders.

Enjoy!

Vimwiki tables

2010-02-09 23:29; Tags:

I have changed table syntax. Now it has a header and thin cell borders.
I have also made tables to be auto-formattable which is kind of good thing.

Use :VimwikiTable command to create default table with 5 columns and 2 rows:

|   |   |   |   |   |
|---+---+---+---+---|
|   |   |   |   |   |

Let’s add some text into first cell:

| First Name  |   |   |   |   |
|---+---+---+---+---|
|   |   |   |   |   |

Whenever you press Tab, Enter or leave Insert mode table is formatted:

| First Name |   |   |   |   |
|------------+---+---+---+---|
|            |   |   |   |   |

You can easily create nice looking text tables, just press Tab and enter new values:

| First Name | Last Name  | Age | City     | e-mail               |
|------------+------------+-----+----------+----------------------|
| Vladislav  | Pokrishkin | 31  | Moscow   | vlad_pok@smail.com   |
| James      | Esfandiary | 27  | Istanbul | esfandiary@tmail.com |

Get vimwiki-dev-2010-02-09.zip to test it out.

Vim, strlen и «Мама мыла раму»

2010-02-07 13:04; Tags:

Несмотря на то, что внутреннее представление строк в виме — UTF-8, функция strlen результат выдает в байтах. И, чтобы подсчитать длину строки «Мама мыла раму», нужно вот такое злобное колдунство:

let str = "Мама мыла раму"
let len = strlen(substitute(str, ".", "x", "g"))

Тупо, каждый символ меняем на однобайтовый "x" (вот substitute замечательно работает с UTF-8) и только после этого считаем длину строки.

«Очень продуманно!»

vimwiki diary — need test

2010-01-31 23:29; Tags:

Diary helps you make daily notes. You can really easy add information into vimwiki that should be sorted out later. Just hit <Leader>w<Leader>w (\w\w) to create new wiki file with name based on current date. The link to this newly created file is added to a diary wiki file.

Usage example with default settings

Consider today is 2010-01-27.

Hit \w\w.

Diary index file ~/vimwiki/diary.wiki is created.

2 following lines are added to ~/vimwiki/diary/diary.wiki:

= Diary =
|| [[2010-01-27]] ||

File ~/vimwiki/diary/2010-01-27.wiki is created and you are ready to add your information there.

On the next day.
Hit \w\w.

New link is added into ‘Diary’ section in ~/vimwiki/diary/diary.wiki:

= Diary =
|| [[2010-01-28]] || [[2010-01-27]] ||

File ~/vimwiki/diary/2010-01-28.wiki is created and you are ready to add your information there.

By default there are 4 links on the line. All links are sorted by their dates and dates are in iso format.

Calendar integration

If you have calendar.vim installed you can use it to create diary notes. Just open calendar with :Calendar and tap Enter on the date. Wiki file would be created in default wiki’s diary.

Download

Get calendar from vim.org and vimwiki with a diary stuff from vimwiki downloads.

Let me know if it doesn’t work for you.

upd
Check vimwiki with new table support. It includes a bit fixed diary stuff.

2010

2010-01-21 00:17; Tags:

Где-то в Башкирии.

vimwiki 0.9.801 is ready to go

00:04; Tags:

What’s new

vimwiki_logo

  • NEW: Rename g:vimwiki_fold_empty_lines to g:vimwiki_fold_trailing_empty_lines.
  • NEW: One can use - along with * to start unordered list item.
  • NEW: List items could be started from the first column. As a result some limitations appeared:
    • a space after *, - or # for a list item is mandatory.
    • g:vimwiki_fold_trailing_empty_lines if set to 0 folds one trailing empty line.
  • NEW: Folding is off by default. Use g:vimwiki_folding to enable it.
  • NEW: Speed up vimwiki’s folding a bit. Should lag a bit less in a long todo lists.
  • NEW: Centered headers. Start header with at least one space to make it html centered.
  • NEW: Change in default css: header’s colors.
  • NEW: Vimwiki is aware of GetLatestVimScripts now.
  • FIX: Use <del> tag instead of custom <span class="strike"> in html.
  • FIX: There are no text styling in htmlized quoted text.
  • FIX: set default value of g:vimwiki_fold_lists to 0 as written in this help.
  • FIX: Issue 33: Folded list items have wrong indentation when ‘tabs’ are used.
  • FIX: Issue 34: vimwiki#subdir got wrong dir when VimwikiGet('path') is a symbolic link. Thanks lilydjwg for the patch.
  • FIX: Issue 28: todo-list auto-indent enhancement. New item should always be unchecked.
  • FIX: Issue 36: Change the name of the :Search command to :VimwikiSearch as it conflicts with MultipleSearch. Alias :VWS is also available.
  • NEW: You can generate ‘Table of contents’ of your wiki page. See :h vimwiki-toc for details.

Get it from vimwiki downloads list.

Welcome to vimwiki 0.9.7

2009-12-09 23:50; Tags:

What’s new

vimwiki-embedded-syntax

  • NEW: Default checkbox symbols are changed to [ ], [.], [o], [O], [X]. You can change them using g:vimwiki_listsyms variable.
  • NEW: Color group names are renamed from wikiBold, wikiItalic, etc to VimwikiBold, VimwikiItalic, etc.
  • NEW: Open external links in a browser. There are default browsers defined in g:vimwiki_browsers list. You can also redefine VimwikiWeblinkHandler function to open weblinks in other programs.
  • NEW: Issue 25: Toggle the states of multiple TODO list items at a time (in VISUAL and in VISUAL LINE modes)
  • NEW: Issue 26: Highlight code snippets in vimwiki’s pre. See :h vimwiki-option-nested_syntaxes. Thanks kriomant.
  • NEW: Issue 27: Automatic garbage deletion from html directory.
  • NEW: Save all open vimwiki buffers before export to html.
  • NEW: Issue 29: Custom :Search command.
  • NEW: Header text objects are now expandable in VISUAL mode. Tap ‘vah’ to select a header. Tap again ‘ah’ to expand selection further. Thanks Andy Wokula.
  • FIX: Folding settings are reset to vim defaults in a new tab (think of \wt) so you cannot hide things in folds.
  • FIX: https links in form of [https://hello.world.com] are not exported into html. Thanks Saurabh Sarpal for the patch.

Get it from vimwiki downloads list.

Память, перемать

2009-11-22 22:03; Tags:

Я правильно понимаю, что если забыл пароль root’а, то это не лечится?

Хорошо хоть sudo работает.

Go бьет Go!

2009-11-11 23:14; Tags:

Совсем недавно работник гугла Брам Мулинар, автор редактора vim, вытащил на свет свой новый язык системного программирования zimbu. Теперь другие гуглоперцы выпускают еще один новый язык, опять же, системного программирования Go.

С ним, кстати, вышло не совсем красиво. Оказывается уже лет 10 6 как существует ЯП под названием «Go!» и его автору не сильно понравился конкурент от гугла. Интересно почему гуглоавторы не проверили название своего детища в гуглопоиске?

Народ кстати ратует о переименовании языка — мол искать неудобно и вообще некрасиво так поступать — и предлагает свои варианты: «Issue 9» один из них. :)

vimwiki 0.9.6 is out

2009-10-22 23:15; Tags:

Changes:

vimwiki096

  • NEW: You can have multiline list items. See :h vimwiki-syntax-lists.
  • NEW: You can ignore newlines in multiline list items when do export to html. See :h g:vimwiki_list_ignore_newline option.
  • NEW: Different checkbox symbols [.], [:], [o] are added. See :h vimwiki-todo-lists.
  • NEW: Now there is no longer syntax of preformatted text that is started by a whitespace.
  • NEW: Blockquotes. See :h vimwiki-syntax-blockquote.
  • NEW: Per wiki folding option (vimwiki-option-folding) is removed. Global :h g:vimwiki_folding and :h g:vimwiki_fold_lists are added.
  • NEW: Due to being quite slow folding of list items is off by default. Use :h g:vimwiki_fold_lists to turn it on.
  • NEW: If you want replace some symbols in a wikifilename use :h g:vimwiki_badsyms option (Andreas Baldeau).
  • FIX: Command :VimwikiToggleListItem doesn’t work for one of the two wikies opened at the same time with different syntaxes.
  • FIX: Command :VimwikiToggleListItem do not switch parent checkboxes if there are non-checkbox list items available.
  • FIX: Issue 24: Link error in html when write [[one.two.three]].
  • FIX: Rename WikiWord to something with a colon (:) does nasty things.
  • FIX: Command :VimwikiToggleListItem do not switch right if there are list items without checkboxes in the list.

Get it from vimwiki downloads list.

Older Posts »

Powered by WordPress