vi/vim

config file location

1. MinGW: C:\MinGW\msys\1.0\share\vim\vimrc

2. Linux: home

config file content

comment mark: one double quotation mark (")

set autoindent          " Auto-indent new lines

set background=dark     " This tells vim to use colors which look good on a dark background

set columns=80          " This simply sets the number of columns used on the screen.

set history=50          " keep 50 lines of command line history

set hlsearch            " Highlight all search results

highlight Search cterm=NONE ctermfg=grey ctermbg=blue

set ignorecase            " Always case-insensitive

set incsearch            " Searches for strings incrementally

set linebreak            " Break lines at word (requires Wrap lines)

"set no wrap            " Wrap lines

set number              " Show line numbers

posted @ 2016-11-29 15:13  cnblogist  阅读(131)  评论(0编辑  收藏  举报