commit 77a8b0fb4d00bf89e6698a6e60659405e1a00729
parent c1e2f5a844e33326132e153451d7b6166194d4f1
Author: hhvn <dev@hhvn.uk>
Date: Tue, 26 Oct 2021 16:46:20 +0100
.c/n/init.vim .c/n/m/edit.vim: vim can do this itself
Diffstat:
2 files changed, 0 insertions(+), 29 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -108,7 +108,6 @@ source ~/.config/nvim/modules/statusline.vim
source ~/.config/nvim/modules/splits.vim
source ~/.config/nvim/modules/netrw.vim
source ~/.config/nvim/modules/term.vim
-source ~/.config/nvim/modules/edit.vim
source ~/.config/nvim/modules/message.vim
source ~/.config/nvim/modules/openc.vim
source ~/.config/nvim/modules/filetype.vim
diff --git a/.config/nvim/modules/edit.vim b/.config/nvim/modules/edit.vim
@@ -1,28 +0,0 @@
-function! Sedrun(args)
- write
- let cmd="sed -i '" . a:args . "' %"
- execute ":!" . cmd | redraw
- silent! edit!
-endfunction
-
-function! Grepwin(args, vert)
- if a:vert == '1'
- let split="vsplit"
- else
- let split="split"
- endif
-
- write
- let ftsave=&filetype
- let tmpfile=fnameescape(tempname())
- let cmd="grep '" . a:args . "' % > " . tmpfile
- execute ":!" . cmd | redraw
-
- silent! execute ":" . split . " " . tmpfile
-
- execute ":set filetype=" . ftsave
-endfunction
-
-nnoremap <leader>S :call Sedrun("")<left><left>
-nnoremap <leader>Gh :call Grepwin("", 0)<left><left><left><left><left>
-nnoremap <leader>Gv :call Grepwin("", 1)<left><left><left><left><left>