diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-28 20:01:52 -0800 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-28 20:01:52 -0800 |
| commit | a19071df5a6d40269f7a264b68d2600ea93ca7ae (patch) | |
| tree | 819fa0cce4259ee328de0fdbfa202e51d35ab86b /.vim | |
| parent | Update nvim plugins (diff) | |
| download | dotfiles-openbsd.zip | |
Add openbsd dotfilesopenbsd
Diffstat (limited to '')
| -rw-r--r-- | .vim/after/ftplugin/sh.vim | 3 | ||||
| -rw-r--r-- | .vimrc | 43 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.vim/after/ftplugin/sh.vim b/.vim/after/ftplugin/sh.vim new file mode 100644 index 0000000..5e33d4a --- /dev/null +++ b/.vim/after/ftplugin/sh.vim @@ -0,0 +1,3 @@ +setlocal shiftwidth=2 +setlocal tabstop=2 +setlocal softtabstop=2 @@ -0,0 +1,43 @@ +" Disable compatibility with Vi to enable +" Vim's extended features and modern behaviors. +set nocompatible + +" Use system clipboard +" +" https://stackoverflow.com/a/39313208 +if has('macunix') + set clipboard=unnamed +elseif has('unix') + set clipboard=unnamedplus +endif + +" Enable a number column with numbers relative +" to the current line the cursor is on. +set relativenumber + +" 1. Enable filetype detection to apply filetype-specific +" settings e.g. syntax highlighting +" 2. Enable filetype plugins. +" 3. Enable the indent plugin for automatic indentation +filetype plugin indent on + +" Turn on syntax highlighting +syntax on + +" Convert the tab character into spaces +set expandtab + +" Define the width of a tab character. +set tabstop=4 + +" Number of spaces to insert on tab key press +set softtabstop=4 + +" Number of spaces to use for auto-indentation +set shiftwidth=4 + +let g:mapleader = "\<Space>" +let g:maplocalleader = ',' + +" Show quickfix list easier +nnoremap <Leader>q :copen<CR> |