Mercurial > vim
comparison .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 |
comparison
equal
deleted
inserted
replaced
| 19:1c8e1cdb35f7 | 20:7cc13548becc |
|---|---|
| 31 syntax enable | 31 syntax enable |
| 32 " File types | 32 " File types |
| 33 autocmd Filetype scss if getfsize(@%) > 300 | setlocal syntax=OFF | endif | 33 autocmd Filetype scss if getfsize(@%) > 300 | setlocal syntax=OFF | endif |
| 34 highlight Comment cterm=italic gui=italic | 34 highlight Comment cterm=italic gui=italic |
| 35 autocmd FileType *.blade.php setlocal commentstring=#\ %s | 35 autocmd FileType *.blade.php setlocal commentstring=#\ %s |
| 36 autocmd BufNewFile,BufRead *.php set iskeyword+=$ | |
| 36 | 37 |
| 37 set path+=** | 38 set path+=** |
| 38 set nowrap " Dont wrap | 39 set nowrap " Dont wrap |
| 39 set backspace=indent,eol,start " http://vi.stackexchange.com/a/2163 | 40 set backspace=indent,eol,start " http://vi.stackexchange.com/a/2163 |
| 40 set laststatus=2 " Show status line on startup | 41 set laststatus=2 " Show status line on startup |
| 95 source $HOME/.vim/plugins/nerdtree.vim | 96 source $HOME/.vim/plugins/nerdtree.vim |
| 96 | 97 |
| 97 " Coding and language specifics | 98 " Coding and language specifics |
| 98 " | 99 " |
| 99 " LSP - ale | 100 " LSP - ale |
| 100 source $HOME/.vim/plugins/ale.vim | 101 " source $HOME/.vim/plugins/ale.vim |
| 101 | 102 |
| 102 " Blade | 103 " Blade |
| 103 Plug 'jwalton512/vim-blade', { 'for': 'php' } | 104 Plug 'jwalton512/vim-blade', { 'for': 'php' } |
| 104 " Use release branch (recommended) | 105 " Use release branch (recommended) |
| 105 source $HOME/.vim/plugins/coc.vim | 106 source $HOME/.vim/plugins/coc.vim |
| 107 Plug 'phpactor/phpactor', {'for': 'php', 'tag': '*', 'do': 'composer install --no-dev -o'}" Plug 'preservim/tagbar' | |
| 106 | 108 |
| 107 " AI-ify | 109 " AI-ify |
| 108 Plug 'madox2/vim-ai' | 110 Plug 'madox2/vim-ai' |
| 109 | |
| 110 " LLama.vim | |
| 111 " put before llama.vim loads | |
| 112 " let g:llama_config = { 'show_info': 0, 'endpoint': 'http://127.0.0.1:8012/infill' } | |
| 113 " Plug 'ggml-org/llama.vim' | |
| 114 | 111 |
| 115 call plug#end() | 112 call plug#end() |
| 116 | 113 |
| 117 " CTRLP | 114 " CTRLP |
| 118 source $HOME/.vim/plugins/ctrlp.vim | 115 source $HOME/.vim/plugins/ctrlp.vim |
| 125 " Use project based .vimrc's | 122 " Use project based .vimrc's |
| 126 set exrc | 123 set exrc |
| 127 | 124 |
| 128 | 125 |
| 129 " Get some better php support for ale see https://github.com/dense-analysis/ale/blob/master/supported-tools.md | 126 " Get some better php support for ale see https://github.com/dense-analysis/ale/blob/master/supported-tools.md |
| 127 | |
| 128 | |
| 129 | |
| 130 " Log current working directory with timestamp to a cache file | |
| 131 function! LogCwdToCache() | |
| 132 " Path to your cache file (change if you want) | |
| 133 let l:cachefile = expand('~/.vim_cwd_cache') | |
| 134 | |
| 135 " Get timestamp and current working directory | |
| 136 let l:timestamp = strftime('%Y-%m-%d %H:%M:%S') | |
| 137 let l:cwd = getcwd() | |
| 138 | |
| 139 " Append line: "YYYY-MM-DD HH:MM:SS /path/to/dir" | |
| 140 call writefile([l:timestamp . ' ' . l:cwd], l:cachefile, 'a') | |
| 141 endfunction | |
| 142 | |
| 143 " Example mappings/commands to trigger it: | |
| 144 " Call manually: | |
| 145 command! LogCwd call LogCwdToCache() | |
| 146 | |
| 147 " Or log automatically on VimEnter: | |
| 148 autocmd VimEnter * call LogCwdToCache() |
