Add vimrc to shell

This commit is contained in:
Leon Grünewald 2024-03-07 13:51:58 +01:00 committed by Leon Grünewald
parent 140083567d
commit c4d46e4cf8

44
shell/.vimrc Normal file
View file

@ -0,0 +1,44 @@
" Leader key
nnoremap <SPACE> <Nop>
let mapleader=' '
call plug#begin('~/.vim/plugged')
Plug 'ghifarit53/tokyonight-vim'
Plug 'justinmk/vim-sneak'
Plug 'mattn/emmet-vim'
Plug 'mipmip/vim-fluid'
Plug 'puremourning/vimspector'
call plug#end()
"" Vim Config
" Set completeopt to have a better completion experience
set completeopt=menuone,noinsert,noselect
" Avoid showing message extra message when using completion
set shortmess+=c
" Add clipboard support
set clipboard^=unnamed,unnamedplus
" Intendation
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
" UTF-8
set encoding=utf-8
set fileencodings=utf-8
set fileformats=unix,dos,mac
" Enable term color
set tgc
let g:tokyonight_style = 'night' " available: night, storm
let g:tokyonight_enable_italic = 0
colorscheme tokyonight
com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"
nnoremap = :FormatXML<Cr>