Skip to content

Instantly share code, notes, and snippets.

@auxiliary-character auxiliary-character/.vimrc
Last active Jul 21, 2017

Embed
What would you like to do?
execute pathogen#infect()
filetype indent plugin on
syntax on
set nu
set backspace=indent,eol,start
set shiftwidth=4
set softtabstop=4
set expandtab
set shiftwidth=4
set tabstop=4
set clipboard^=unnamed
set mouse=a
autocmd FileType yaml set shiftwidth=2
autocmd FileType yaml set softtabstop=2
autocmd FileType yaml set shiftwidth=2
autocmd FileType yaml set tabstop=2
autocmd FileType python map <buffer> <S-e> :w<CR>:!/usr/bin/env python %<CR>
cmap w!! w !sudo tee % > /dev/null
set confirm
match ErrorMsg '\s\+$'
command Nowhite execute "%s/\\s\\+$//g | norm!``"
command Tabspace execute "%s/\t/ /g | norm!``"
command Spacetab execute "%s/ /\t/g | norm!``"
command Encrypt execute "%!gpg -ea"
command Decrypt execute "%!gpg -d"
command Sign execute "%!gpg --clearsign"
command Hex execute "%!xxd"
command Unhex execute "%!xxd -r"
command Json execute "%!python -m json.tool"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.