vim-readonly
:eyes: Automatically set readonly option on specific files (by Xvezda)
vim-gitbranch
Provides the branch name of the current git repository (by itchyny)
vim-readonly | vim-gitbranch | |
---|---|---|
2 | 1 | |
4 | 201 | |
- | - | |
0.0 | 0.0 | |
over 3 years ago | over 2 years ago | |
Vim Script | Vim Script | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-readonly
Posts with mentions or reviews of vim-readonly.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-22.
-
Protect rust source files under ~/.rustup/toolchains/ with NeoVim
_G.protect_rust_files = function() -- protect rust source files under ~/.rustup/toolchains/ -- idea from https://github.com/Xvezda/vim-readonly/blob/master/plugin/readonly.vim -- and https://github.com/rust-lang/rustup/issues/2550 local protect_dirs = { "" .. vim.fn.expand "~" .. "/.rustup/toolchains/", "" .. vim.fn.expand "~" .. "/.cargo/git/", } for _, prefix in ipairs(protect_dirs) do if string.match(vim.fn.expand "%:p", prefix) ~= nil then vim.bo.readonly = true vim.bo.modifiable = false end end end
_G.protect_rust_toolchain = function() -- protect rust source files under ~/.rustup/toolchains/ -- idea from https://github.com/Xvezda/vim-readonly/blob/master/plugin/readonly.vim -- and https://github.com/rust-lang/rustup/issues/2550 local rustup_toolchain_root = "" .. vim.fn.expand "~" .. "/.rustup/toolchains/" if string.match(vim.fn.expand "%:p", rustup_toolchain_root) ~= nil then vim.bo.readonly = true vim.bo.modifiable = false end end vim.api.nvim_command("autocmd BufReadPost *.rs lua protect_rust_toolchain()")
vim-gitbranch
Posts with mentions or reviews of vim-gitbranch.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-17.
-
How to get the git branch in the statusline?
vim-gitbranch was made for this purpose, perhaps you could look at the code if you don't want to install the plugin.
What are some alternatives?
When comparing vim-readonly and vim-gitbranch you can also consider the following projects:
Rustup - The Rust toolchain installer
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
nvim-config - following HEAD (nightly build) neovim lua config, for Linux only, clone it to `~/.config/nvim`
vim-devicons - Adds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
neovim - :star2: Cool & Modularized vim configurations to work like an IDE
vim-startify - :link: The fancy start screen for Vim.
vim-galore - :mortar_board: All things Vim!