devconf/shell/.vimrc

55 lines
1 KiB
VimL
Raw Normal View History

2024-08-06 15:01:04 +00:00
set nocompatible
2024-03-07 12:51:58 +00:00
2024-08-06 15:01:04 +00:00
" Keybindings
let mapleader=' '
nnoremap <SPACE> <Nop>
vnoremap < <gv
vnoremap > >gv
nnoremap = :FormatXML<Cr>
2024-03-07 12:51:58 +00:00
"" 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
2024-08-06 15:01:04 +00:00
" Enable syntax highlighting
syntax on
filetype on
2024-03-07 12:51:58 +00:00
" 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
2024-08-06 15:01:04 +00:00
"" 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
2024-03-07 12:51:58 +00:00
2024-08-06 15:01:04 +00:00
"" Theme
let g:tokyonight_style='night'
let g:tokyonight_enable_italic=0
2024-03-07 12:51:58 +00:00
colorscheme tokyonight
2024-08-06 15:01:04 +00:00
"" Other
2024-03-07 12:51:58 +00:00
com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"