Skip to content

Instantly share code, notes, and snippets.

@auxiliary-character
Last active July 21, 2017 08:56
Show Gist options
  • Select an option

  • Save auxiliary-character/5f366bf22d17a0f3eb064b6dd46a48f8 to your computer and use it in GitHub Desktop.

Select an option

Save auxiliary-character/5f366bf22d17a0f3eb064b6dd46a48f8 to your computer and use it in GitHub Desktop.
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