Created
June 9, 2023 18:07
-
-
Save drewknab/699c4691bd57e52f3f8cca2c808006c6 to your computer and use it in GitHub Desktop.
.virc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set backspace=indent,eol,start | |
set expandtab | |
set laststatus=2 | |
set noerrorbells | |
set nowrap | |
set noswapfile | |
set number | |
set ruler | |
set softtabstop=4 | |
set shiftround | |
set shiftwidth=4 | |
set tabstop=4 | |
set visualbell | |
set wildmenu | |
" Lint XML | |
nmap \lx :%!xmllint "%" --format<CR> | |
" Open .virc in new tab | |
nmap <space>ev :tabedit ~/.virc<CR> | |
nmap <space>eb :tabedit ~/.bashrc<CR> | |
" QoL tab/split mappings | |
nmap <space>t :tabedit<CR> | |
nmap <space>v :vsplit<CR> | |
nmap <space>s :split<CR> | |
nmap <space>h <C-w><C-h> | |
nmap <space>j <C-w><C-j> | |
nmap <space>k <C-w><C-k> | |
nmap <space>l <C-w><C-l> | |
" Tab in v mode indents text | |
vmap <tab> >gv | |
vmap <s-tab> <gv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment