For example type :e ., navigate to a file, hit <CR>. Then there is the netrw buffer, created by :e . that we just left, and has done its service. Is there an autocmd to delete it? Naive attempts under Gvim 7.4.282 and Windows 7 64 bit failed.
Hello Charles,
Thank you for your responsiveness. Here are my netrw settings:
let g:netrw_banner = 0
let g:netrw_special_syntax = 1
let g:netrw_dirhistmax=100
let g:netrw_winsize=30
let g:netrw_altv = 1
let g:netrw_altfile=1
let g:netrw_preview=1
let g:netrw_chgwin = winnr()
let g:netrw_retmap = 1
let g:netrw_home = $HOME."/.cache"
let g:netrw_liststyle=3
Now that I discovered let g:netrw_liststyle=2, I prefer to keep it this way and everything works fine for the moment, buffer switching and closing netrw on hitting <CR> on a file.
I will check your newest version as soon as it hits the github mirror, and check back.
Merci aussi
Enno
I forgot the additional netrw settings by Vim-Vinegar. The ones just posted are set after these:
let g:netrw_sort_sequence = '[\/]$,*,\%(' . join(map(split(&suffixes, ','), 'escape(v:val, ".*$~")'), '\|') . '\)[*@]\=$'
let s:escape = 'substitute(escape(v:val, ".$~"), "*", ".*", "g")'
let g:netrw_list_hide =
\ join(map(split(&wildignore, ','), '"^".' . s:escape . '. "$"'), ',') . ',^\.\.\=/\=$' .
\ (get(g:, 'netrw_list_hide', '')[-strlen(s:dotfiles)-1:-1] ==# s:dotfiles ? ','.s:dotfiles : '')