diff .vimrc @ 12:4bb4daa9e3f1 development

Working with the new FileModifier
author luka
date Wed, 24 Apr 2024 19:52:35 -0400
parents cf9993c5c7df
children e577dac6c913 827efbf4d73c
line wrap: on
line diff
--- a/.vimrc	Tue Jun 27 20:16:55 2023 -0400
+++ b/.vimrc	Wed Apr 24 19:52:35 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