Git Product home page Git Product logo

Comments (18)

glepnir avatar glepnir commented on June 3, 2024 1

@Cyberlane in allkey.vim please add this . you can use localeader+a to find the currentfile in defx

if dein#tap('defx.nvim')
        nnoremap <silent> <Leader>e
                \ :<C-u>Defx -resume -toggle -buffer-name=tab`tabpagenr()`<CR>
        nnoremap <silent> <LocalLeader>a
		\ :<C-u>Defx -search=`expand('%:p')` `getcwd()`<CR>
endif

from thinkvim.

glepnir avatar glepnir commented on June 3, 2024

use s or i in defx to split or vsplit

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

@taigacute that would open it in a new split or vsplit - but if I want to replace an existing split's content with another file selected in defx?

In NerdTree I had a binding that would open current file in NerdTree, which would move my cursor to that file in NerdTree, and then I could pick another file, open it, and it would replace that split with the new file.

from thinkvim.

emeentag avatar emeentag commented on June 3, 2024

I experienced all these things @Cyberlane and found that it is the best to switch NerdTree. for me it takes too much time for learning to use a simple file tree.

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

@emeentag there was no performance issues in doing this? I really appreciate the massive performance I get with ThinkVim, but if I can go back to NerdTree without any performance concerns, I would be happy to put that into my config.

from thinkvim.

emeentag avatar emeentag commented on June 3, 2024

I did not have any performance issues. We have a huge code base un here and test on it without any performance issues. In a codebase like defx responding sometimes with a delay 1 second. But nerdtree works perfect. Project contains variety of files like java css js less etc...

from thinkvim.

glepnir avatar glepnir commented on June 3, 2024

you can try to uncomment this keymap https://github.com/taigacute/ThinkVim/blob/master/core/plugins/allkey.vim#L181

and use localleader+a, please test it.

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

@taigacute sorry for slow replies, I am at work trying to use VIM to edit code, at the same time as reporting these issues I find :)

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

@emeentag I think I am going to copy your config for my work machine, and run NerdTree just so I can continue to feel productive at the office, thanks!

@taigacute your <LocalLeader> a snippet works great! I will play around a bit more with defx on my personal machines, but for the office machine I am finding this slows me down a bit too often.

from thinkvim.

emeentag avatar emeentag commented on June 3, 2024

@Cyberlane sure feel free to have it. It might not be the best but for me it feels perfect with ThinkVim structure.

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

Closing the issue now, as it seems there is no real issue with ThinkVim, and it is more about how DefX works. The solution is to better understand defx, make more kind bindings, and work more the way defx wants you to work (or use another File Manager).

from thinkvim.

glepnir avatar glepnir commented on June 3, 2024

it depends on you . you can add nerdtree in your local_plugin.yaml . i have nedtree config in plugins folder.

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

@taigacute I tried that, and it did not auto install anything. Perhaps it is cached and not checking if there is new content in that file? I will experiment a bit with it this evening.

from thinkvim.

glepnir avatar glepnir commented on June 3, 2024

ADD these into your local_plugins.yaml

- repo: scrooloose/nerdtree
  on_map: { n: <Plug> }
  trusted: 1
  hook_post_source: source  $VIMPATH/core/plugins/nerdtree.vim
- repo: tiagofumo/vim-nerdtree-syntax-highlight
  hook_add: |
    let g:NERDTreeSyntaxDisableDefaultExtensions = 1
    let g:NERDTreeDisableExactMatchHighlight = 1
    let g:NERDTreeDisablePatternMatchHighlight = 1
    let g:NERDTreeSyntaxEnabledExtensions = ['go', 'py', 'html', 'css', 'jsx', 'js', 'vim','json','md','c','cpp','java','php','groovy']
- { repo: Xuyuanp/nerdtree-git-plugin, on_source: nerdtree }

then add these into your local_settings.vim

if dein#tap('nerdtree')
        "nerdtree
        nnoremap <silent><localleader>e :NERDTreeToggle <CR>
        nnoremap <silent> <localleader>f :NERDTreeFind<CR>
endif

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

image

and

image

It does not seem to be loading the /core/local/local_plugins.yaml file. I am not sure if this is perhaps related to the issue though:

image

Does denite_menu.vim need the local plugin path updated?

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

Strange, it must have been some type of caching issue as it works fine on my machines at home.
I will clear the cache on the machine at the office tomorrow, and hopefully it will be okay.

Thanks again for the help!

from thinkvim.

glepnir avatar glepnir commented on June 3, 2024

i set the auto cache.but i dont sure it works well. please try to recache runtimepath.

from thinkvim.

Cyberlane avatar Cyberlane commented on June 3, 2024

I had to remove the dein cache folder, and then it worked just fine.

from thinkvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.