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.
--
A bather whose clothing was strewed
By breezes that left her quite nude,
        Saw a man come along
        And, unless I'm quite wrong,
You expected this line to be lewd.

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

Reply via email to