2013년 9월 13일 금요일

Setting up the color scheme of 256 colors on Vim

Put your 'My_Color_Scheme.vim' file in ~/.vim/colors/

Add the code below into your ~/.vimrc

if &term =~ "xterm"
  "256 color --
  let &t_Co=256
  " restore screen after quitting
  set t_ti=ESC7ESC[rESC[?47h t_te=ESC[?47lESC8
  if has("terminfo")
    let &t_Sf="\ESC[3%p1%dm"
    let &t_Sb="\ESC[4%p1%dm"
  else
    let &t_Sf="\ESC[3%dm"
    let &t_Sb="\ESC[4%dm"
  endif
endif

colorscheme My_Color_Scheme

learned from: http://vim.wikia.com/wiki/Using_vim_color_schemes_with_Putty, and you can also check http://www.vimninjas.com/2012/08/26/10-vim-color-schemes-you-need-to-own/

댓글 없음:

댓글 쓰기

Xubuntu: Installing a Printer (Canon G3060 PIXMA)

$ sudo apt install system-config-printer Download the proper driver for linux from Canon website. Turn on the printer and set up its WiFi. C...