Help getting vimwiki running on Android?

828 views
Skip to first unread message

Eric Weir

unread,
May 1, 2013, 12:30:06 PM5/1/13
to vim...@googlegroups.com

I'm trying to get vim touch running on an Android tablet, primarily to be able to be able to use vimwiki on a tablet. 

Still haven't got thing sorted out yet with vim touch, but even when I do I sense there's going to be some more work getting vimwiki running. E.g., at the moment when I open the index file I do not have hyperlinking.

So if there's anyone out there who might be able to help---I am definitely not a vim guru---I would appreciate it.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

"Uncertainty is an uncomfortable position, 
but certainty is an absurd one."
 
- Voltaire

Vladimir Dikan

unread,
May 2, 2013, 3:54:13 AM5/2/13
to vim...@googlegroups.com
Hello!
Strange, but all my favourite plugins, including vimwiki+Calendar, run fine on VIM Touch (well, maybe with a few unimportant minor issues).
Check if these options are set in .vimrc:
set nocompatible
syntax on
filetype plugin on

Without latter hyperlinking won't work.

среда, 1 мая 2013 г., 20:30:06 UTC+4 пользователь Eric Weir написал:

Eric Weir

unread,
May 2, 2013, 9:36:14 AM5/2/13
to vim...@googlegroups.com

On May 2, 2013, at 3:54 AM, Vladimir Dikan wrote:

Strange, but all my favourite plugins, including vimwiki+Calendar, run fine on VIM Touch (well, maybe with a few unimportant minor issues).

Check if these options are set in .vimrc:

set nocompatible
syntax on
filetype plugin on

Without latter hyperlinking won't work.

Thanks much Vladimir. I have the following:

set no compatible
syntax on
filetype plugin indent on 

I take it the last line covers 'filetype on'. Is that correct?

While I'm at it, how had you define the path to the vimwiki folder? I have:

let g:vimwiki_global_ext = 0
let g:vimwiki_list = [{'path': '/storage/emulated/0/vimwiiki', 'syntax': 'markdown'}]

And last, I'm getting files opening in vim touch as read-only. That may be because I've somehow accidentally abandoned them without writing the file. When I do that shouldn't deleting the swap file take care of the problem? Alternatively, is there a way in android to set the file status for a group of files?

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA

"You keep on learning and learning, and pretty soon
 you learn something no one has learned before." 

- Richard Feynman

Eric Weir

unread,
May 3, 2013, 9:50:14 AM5/3/13
to vim...@googlegroups.com
I can now get the index page and the diary page to open, but hyperlinking and folding on headers is not working.

Except for location of the files, my vimwiki configuration is identical to the one I have for macvim on my laptop.

Any help greatly appreciated.

Thanks,

Eric

Eric Weir

unread,
May 5, 2013, 2:29:56 PM5/5/13
to vim...@googlegroups.com

On May 3, 2013, at 9:50 AM, Eric Weir wrote:

I can now get the index page and the diary page to open, but hyperlinking and folding on headers is not working. 

This is what I have in my .vimrc for vimwiki. 

" ---------------------------------------------- VIMWIKI
"restrict vimwiki operation to only those paths listed in g:vimwiki_list.
let g:vimwiki_global_ext = 0

"set vimwiki syntax to markdown 
let g:vimwiki_list = [{'path': '/storage/emulated/0/vimwiki/', 'syntax': 'markdown'}]

"add wiki as an extent recognized as a markdown file
autocmd BufRead,BufNewFile *.wiki :set ft=markdown

"enable vimwiki folding
let g:vimwiki_folding=1

"convert vimwiki headers to markdown headers
" symmetric: '== title ==' --> asymmetric '## title' for any level of header
nnoremap <Leader>be :%s@^\(\s*\)\(=\+\)\s\+\(.*\)\s\+\2\%(\s*\)$@\=submatch(1).
    \ substitute(submatch(2),'=','#','g').' '.submatch(3)@gc<CR>

Still not getting hyperlinking or folding. Exactly the same configuration works fine with MacVim. 

I have nothing regarding folding elsewhere in my .vimrc. Is there something that's needed?

Help appreciated. 

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
eew...@bellsouth.net

"Human coexistence and social life constitute the good common to us all 
from which and thanks to which all cultural and social goods derive." 

- Zygmunt Bauman

Reply all
Reply to author
Forward
0 new messages