privacy - How to start vim in "private mode" -


modern browsers have feature called "private mode" or "incognito mode". trying same thing vim, i.e. run in way no traces of activities left behind. way able e.g. use vim open file containing sensitive information stored in encrypted volume without having worry information leaked.

here's have done far:

alias vim_private="vim -i none --cmd 'set noswapfile' --cmd 'set nobackup'" 

i have in .bashrc. rationale above:

  • -i none no filenames or register contents leaked through .viminfo
  • --cmd 'set noswapfile' prevent creation swap file
  • --cmd 'set nobackup' no backup files

is there else i'm missing? there other ways vim leak information?

your settings fine. i'm not sure whether plugins loaded when invoke vim vi, several plugins (that e.g. provide mru functionality) store information (usually in ~/.vim... files), too. load can avoided through --noplugin.

also, paranoid, $viminit, :set exrc, , :set modeline can lead vimscript code being executed; (re-)enable privacy-relevant options.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -