clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove old vim scripts

sspaeti 608acc28 46e5d03c

-94
-94
nvim/lua/old_config.vim
··· 1 - 2 - 3 - "" fzf: ctrl f for find files 4 - "nnoremap <C-p> :Files<CR> 5 - "" nnoremap <C-f> :Rg<CR> "-> now on sf 6 - "nnoremap <leader>fw 7 - " \ :call fzf#vim#files('.', fzf#vim#with_preview({'options': ['--query', expand('<cword>')]}))<cr> 8 - "nnoremap <silent> <Leader>fr :Rg<CR> 9 - "nnoremap <silent> <Leader>fb :Buffers<CR> 10 - "nnoremap <silent> <Leader>f/ :BLines<CR> 11 - "nnoremap <silent> <Leader>fm :Marks<CR> 12 - "nnoremap <silent> <Leader>fc :Commits<CR> 13 - "nnoremap <silent> <Leader>fH :Helptags<CR> 14 - "" find in a specific repo 15 - "command! -bang -nargs=* Rg2 16 - " \ call fzf#vim#grep("rg --column --line-number --no-heading --color=always --smart-case ".<q-args>, 1, {'dir': system('git -C '.expand('%:p:h').' rev-parse --show-toplevel 2> /dev/null')[:-2]}, <bang>0) 17 - "nnoremap <silent> <Leader>fd :Rg2 search folder 18 - 19 - 20 - "" move window with christoomey/vim-tmux-navigator to align tmux and nvim 21 - "let g:tmux_navigator_no_mappings = 1 22 - "" If the tmux window is zoomed, keep it zoomed when moving from Vim to another pane 23 - "let g:tmux_navigator_preserve_zoom = 1 24 - 25 - "noremap <silent> <c-h> :<C-U>TmuxNavigateLeft<cr> 26 - "noremap <silent> <c-j> :<C-U>TmuxNavigateDown<cr> 27 - "noremap <silent> <c-k> :<C-U>TmuxNavigateUp<cr> 28 - "noremap <silent> <c-l> :<C-U>TmuxNavigateRight<cr> 29 - "noremap <silent> <c-t> :<C-U>TmuxNavigatePrevious<cr> 30 - 31 - "" Resize window ABSOLUTE (doing it the same direction wheter in right or left 32 - "" split) 33 - "nnoremap <C-w>l :if winnr() == winnr('$') \| vertical resize -5 \| else \| vertical resize +5 \| endif<CR> 34 - "nnoremap <C-w>h :if winnr() == 1 \| vertical resize -5 \| else \| vertical resize +5 \| endif<CR> 35 - 36 - "" resize window RELATIVE (Haven't found a absoulte way) 37 - "" nnoremap <C-w>k :wincmd k \| if winnr() == winnr('$') \| resize -5 \| else \| resize +5 \| endif<CR> 38 - "" nnoremap <C-w>j :wincmd j \| if winnr() == 1 \| resize +5 \| else \| resize -5 \| endif<CR> 39 - "nnoremap <C-w>k :resize -5<CR> 40 - "nnoremap <C-w>j :resize +5<CR> 41 - 42 - "" Open current directory 43 - "nmap te :tabedit 44 - "nmap <leader>tn :tabnew<Return> 45 - "nmap <S-Tab> :tabprev<Return> 46 - "" Attention, sometimes when you map <Tab> also ctrl+i will change! 47 - ""nmap <Tab> :tabnext<Return> 48 - 49 - ""nnoremap <Tab> :tabnext<Return> 50 - 51 - "" Find files using Telescope command-line sugar. --> replaced by fzf as faster and more options such as search :Lines :Buffer and .gitignore integration 52 - "" nnoremap <leader>ff <cmd>Telescope find_files<cr> 53 - "" nnoremap <leader>fg <cmd>Telescope live_grep<cr> 54 - "" nnoremap <leader>fb <cmd>Telescope buffers<cr> 55 - "" nnoremap <leader>fh <cmd>Telescope help_tags<cr> 56 - "" nnoremap <C-p> <cmd>Telescope find_files<cr> 57 - 58 - ""ranger nvim 59 - "" nnoremap <leader>e :RnvimrToggl<CR> 60 - 61 - "" 62 - "" Replace `$EDITOR` candidate with this command to open the selected file 63 - "let g:rnvimr_edit_cmd = 'drop' 64 - 65 - "" 66 - ""let blame default be on 67 - "let g:blamer_enabled = 1 68 - 69 - "" keeping it centered 70 - "nnoremap n nzzzv 71 - "nnoremap N Nzzzv 72 - "nnoremap J mzJ`z 73 - 74 - "" undo break points 75 - "inoremap , ,<c-g>u 76 - "inoremap . .<c-g>u 77 - "inoremap [ [<c-g>u 78 - "inoremap ( (<c-g>u 79 - 80 - "" jumplist mutations 81 - "nnoremap <expr> k (v:count > 5 ? "m'" . v:count : "") . 'k' 82 - "nnoremap <expr> j (v:count > 5 ? "m'" . v:count : "") . 'j' 83 - "" binding j and k to gj and gk 84 - "nnoremap <expr> j v:count ? (v:count > 5 ? "m'" . v:count : '') . 'j' : 'gj' 85 - "nnoremap <expr> k v:count ? (v:count > 5 ? "m'" . v:count : '') . 'k' : 'gk' 86 - 87 - "" Custom surrounds 88 - "let w:surround_{char2nr('w')} = "```\r```" 89 - "let b:surround_{char2nr('b')} = "**\r**" 90 - 91 - 92 - 93 - 94 - "au! BufWritePost $RC source % " auto source when writing to init.vm alternatively you can run :source $MYVIMRC