vimrc文件备份

syntax on
set smartindent
set ruler
set showcmd
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set foldcolumn=2
"set incsearch
set makeprg=bjam
set foldmethod=marker
set backupdir=~/backup/vim
set backupext=.bak
set showmatch
set termencoding=utf-8
set encoding=utf-8
set fileencodings=utf-8,gb2312,gb18030
set nowritebackup



let g:DoxygenToolkit_commentType = "C++"
map <F3> <Esc>:wnext <Enter>
map <F4> <Esc>:wprevious <Enter>
map <F2> <Esc>:w <Enter> <Esc>:make <Enter>
map <F5> <Esc>:!ctags --langmap=PHP:+.inc -R * <Enter>
map /n <Esc>:call DoWordComplete() <Enter>
map /u <Esc>:call EndWordComplete() <Enter>
map /l <Esc>:Tlist <Enter>
map /. <Esc>a$this->
map vi' <Esc>?'<CR>lv/'<CR>h
map vi" <Esc>?"<CR>lv/"<CR>h
map va' <Esc>?'<CR>v/'<CR>
map va" <Esc>?"<CR>v/"<CR>
map vix <Esc>?><CR>lv/<<CR>h
map vi= <ESC>?/s<CR>lv//s<CR>h
map vi= <ESC>?/s/+/S/+/s*=/s*/S/+<CR>lv/=<CR>//S<CR>/[/s<>/n]<CR>h
map vt) <ESC>v/)<CR>
map vt' <ESC>v/'<CR>
map vt" <ESC>v/"<CR>
map vt; <ESC>v/;<CR>
noremap /cmd <Esc>:cal VimCommanderToggle() <CR>

"ia  cls        class
"ia  inthm      #include<cppunit/extensions/HelperMacros.h>
"ia  intc     #include<cppunit/TestCase.h>
"ia  inlog   #include<log4cpp/Category.hh>
"ia  todo    throw improve::no_realization(__FUNCTION__);
"ia  uc        unsigned char
"ia  ui        unsigned int
"ia  REQ        REQUIRE();
"ia  ENS        ENSURE();
"ia  us       using namespace
"ia  usstd     using namespace std;
"ia  uslog    using namespace log4cpp;
"ia  rootlog Category::getRoot();
"ia  tc        testcase

if has("gui_running")
    :
else
    colorscheme desert
endif

 

 
  if has("autocmd")
     autocmd BufRead *.txt set tw=78
     autocmd BufReadPost *
        / if line("'/"") > 0 && line ("'/"") <= line("$") |
        /   exe "normal g'/"" |
        / endif
  endif
 
  set hlsearch

你可能感兴趣的:(vimrc文件备份)