set softtabstop=4
set shiftwidth=4
set expandtab
set paste
"syntax on
"filetype plugin indent on
"-----------------------------------------------------------------------------
" SET ENVIRONMENT
"-----------------------------------------------------------------------------
set tags=/home/sarchar/tags
set background=dark
set noautoindent
set esckeys
set magic
set modeline
set tabstop=4
set shiftwidth=4
set backspace=indent,eol,start
set noignorecase
set showmatch
set showmode
set hlsearch
set ruler
set noinsertmode
set laststatus=2
set visualbell
set nocompatible
set ai
set bs=2
set cindent
set incsearch
set paste
set updatecount=20 " Number of characters typed before doing an update
set updatetime=500 " Number of milliseconds before doing an update
set history=100 " Number of history commands to remember
set viminfo='50,\"200 " read/write a .viminfo file, remember filemarks for 50
" files and store 200 lines of registers
"-----------------------------------------------------------------------------
"Remove Empty Lines
"-----------------------------------------------------------------------------
"Remove empty lines.
map rmemp :g/^$/d
" Remove empty lines, and lines containing space/tab only.
map rmall :g/^\s*$/d
" Remove empty lines, and lines containing space/tab only,
" including a Chinese space (the two bytes 0xA1 0xA1).
:g/^\(\s\| \)*$/d
" Herein after the | I paste the ' as a chinese character'.
:g/^[ \t|?]*$/d
"Numbering
set nu
" number each line of a file (simple left alignment). Using a tab (see
" note on '\t' at end of file) instead of space will preserve margins.
"sed = filename | sed 'N;s/\n/\t/'
" number each line of a file (number on left, right-aligned)
"sed = filename | sed 'N; s/^/ /; s/ *\(.\{6,\}\)\n/\1 /'
" number each line of file, but only print numbers if line is not blank
"sed '/./=' filename | sed '/./N; s/\n/ /'
" count lines (emulates "wc -l")
"sed -n '$='
"explorer setting
let g:explSortBy='name' " sort by name
"let g:explDetailedList=1 "always show long listing
No comments:
Post a Comment