diff .vimrc @ 0:a4ec03f77554

I don't know...
author luka
date Fri, 11 Apr 2025 21:07:37 -0400
parents
children 47fe251d5ce0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.vimrc	Fri Apr 11 21:07:37 2025 -0400
@@ -0,0 +1,107 @@
+" Leader Mappings
+map <Space> <leader>
+map <Leader>w :update<CR>
+map <Leader>q :qall<CR>
+map <Leader>g :term gpt<CR>
+set mouse=a
+inoremap <C-a> <C-x><C-i>
+
+" Support for tags closing and classes
+source $HOME/.vim/plugins/taghelp
+source /home/luka/.vim/plugins/dbtables.vim
+
+
+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 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'
+
+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