Comments (18)
@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.
use s
or i
in defx to split
or vsplit
from thinkvim.
@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.
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.
@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.
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.
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.
@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.
@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.
@Cyberlane sure feel free to have it. It might not be the best but for me it feels perfect with ThinkVim structure.
from thinkvim.
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.
it depends on you . you can add nerdtree in your local_plugin.yaml . i have nedtree config in plugins folder.
from thinkvim.
@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.
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.
and
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:
Does denite_menu.vim
need the local plugin path updated?
from thinkvim.
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.
i set the auto cache.but i dont sure it works well. please try to recache runtimepath.
from thinkvim.
I had to remove the dein cache folder, and then it worked just fine.
from thinkvim.
Related Issues (20)
- [Feature Request] Enhance the keymappings and colorscheme config HOT 51
- ThinkVim installation bug. HOT 6
- :bd closes defx HOT 9
- Can't get select default theme selection when execute install.sh HOT 2
- Show definition and references HOT 2
- glutentags /usr/local HOT 4
- Defx file rename & buffer HOT 1
- What is the `generator` binary you are downloading and executing during install? HOT 1
- coc-Rls not found ! HOT 4
- 行59: if &runtimepath !~# $VIM_PATH HOT 2
- coc-marketplace使用后光标消失 HOT 2
- local mapping not getting sourced HOT 1
- If select NONE theme, will get error.
- The 'hardcoreplayers' user is missed.
- go-nvim', 'vim-buffet', 'rust.vim', 'vim-scala', 'sql.vim' 这些插件都404了 HOT 1
- 編輯代碼補全是python3,界面下邊欄也是顯示python3,但是quckrun執行卻是使用python2,請問在哪裏設置成默認python3執行 HOT 1
- Load Plugins keybinds error:Vim(let):E716: Key not present in Dictionary: b.b = 'Buffer List'
- Failed building wheel for pynvim
- leader + i : can not open the outline of cpp file ,just can open the outline of like yaml and python files
- ThinkVim installation failed!
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 thinkvim.