Comments (3)
I disagree with this. I use the Rooter plugin and an autocommand to automatically cd to the root of the project whenever I open a file which is inside a repository (='project'). This makes it easy to use ctrlp for the entire project, use Ack to search the entire project etc. So while I'm working my CD never changes and always points to the root of my project.
from vim-sensible.
Looking around my vim settings, I realize that probably makes the most sense if you use autochdir
or something similar. I use this:
au BufReadPost * if &ft != 'help' | silent! cd %:p:h | endif
So when I edit files or refresh my buffer (I have nnoremap <S-space> :e<CR>
), then I'm in that file's directory. Opening directories in netrw probably makes me think of opening files (and chdiring to them).
@teranex: My projects have hierarchies so deep that I can't imagine using something like Rooter. I guess that would be useful for Ack (although how do you search within the current subtree?). I use ctrlp's root markers and a search index (codesearch + notgrep). I can see how this default breaks anyone who doesn't auto change their cwd.
from vim-sensible.
Yeah, this is pretty clearly not a good fit.
from vim-sensible.
Related Issues (20)
- Suggestion: set number instead of ruler HOT 1
- Suggestion: remove ruler HOT 2
- No visual selection HOT 2
- set mouse=a HOT 11
- sessionoptions+=localoptions HOT 8
- Revert accidental <C-W> HOT 2
- viewoptions-=options HOT 1
- Installation instructions incorrect HOT 2
- Proposal: let g:netrw_banner = 0 HOT 2
- :set secure and :set nomodeline HOT 1
- sidescrolloff setting causes sudden row offsets in vifm plugin in Neovim on Windows HOT 1
- Scrolloff in terminal HOT 4
- Insert mode <c-w> mapping breaks abbreviations HOT 1
- "set display+=lastline" do nothing if added after "set display=truncate" HOT 1
- SSL certificate HOT 2
- `:redir` causes shell prompt to move when exiting vim HOT 2
- Terminal positions cursor in the bottom left of the screen when exiting Vim HOT 3
- Conflict with gitsessions.vim, syntax highlighting isn't restored HOT 2
- .vimrc:3: parse error near `\n' HOT 1
- Usage of :redir causes ≈10x perf regression when loading vim-sensible HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-sensible.