Giter Club home page Giter Club logo

Comments (5)

imLew avatar imLew commented on June 23, 2024

What exactly do you mean by the same line?
If you want the cursor to be on the same line that it was on when you last viewed the file you can use the vim-stay plugin.

from nerdtree.

jtmr05 avatar jtmr05 commented on June 23, 2024

On the NERDTree panel. If you navigate to a certain a file and then open it in a tab, the cursor jumps to the top of the panel.

from nerdtree.

imLew avatar imLew commented on June 23, 2024

What version of vim and nerdtree are you using?
I'm on neovim 0.8.1 and nerdtree 6.10.16 and when I use nerdtree to open a file in a tab with T or t the cursor stays on the file/line (resp. is on the file/line if navigate back to the tab in which I used nerdtree).

from nerdtree.

jtmr05 avatar jtmr05 commented on June 23, 2024

$ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 11 2022 13:50:40)
Included patches: 1-1046
Compiled by Arch Linux

I'm running the most recent version of the plugin as well.

from nerdtree.

imLew avatar imLew commented on June 23, 2024

When I use that version I get a different problem (it actually fills the command line with :call nerdtree#ui_glue#invokeKeyMap("T")<cr> instead of executing that), but once the new tab is opened the cursor stays in its position.

from nerdtree.

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.