From 5616b73081865398e394c5d2e46aabcf428755bd Mon Sep 17 00:00:00 2001 From: Ezra Barrow Date: Wed, 18 Aug 2021 23:57:39 -0400 Subject: [PATCH] update 2021-08-18 Signed-off-by: Ezra Barrow --- .bashrc | 7 +++++++ .vimrc | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.bashrc b/.bashrc index 52330f5..f3371e3 100644 --- a/.bashrc +++ b/.bashrc @@ -204,3 +204,10 @@ if ! shopt -oq posix; then fi # }}} + +if [[ "$TERM" == "xterm-kitty" ]]; then + # neofetch --kitty --source '/home/barrow/Pictures/profile pics/bill cypher banner.png' + alias NEOFETCH='neofetch --kitty --source "/home/barrow/Pictures/neofetch images/"' + neofetch --kitty --source '/home/barrow/Pictures/neofetch images/' + # neofetch --kitty --source '/home/barrow/Pictures/most important images/daily affirmations/' +fi diff --git a/.vimrc b/.vimrc index 1a94c3d..9418b0f 100644 --- a/.vimrc +++ b/.vimrc @@ -40,6 +40,9 @@ " Plug 'severin-lemaignan/vim-minimap' Plug 'dhruvasagar/vim-table-mode' Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} + Plug 'freitass/todo.txt-vim' + Plug 'leafgarland/typescript-vim' + Plug 'peitalin/vim-jsx-typescript' call plug#end() " End Plugins }}} @@ -90,6 +93,7 @@ " replace text with the contents of a register,, " leaving the register intact nnoremap cr :let b:regreplace_buffer = v:register:set opfunc=RegReplaceg@ + vnoremap Cr :let b:regreplace_buffer = v:register:set opfunc=RegReplaceg@ function! RegReplace(type) let l:raddr = b:regreplace_buffer let l:rdata = getreg(l:raddr) @@ -106,6 +110,16 @@ endfunction " End cr{motion} Change/Replace }}} + " SearchSelection {{{ + " TODO: + " nnoremap / :set opfunc=SearchSelectiong@ + " function! SearchSelection(type) + " if a:0 " Invoked from visual mode + " silent exec "normal! `<" . a:type . "`>y" . l:rdata + " endif + " endfunction + " End SearchSelection }}} + " Marker Folds {{{ " Surrounds a given text linewise with commented-out triple {} fold points. " :set foldmethod=marker babeyyyyy @@ -196,6 +210,11 @@ " F10 to clear highlight nnoremap :nohl + " zh and zl scroll the screen one character left and right, + " z and z will scroll it four characters + nnoremap z 4zl + nnoremap z 4zh + " Leader-rh to toggle rust-analyzer type hints nnoremap rh :CocCommand rust-analyzer.toggleInlayHints " Leader-j to join lines with rust-analyzer @@ -441,6 +460,9 @@ " submitted a PR lol -j let g:rustfmt_autosave = 0 + " Make freitass/todo.txt-vim work with nvim + let g:todo_load_python = 1 + " Make emmet trigger with , " The default is but thats the binding to scroll the buffer upwards " without changing ur cursor position @@ -449,6 +471,9 @@ " Make iamcco/markdown-preview.nvim use firefox let g:mkdp_browser='firefox' + " Properly set .tsx filetype + autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescriptreact + " Templates {{{ let g:tmpl_search_paths = ['~/templates']