My OS is debian testing and version of vim is 7.2

Current, I met that when I press Enter key, vim executed :make
automatically. However, I only map ctrl+M to be the shortcut of :make.

I don't knwo why this happens. After I remove my .vimrc file, no such
problem, so I think it results from the .vimrc file.

The following is my .vimrc
=========================

""""""""""""""""""""""""""""""
""""
""      Basic config
""""""""""""""""""""""""""""""""""

source $VIMRUNTIME/macros/matchit.vim

"set ffs=dos,unix,mac
syntax on
filetype on
filetype plugin on
filetype indent on

set backspace=eol,start,indent
colorscheme koehler

set tabstop=4
set wrap
set nocp
set nu
set nocompatible
set autoread
set shiftwidth=4
set autoindent
set smartindent
set si
set ic
set hls
set mouse=nv
set clipboard+=unnamed
set comments=://
"set comments=s1:/*,mb:*,ex0:/
set backspace=2

if version >= 603
    set helplang=cn
endif

set encoding=utf-8
set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936

"""""""""""""""""""""""""""""""""""
""      Script Config
"""""""""""""""""""""""""""""""""""

"" C/C++ template

"" Ctags && tagslist
let Tlist_Show_One_File=1
let Tlist_Ctags_Cmd = "/usr/bin/ctags-exuberant" " Location of my ctags
"let Tlist_Sort_Type = "name" " order by
let Tlist_Use_Right_Window = 0 " split to the left side of the screen
let Tlist_Compart_Format = 1 " show small meny
let Tlist_Exist_OnlyWindow = 1 " if you are the last, kill yourself
let Tlist_File_Fold_Auto_Close = 0 " Do not close tags for other files
"let Tlist_Enable_Fold_Column = 0 " Do not show folding tree
set tags=tags ",./../tags,./**/tags
set tags+=~/.vim/tags/stltags
set tags+=~/.vim/tags/sdltags
set tags+=~/.vim/tags/boosttags

"" winManager
let g:winManagerWindowLayout='FileExplorer|TagList'
let g:persistentBehaviour=0

"" MiniBufExplorer
"let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplMapCTabSwitchWindows = 1
let g:miniBufExplMapWindowNavArrows = 1
"let g:miniBufExplTabWrap = 1 " make tabs show complete (no broken on two
lines)
let g:miniBufExplModSelTarget = 1

"" Omni-completion
set completeopt=longest,menu
let OmniCpp_DefaultNamespaces = ["std"]
let OmniCpp_GlobalScopeSearch = 1  " 0 or 1
let OmniCpp_NamespaceSearch = 1   " 0 ,  1 or 2
let OmniCpp_DisplayMode = 1
let OmniCpp_ShowScopeInAbbr = 1
let OmniCpp_ShowPrototypeInAbbr = 1
let OmniCpp_ShowAccess = 1
let OmniCpp_MayCompleteDot = 1
let OmniCpp_MayCompleteArrow = 1
let OmniCpp_MayCompleteScope = 1

"" autocomplpop
let g:AutoComplPop_MappingDriven = 1

""""""""""""""""""""""""""""""""""""
""      functional shortcuts
""""""""""""""""""""""""""""""""""""

"" ctags
map <C-I> :call CreatCtagsFileAndSetTags()<CR>

func! CreatCtagsFileAndSetTags()
    exec "cd %:p:h"
    exec "!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q"
endfunc

"" winManager
nmap <C-C><C-V> :WMToggle<CR>

"" make Makefile
map <C-M> :call CompilerMake()<CR>

func! CompilerMake()
    exec "make"
endfunc


=========================


-- 
Best regards,
Xueqian Zhao

Electrical & Computer Engineering Department
Michigan Technological University
Houghton, MI 49931, USA
Email: [email protected]
Mailbox: 121 EERC, Michigan Tech U, 1400 Townsend St., Houghton, MI 49931

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to