On 13/10/08 16:59, Bobby Impollonia wrote:
> On Oct 13, 10:22 am, Tony Mechelynck<[EMAIL PROTECTED]>
> wrote:
>> On 13/10/08 15:43, Bobby Impollonia wrote:
>>
>>> :verbose set cino?
>>> replies with
>>> cinoptions=(0
>>> Last set from ~/.vimrc
>>> That seems right, but it is still not having any effect.
>> You did this while editing the file where you were expecting it to had
>> an effect, and with that file current (i.e., not only visible but with
>> the visible cursor in it, etc.), right?
>
> Yes. I only had one open window with one buffer and that is where the
> cursor is.
>
> I think you were right in your earlier comment about this relating to
> filetypes.
> If I start vim with
> vim somefile
> where somefile is a new file, my cino setting does seem to be
> respected. However, if I do
> vim a.py
> where a.py is an extant python file, then the setting is not respected
> and I get the default behavior of indentation by 2 * shiftwidth.
>
> This is problematic because the reason I want to get this working is
> specifically for indenting python code.
>
> In both cases, "verbose set cino?" gives the output indicated above
> (and vim also claims cindent is enabled). I can understand that the
> python ft settings could set its own values for cinoptions that are
> clobbering mine, but then shouldn't "verbose set cino?" reflect those
> settings?
Whell, what does ":verbose set cino" say in a python file? Maybe the
equivalent of $VIMRUNTIME/ftplugin/python.vim ? In that case, you can
override it by placing the line
setlocal cino=(0
(possibly together with other option parts) in the file
$HOME/vimfiles/after/ftplugin/python.vim (on Windows) or
$HOME/.vim/after/ftplugin/python.vim (on Unix).
Best regards,
Tony.
--
Crash programs fail because they are based on the theory that, with
nine women pregnant, you can get a baby a month.
-- Wernher von Braun
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---