Email: bknpk@hotmail.com Phone: +972-54-7649119
V

 

ASIC/FPGA Design and Verification Out Source Services

VIM conditionally set the font type and size based on host name.




  1. At work there are a few login servers. On one of them vim has a terrible font setup. So a conditional font setup is required.

  2. Simple vim code, to be run from gvimrc, to setup font type and size, based on host name, is shown below.

  3. let hostname = substitute(system('hostname'), '\n', '', '')
    if hostname == "Inbi_04"
      set guifont=-sony-fixed-medium-r-normal-*-*-230-*-*-c-*-jisx0201.1976-0
    else
      set guifont=Courier\ 13
    endif

Contact me now at:

  ...


I would be happy to offer my services. Call ASAP !


Home

VIM shift insert to paste data






Search This Site


Feedback This Site




new pages on this site