Commits

Gabriel AHTUNE committed 5ede461

Vexplorer bar with F10

  • Participants
  • Parent commits f821995

Comments (0)

Files changed (1)

 nmap <F5> a<C-R>=strftime("%Y-%m-%d %I:%M:%S")<CR><Esc>
 imap <F5> <C-R>=strftime("%Y-%m-%d %I:%M:%S")<CR>
 
+" Toggle Vexplore with <F10> 
+function! ToggleVExplorer()
+  if exists("t:expl_buf_num")
+      let expl_win_num = bufwinnr(t:expl_buf_num)
+      if expl_win_num != -1
+          let cur_win_nr = winnr()
+          exec expl_win_num . 'wincmd w'
+          close
+          exec cur_win_nr . 'wincmd w'
+          unlet t:expl_buf_num
+      else
+          unlet t:expl_buf_num
+      endif
+  else
+      exec '1wincmd w'
+      Vexplore
+      let t:expl_buf_num = bufnr("%")
+  endif
+endfunction
+map <silent> <F10> :call ToggleVExplorer()<CR>
+
+" Hit enter in the file browser to open the selected
+" file with :vsplit to the right of the browser.
+let g:netrw_browse_split = 4
+let g:netrw_altv = 1
+let g:netrw_winsize = 20
+
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Python
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 nnoremap <Leader>cR <plug>VCSRevert
 let VCSCommandDeleteOnHide=1
 
-" git clone https://github.com/scrooloose/nerdtree.git
-nnoremap <F9> :NERDTreeToggle<CR>
-
-
-
+" git clone https://github.com/mbbill/VimExplorer.gi
 
 " Opted
 let g:opted_dir = '~/.opted/v003'