diff .vimrc @ 20:7cc13548becc

updating coc, prompts and auto loggin
author Luka Sitas <lsitas@avatarasoftware.com>
date Thu, 26 Feb 2026 12:30:11 -0500
parents 1c8e1cdb35f7
children
line wrap: on
line diff
--- a/.vimrc	Tue Jan 06 14:00:08 2026 -0500
+++ b/.vimrc	Thu Feb 26 12:30:11 2026 -0500
@@ -33,6 +33,7 @@
 autocmd Filetype scss if getfsize(@%) > 300 | setlocal syntax=OFF | endif
 highlight Comment cterm=italic gui=italic
 autocmd FileType *.blade.php setlocal commentstring=#\ %s
+autocmd BufNewFile,BufRead *.php set iskeyword+=$
 
 set path+=**
 set nowrap                            " Dont wrap
@@ -97,21 +98,17 @@
 " Coding and language specifics
 "
 " LSP - ale
-source $HOME/.vim/plugins/ale.vim
+" source $HOME/.vim/plugins/ale.vim
 
 " Blade
 Plug 'jwalton512/vim-blade', { 'for': 'php' }
 " Use release branch (recommended)
 source $HOME/.vim/plugins/coc.vim
+Plug 'phpactor/phpactor', {'for': 'php', 'tag': '*', 'do': 'composer install --no-dev -o'}" Plug 'preservim/tagbar' 
 
 " AI-ify
 Plug 'madox2/vim-ai'
 
-" LLama.vim
-" put before llama.vim loads
-" let g:llama_config = { 'show_info': 0, 'endpoint': 'http://127.0.0.1:8012/infill' }
-" Plug 'ggml-org/llama.vim'
-
 call plug#end()
 
 " CTRLP
@@ -127,3 +124,25 @@
 
 
 " Get some better php support for ale see https://github.com/dense-analysis/ale/blob/master/supported-tools.md
+
+
+
+" Log current working directory with timestamp to a cache file
+function! LogCwdToCache()
+  " Path to your cache file (change if you want)
+  let l:cachefile = expand('~/.vim_cwd_cache')
+
+  " Get timestamp and current working directory
+  let l:timestamp = strftime('%Y-%m-%d %H:%M:%S')
+  let l:cwd       = getcwd()
+
+  " Append line: "YYYY-MM-DD HH:MM:SS /path/to/dir"
+  call writefile([l:timestamp . ' ' . l:cwd], l:cachefile, 'a')
+endfunction
+
+" Example mappings/commands to trigger it:
+" Call manually:
+command! LogCwd call LogCwdToCache()
+
+" Or log automatically on VimEnter:
+autocmd VimEnter * call LogCwdToCache()