Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Created August 30, 2009 14:23
Show Gist options
  • Save codeprimate/177987 to your computer and use it in GitHub Desktop.
Save codeprimate/177987 to your computer and use it in GitHub Desktop.
set nu
set autoindent
set tabstop=2
set shiftwidth=2
set ruler
set wildmenu
set wildchar=<Tab> wildmenu wildmode=full
set ignorecase
set smartcase
" To create new file securely do: vim new.file.txt.gpg
" Your private key used to decrypt the text before viewing should
" be protected by a passphrase. Alternatively one could use
" a passphrase directly with symmetric encryption in the gpg commands below.
au BufNewFile,BufReadPre *.gpg :set secure viminfo= noswapfile nobackup nowritebackup history=0 binary
au BufReadPost *.gpg :%!gpg -d 2>/dev/null
au BufWritePre *.gpg :%!gpg -e -r 'nullpacket' 2>/dev/null
au BufWritePost *.gpg u
filetype on
filetype plugin on
filetype indent on
set cursorline
set cursorcolumn
if v:version >= 700
set cursorline "highlight current line
set cursorcolumn "highlight current column
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment