Tips and Tricks

Use your own config

  1. create a file .vimpluginrc somewhere.
  2. add Option -U /path/to/.vimpluginrc at vimplugins preference page

My .vimpluginrc:

"disable menubar and Toolbar
set go-=m
set go-=T

Other intersting things for .vimpluginrc could be colorscheme, fonts etc…

Open Each File in a New Tab

By default, vimplugin will only open one tab with an embedded instance of gvim. Double-clicking on subsequent files will open them as buffers within that original tab. To change this behavior:

  1. go to Window → Preferences… → General → Editors → File Associations
  2. click “Add…” to add a file association for the file type that you wish to edit with Vim; a C++ programmer might enter “*.cpp”, for example
  3. then click “Add…” in the lower window to associate a new editor with that file type
  4. choose “Vim (new process)” and click “OK”
  5. use the “Default” button to make this the default way of opening files

Disable swap file to avoid warning when reopen a file in embed mode

When closing file in eclipse in embed vim, vim will not delete swap file immediately, so a warning will display while reopening a file, disable swap file can avoid the warning:

  1. create a file .vimpluginrc somewhere.
  2. add Option -U /path/to/.vimpluginrc at vimplugins preference page

Add the following to .vimpluginrc:

"disable swap file
set noswf
 
tips.txt · Last modified: 2008/12/04 13:52 by kevin_xiong
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki