No 'authochdir' in maemo port of vim[Was: How to copy strings into system's clipboard on n900 (maemo)?]

15 views
Skip to first unread message

Yue Wu

unread,
Nov 11, 2011, 3:20:42 AM11/11/11
to vim_use
On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz <fritzo...@gmail.com>
wrote:

>
>
> On Nov 10, 8:21 am, "Yue Wu" <vano...@gmail.com> wrote:
>> Hello list,
>>
>> Sorry I've posted a same mail on vim_dev then I realized that I've
>> posted
>> in a wrong mailing list.
>>
>> My question is more specific for n900, but I don't know where to get
>> help,
>> so I try to seek it here ;p
>>
>> vim works fine on n900's port, except it doesn't support 'autochdir',
>> I'm
>> very curious about it.
>>
>
> What's not supported about it? It's there but doesn't work? Or it's
> not there at all?

No the option here, output from :version is:

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 3 2010 21:22:27)
Compiled by root@wml0226
Normal version without GUI.
Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms
+byte_offset +cindent +clientserver +clipboard
+cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv -cscope +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search
-farsi +file_in_path +find_in_path +float +folding
-footer +fork() -gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall
+linebreak +lispindent +listcmds +localmap +menu
+mksession +modify_fname +mouse -mouseshape -mouse_dec
-mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang -mzscheme
-netbeans_intg -osfiletype +path_extra -perl +postscript
+printer -profile -python +quickfix +reltime -rightleft
-ruby +scrollbind -signs +smartindent -sniff
+statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo
+termresponse +textobjects +title -toolbar
+user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu
+windows +writebackup +X11 +xfontset -xim -xsmp
+xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: arm-linux-gnueabi-gcc -c -I. -Iproto -DHAVE_CONFIG_H
-Wall -g -O2
Linking: arm-linux-gnueabi-gcc -Wl,-z,defs -L/usr/local/lib -o vim
-lXt -lm -lncurses


>
>> The big question is that, I don't know how to copy strings in system's
>> clipboard, register * and + doesn't work even vim has compiled to
>> support
>> the feature. In normal way, I can make a selection then click xterm's
>> menu
>> then choise copy, but it's too slow. So my question is that if it
>> possible
>> to copy strings directly by vim?
>>
>
> I don't know, I am pretty sure if your Vim is compiled for it, it
> should work. But then, I don't know what n900 refers to. Maybe you
> need an X server running.
>
> You can try some of the suggestions (especially in the comments) here:
>
> http://vim.wikia.com/wiki/Clipboard
>

Sorry it's my fault, register + works fine. Please ignore this issue and
sorry for noise.


--
Regards,
Yue Wu

State Key laboratory of Natural Products and Functions
Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China

Yue Wu

unread,
Nov 11, 2011, 3:38:31 AM11/11/11
to vim_use
On Fri, 11 Nov 2011 16:20:42 +0800, Yue Wu <van...@gmail.com> wrote:

> On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz <fritzo...@gmail.com>
> wrote:
>
>>
>>
>> On Nov 10, 8:21 am, "Yue Wu" <vano...@gmail.com> wrote:
>>> Hello list,
>>>
>>> Sorry I've posted a same mail on vim_dev then I realized that I've
>>> posted
>>> in a wrong mailing list.
>>>
>>> My question is more specific for n900, but I don't know where to get
>>> help,
>>> so I try to seek it here ;p
>>>
>>> vim works fine on n900's port, except it doesn't support 'autochdir',
>>> I'm
>>> very curious about it.
>>>
>>
>> What's not supported about it? It's there but doesn't work? Or it's
>> not there at all?
>
> No the option here, output from :version is:

And I can't find strchars() function here, is it a new feature from 7.3 or
it's missing in the version I'm using? Sorry I'm not a programmer, but I
know a little of scripting in vimscript, so if my question is naive,
please forgive me.

Tony Mechelynck

unread,
Nov 11, 2011, 5:12:23 AM11/11/11
to vim...@googlegroups.com, Yue Wu
On 11/11/11 09:38, Yue Wu wrote:
> On Fri, 11 Nov 2011 16:20:42 +0800, Yue Wu <van...@gmail.com> wrote:
>
>> On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz
>> <fritzo...@gmail.com> wrote:
>>
>>>
>>>
>>> On Nov 10, 8:21 am, "Yue Wu" <vano...@gmail.com> wrote:
>>>> Hello list,
>>>>
>>>> Sorry I've posted a same mail on vim_dev then I realized that I've
>>>> posted
>>>> in a wrong mailing list.
>>>>
>>>> My question is more specific for n900, but I don't know where to get
>>>> help,
>>>> so I try to seek it here ;p
>>>>
>>>> vim works fine on n900's port, except it doesn't support
>>>> 'autochdir', I'm
>>>> very curious about it.
>>>>
>>>
>>> What's not supported about it? It's there but doesn't work? Or it's
>>> not there at all?
>>
>> No the option here, output from :version is:

According to :help 'autochdir' that option can be included or excluded
at compile-time without a feature known by :version or has() to go for
it. To detect its presence you have to use exists('+autochdir') which
will return zero if the option is not both defined and functional.

>
> And I can't find strchars() function here, is it a new feature from 7.3
> or it's missing in the version I'm using? Sorry I'm not a programmer,
> but I know a little of scripting in vimscript, so if my question is
> naive, please forgive me.

[...]

strchars() is new in Vim 7.3 so it's normal that you don't yet have it
on 7.2. In fact it's so new that (through an oversight I suppose) even
in 7.3.353 (where it exists) it hasn't yet been removed from the TODO list.


Best regards,
Tony.
--
Scientists are people who build the Brooklyn Bridge and then buy it.
-- William Buckley

Ben Fritz

unread,
Nov 11, 2011, 11:09:58 AM11/11/11
to vim_use


On Nov 11, 2:20 am, "Yue Wu" <vano...@gmail.com> wrote:
>
> No the option here, output from :version is:
>
> VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan  3 2010 21:22:27)
> Compiled by root@wml0226
> Normal version without GUI.

As Tony points out, 'autochdir' doesn't have a feature listed in
the :version output, nor does it have something testable with the
has() function, you can however test for it with exists().

However, I note the following from :help version7:

> 'autochdir' was only available when compiled with NetBeans and GUI. Now it's
> a separate feature, also available in the "big" version.

Your version of Vim is "Normal without GUI" so I think it's a good bet
that autochdir is not included. Previously you'd need GUI, but since
you have Vim7, you only need "Big" features.

Yue Wu

unread,
Nov 12, 2011, 7:13:27 PM11/12/11
to vim...@googlegroups.com

Thanks for infos :)

>
>
> Best regards,
> Tony.
> --
> Scientists are people who build the Brooklyn Bridge and then buy it.
> -- William Buckley
>

--

Reply all
Reply to author
Forward
0 new messages