ASIC/FPGA Design and Verification Out Source Services
VIM conditionally set the font type and size based on host name.
-
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.
-
Simple vim code, to be run from gvimrc, to setup font type and size, based on host name, is shown below.
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: |