Friday, July 18, 2014

Re: eVim - easy Vim - How to make it work on Ubuntu?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On July 18, 2014 12:31:36 PM GMT+03:00, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
>On 18/07/14 08:14, Igor Forca wrote:
>> @ZyX, on my Windows machine I have cleaned-up _vimrc all of this
>Windows specifics. For test the only command in my _vimrc is: "set
>nocompatible". I even opened vim and execute command: e $MYVIMRC to see
>if this file really opens up and takes effect and it does. So no
>Windows specific shortcuts in _vimrc and all of described WORKS
>successfully on Vim for Windows. But the same does not on Linux
>(Ubuntu, Suse).
>>
>> @John Little, I tried starting "vim -u NONE -y file" but still no
>success, the only shortcuts working is CTRL+A and CTRL+arrow_keys. The
>same problem on Ubuntu/Suse.
>
>In some Linux distributions, including openSUSE but not necessarily
>limited to it, if you use the Vim packaged by the distribution (not one
>
>you compile yourself from Bram's sources), it sources a "system vimrc"
>even before checking if there is a user vimrc.

According to the documentation it must not read system vimrc with any "-u ...", including "-u NONE". See :h vimrc, the paragraph below table with recommended places for the vimrc.

>
>To see, if this is the case on your Vim, do
>
> :version
>
>Near the middle of the output, you'll see a number of locations for Vim
>
>configuration scripts. One of them (usually the first one) is called
>"system vimrc file". Open that path/file (often, but not necessarily
>always, /etc/vimrc) in the same version of Vim. If it opens a blank
>window with [New File] in the status message at bottom, then you don't
>have a system vimrc for this Vim setup, you can close the window with
>":q!" (including the exclamation mark but of course not the quotes).
>Otherwise you'll see what the distro has decided to dump on you "for
>your own good". Reading that may be quite instructive; it may even
>convince you to use an own-compiled version of Bram's Vim (with the
>executable at /usr/local/bin/vim, the runtime files as a tree starting
>at /usr/local/share/vim/vim73/ and the system vimrc, if any, at
>/usr/local/share/vim/vimrc with no dot or underscore in the filename)
>so
>you won't be a victim of do-gooders who act in your name without your
>say-so.
>
>You can even have your own-compiled Vim and the distro's Vim both
>present on the same system. Since /user/local/bin comes early in the
>$PATH, your own Vim takezs precedence, but the other one can still be
>invoked with a full path, or under another name from a softlink (e.g.
>/bin/vim-suse -> vim). Of course the distro's Vim uses its own system
>vimrc and its own runtime files, but your ~/.vimrc and (if any)
>anything
>under your ~/.vim/
>
>> Exactly the same as with only "vim -y myfile".
>>
>> @John Little, about "bonus question": I can't just close down with
>ALT+F4, I am using headless = no GUI = terminal only server.
>
>I think I've heard there are headless setups where GUIs are possible.
>IIRC it requires "X forwarding" or something.
>
>You can always create a mapping, provided that Vim can get the {lhs},
>for example (untested)
>
> :imap <C-F4> <C-O>:qa<CR>
>
>to use Ctrl-F4 to exit Vim. This will still end in error (and not exit)
>
>if you have modified files, unless 'autowriteall' is set and the
>modified buffers can be saved.
>
>>
>>
>> Additional test:
>> I have now also checked the same on "Ubuntu 14.04 Desktop" and having
>exactly the same problem with both starting commands (vim -y myfile
>and vim -u NONE -y myfile), exactly the same problem. I have also
>added only "set nocompatible" command in .vimrc file.
>>
>
>
>
>Best regards,
>Tony.

-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI1BAEBCgAfBQJTyOepGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvoQoD/43Amd94d/jgHQlGyORgDzUDWmj9Frsgd+jopAnkKLH1+fsHHpDstxA
PApdnkmj72cfEZu+TnSQvBzq8w7zki4CR5YCEsUNCXRiFk1xfWzNbEm4aHHFCs6J
Drrcx+sGfQJfl2uOYdFNnoRK3El/JlXDqyPCgqQ2GlOsbiEalDA4DMzU3R9BW8sN
g14wW1+8Wrug0G2zEDYaCAOV7hGIK1aU/is/Ay9PVI8eipZo2a7jywWmhLck6fpe
lpgljN2aRH/Uq6NhLoFm71p6bqHx4EtFm8yEXdW8mMKVHeQ78kVacWNLZ1J3Wl49
7t9XEHxkMf+EfryeoGbQYiJhAqC7LWgEHg3l87EpPn8pI7x2i6LSjwc4EnQ6C9QL
QPm60VbDhbJh/4Ds6Itf1iUKc1nWa9Dq7Gjf7JVi9IIzRmU7yKY9JGhxCNoQJDLn
XCh5UuXqbS4zO+Jcpybeg19vYe4NZiy3BzAkfcoV5Te12BHlPDdIIRcEnA0/p89J
mi853okrz7KFyE3oKLteRWZtVcHGHBM9XCy4cQY0Yc3HcBVAukCqfl598WTYCCq8
BnSdsau4WutZSu18WA8HxH5A9rmUSqKuHeQ/fkoAQcR7re0X4AkW6uIkjZcdd0O3
ROMjak0TJnh+UtYntjNeNO9VFSWs1CLjscvSzmaCV9FMWeFly+sYiA==
=c56B
-----END PGP SIGNATURE-----

--
--
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/d/optout.

No comments: