diff options
Diffstat (limited to '.config/vim/vimrc')
-rw-r--r-- | .config/vim/vimrc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.config/vim/vimrc b/.config/vim/vimrc new file mode 100644 index 0000000..d06b8c8 --- /dev/null +++ b/.config/vim/vimrc @@ -0,0 +1,45 @@ +set all& + +set number +set autoindent +set showmatch +set showmode +set errorbells +set belloff= +set title + +noremap <Up> <Nop> +noremap <Down> <Nop> +noremap <Left> <Nop> +noremap <Right> <Nop> +set clipboard+=unnamedplus + +set swapfile +set directory^=~/.vim/swap// +set writebackup +set nobackup +set backupcopy=auto +if has("patch-8.1.0251") + set backupdir^=~/.vim/backup// +end +set undofile +set undodir^=~/.vim/undo// + +if has('autocmd') + filetype plugin indent on +endif + +if has('syntax') && (&t_Co > 2 || has("gui_running")) + syntax enable + if has('extra_search') + set hlsearch + set incsearch + endif + colorscheme industry +end + +if &t_Co > 16 + set termguicolors + let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" + let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" +end |