Saturday, November 27, 2010

Re: Emacs' Org-mode clone for Vim

Reply to message «Re: Emacs' Org-mode clone for Vim»,
sent 15:58:15 27 November 2010, Saturday
by Marko Mahnič:

> According to vim 7.3 documentation:
> - guioptions is only global
> - listchars is only global
> - list is local to window
> so I assume they will remain unchanged when the current buffer
> changes in a window.
Ups, I thought 'lcs' is local too. There are some additional options which
should be set with 'setlocal': 'formatlistpat', 'cfu' ('completefunc'), 'com',
'fo', 'nowrap' in RunSearch and RunAgenda.

'hlsearch' in SparseTreeRun should be replaced with matchadd(); strange things
go with it in DateEdit.

About guioptions: here is how it is modified:

toplevel:
unset L - left-hand scrollbar for vertical splits
function TagInput:
set v, call confirm, unset v - vertical button layout

If I understand correctly, it does nothing critical, so it should go to user's
vimrc.

In any case, `set v, call confirm, unset v' should be done in the following way:
let savedguioptions=&guioptions
set guioptions+=v
call confirm
let &guioptions=savedguioptions
same for 'more' in TagMenu function.

About listchars: tabs with 'expandtab' won't normally appear and with 'wrap'
option unset, it is very obvious, where line ends, so 'eol' should go to vimrc
too. Waiting for explanation why it was set there.

Conclusion: VimOrganizer plugin was written by author only for himself; I won't
ever try it while it is in the current state.

No comments:

Post a Comment