GithubHelp home page GithubHelp logo

xvezda / vim-readonly Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 14 KB

:eyes: Automatically set readonly option on specific files

Home Page: https://www.vim.org/scripts/script.php?script_id=5896

License: MIT License

Makefile 10.38% Vim Script 89.62%
vim nvim neovim vim-plugins vim-scripts readonly

vim-readonly's Introduction

readonly.vim

Script manager: vishop

Automatically set readonly option on specific files.

This plugin is useful when if you are person like me, who likes to look around internal or package manager managed (i.e. pip, npm, etc.) source codes with vim.

It protects original source code from modifying accidentally by user.

Installation

Using vim-plug:

Plug 'Xvezda/vim-readonly'

or

make install

Usage

g:readonly_automatic is enabled by default.

Use :Readonly to manually enable readonly option, and :Readonly! to disable.

Global options

Flag Description Default
g:readonly_automatic Automatically set readonly when patterns are match 1
g:readonly_paths Set patterns of path to set readonly option ['/usr/bin/lib/', '/usr/local/lib/', '/usr/local/include/']
g:readonly_nodejs Add NodeJs package path to readonly paths 1
g:readonly_python Add python package path to readonly paths 1
g:readonly_check_virtualenv Add python virtualenv path to readonly paths when virtualenv is activated 1

Homepage

https://github.com/Xvezda/vim-readonly

Copyright

Copyright (C) 2020 Xvezda

MIT License

vim-readonly's People

Contributors

xvezda avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rheehot

vim-readonly's Issues

TODOs

  • Add prototype
  • Add :Readonly command
  • Pattern base detection

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.