Compare commits
2 Commits
804cb0a8e5
...
73489becd0
Author | SHA1 | Date |
---|---|---|
Ray Elliott | 73489becd0 | |
Ray Elliott | 0784302e62 |
|
@ -1,4 +1 @@
|
||||||
nmap <buffer> o <CR>
|
setl bufhidden=hide
|
||||||
nmap <buffer><silent> q <CR>:call CloseNetrw(1)<CR>
|
|
||||||
nmap <buffer><silent> Q :call CloseNetrw(0)<CR>
|
|
||||||
setl bufhidden=wipe
|
|
||||||
|
|
|
@ -326,37 +326,12 @@ let g:mta_filetypes = {
|
||||||
" #Netrw {{{
|
" #Netrw {{{
|
||||||
|
|
||||||
let g:netrw_liststyle=3
|
let g:netrw_liststyle=3
|
||||||
let g:netrw_list_hide='^\..*'
|
let g:netrw_list_hide=netrw_gitignore#Hide()
|
||||||
let g:netrw_preview = 1
|
let g:netrw_preview = 1
|
||||||
let g:netrw_winsize = 40
|
let g:netrw_winsize = 40
|
||||||
" let g:netrw_browse_split = 4
|
|
||||||
let g:netrw_altfile = 1
|
let g:netrw_altfile = 1
|
||||||
let g:netrw_mousemaps = 0
|
let g:netrw_mousemaps = 0
|
||||||
|
|
||||||
nnoremap <space>nn :call OpenNetrw()<CR>
|
|
||||||
" nnoremap <space>ee :e .<CR>
|
|
||||||
" nnoremap <space>eq :Rex<CR>
|
|
||||||
|
|
||||||
function! OpenNetrw() abort "{{{
|
|
||||||
Texplore
|
|
||||||
" setl rnu nu
|
|
||||||
endfunction
|
|
||||||
"}}}
|
|
||||||
|
|
||||||
function! CloseNetrw(keep_buffer) abort "{{{
|
|
||||||
if a:keep_buffer == 1
|
|
||||||
let l:current_buffer = bufnr("%")
|
|
||||||
tabclose
|
|
||||||
tabprevious
|
|
||||||
if bufexists(l:current_buffer) > 0
|
|
||||||
execute "buffer" l:current_buffer
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
tabclose
|
|
||||||
tabprevious
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
"}}}
|
|
||||||
"}}}
|
"}}}
|
||||||
" #Obsession{{{
|
" #Obsession{{{
|
||||||
" fork of tpope/vim-obsession
|
" fork of tpope/vim-obsession
|
||||||
|
|
Loading…
Reference in New Issue