let g:netrw_dirhistmax =10
-let g:netrw_dirhistcnt =8
+let g:netrw_dirhistcnt =1
+let g:netrw_dirhist_1='/home/josuer08/.dotfiles/.config/nvim'
+let g:netrw_dirhist_0='/home/josuer08/.dotfiles/.config/nvim/plugin'
+let g:netrw_dirhist_9='/home/josuer08/Documents/tinysh'
let g:netrw_dirhist_8='/home/josuer08/.dotfiles/.config/nvim/plugin'
let g:netrw_dirhist_7='/home/josuer08/.dotfiles/.config/nvim'
let g:netrw_dirhist_6='/home/josuer08/.dotfiles/.config/nvim/plugin'
let g:netrw_dirhist_4='/home/josuer08/.dotfiles/.config/bashtop'
let g:netrw_dirhist_3='/home/josuer08/.dotfiles/.config'
let g:netrw_dirhist_2='/home/josuer08/.dotfiles/.config/nvim'
-let g:netrw_dirhist_1='/home/josuer08'
"Vex
nnoremap <leader>v :Vex<CR>
nnoremap <leader>h :Sex<CR>
+" this is an auto changer for relative numbers
+:augroup numbertoggle
+: autocmd!
+: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
+: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
+:augroup END
+++ /dev/null
-"NERDTree:
-let g:NERDTreeGitStatusWithFlags = 1
-let g:WebDevIconsUnicodeDecorateFolderNodes = 1
-let g:NERDTreeGitStatusNodeColorization = 1
-let g:NERDTreeColorMapCustom = {
- \ "Staged" : "#0ee375",
- \ "Modified" : "#d9bf91",
- \ "Renamed" : "#51C9FC",
- \ "Untracked" : "#FCE77C",
- \ "Unmerged" : "#FC51E6",
- \ "Dirty" : "#FFBD61",
- \ "Clean" : "#87939A",
- \ "Ignored" : "#808080"
- \ }
-let g:NERDTreeIgnore = ['^node_modules$']
-" sync open file with NERDTree
-" " Check if NERDTree is open or active
-function! IsNERDTreeOpen()
- return exists("t:NERDTreeBufName") && (bufwinnr(t:NERDTreeBufName) != -1)
-endfunction
-" Call NERDTreeFind iff NERDTree is active, current window contains a modifiable
-" file, and we're not in vimdiff
-function! SyncTree()
- if &modifiable && IsNERDTreeOpen() && strlen(expand('%')) > 0 && !&diff
- NERDTreeFind
- wincmd p
- endif
-endfunction
-" Highlight currently open buffer in NERDTree
-autocmd BufEnter * call SyncTree()