Thursday, November 5, 2009

What is contained in the .exrc file?

Correct answer: B - The list of environmental commands

The exrc file is also known as the .vimrc file and will save all the environmental commands of the vim editor so you can configure it as you wish like the following example: 

"Tabulator size
    set ts=4
"File Encoding
    set fileencodings=utf-8,big5,gbk,cp936,iso-2022-jp,sjis,euc-jp,euc-kr,utf-bom,iso8859-1
    set encoding=utf-8
    set tenc=utf-8
"Gui Font
    set guifont=DejaVu\ Sans\ Mono\ 12
    if exists("&ambiwidth")
    set ambiwidth=double
    endif
"Line numbers  
    set nu
"HighLight the matched string
    set incsearch
"Make vim more compatible with vi
    set nocompatible
"Indentation Level
    set autoindent  "...
"Do smart indentation
    set smartindent         "...
    syntax on

    color torte
   
  

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.