**Jedi Vim: A Highly Customizable Text Editor**
For those who are used to more popular text editors such as Atom, Visual Studio, PyCharm, and others, Jedi Vim offers a similar set of functionality that is easy to use and access. With just a few clicks, you can copy code into your bundle directory and add it to your .vmrc file, making it easy to get started with this powerful text editor.
**Introducing Nerd Tree: A File System Explorer for Vim**
Nerd Tree is another popular plugin for Vim that provides a file system explorer. With its help wanted project, contributing to this open-source project can be a great way to learn new skills and give back to the community. The idea behind Nerd Tree is to provide a visual representation of your file system, making it easy to navigate and compare files. The plugin offers several features, including the ability to launch it with control n (or Ctrl+N), which brings up the file structure in focus, or toggle it with Ctrl + T.
**Using Nerd Tree: A Step-by-Step Guide**
To launch Nerd Tree, simply press control n (or Ctrl+N) and it will bring up your file structure. You can then navigate through the directories using the standard Vim navigation keys. If you want to open a specific directory, you can use the 'dqn' command in Nerd Tree, which brings up the dqn agent directory. The plugin also offers split-screen functionality, making it easy to compare files across different directories.
**IPython Integration: Sending Code from Vim to IPython Terminal**
Another useful plugin for Vim is the IPython integration, which allows you to send code directly from your editor to an IPython terminal. This can be particularly useful for working with Jupyter Notebooks, where persistency is essential. By using this plugin, you can have the benefits of a Vim editor with access to IPython's interactive functionality.
**Tips and Tricks: Working with Nerd Tree and IPython Integration**
For those who prefer to keep their file tree intact, Nerd Tree offers an option to toggle between different layouts. To do so, simply press Ctrl + T to toggle the layout, or use a combination of keys to switch between different views. The IPython integration also requires some setup, but once done correctly, it can be a game-changer for working with Jupyter Notebooks in Vim.
**Conclusion**
Vim is far from being an old-fashioned text editor, and there are many plugins available that offer modern functionality. Whether you're looking to customize your editing experience or try out new features, the plugins mentioned above can help you do so. By exploring these options, you may find that Vim becomes your go-to editor for writing Python code.
**Future Developments**
The author of the video is currently working on setting up the IPython integration plugin and hopes to release it soon. In the meantime, he invites viewers to contribute to Nerd Tree's help wanted project or share their own favorite plugins and tips for using Vim. With its growing community and constant updates, Jedi Vim is definitely an editor worth exploring.
"WEBVTTKind: captionsLanguage: ena while back I switched to Vim as my primary editor now I love Vim for a number of reasons first amongst which it is free and open source software uh so there's nothing going on in the background that I don't particularly like for instance that's not sending Telemetry or data anywhere that I don't know what it's being used for but beyond that it's also very lightweight and so it's something that you can just fire up and run it doesn't have a huge footprint on your system but the downside of that is that out of the box support for more modern features from language editors from Ides is missing so in particular we're missing a couple of things Auto completion is one as well as file tree structures and as it turns out Vim is highly extensible and so some awesome users have created plugins to replicate that exact functionality so today let's take a look very briefly at two powerful plugins to take your Vim Editor to the next level now if you don't know how to install these please see my prior video on this but the basic I idea is that you want to do a git clone this repository into your bundle directory this is assuming you're using the vundel plugin manager and then you need to edit your vim.vim RC file to include the plugin in your plugin load path and then down here I added a few different remaps that we'll get to in a minute for the nerdtree which add is which adds in the um file browsing functionality we'll get to that in a minute but just spoiler alert so the first thing we have is Jedi vim and that's an auto completion type tool and it works quite well let's take a look at just a random uh file I have sitting around some older code to where it's you know not particularly well formatted but we have a number of uh functionalities from that particular plugin so if we hover over something like this dqn agent and press shift K we can actually bring up the dot the documentation from the dqn agent class and so if you have a doc string in here that defines what the class is and what it does it'll be there as well and it also tells you the parameters for your Constructor for that class and if you have any of the improvements around type hinting or default values see another video done on that recently and that will show up here as well it's very very nice and then to get out of it you just press q and it exits right out the other thing it grants you is the power of autocomplete so if you type agent dot it brings in a whole host of things that you can import here so you have the action space the algo all of the functionality from your agent and it even gives you the doc string for that particular function should you have one so on our choose action function it says performs Epsilon greedy action selection using the observation that's just a quick doc string that I wrote to demonstrate here that if you write good well-documented code and you kind of forget what you called something or how it's used Jedi Vim can bring it up for you and show you the exact usage and it has a whole bunch of other functionality that I haven't dealt into just yet but if you press double Escape it'll get rid of it and of course we just delete that line if you take a look at the documentation uh there's a whole bunch of other stuff it does that I haven't covered like completion we just did that go to assignment leader G so I think the leader is the backslash so if you type in backslash G should go to the assignment the definition as well as all kinds of other stuff here you can do renaming and open particular modules so the functionality for Jedi Vim is quite Broad and it really brings at least a somewhat more familiar set of functionality for those of you that are more used to things like atom or Visual Studio or some of the other more popular python editors pycharm Etc it brings all of that to your fingertips in a very very easy way again you just copy the code into your bundle directory and then add in a line to your Dot vmrc and it's very very simple the other one I want to show you is nerd tree apparently they have help wanted so if you want to contribute that's a good open source project for you to play with but the idea is that it's a file system Explorer for the Vim editor as you might expect and uh it's pretty well full featured so if we take a look here and I bring up nerdtree I do it I let me show you my bindings really quickly there's a few different ways of doing it you can launch it with control n that's what I have it mapped to whoops you can bring it up into Focus so if you're in your code editor editor and you want to go back to the nerdtree file structure you press Ctrl F or you can just press Ctrl T to toggle so it's pretty straightforward so if we quit out of there and take a look at our code I can launch it with control n and it brings up my file structure here so we're in main dqn if we check out our dqn agent in this case it gives me a split screen sometimes it doesn't I have to actually figure out this is something I don't immediately understand is when it is um bringing up a split screen and when it is breaking up a full screen so here um it brought up a split screen I have the DQ and agent in the top and I have broken this Let's do let's exit out actually and launch it one more time and then press Ctrl and to Launch and then try doing this again there okay so if you launch a fresh instance then it will just bring up the file of course these split screen functionality is very useful if you're comparing code across different files but in this case we can toggle back up we can toggle it and open up our main file again so if you love the uh type of tree functionality for the file browser you can have that if you like your tree you can keep your tree so to speak so these are just two pretty easy plugins I found that have helped me to get a little bit more Creature Comforts for the Vim editor now one other plug-in that I thought would be awesome but I haven't gotten to work yet but I should make you aware of is this IPython integration and what this allows you to do is send code from your Vim editor straight to the python terminal now why would you want to do this well one of the only real advantages of a Jupiter notebook is persistency so when you launch a jupyter notebook and you type in some code and then execute it it's like an interactive IPython section where it loads that um object into the to into your RAM and then has it persistent so that means that like when you execute a python script uh upon completion of the script all the memory gets returned and all the objects get destroyed sometimes you don't want that if you're importing large amounts of data and you want to play around with it it's very useful to have IPython terminal functionality where you have that persistency in your memory but you have something a little bit more appealing like a Vim editor instead of just the IPython terminal that doesn't have support for any real language editing functionality so this is something I've found this was suggested to me by a viewer of my original video I haven't gotten it to work yet I lack some lead hacker skills that you need apparently eventually I will get it to work work and then um if I find another couple other packages that I find useful for Vim I will bring this as well as those to your attention that's all for today just want to do something very quickly to let you guys know that Vim is far from being um an old fogy or Boomer level editor though it can be that if you want it to be but it does have functionality for the modern more modern functions that you may have become accustomed to from some of your more modern editors so if you're on the fence perhaps these two plugins will help push you over into the land of free and open source software and away from proprietary closed Garden type systems that send off your data to do who knows what with I hope that was helpful for you guys any further packages that you know please leave a comment down below I'm always looking for new functionality new cool stuff to play with don't forget to subscribe and I'll see you in the next video thank youa while back I switched to Vim as my primary editor now I love Vim for a number of reasons first amongst which it is free and open source software uh so there's nothing going on in the background that I don't particularly like for instance that's not sending Telemetry or data anywhere that I don't know what it's being used for but beyond that it's also very lightweight and so it's something that you can just fire up and run it doesn't have a huge footprint on your system but the downside of that is that out of the box support for more modern features from language editors from Ides is missing so in particular we're missing a couple of things Auto completion is one as well as file tree structures and as it turns out Vim is highly extensible and so some awesome users have created plugins to replicate that exact functionality so today let's take a look very briefly at two powerful plugins to take your Vim Editor to the next level now if you don't know how to install these please see my prior video on this but the basic I idea is that you want to do a git clone this repository into your bundle directory this is assuming you're using the vundel plugin manager and then you need to edit your vim.vim RC file to include the plugin in your plugin load path and then down here I added a few different remaps that we'll get to in a minute for the nerdtree which add is which adds in the um file browsing functionality we'll get to that in a minute but just spoiler alert so the first thing we have is Jedi vim and that's an auto completion type tool and it works quite well let's take a look at just a random uh file I have sitting around some older code to where it's you know not particularly well formatted but we have a number of uh functionalities from that particular plugin so if we hover over something like this dqn agent and press shift K we can actually bring up the dot the documentation from the dqn agent class and so if you have a doc string in here that defines what the class is and what it does it'll be there as well and it also tells you the parameters for your Constructor for that class and if you have any of the improvements around type hinting or default values see another video done on that recently and that will show up here as well it's very very nice and then to get out of it you just press q and it exits right out the other thing it grants you is the power of autocomplete so if you type agent dot it brings in a whole host of things that you can import here so you have the action space the algo all of the functionality from your agent and it even gives you the doc string for that particular function should you have one so on our choose action function it says performs Epsilon greedy action selection using the observation that's just a quick doc string that I wrote to demonstrate here that if you write good well-documented code and you kind of forget what you called something or how it's used Jedi Vim can bring it up for you and show you the exact usage and it has a whole bunch of other functionality that I haven't dealt into just yet but if you press double Escape it'll get rid of it and of course we just delete that line if you take a look at the documentation uh there's a whole bunch of other stuff it does that I haven't covered like completion we just did that go to assignment leader G so I think the leader is the backslash so if you type in backslash G should go to the assignment the definition as well as all kinds of other stuff here you can do renaming and open particular modules so the functionality for Jedi Vim is quite Broad and it really brings at least a somewhat more familiar set of functionality for those of you that are more used to things like atom or Visual Studio or some of the other more popular python editors pycharm Etc it brings all of that to your fingertips in a very very easy way again you just copy the code into your bundle directory and then add in a line to your Dot vmrc and it's very very simple the other one I want to show you is nerd tree apparently they have help wanted so if you want to contribute that's a good open source project for you to play with but the idea is that it's a file system Explorer for the Vim editor as you might expect and uh it's pretty well full featured so if we take a look here and I bring up nerdtree I do it I let me show you my bindings really quickly there's a few different ways of doing it you can launch it with control n that's what I have it mapped to whoops you can bring it up into Focus so if you're in your code editor editor and you want to go back to the nerdtree file structure you press Ctrl F or you can just press Ctrl T to toggle so it's pretty straightforward so if we quit out of there and take a look at our code I can launch it with control n and it brings up my file structure here so we're in main dqn if we check out our dqn agent in this case it gives me a split screen sometimes it doesn't I have to actually figure out this is something I don't immediately understand is when it is um bringing up a split screen and when it is breaking up a full screen so here um it brought up a split screen I have the DQ and agent in the top and I have broken this Let's do let's exit out actually and launch it one more time and then press Ctrl and to Launch and then try doing this again there okay so if you launch a fresh instance then it will just bring up the file of course these split screen functionality is very useful if you're comparing code across different files but in this case we can toggle back up we can toggle it and open up our main file again so if you love the uh type of tree functionality for the file browser you can have that if you like your tree you can keep your tree so to speak so these are just two pretty easy plugins I found that have helped me to get a little bit more Creature Comforts for the Vim editor now one other plug-in that I thought would be awesome but I haven't gotten to work yet but I should make you aware of is this IPython integration and what this allows you to do is send code from your Vim editor straight to the python terminal now why would you want to do this well one of the only real advantages of a Jupiter notebook is persistency so when you launch a jupyter notebook and you type in some code and then execute it it's like an interactive IPython section where it loads that um object into the to into your RAM and then has it persistent so that means that like when you execute a python script uh upon completion of the script all the memory gets returned and all the objects get destroyed sometimes you don't want that if you're importing large amounts of data and you want to play around with it it's very useful to have IPython terminal functionality where you have that persistency in your memory but you have something a little bit more appealing like a Vim editor instead of just the IPython terminal that doesn't have support for any real language editing functionality so this is something I've found this was suggested to me by a viewer of my original video I haven't gotten it to work yet I lack some lead hacker skills that you need apparently eventually I will get it to work work and then um if I find another couple other packages that I find useful for Vim I will bring this as well as those to your attention that's all for today just want to do something very quickly to let you guys know that Vim is far from being um an old fogy or Boomer level editor though it can be that if you want it to be but it does have functionality for the modern more modern functions that you may have become accustomed to from some of your more modern editors so if you're on the fence perhaps these two plugins will help push you over into the land of free and open source software and away from proprietary closed Garden type systems that send off your data to do who knows what with I hope that was helpful for you guys any further packages that you know please leave a comment down below I'm always looking for new functionality new cool stuff to play with don't forget to subscribe and I'll see you in the next video thank you\n"