![]() ![]() Go :help NERDTree-J and :help NERDTree-K for info. All you need to do is either use vim command :NERDTree or map vim-command with Ctrl+n (or. Now if the cursor is on the last child of a node and you push J/K it will jump down to the last child of the next/prev of its parents siblings that is open and has children. If using a terminal-based version of Vim, open a terminal (or Command. Extended the behaviour of the J/K mappings. But I don't get NERDTree with a pane to the right, I just get what I believe is vim's own file browser. Go :help NERDTree-c-j and :help NERDTree-c-k for info. So I saved that and exited vim and restarted it. I believe it is OK to have it in the augroup since that rus automatically, at least that's the understanding I have. In my ~/.config/nvim/init.vim I have: fun! TrimWhitespace()Īutocmd BufWritePre * :call TrimWhitespace() counts as a file argument, in which case maybe that doesn't apply!? I'm not sure.Īnyways, I went ahead and tried it. That comment sounds like what I want! Unless it thinks the dot. I read that NERDTree can give me that, so I've installed it and I have tried to configure it, but I must be doing something wrong, cause it isn't giving me that workflow that VS Code gave me.Īccording to the NERDTree docs, I need: " Start NERDTree when Vim is started without file arguments.Īutocmd VimEnter * if argc() = 0 & !exists('s:std_in') | NERDTree | endif By default, your /. vimrc file, and then it scans all directories in /.vim for plugins contained in pack//start. and that would open Visual Studio code with all my files in the left pane. 1 I am using Macvim some how about a year ago I got Nerdtree working for file browsing. When you start Vim, it first processes your. Whilst in that directory in the terminal I would run code. I say "OK" because I do run into the usual frustrations that a n00b might run into.īefore vim, I used Visual Studio Code, and let's say I am in my project's directory: /home/jwan/code/bejebeje.admin Using this plugin, users can visually browse complex directory hierarchies, quickly open files for reading or editing, and perform basic file system operations. ![]() I am about a week in, and it has been OK. The NERDTree is a file system explorer for the Vim editor. ![]() I have decided to learn vim and want to give it a go for a month. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |