From: Josuer08 Date: Sun, 7 Feb 2021 23:41:48 +0000 (-0500) Subject: autocommand for vim relative to normal numbers X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=commitdiff_plain;h=b0e94ca9e5bdc7846267bb51a8311ffb377033f7 autocommand for vim relative to normal numbers --- diff --git a/.config/nvim/.netrwhist b/.config/nvim/.netrwhist index 0333324e..710042c4 100644 --- a/.config/nvim/.netrwhist +++ b/.config/nvim/.netrwhist @@ -1,5 +1,8 @@ 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' @@ -7,4 +10,3 @@ let g:netrw_dirhist_5='/home/josuer08/.dotfiles/.config/nvim' 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' diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index bb56ec97..3cf47324 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -39,3 +39,9 @@ noremap k (v:count == 0 ? 'gk' : 'k') "Vex nnoremap v :Vex nnoremap h :Sex +" 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 diff --git a/.config/nvim/plugin/nerdtree.vim b/.config/nvim/plugin/nerdtree.vim deleted file mode 100644 index cb7839bc..00000000 --- a/.config/nvim/plugin/nerdtree.vim +++ /dev/null @@ -1,30 +0,0 @@ -"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() diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/__init__.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/__init__.cpython-39.pyc index 376e7187..d0cacfa8 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/__init__.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/__init__.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/__main__.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/__main__.cpython-39.pyc index 75cfaf26..3cb69b86 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/__main__.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/__main__.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/colors.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/colors.cpython-39.pyc index 9d43dbb0..6b2690f2 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/colors.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/colors.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/export.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/export.cpython-39.pyc index a7e0e828..a8e7e26f 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/export.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/export.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/image.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/image.cpython-39.pyc index 18630921..16349428 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/image.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/image.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/reload.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/reload.cpython-39.pyc index 7554aacc..a6950d28 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/reload.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/reload.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/sequences.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/sequences.cpython-39.pyc index c8edc77b..a565a734 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/sequences.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/sequences.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/settings.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/settings.cpython-39.pyc index 9dad9a89..82200057 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/settings.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/settings.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/theme.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/theme.cpython-39.pyc index 847cc863..65046aa0 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/theme.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/theme.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/util.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/util.cpython-39.pyc index eb6429c0..76ddda63 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/util.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/util.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/__pycache__/wallpaper.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/__pycache__/wallpaper.cpython-39.pyc index ade4e13d..88629155 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/__pycache__/wallpaper.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/__pycache__/wallpaper.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/__init__.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/__init__.cpython-39.pyc index e4c8a63e..0fab672f 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/__init__.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/__init__.cpython-39.pyc differ diff --git a/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/wal.cpython-39.pyc b/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/wal.cpython-39.pyc index 0bc57451..3a4b7348 100644 Binary files a/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/wal.cpython-39.pyc and b/.local/lib/python3.9/site-packages/pywal/backends/__pycache__/wal.cpython-39.pyc differ