[Vim-latex-cvs] SF.net SVN: vim-latex:[1080] trunk/vimfiles/plugin/remoteOpen.vim
Brought to you by:
srinathava,
tmaas
From: <tm...@us...> - 2010-01-26 22:02:42
|
Revision: 1080 http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1080&view=rev Author: tmaas Date: 2010-01-26 22:02:34 +0000 (Tue, 26 Jan 2010) Log Message: ----------- redefine RemoteOpen, RemoteInsert, if they exist Description: Fix error message on double loading If the file plugin/remoteOpen.vim is loaded twice by vim (e.g. at both local and system-wide installation), errors about redefined commands are shown. This patch should fix this. Author: Johann Felix Soden <jo...@gm...> Bug-Debian: http://bugs.debian.org/444426 Modified Paths: -------------- trunk/vimfiles/plugin/remoteOpen.vim Modified: trunk/vimfiles/plugin/remoteOpen.vim =================================================================== --- trunk/vimfiles/plugin/remoteOpen.vim 2009-12-30 13:00:26 UTC (rev 1079) +++ trunk/vimfiles/plugin/remoteOpen.vim 2010-01-26 22:02:34 UTC (rev 1080) @@ -30,8 +30,8 @@ " opens in the present session. " Enclose <args> in single quotes so it can be passed as a function argument. -com -nargs=1 RemoteOpen :call RemoteOpen('<args>') -com -nargs=? RemoteInsert :call RemoteInsert('<args>') +com! -nargs=1 RemoteOpen :call RemoteOpen('<args>') +com! -nargs=? RemoteInsert :call RemoteInsert('<args>') " RemoteOpen: open a file remotely (if possible) {{{ " Description: checks all open vim windows to see if this file has been opened This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |