nerdtree

How can I show hidden files (starting with period) in NERDTree?

我们两清 提交于 2020-04-07 10:50:11
问题 How can I make NERDTree show files that begin with an . (period)? I have a file named .hgignore in a project directory. If I browse to that directory using NERDTree, the file is not displayed within the tree. I am using gvim on Windows. 回答1: Press I ( Shift + i ) to toggle hidden files in the NERDTree explorer window. To enable this behavior by default, add this line to your .vimrc file: let NERDTreeShowHidden=1 For more detail, access the NERDTree help file :help NERD_tree.txt and search for

How can I show hidden files (starting with period) in NERDTree?

不打扰是莪最后的温柔 提交于 2020-04-07 10:50:06
问题 How can I make NERDTree show files that begin with an . (period)? I have a file named .hgignore in a project directory. If I browse to that directory using NERDTree, the file is not displayed within the tree. I am using gvim on Windows. 回答1: Press I ( Shift + i ) to toggle hidden files in the NERDTree explorer window. To enable this behavior by default, add this line to your .vimrc file: let NERDTreeShowHidden=1 For more detail, access the NERDTree help file :help NERD_tree.txt and search for

Vim NERDTree. How to prohibit duplicate files in tabs?

那年仲夏 提交于 2020-01-17 03:59:29
问题 I use NERDTree with the setting: """" " NerdTree " Bundle 'scrooloose/nerdtree' Bundle 'jistr/vim-nerdtree-tabs' map <F2> :NERDTreeTabsToggle<CR> I can open any number of tabs with the same file by pressing 't'. For example: |foo.txt|bar.txt|foo.txt|foo.txt| How to prevent the opening of duplicate files? I want to open an existing buffer by pressing 't'. 回答1: I found the solution here https://github.com/scrooloose/nerdtree/issues/439 Grab the latest version and stick this in ~/.vim/nerdtree

vim “modifiable” is off

℡╲_俬逩灬. 提交于 2020-01-11 14:51:15
问题 Trying to create a new file with nerd tree. I hit the a key to create a new file and i get the message: E21: Cannot make changes, 'Modifiable' is off I'm using MacVim and Janus (almost out of the box) 回答1: :set ma which is short for :set modifiable will make a buffer modifiable. And :set noma does the opposite. 回答2: I am not familiar with NerdTree but I guess that by typing a into a nerdtree view, it is interpreted as " I want to append something in the nerdtree buffer", and that buffer is

Why does my nerd tree have these odd characters

纵饮孤独 提交于 2020-01-02 03:37:08
问题 Trying to get a nice vim setup going. I'd like to have nerd tree working at it's best, but when i use it it's got these chars in front of each section: ?~V? Looks like this: ?~V? project/$ ?~V? tools/$ 回答1: I had this exact same problem and was able to fix it by uncommenting UTF-8 and leaving ISO-8879-1 commented out in /etc/locale.gen. Then I ran locale-gen and restarted. Also added 'export LANG=en_US.UTF-8' to my .bashrc. Here are the results of my locale settings once it started working:

Vim and Tmux rendering error

瘦欲@ 提交于 2020-01-01 12:09:17
问题 I have a problem when using Tmux and Vim. As you can see on the picture when I use nerdtree (or irssi, actually any terminal app), I have these kind of rendering problems. Every key I type modify the entire terminal rendering. It's only a graphical bug, but it prevents me from working properly. For example, on the screenshot I submitted, nerdtree is opened. The rendering issue comes mostly when the lines are too long (wrapping) or when I have to scroll (down or up). I haven't found a way to

Varying font size in gvim windows

泄露秘密 提交于 2019-12-24 14:34:11
问题 Can I make the font size in my NERDTree window smaller than in all other windows of gvim? Generally I need large font size of 15 but I'd like the folder tree window of NERDTree to be 12 - is this possible to set using code in _vimrc . Currently I have the following simple setting: set guifont=Consolas:h16:cANSI Slightly duplicated question and answered here: Stackoverflow Post Stackoverflow Post 回答1: Not possible bro. Vim uses the same font size for all its windows. This is one (if not the

In VIM how to make NERDTree open at startup nicely when giving args

馋奶兔 提交于 2019-12-24 11:20:00
问题 Let me explain my question, what I want to do is: From the command line calling gvim without arguments, want NERDTree open by default in my /home/user/Documents folder. From the command line calling gvim . want to open NERDTree with the directory set to the actual directory where the command was executed from. BUT I still want NERDTree on the left and a empty buffer in the right (not NERDTree being the only window just like normally happens). From the command line calling gvim /some/path/to

Vim - helptags not working for NERDtree

孤街浪徒 提交于 2019-12-21 07:15:10
问题 I downloaded and manually installed NERDTree from http://www.vim.org/scripts/script.php?script_id=1658 @hits ➜ .vim rvm:(-ruby-1.9.2) ls -laR .: total 28 drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 15:21 . drwxr-xr-x 49 hitsu hitsu 4096 2012-02-27 17:43 .. drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:18 doc drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 nerdtree_plugin -rw-rw-r-- 1 hitsu hitsu 283 2012-02-07 11:05 .netrwhist drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 plugin drwxrwxr-x 2 hitsu

Open file from NERDtree in specific window (or last active)

久未见 提交于 2019-12-20 20:00:39
问题 In VIM I've got 4 windows opened and a NERD tree like this: So, whenever I try to open the file from NERD, it's opened in first buffer (topleft pos). Sometimes in other buffers. Is there a way to open a file in bottom right position ? Mb there are workarounds ? Maybe I can force NERDtree to open file in last active window ? At the moment, it doesn't work this way :( UPD: It looks like the problem is in hidden buffers. When the buffer was opened in one window, and then replaced by another - if