vimwiki 0.9.5

2009-09-17 10:23; Tags:

What’s new

  • [new] Added g:vimwiki_global_ext to control creation of temporary wikies in dirs that are not listed in g:vimwiki_list.
  • [new] Added g:vimwiki_hl_headers to highlight headers with different predefined colors.
  • [new] Checked [x] items are not highlighted with Comment syntax group by default. Use g:vimwiki_hl_cb_checked to turn it on.
  • [new] Added new syntax for links: [[link address][link description]].
  • [new] Added <C-@> allias of <C-Space> mapping for *nix systems.
  • [new] Added g:vimwiki_camel_case. Set it to 0 if you do not want CamelCased WikiWords to be linkified.
  • [new] Links with g:vimwiki_stripsym (default ‘_’) [[My_Link|Text]] are not highlighted when created.
  • [new] indent/vimwiki.vim is obsolete. If you upgrade from previous versions remove it. It causes wrong list indentation if noexpandtab is set.
  • [new] If tabs and spaces are used to indent list items html export gives error. Thanks Klaus Ethgen for report.
  • [new] Some html export fixes.

Screenshots

let g:vimwiki_hl_headers = 1

Get it from vimwiki downloads list.

Котенок

2009-09-14 10:10; Tags: ,

Сотрудники одной компании Москвы нашли тут котенка с перебитой, местами раздробленной, задней лапой. Отвезли в вет-клинику, где ветеринары эту лапу отняли.

Оказалась — кошка, примерно 2-х месяцев от роду.
Из плюсов:

  • ничем не болеет;
  • глистов нет;
  • ходит в туалет;
  • трехногая — вряд ли будет тащить еду со стола, просто не допрыгнет;
  • красивая.

Вот так она выглядит (почти сразу после операции):

IMG_1692 IMG_1697

Пока проходит послеоперационные процедуры у меня дома, ищем кому бы отдать.

Vimwiki quick reference card

2009-08-26 10:26; Tags:

vimwikiqrc

Thanks to J.A.J. Pater for the vimwiki quick reference card he has made.

It looks really good.

Ла Кумпарса

2009-08-22 15:42; Tags: ,

Я настолько выпал из танго жизни, что про крупнейший танго-фест Москвы, который уже начался, даже и не вспомнил. А ведь в былые времена я считал дни до его начала…

IMG_0032

vimwiki 0.9.4

2009-07-29 10:25; Tags:

What’s new

  • [new] Links with directories: [[dir_name/Link|Text]]. Thanks Jie Wu.
  • [new] Added %root_path% template variable to get relative root dir of path_html. See :h vimwiki-option-html_header.
  • [fix] Indent is incorrect for vim without “float” compile option. Thanks Julian Kooij.
  • [fix] Convert to html doesn’t work right with links like [[foo::bar]].
  • [fix] Rename wikiword doesn’t work right when rename WikiWord to [[WikiWord blablabla]].
  • [fix] Renaming of links with description doesn’t work.
  • [fix] Weblinks with commas are not highlighted.
  • [misc] Some changes in default css file.

Get it from vimwiki downloads list.

Отпуск

2009-06-26 15:59; Tags: ,

Будет скафандр Будут спальники — будут и путешествия.

Отбываю на вокзал Казанский, потом на речку Юрюзань. Плоты, палатки, костры, комары и все такое.

Романтика.

Vim’s zx

2009-06-19 13:08; Tags:

Открыл для себя zx — раскрывает текущий фолдинг («складка», чтоль по русски?), закрывает все остальные.

То бишь при set foldlevel=1, когда раскрыты все классы и закрыты все их методы, я топчу zx, чтобы раскрытым оставался только нужный метод.

vim-zx

Удобно.

Python folding in Vim

2009-05-22 12:59; Tags: ,

There are several ftplugins at www.vim.org that fold python code. I could have used one of them and be happy but the burden of my ex-prog-life leads me to my own wheel to be reinvented.

Brief description

  • Folds are created for:
    • let g:python_fold_block = "all" — all python code blocks;
    • let g:python_fold_block = "def" — defs and classes. [DEFAULT]
  • The way empty lines are folded controlled by g:python_fold_keep_empty_lines variable:
    • let g:python_fold_keep_empty_lines = "all" — keep empty lines between code blocks; [DEFAULT]
    • let g:python_fold_keep_empty_lines = "top" — keep empty lines between top level code blocks;
    • let g:python_fold_keep_empty_lines = "top-one" — keep one empty line between top level code blocks;
    • let g:python_fold_keep_empty_lines = "one" — keep one empty line between code blocks.
  • Comment’s folding:
    • let g:python_fold_comments = 1 — fold comments; [DEFAULT]
    • let g:python_fold_comments = 0 — do not fold comments.
  • Import’s folding:
    • let g:python_fold_imports = 1 — fold imports; [DEFAULT]
    • let g:python_fold_imports = 0 — do not fold imports.
  • Docstring’s folding:
    • let g:python_fold_docstrings = 1 — fold docstrings; [DEFAULT]
    • let g:python_fold_docstrings = 0 — do not fold docstrings.

Screenshots

p_fold_all
let g:python_fold_keep_empty_lines = "all"
p_fold_top
let g:python_fold_keep_empty_lines = "top"
p_fold_top-one
let g:python_fold_keep_empty_lines = "top-one"
p_fold_one
let g:python_fold_keep_empty_lines = "one"

Install

  1. Download python.vim
  2. Place python.vim to
    • Windows: ~/vimfiles/ftplugin/
    • Linux: ~/.vim/ftplugin/

Note: Folding is shiftwidth dependent. If a code indented with 2 spaces make sure shiftwidth is 2 spaces too.

PS: It works for me and it may work for you too despite evil bugs that could live in it. ;)

Йога

2009-05-18 10:44; Tags:

Я долго сопротивлялся, но вода камень точит. Затащили меня на йогу. Йога названа по имени мудрого старца индуса — Айенгара.

Тусклый зал, коврики, фотография мудрого старца в рамочке на самом видном месте — привет мудрому старцу из японии Морихею Уэс(ш)ибе. Я, если честно, думал, что перед началом нам всем скажут ему поклониться, ан нет. Не сказали.

Помимо меня было еще 2 мужика и, примерно, 20 особ женского пола разного возраста.
Делали разное: собака смотрит вверх, воин смотрит вперед, какой-то «магический» треугольник и прочие асаны-шмасаны.

Я — мало-гнущийся, плохо-растягивающийся мужчина. Мне как-то не особо понравилось. И еще 3 раза не особо понравится.

vimwiki 0.9.2, 0.9.2a, 0.9.2b

2009-05-04 12:17; Tags: ,

This weekend new version of vimwiki was released. And right after it a small fix was done this monday — many thanks to (annoying) dos line endings.

upd. .vba file still has dos CRLFs. The problem is in my new deployment script written in python. I will upload new .vba as soon as I am next to my computer.
upd2. Now there is vimwiki 0.9.2b with a couple of fixes and without dos lineendings.

0.9.2b

  • FIX: Installation on Linux doesn’t work. (Dos line endings in Vimball archive file).
  • FIX: Clear out FlexWiki ftplugin’s setup. Now you don’t have to hack filetype.vim to get rid of unexpected ‘:setlocal bomb’ from FlexWiki’s ftplugin.
  • FIX: When write done: it will show another done: in html file.

0.9.2a

  • FIX: Remove dos line endings from some files.

0.9.2

  • NEW: Option ‘folding’ added to turn folding on/off.
  • NEW: Header text object. See :h vimwiki-text-objects.
  • NEW: Add/remove Header levels with ‘=’ and ‘-’. See :h vimwiki_=.
  • NEW: Vimwiki GUI menu to select available wikies. See :h g:vimwiki_menu.
  • NEW: You can specify the name of your css file now. See :h vimwiki-option-css_name.
  • NEW: You can add styles to image links, see :h vimwiki-syntax-links.
  • FIX: History doesn’t work after :VimwikiRenameWord.
  • FIX: Some of wikipedia links are not correctly highlighted. Links with parentheses.
  • MISC: Renamed vimwiki_gtd to vimwiki_lst.

Get it from vimwiki downloads list.

« Newer PostsOlder Posts »

Powered by WordPress