Mercurial > packages > magicforger
comparison .vimrc @ 23:827efbf4d73c main-dev
Huge changes to the relationships for models and more complex
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Fri, 11 Apr 2025 20:50:20 -0400 |
| parents | 4bb4daa9e3f1 |
| children | 55d2e5c5dad9 |
comparison
equal
deleted
inserted
replaced
| 22:ee8ef14e158d | 23:827efbf4d73c |
|---|---|
| 26 nnoremap <leader>f :call FixPhpFiles()<CR> | 26 nnoremap <leader>f :call FixPhpFiles()<CR> |
| 27 | 27 |
| 28 " Committing commands | 28 " Committing commands |
| 29 map <C-k> :wa<CR>:!hg addremove && hg commit <CR> | 29 map <C-k> :wa<CR>:!hg addremove && hg commit <CR> |
| 30 | 30 |
| 31 " Git commands, for now don't port to hg | |
| 32 " function! GitDiffCached() | |
| 33 " let files = system('git diff --cached --name-only') | |
| 34 " | |
| 35 " if v:shell_error | |
| 36 " echo "Error running git diff" | |
| 37 " return | |
| 38 " endif | |
| 39 " | |
| 40 " let filelist = split(files, "\n") | |
| 41 " let chosen_file = inputlist(filelist) | |
| 42 " | |
| 43 " if chosen_file != -1 | |
| 44 " let cmd = 'tabnew ' . filelist[chosen_file] | |
| 45 " execute cmd | |
| 46 " endif | |
| 47 " endfunction | |
| 48 " | |
| 49 " execute "set <M-d>=\033d" | |
| 50 " map <M-d> :call GitDiffCached()<CR> | |
| 51 " | |
| 52 " | |
| 53 " | |
| 54 " | |
| 55 | 31 |
| 56 | 32 |
| 57 function! SendBufferToProgram() | 33 function! SendBufferToProgram() |
| 58 " Create a temporary file | 34 " Create a temporary file |
| 59 let temp_file = tempname() | 35 let temp_file = tempname() |
