Mercurial > vim
view .vimrc @ 8:9c80955f0c6e
I think I got popups working on the commit
| author | Luka Sitas <lsitas@avatarasoftware.com> |
|---|---|
| date | Fri, 31 Oct 2025 14:24:31 -0400 |
| parents | 34930197e9d4 |
| children | 17c557de03e0 eeda6b1401ae |
line wrap: on
line source
" Leader Mappings map <Space> <leader> map <Leader>w :update<CR> map <Leader>q :qall<CR> set mouse=a inoremap <C-a> <C-x><C-i> " Support for tags closing and classes source $HOME/.vim/plugins/taghelp source $HOME/.vim/plugins/dbtables/dbtables.vim source $HOME/.vim/plugins/hghelp/hghelp.vim source $HOME/.vim/plugins/globalsearch.vim let g:db_user = "" " Replace with your default database username let g:db_password = "" " Replace with your default database password let g:db_name = "" " Replace with your default database name let g:db_host = "" " Replace with your default database name syntax on syntax enable " File types autocmd Filetype scss if getfsize(@%) > 300 | setlocal syntax=OFF | endif highlight Comment cterm=italic gui=italic autocmd FileType *.blade.php setlocal commentstring=#\ %s set path+=** set nowrap " Dont wrap set backspace=indent,eol,start " http://vi.stackexchange.com/a/2163 set laststatus=2 " Show status line on startup set splitright " Open new splits to the right set splitbelow " Open new splits to the bottom set lazyredraw " Reduce the redraw frequency set ttyfast " Send more characters in fast terminals set nobackup nowritebackup noswapfile " Turn off backup files set noerrorbells novisualbell " Turn off visual and audible bells "set shiftwidth=2 tabstop=2 " Two spaces for tabs everywhere set history=500 set hlsearch " Highlight search results set ignorecase smartcase " Search queries intelligently set case set incsearch " Show search results as you type set timeoutlen=1000 ttimeoutlen=0 " Remove timeout when hitting escape set showcmd " Show size of visual selection set smartindent " Automatic formating/indenting " Persistent undo set undodir=~/.vim/undo/ set undofile set undolevels=1000 set undoreload=10000 " Tags set tags=./tags,tags;$HOME "------------------------------------------------------------------------------- " Interface "------------------------------------------------------------------------------- set number " Enable line numbers set relativenumber " Enable relative line numbers set scrolloff=5 " Leave 5 lines of buffer when scrolling set sidescrolloff=10 " Leave 10 characters of horizontal buffer when scrolling nnoremap <C-Left> :tabprevious<CR> nnoremap <C-Right> :tabnext<CR> "------------------------------------------------------------------------------- " Plugins "------------------------------------------------------------------------------- " Ensure that plug-vim is set up let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' if empty(glob(data_dir . '/autoload/plug.vim')) silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif call plug#begin() " Environment Plugins " " NERDTree source $HOME/.vim/plugins/nerdtree " Coding and language specifics " " LSP - ale source $HOME/.vim/plugins/ale " Blade Plug 'jwalton512/vim-blade', { 'for': 'php' } " Use release branch (recommended) source $HOME/.vim/plugins/coc " AI-ify Plug 'madox2/vim-ai' " LLama.vim " put before llama.vim loads " let g:llama_config = { 'show_info': 0, 'endpoint': 'http://0.0.0.0:8080/infill' } " Plug 'ggml-org/llama.vim' call plug#end() " CTRLP source $HOME/.vim/plugins/ctrlp " Netwr set nocp filetype plugin on " plugins are enabled " Use project based .vimrc's set exrc " Get some better php support for ale see https://github.com/dense-analysis/ale/blob/master/supported-tools.md
