this repo has no description
1
fork

Configure Feed

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

Extract vsearch to hauleth/sad.vim

+36 -85
+1 -1
git/config
··· 44 44 [fetch] 45 45 prune = true 46 46 [help] 47 - autocorrect = 1 47 + autocorrect = 5 48 48 49 49 # Automatically sign all tags and commits 50 50 [tag]
+12
nvim/after/ftplugin/eelixir.vim
··· 1 + if !exists('b:surround_45') 2 + let b:surround_45 = "<% \r %>" 3 + endif 4 + if !exists('b:surround_61') 5 + let b:surround_61 = "<%= \r %>" 6 + endif 7 + if !exists('b:surround_35') 8 + let b:surround_35 = "<%# \r %>" 9 + endif 10 + if !exists('b:surround_5') 11 + let b:surround_5 = "<% \r %>\n<% end %>" 12 + endif
+12
nvim/after/ftplugin/eruby.vim
··· 1 + if !exists('b:surround_45') 2 + let b:surround_45 = "<% \r %>" 3 + endif 4 + if !exists('b:surround_61') 5 + let b:surround_61 = "<%= \r %>" 6 + endif 7 + if !exists('b:surround_35') 8 + let b:surround_35 = "<%# \r %>" 9 + endif 10 + if !exists('b:surround_5') 11 + let b:surround_5 = "<% \r %>\n<% end %>" 12 + endif
+9 -4
nvim/init.vim
··· 67 67 Plug 'junegunn/limelight.vim' 68 68 Plug 'kana/vim-niceblock' 69 69 Plug 'moll/vim-bbye' 70 + Plug '/Users/hauleth/Workspace/hauleth/sad.vim' 70 71 71 72 call plug#end() 72 73 " }}} ··· 85 86 set conceallevel=2 86 87 87 88 " Show current mode down the bottom 88 - set showmode showcmd 89 + set noshowmode showcmd 89 90 90 91 " Shorten interruptive command output 91 92 set shortmess=atI ··· 178 179 func! Close() 179 180 let l:bufcount = len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) 180 181 182 + update 183 + 181 184 if l:bufcount == 1 182 - xit 185 + quit 186 + elseif winnr('$') != 1 187 + bdelete 183 188 else 184 - update | Bdelete 189 + Bdelete 185 190 endif 186 191 endfunc 187 - nnoremap ZZ :call Close()<CR> 192 + nnoremap <silent> ZZ :call Close()<CR> 188 193 nnoremap ZS :wa<CR> 189 194 nnoremap ZA :qa<CR> 190 195 nnoremap ZX :cq<CR>
+2 -2
nvim/plugin/git.vim
··· 1 1 nnoremap U <nop> 2 2 nnoremap Us :<C-u>Gstatus<CR> 3 - nnoremap Up :<C-u>Git push<CR> 3 + nnoremap Up :<C-u>Gpush<CR> 4 4 nnoremap Ud :<C-u>Gdiff<CR> 5 5 nnoremap UB :<C-u>Gblame<CR> 6 6 nnoremap Uc :<C-u>Gcommit<CR> 7 7 nnoremap Um :<C-u>Gmerge<CR> 8 - nnoremap Uu :<C-u>Git pull --all<CR> 8 + nnoremap Uu :<C-u>Gpull --all<CR> 9 9 nnoremap Uf :<C-u>GitFiles<CR> 10 10 nnoremap Ul :<C-u>GV<CR> 11 11 nnoremap UL :<C-u>GV!<CR>
-78
nvim/plugin/vsearch.vim
··· 1 - " vsearch.vim - simplify visual search 2 - " Maintainer: Łukasz Niemier <http://lukasz.niemier.pl> 3 - 4 - scriptencoding utf-8 5 - 6 - if exists('g:loaded_vsearch') || v:version < 700 || &cp 7 - finish 8 - endif 9 - let g:loaded_vsearch = 1 10 - let s:save_cpo = &cpo 11 - set cpo&vim 12 - 13 - function! s:VSetSearch(type, ...) 14 - let l:temp = @@ 15 - if a:0 16 - silent exe 'norm! gvy' 17 - elseif a:type ==# 'line' 18 - silent exe "normal! '[V']y" 19 - else 20 - silent exe 'normal! `[v`]y' 21 - endif 22 - 23 - let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g') 24 - call histadd('/', substitute(@/, '[?/]', '\="\\%d".char2nr(submatch(0))', 'g')) 25 - let @@ = l:temp 26 - endfunction 27 - 28 - function! s:VSearchAndReplaceFw(type, ...) 29 - let l:temp = @@ 30 - if a:0 31 - silent exe 'norm! gvy' 32 - elseif a:type ==# 'line' 33 - silent exe "normal! '[V']y" 34 - else 35 - silent exe 'normal! `[v`]y' 36 - endif 37 - 38 - let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g') 39 - call histadd('/', substitute(@/, '[?/]', '\="\\%d".char2nr(submatch(0))', 'g')) 40 - call feedkeys('cgn', 'n') 41 - let @@ = l:temp 42 - endfunction 43 - 44 - function! s:VSearchAndReplaceBc(type, ...) 45 - let l:temp = @@ 46 - if a:0 47 - silent exe 'norm! gvy' 48 - elseif a:type ==# 'line' 49 - silent exe "normal! '[V']y" 50 - else 51 - silent exe 'normal! `[v`]y' 52 - endif 53 - 54 - let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g') 55 - call histadd('/', substitute(@/, '[?/]', '\="\\%d".char2nr(submatch(0))', 'g')) 56 - call feedkeys('cgN', 'n') 57 - let @@ = l:temp 58 - endfunction 59 - 60 - xnoremap <Plug>(vsearch-search-selected-forward) :<C-u>call <SID>VSetSearch(visualmode(), 1)<CR>/<CR> 61 - xnoremap <Plug>(vsearch-search-selected-backward) :<C-u>call <SID>VSetSearch(visualmode(), 1)<CR>?<CR> 62 - 63 - xnoremap <Plug>(vsearch-change-selected-forward) :<C-u>call <SID>VSetSearch(visualmode(), 1)<CR>:set hlsearch<CR>cgn 64 - xnoremap <Plug>(vsearch-change-selected-backward) :<C-u>call <SID>VSetSearch(visualmode(), 1)<CR>:set hlsearch<CR>cgN 65 - 66 - nnoremap <Plug>(vsearch-change-word-forward) :set operatorfunc=<SID>VSearchAndReplaceFw<CR>g@ 67 - nnoremap <Plug>(vsearch-change-word-backward) :set operatorfunc=<SID>VSearchAndReplaceBc<CR>g@ 68 - 69 - xmap * <Plug>(vsearch-search-selected-forward) 70 - xmap # <Plug>(vsearch-search-selected-backward) 71 - 72 - xmap s <Plug>(vsearch-change-selected-forward) 73 - xmap S <Plug>(vsearch-change-selected-backward) 74 - 75 - nmap s <Plug>(vsearch-change-word-forward) 76 - nmap S <Plug>(vsearch-change-word-backward) 77 - 78 - let &cpo = s:save_cpo