<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    VIM Configure File for Backup Purpose

    vi ~/vimrc

    "Use Vim settings, rather then Vi settings (much better!).
    set nocompatible
    " Turn on the verboseness to see everything vim is doing.
    "set verbose=9
    " Display Line Number
    set nu
    " allow backspacing over everything in insert mode
    set backspace=indent,eol,start
    " I like 4 spaces for indenting
    set shiftwidth=4
    " I like 4 stops
    set ts=4
    " Spaces instead of tabs
    "set expandtab
    " Always  set auto indenting on
    set autoindent
    " select when using the mouse
    set selectmode=mouse
    " set the commandheight
    set cmdheight=2
    " do not keep a backup files 
    set nobackup
    set nowritebackup
    " keep 100 lines of command line history
    set history=100
    " show the cursor position all the time
    set ruler
    " show (partial) commands
    "set showcmd
    " do incremental searches (annoying but handy);
    " Vim will show the first match for the pattern, while you are still typing it. This quickly shows a typo in the pattern
    set incsearch
    " Vim will highlight all matches for the pattern with a yellow background
    set hlsearch
    " Show  tab characters. Visual Whitespace.
    "set list
    "set listchars=tab:>.
    " Set ignorecase on
    set ignorecase
    " smart search (override 'ic' when pattern has uppers)
    "set scs
    " Set 'g' substitute flag on
    " set gdefault
    " Set status line
    set statusline=[%02n]\ %f\ %(\[%M%R%H]%)%=\ %4l,%02c%2V\ %P%*
    " Always display a status line at the bottom of the window
    set laststatus=2
    " Set vim to use 'short messages'.
    " set shortmess=a
    " Insert two spaces after a period with every joining of lines.
    " I like this as it makes reading texts easier (for me, at least).
    "set joinspaces
    " showmatch: Show the matching bracket for the last ')'?
    set showmatch
    " allow tilde (~) to act as an operator -- ~w, etc.
    "set notildeop
    " Java specific stuff
    "let java_highlight_all=1
    "let java_highlight_debug=1
    "let java_ignore_javadoc=1
    "let java_highlight_functions=1
    "let java_mark_braces_in_parens_as_errors=1

    "Use Vim settings, rather then Vi settings (much better!).
    set nocompatible
    " Turn on the verboseness to see everything vim is doing.
    "set verbose=9
    " Display Line Number
    set nu
    " allow backspacing over everything in insert mode
    set backspace=indent,eol,start
    " I like 4 spaces for indenting
    set shiftwidth=4
    " I like 4 stops
    set ts=4
    " Spaces instead of tabs
    "set expandtab
    " Always  set auto indenting on
    set autoindent
    " select when using the mouse
    set selectmode=mouse
    " set the commandheight
    set cmdheight=2
    " do not keep a backup files 
    set nobackup
    set nowritebackup
    " keep 100 lines of command line history
    set history=100
    " show the cursor position all the time
    set ruler
    " show (partial) commands
    "set showcmd
    " do incremental searches (annoying but handy);
    " Vim will show the first match for the pattern, while you are still typing it. This quickly shows a typo in the pattern
    set incsearch
    " Vim will highlight all matches for the pattern with a yellow background
    set hlsearch
    " Show  tab characters. Visual Whitespace.
    "set list
    "set listchars=tab:>.
    " Set ignorecase on
    set ignorecase
    " smart search (override 'ic' when pattern has uppers)
    "set scs
    " Set 'g' substitute flag on
    " set gdefault
    " Set status line
    set statusline=[%02n]\ %f\ %(\[%M%R%H]%)%=\ %4l,%02c%2V\ %P%*
    " Always display a status line at the bottom of the window
    set laststatus=2
    " Set vim to use 'short messages'.
    " set shortmess=a
    " Insert two spaces after a period with every joining of lines.
    " I like this as it makes reading texts easier (for me, at least).
    "set joinspaces
    " showmatch: Show the matching bracket for the last ')'?
    set showmatch
    " allow tilde (~) to act as an operator -- ~w, etc.
    "set notildeop
    " Java specific stuff
    "let java_highlight_all=1
    "let java_highlight_debug=1
    "let java_ignore_javadoc=1
    "let java_highlight_functions=1
    "let java_mark_braces_in_parens_as_errors=1
    " ************************************************************************
    " K E Y   M A P P I N G S
    " pressing < or > will let you indent/unident selected lines
    vnoremap < <gv
    vnoremap > >gv
    " Make tab in v mode work like I think it should (keep highlighting):
    vmap <tab> >gv
    vmap <s-tab> <gv
    " Select all.
    map <c-a> ggVG
    " Undo in insert mode.
    imap <c-z> <c-o>u



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2011-08-13 02:08 Chan Chen 閱讀(281) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 亚洲AV永久无码精品一福利| 亚洲精品综合久久中文字幕| 亚洲国产精品成人AV在线| 亚洲卡一卡2卡三卡4麻豆| 久久午夜羞羞影院免费观看| 91精品国产免费久久久久久青草| 国产AV无码专区亚洲AVJULIA| 亚洲色大成网站www永久网站| 91成人免费观看在线观看| 久久精品国产亚洲一区二区三区| 亚洲人成网站18禁止久久影院| 久草视频免费在线| 亚洲av无码国产综合专区| 免费在线观看视频网站| 久久精品国产亚洲av麻豆| 亚洲女女女同性video| 国产美女a做受大片免费| 亚洲成a人片毛片在线| 91成人免费观看在线观看| 亚洲第一成年男人的天堂| 67194熟妇在线永久免费观看| 午夜在线a亚洲v天堂网2019| 最近中文字幕无免费| 四虎必出精品亚洲高清| 亚洲第一网站男人都懂| 亚洲日韩国产一区二区三区在线| 国产色爽免费视频| 免费一级特黄特色大片在线 | 又黄又爽一线毛片免费观看| h视频免费高清在线观看| 亚洲国产成人久久精品影视| 男女免费观看在线爽爽爽视频 | 九一在线完整视频免费观看| 久久久久亚洲AV综合波多野结衣 | 精品国产日韩久久亚洲| 亚洲精品麻豆av| 免费人成视频在线观看网站| 亚洲丶国产丶欧美一区二区三区| 亚洲综合色婷婷七月丁香| 97视频免费在线| 好湿好大好紧好爽免费视频 |