mantiz / vim-plugin-dirsettings Goto Github PK
View Code? Open in Web Editor NEWThis plugin allows to define vim configuration settings per directory
This plugin allows to define vim configuration settings per directory
On my configuration, I found out that the BufReadPre
hook causes the PrepareBuffer
function to be called a huge number of time, e.g. when performing vimgrep /something/ **/*.ext
commands on a project with hundreds of files. Each :cnext
would take several seconds.
Commenting this hook seemed to resolve the hog.
Which cases are covered by BufReadPre
and not by the 3 other hooks ?
I often start vim with vim .
so that I can then rely on other means to open my files (e.g. CtrlP or :edit
completion).
The problem is that when I do that, the .virmc
file in the current directory does not get loaded until I actually open a file in the current directory or its sub-directories. Which means that my project-specific wildignore
setting isn't applied, which results in CtrlP listing the thousands of binary files in the build directories.
My current workaround is to open the first file that comes at hand to use just the vim
command.
Is it possible to add a hook to load the local settings when “opening” a folder ?
I assume it actually fails on any case-insensitive file system since tags
and TAGS
are the same file.
test008_tags_loaded:
FAIL (msgout): The message assertion was not satisfied by the output:
--> Message assertion 1 from lines 2-4 did not match in output lines 1-3
"../data/directory-only/tags/empty" $
"../data/directory-only/tags/empty" 0L, 0C$
tags successfull appended$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.