On 05/12/13 22:16, Ajabu Tex wrote:
> Il 05/12/2013 21:58, Tony Mechelynck ha scritto:
>> On 05/12/13 21:00, Ajabu Tex wrote:
>>> Hello.
>>>
>>> On linux mint 16, to open a file with vim in the terminal i wrote a nemo
>>> action that sends to the system the following command:
>>>
>>> gnome-terminal --working-directory=%P -e "vim %F"
>>>
>>> where %P is the insert path of parent (current) directory and %F is the
>>> insert path list of selection.
>>>
>>> The trick seems to work and the selected file is opened, but many lines
>>> in file are badly showed or not showed at all and CTRL-L doesn't work.
>>>
>>> Where can be the problem?
>>>
>>
>> When I try to send this command at the bash prompt in konsole, a
>> gnome-terminal window opens with Vim inside it, but that Vim gets the
>> current directory (my $HOME) as working directory (as shown by :pwd)
>> instead of %P, and (with %F a bare file name, of a file whih exists in
>> %P but not in $HOME) Vim opens an empty buffer of that name.
> The command is correct and is not aimed to use into a terminal or a
> console.. As I said it mainly works. The syntax is that of the nemo
> actions as summarized at
> https://github.com/linuxmint/nemo/blob/master/files/usr/share/nemo/actions/sample.nemo_action
>
>
> A nemo action is a way to add a menu item in the mint file manager to
> execute a certain task.
>
Well, my question remains: why don't you define a nemo action to start
gvim, rather than a nemo action to start a gnome-terminal which would
start Vim?
Your command seemed correct, as shown by "gnome-terminal
--help-terminal-options", yet I couldn't make it work.
Best regards,
Tony.
--
It is much easier to suggest solutions when you know nothing about the
problem.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thursday, December 5, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment