Saturday, May 22, 2010

Re: how to disable the folllowing

Thanks that did it


Tony Mechelynck wrote:
> On 22/05/10 10:02, Aryeh M. Friedman wrote:
>>
>>>
>>> Another approach would be to enter this command:
>>> :verbose autocmd BufReadPost *
>>>
>> :verbose autocmd BufReadPost *
>> --- Auto-Commands ---
>> filetypedetect BufRead
>> * if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat | runtime!
>> scripts.vim | endif
>> Last set from /usr/share/vim/vim72/filetype.vim
>> * if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat &&
>> (getline(1) =~ '^#' || getline(
>> 2) =~ '^#' || getline(3) =~ '^#'^I|| getline(4) =~ '^#' || getline(5) =~
>> '^#') | setf conf | endif
>> Last set from /usr/share/vim/vim72/filetype.vim
>> gentoo BufRead
>> * if ! exists("g:leave_my_cursor_position_alone") | if line("'\"") > 0
>> && line ("'\"") <= line(
>> "$") | exe "normal g'\"" | endif | endif
>> Last set from /etc/vim/vimrc
>>
>
> OK, it's the last one in the list, and to change it into a do-nothing
> command, just add the line
>
> let g:leave_my_cursor_position_alone = 1
>
> anywhere in your vimrc.
>
>
> Best regards,
> Tony.

--
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

No comments:

Post a Comment