Spacevim: Question: How to show vimfiler on the left?

Created on 14 Oct 2018  路  9Comments  路  Source: SpaceVim/SpaceVim

I'm so used to always having my project files on the left, it's really tough to switch to looking at my project files on the right.

Is there a way to configure vimfiler to load on the left? I don't care if it's on 2 or 1 but I just prefer to have my files on the left.

I have googled it a bit, but gave up after an hour or so.

Most helpful comment

I didn't express explicitly, sorry.

For setting nerdtree

Adding following to ~/.SpaceVim.d/init.toml is working.

[options]
    sidebar_direction = 'left'

You can see the code:

https://github.com/SpaceVim/SpaceVim/blob/a651a017f635347e90eb37a98503e948f87206f7/autoload/SpaceVim.vim#L485

and

https://github.com/SpaceVim/SpaceVim/blob/7c9a90498b93c1b5875ff39383c49874a29aa64e/config/plugins/nerdtree.vim#L2

For setting vimfiler to left sider of window

You need to add a global variable to your function myspacevim#before() at myspacevim.vim. (doc)

let g:vimfiler_direction = 'topleft'

You can see the code:

https://github.com/SpaceVim/SpaceVim/blob/ee02a29869a7e077723739b843403e9d3c38a811/config/plugins/vimfiler.vim#L51

and

https://github.com/Shougo/vimfiler.vim/blob/e15fdc4b52a3d2e082283362ba041126121739f8/doc/vimfiler.txt#L945

Or, you can use command VimFiler -direction=topleft directly at vim/neovim.

All 9 comments

Adding sidebar_direction = 'left' to your ~/.SpaceVim.d/init.toml.

[options]
    sidebar_direction = 'left'

sadly I can't get this to work using this syntax. No errors are presented but vimfiler is still on the right?

To clarify I created a new file in the ~/.SpaceVim.d/ directory called init.toml and pasted in your syntax verbatim.

I also tried vimfiler_direction = 'left'

And I tried changing 'left' to "left"

It might also be worth mentioning that this isn't mentioned in:
https://github.com/SpaceVim/SpaceVim/blob/master/doc/SpaceVim.txt

If I can get it to work I'll add it to the docs

I didn't express explicitly, sorry.

For setting nerdtree

Adding following to ~/.SpaceVim.d/init.toml is working.

[options]
    sidebar_direction = 'left'

You can see the code:

https://github.com/SpaceVim/SpaceVim/blob/a651a017f635347e90eb37a98503e948f87206f7/autoload/SpaceVim.vim#L485

and

https://github.com/SpaceVim/SpaceVim/blob/7c9a90498b93c1b5875ff39383c49874a29aa64e/config/plugins/nerdtree.vim#L2

For setting vimfiler to left sider of window

You need to add a global variable to your function myspacevim#before() at myspacevim.vim. (doc)

let g:vimfiler_direction = 'topleft'

You can see the code:

https://github.com/SpaceVim/SpaceVim/blob/ee02a29869a7e077723739b843403e9d3c38a811/config/plugins/vimfiler.vim#L51

and

https://github.com/Shougo/vimfiler.vim/blob/e15fdc4b52a3d2e082283362ba041126121739f8/doc/vimfiler.txt#L945

Or, you can use command VimFiler -direction=topleft directly at vim/neovim.

YAY! You fixed it! Thank you so much <3

The issue should be closed.

Thank you.

I saw this answer solved my problem, I was very fortunate to meet my former colleague.
and I config in options(init.toml)

filemanager = "nerdtree"
sidebar_direction = 'left'

Thanks !!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jetm picture jetm  路  5Comments

everettjf picture everettjf  路  5Comments

dzintars picture dzintars  路  3Comments

wsdjeg picture wsdjeg  路  3Comments

eperfect picture eperfect  路  4Comments