devconf/shell/.vimrc
2024-08-06 17:01:25 +02:00

54 lines
1 KiB
VimL

set nocompatible
" Keybindings
let mapleader=' '
nnoremap <SPACE> <Nop>
vnoremap < <gv
vnoremap > >gv
nnoremap = :FormatXML<Cr>
"" 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
" Enable syntax highlighting
syntax on
filetype on
" 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
"" Plugins
call plug#begin('~/.vim/plugged')
Plug 'ghifarit53/tokyonight-vim'
Plug 'justinmk/vim-sneak'
Plug 'mattn/emmet-vim'
call plug#end()
set path+=**
set wildmenu
"" Theme
let g:tokyonight_style='night'
let g:tokyonight_enable_italic=0
colorscheme tokyonight
"" Other
com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"