sponsor Vim development Vim logo Vim Book Ad

ro-when-swapfound : Open Vim in read-only mode when swapfile is found.

 script karma  Rating 0/0, Downloaded by 929  Comments, bugs, improvements  Vim wiki

created by
omi taku
 
script type
utility
 
description
Open Vim in read-only mode when swapfile is found.

INTRODUCTION
Avoid to display attention dialog,
and open Vim in read-only mode when swapfile is found.

If you want to fix swapfile, and want to display attention dialog,
you do this.

    :ToggleSwapCheck
    :e

See also
Open same file read-only in second Vim
http://vim.wikia.com/wiki/Open_same_file_read-only_in_second_Vim
 
install details
1. copy files to your .vim or vimfiles direcory.
2. helptags to your .vim/doc or vimfiles/doc direcory.

    :helptags $HOME/.vim/doc

    or

    :helptags $HOME/vimfiles/doc

 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-ro-when-swapfound.zip 1.0.1 2011-05-01 7.0 omi taku add vim help.
add ToggleSwapCheck command.
vim-ro-when-swapfound.zip 1.0 2011-05-01 7.0 omi taku Initial upload
ip used for rating: 54.205.116.187

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github