Version 0.9.9
* NEW: Diary. Help in making daily notes. See ':h vimwiki-diary'. Now you can really easy add information into vimwiki that should be sorted out later. * NEW: Tables are redesigned. Syntax is changed. Now they are auto-formattable. You can navigate them with <tab> and <cr> in insert mode. See 'vimwiki-syntax-tables' and 'vimwiki-tables' for more details. * NEW: Keyword STARTED: is added. * NEW: Words TODO:, DONE:, STARTED:, XXX:, FIXME:, FIXED: are highlighed inside headers. * FIX: Export to html external links with 'file://' protocol. Ex: '[file:///home/user1/book.pdf my book]'. * FIX: Menu is corrupted if wiki's path contains spaces. * FIX: Settings 'wrap' and 'linebreak' are removed from ftplugin. Add them into your personal settings file '.vim/after/ftplugin/vimwiki.vim' if needed. * NEW: Headers are highlighted in different colors by default. See ':h g:vimwiki_hl_headers' to turn it off. * FIX: Issue 40: Links with russian subdirs don't work. * NEW: It is now possible to generate HTML files automatically on page save. See ':h vimwiki-option-auto_export'.
This commit is contained in:
		| @@ -9,7 +9,7 @@ let b:did_ftplugin = 1  " Don't load another plugin for this buffer | ||||
|  | ||||
| " UNDO list {{{ | ||||
| " Reset the following options to undo this plugin. | ||||
| let b:undo_ftplugin = "setlocal wrap< linebreak< ". | ||||
| let b:undo_ftplugin = "setlocal ". | ||||
|       \ "suffixesadd< isfname< comments< ". | ||||
|       \ "autowriteall< ". | ||||
|       \ "formatoptions< foldtext< ". | ||||
| @@ -18,8 +18,6 @@ let b:undo_ftplugin = "setlocal wrap< linebreak< ". | ||||
|  | ||||
| " MISC STUFF {{{ | ||||
|  | ||||
| setlocal wrap | ||||
| setlocal linebreak | ||||
| setlocal autowriteall | ||||
| setlocal commentstring=<!--%s--> | ||||
| " MISC }}} | ||||
| @@ -39,9 +37,9 @@ else | ||||
| endif | ||||
| setlocal formatoptions=tnro | ||||
|  | ||||
| inoremap <expr> <CR> vimwiki_lst#insertCR() | ||||
| nnoremap o :call vimwiki_lst#insertOo('o')<CR>a | ||||
| nnoremap O :call vimwiki_lst#insertOo('O')<CR>a | ||||
| inoremap <buffer> <expr> <CR> vimwiki_lst#insertCR() | ||||
| nnoremap <buffer> o :call vimwiki_lst#insertOo('o')<CR>a | ||||
| nnoremap <buffer> O :call vimwiki_lst#insertOo('O')<CR>a | ||||
|  | ||||
| " COMMENTS }}} | ||||
|  | ||||
| @@ -213,6 +211,11 @@ exe 'command! -buffer -nargs=* VimwikiSearch vimgrep <args> '. | ||||
| exe 'command! -buffer -nargs=* VWS vimgrep <args> '. | ||||
|       \ escape(VimwikiGet('path').'**/*'.VimwikiGet('ext'), ' ') | ||||
|  | ||||
| " table commands | ||||
| command! -buffer -nargs=* VimwikiTable call vimwiki_tbl#create(<f-args>) | ||||
| command! -buffer VimwikiTableAlignQ call vimwiki_tbl#align_or_cmd('gqq') | ||||
| command! -buffer VimwikiTableAlignW call vimwiki_tbl#align_or_cmd('gww') | ||||
|  | ||||
| " COMMANDS }}} | ||||
|  | ||||
| " KEYBINDINGS {{{ | ||||
| @@ -284,6 +287,16 @@ noremap <silent><script><buffer> | ||||
|       \ <Plug>VimwikiToggleListItem :VimwikiToggleListItem<CR> | ||||
|  | ||||
|  | ||||
| " Table mappings | ||||
| if g:vimwiki_table_auto_fmt | ||||
|   inoremap <expr> <buffer> <CR> vimwiki_tbl#kbd_cr() | ||||
|   inoremap <expr> <buffer> <Tab> vimwiki_tbl#kbd_tab() | ||||
| endif | ||||
|  | ||||
| nnoremap <buffer> gqq :VimwikiTableAlignQ<CR> | ||||
| nnoremap <buffer> gww :VimwikiTableAlignW<CR> | ||||
|  | ||||
|  | ||||
| " Text objects {{{ | ||||
| omap <silent><buffer> ah :<C-U>call vimwiki#TO_header(0, 0)<CR> | ||||
| vmap <silent><buffer> ah :<C-U>call vimwiki#TO_header(0, 1)<CR> | ||||
| @@ -297,3 +310,13 @@ nmap <silent><buffer> - :call vimwiki#RemoveHeaderLevel()<CR> | ||||
| " }}} | ||||
|  | ||||
| " KEYBINDINGS }}} | ||||
|  | ||||
| " AUTOCOMMANDS {{{ | ||||
| if VimwikiGet('auto_export') | ||||
|   " Automatically generate HTML on page write. | ||||
|   augroup vimwiki | ||||
|     au BufWritePost <buffer> Vimwiki2HTML | ||||
|   augroup END | ||||
| endif | ||||
|  | ||||
| " AUTOCOMMANDS }}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user