.vimrc
changeset 211 c6d56d6fbcc2
parent 210 d71ad1876c46
child 212 6608c5b29815
equal deleted inserted replaced
210:d71ad1876c46 211:c6d56d6fbcc2
     2 
     2 
     3 " Do not emulate old vi bug.
     3 " Do not emulate old vi bug.
     4 " This must be first, because it changes other options as side effect.
     4 " This must be first, because it changes other options as side effect.
     5 set nocompatible
     5 set nocompatible
     6 
     6 
     7 syntax on
     7 " Switch syntax highlighting on, when the terminal has colors
       
     8 if &t_Co > 2 || has("gui_running")
       
     9   syntax on
       
    10 endif
     8 
    11 
     9 " colorscheme delek
    12 " A 256 color scheme.
       
    13 if &t_Co >= 256 || has("gui_running")
       
    14   colorscheme inkpot
       
    15 endif
    10 
    16 
    11 set sessionoptions=curdir,buffers,tabpages
    17 set sessionoptions=curdir,buffers,tabpages
    12 
    18 
    13 set showcmd  
    19 set showcmd  
    14 " Do not show line numbers.
    20 " Do not show line numbers.
    15 set nonu
    21 set nonu
    16 " Set command string height.
    22 " Set command string height.
    17 set ch=1
    23 set ch=1
    18 
    24 
       
    25 " Hide buffers instead of closing them.
    19 set hidden
    26 set hidden
    20 
    27 
    21 set mouse=a
    28 set mouse=a
    22 set mousemodel=popup
    29 set mousemodel=popup
    23 set mousehide
    30 set mousehide
   105 set complete+=t
   112 set complete+=t
   106 
   113 
   107 " Disable these characters as word dividers.
   114 " Disable these characters as word dividers.
   108 set iskeyword+=_
   115 set iskeyword+=_
   109 
   116 
       
   117 " Allow backspacing over autoindent, line breaks (join lines), start of insert
       
   118 set backspace=indent,eol,start
       
   119 
       
   120 " Affects the output of :TOhtml.
       
   121 :let html_use_css = 1
       
   122 :let use_xhtml = 1
       
   123 
   110 " Fix <Enter> for comment
   124 " Fix <Enter> for comment
   111 " set fo+=cr
   125 " set fo+=cr
   112 
   126 
   113 " set termencoding=cp866
   127 " set termencoding=cp866
   114 " set fileencoding=cp1251
   128 " set fileencoding=cp1251