Hi guys,
Thanks for some quick replies.
The suggestions on the autocmds were correct. I have worked out it is
the matchparen.vim plugin that is causing the problem. This plugin
ships with the stock Vim 7.2.
It sets various auto commands for highlighting the matching
parentheses. Disabling this plugin fixes my problem.
I haven't worked out *why* this plugin is causing my problem - in
theory it should be operating on the buffer in memory - not talking
back to the remote server. Strange.
For now I will just toggle the plugin on/off as I need to:
function! s:ToggleMatchParen()
if exists("g:loaded_matchparen")
:NoMatchParen
:echo 'MatchParen plugin turned off'
else
:DoMatchParen
:echo 'MatchParen plugin turned on'
endif
endfunction
Regards,
-adam
On Apr 4, 12:25 pm, Tim Chase <[email protected]> wrote:
> > I just don't get why it needs to be so slow for editing remote files.
> > The buffer is in memory so I don't get why it would be slow.
>
> The first thing that occurs to me is the swapfile settings. If
> it's trying to write the swapfile to the same remote network
> location, you'll get horrid lag. Try
>
> :set directory-=.
>
> or
>
> :let &directory=$TEMP
>
> to instruct vim to write the swapfile(s) elsewhere.
> Alternatively, you can shut the swapfile off completely:
>
> :set noswapfile
>
> or reduce the frequency with which it writes to the swapfile:
>
> :set updatecount=10000
>
> One last alternative occurs to me: check the output of
>
> :map
>
> to see if you have any mappings for h/j/k/l and check
>
> :autocmd CursorHold
> :autocmd CursorHoldI
> :autocmd CursorMoved
> :autocmd CursorMovedI
>
> to see if any event is firing that might drag you down.
>
> -tim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---