Created
August 30, 2009 14:21
-
-
Save codeprimate/177986 to your computer and use it in GitHub Desktop.
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 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