diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-16 18:42:36 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-16 18:42:36 +0100 |
commit | e818f9488c4bbd6f1e04dae5e4cbe50a94b004b1 (patch) | |
tree | 255bd2a6bcab1c13f367c40d4cc4e09ddea2af7b | |
parent | 33a99ad4c66efd0124faef69ee149460c8e21f6b (diff) |
Adds vimrc with no plugs
-rw-r--r-- | vim/min-vim | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/vim/min-vim b/vim/min-vim new file mode 100644 index 0000000..28d6c7a --- /dev/null +++ b/vim/min-vim @@ -0,0 +1,74 @@ +filetype plugin on +filetype plugin indent on + +"source ~/.vim/grep.vim + +let maplocalleader = "\\" +let mapleader = "," + +set autoread +set foldmethod=manual +set autowrite +set backspace=indent,eol,start +"set colorcolumn=80 +"set cursorline +set completeopt=menuone,longest +set display=truncate +set equalalways +set fileformat=unix +set hidden +set history=1000 +set ignorecase +set incsearch +set infercase +set laststatus=2 +"set list +set listchars=nbsp:%,tab:▸\ ,trail:_,eol:¬,precedes:←,extends:→ +set matchtime=8 +set nobackup +set nocompatible +set nohlsearch +set nojoinspaces +set nomodeline +set noshelltemp +set noswapfile +set noundofile +set nowritebackup +set path+=** +set report=0 +set ruler +set scrolloff=5 +set shell=bash +set shortmess+=c +set showcmd +set showmatch +set showmode +set signcolumn=number +set splitright +set tabstop=4 softtabstop=4 shiftwidth=4 expandtab +set ttimeout +set ttimeoutlen=100 +"set viminfo= +set wildmenu +set wildoptions=pum +set wildmode=full +set wildignore=**/__pycache*/** +set wrap +packadd! matchit + +nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $HOME/.vim/vimrc<cr> + +command! W w + +if executable('rg') + set grepprg=rg\ --color=never\ --vimgrep +endif + +augroup textfiles + autocmd! + autocmd filetype markdown setlocal spell spelllang=en +augroup end + +set background=dark +colorscheme koehler +syntax on |