Mercurial > packages > magicforger
diff .vimrc @ 13:7ee152c22478 main-dev
Merging
| author | luka |
|---|---|
| date | Wed, 24 Apr 2024 20:11:52 -0400 |
| parents | 4bb4daa9e3f1 |
| children | e577dac6c913 827efbf4d73c |
line wrap: on
line diff
--- a/.vimrc Wed Apr 24 19:53:42 2024 -0400 +++ b/.vimrc Wed Apr 24 20:11:52 2024 -0400 @@ -8,6 +8,7 @@ "set number nnoremap <Leader>cc :set colorcolumn=80<cr> nnoremap <Leader>ncc :set colorcolumn-=80<cr> +nnoremap <C-l> :ALECodeAction <cr> set mouse=a function! FixPhpFiles() @@ -47,3 +48,26 @@ " " execute "set <M-d>=\033d" " map <M-d> :call GitDiffCached()<CR> +" +" +" +" + + +function! SendBufferToProgram() + " Create a temporary file + let temp_file = tempname() + + " Write current buffer to the temporary file + exe "write! " . temp_file + + " Send the content of the temporary file to your program + " Replace <your_program> with the actual command to run your program + let command = "cat " . temp_file . " | <your_program>" + + " Execute the command + call system(command) + + " Optionally, delete the temporary file if not needed + call delete(temp_file) +endfunction
