开发者

I want to widen the left viewer in rails.vim

开发者 https://www.devze.com 2023-03-05 02:43 出处:网络
I use rails开发者_运维问答.vim which is great. One thing that annoys me is that every time I open a file, the left window (directory viewer) is set to its default width(24 cols). It\'s too narrow to s

I use rails开发者_运维问答.vim which is great. One thing that annoys me is that every time I open a file, the left window (directory viewer) is set to its default width(24 cols). It's too narrow to see the file path. Even if I widen it, it comes back to its default size when I open a file.

How can I change the default size? Or for better, how can I prevent it from auto-resizing?


I don't think the rails.vim plugin has a directory viewer -- my best guess would be that you're actually seeing NERDTree's directory viewer.

Try adding this to your ~/.vimrc file to set a custom width:

let g:NERDTreeWinSize=40
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号