![]() p…….Jump to current nodes parent……………………….|NERDTree-p|.D…….Delete the current bookmark ……………………….|NERDTree-D|.middle-click…….same as |NERDTree-i| for files, same as.double-click…….same as the |NERDTree-o| map.X…….Recursively close all children of the current node…….|NERDTree-X|.x…….Close the current nodes parent………………………|NERDTree-x|.O…….Recursively open the selected directory………………|NERDTree-O|.gs……Same as s, but leave the cursor on the NERDTree……….|NERDTree-gs|.s…….Open selected file in a new vsplit………………….|NERDTree-s|.gi……Same as i, but leave the cursor on the NERDTree……….|NERDTree-gi|.i…….Open selected file in a split window…………………|NERDTree-i|.T…….Same as ‘t’ but keep the focus on the current tab…….|NERDTree-T|.t…….Open selected node/bookmark in a new tab…………….|NERDTree-t|.go……Open selected file, but leave cursor in the NERDTree….|NERDTree-go|.o…….Open files, directories and bookmarks……………….|NERDTree-o|.The second command in this next example provides auto-completion when typing out the bookmark name, both commands have the same result, however: Note: If no bookmark names are passed then this will remove all bookmarks on the current node.Īny previous bookmarks made with NERDTree can be used to start the tree by providing the bookmark name. :ClearBookmarks bookmark_name bookmark_name bookmark_name.If you need to remove a bookmark then use When the NERD Tree window/tab is active you can type the next command in the current buffer, to bookmark a file or directory that is currently highlighted by the tree. To quickly find the current file in the tree: To close the tree in the current tab use: To do the same but commence the tree in a separate directory, specify the directory path like this: To start a tree in the currently opened file’s directory type this into Vim: Include this next line in your ~/.vimrc to stop garbled characters and broken directory traversing in your NERDTree.: It also supports basic filesystem operations. It takes the form of a tree which you manipulate with the keyboard and/or mouse. NERD tree allows you to explore your filesystem in order to easily open files and directories. SuperTab is an auto-completion plugin that allows extra insert mode completion using the key.Īfter typing a few letters of a word that exists within the current open buffer (vim session) SuperTab will list the auto-completion options it. :Tocv: Same as : Toc for symmetry with :Toch and :Tocv SuperTab :Toch Same as :Toc but in an horizontal window. :Toc create a quickfix vertical window navigable table of contents with the headers. To disable the “folding” in markdown files provided by vim-markdown add this line to your ~/.vimrc config file: > git clone git:///plasticboy/vim-markdown.git.To install vim-markdown use these two commands on your system (with Git installed): Then add these two lines to run Pathogen and enable plugins:Īny plugins I use I’ll add details about here in this section. vimrcĪfter returning to the command line continue by opening your ~/.vimrc file for writing: Install Curl first if you don’t have it install it on Debian/Ubuntu with:Ĭheck out Pathogen plugin manager on Github. > curl -LSso ~/.vim/autoload/pathogen.vim.Now in the prompt that’s initiated from the last command retrieve the contents of the two new folders with Curl: $ mkdir -p ~/.vim/autoload ~/.vim/bundle
0 Comments
Leave a Reply. |