"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" General """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "get out of vi's compatible mode.. set nocompatible "set how many lines of history vim har to remeber set history=200 "Enable filetype plugin filetype indent on filetype plugin on filetype plugin indent on "Set to auto read when a file is changed from the outside "set autoread "Fast editing of .vimrc map e :e! ~/.vimrc "when .vimrc is edited , reload it autocmd! bufwritepost vimrc source ~/.vimrc """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Colors and Fonts """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" syntax on "Color setup "colors evening hi normal guifg=lightgrey guibg=black "hi cursor guifg=black guibg=purple hi statement guifg=yellow hi number guifg=cyan hi comment gui=bold guifg=#80a0ff hi specialcomment guifg=orange hi special guifg=green hi visual guifg=blue """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Vim user interface for me """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" behave xterm "Always show current position set ruler "The commandbar is 2 high set cmdheight=2 "Show line number set nu "Highlight search things set hls "No sound on errors set vb "if search things to file end research from the begin set ws set wrap "use the mouse to select set selectmode=mouse "set the max text width "set textwidth=100 "Ignore case when searching set ic "set auto indentation set ai "set auto indent set autoindent "set smart indent set smartindent "set indentexpr "edit the tab to space set et "display incomplete commands set showcmd "command line auto do set wildmenu "no highlight the {} set noshowmatch "set gfn=-Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1 set gfn=courier "auto change the dir path reference the file autocmd FileType systemverilog,python,perl,vim,c set autochdir set nosol set wc=<TAB> "enable the backspace delete and tab operation "this is for the python autocmd FileType python set tabstop=4 shiftwidth=4 expandtab smarttab autocmd FileType python set softtabstop=4 backspace=2 autocmd FileType python map <F12> :!python%<CR> "set smarttab "set expandtab "set tabstop=4 "set softtabstop=4 "set shiftwidth=4 "set backspace=2 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> pydition setting """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:pydiction_location = '~/.vim/ftblugin/complete-dict' """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> perl template """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:Perl_GlobalTemplateFile ='/home/bob/.vim/perl-support/templates/Templates' """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> auto template """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:template_load = 1 let g:template_tags_replacing = 1 let g:T_AUTHOR = "Bob.Liu" let g:T_AUTHOR_EMAIL = "song.liu@scsemicon.com" let g:T_DATE_FORMAT = "%Y-%m-%d %H:%M:%S" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> perl code snippets """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "let g:Perl_CodeSnippets = "/home/bob/.vim/perl-support/codesnippets/" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> cscope """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "added from lg nmap <C-[>s :cs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-[>g :cs find g <C-R>=expand("<cword>")<CR><CR> nmap <C-[>c :cs find c <C-R>=expand("<cword>")<CR><CR> nmap <C-[>t :cs find t <C-R>=expand("<cword>")<CR><CR> nmap <C-[>e :cs find e <C-R>=expand("<cword>")<CR><CR> nmap <C-[>f :cs find f <C-R>=expand("<cfile>")<CR><CR> nmap <C-[>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <C-[>d :cs find d <C-R>=expand("<cword>")<CR><CR> set cscopequickfix=s-,c-,d-,i-,t-,e- nmap <F5> :cn<cr> nmap <F6> :cp<cr> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> winmanager """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:winManagerWindowLayout='FileExplorer|TagList' nmap wm :WMToggle<cr> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> ctags """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set tags=~/svs/projects/tags """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" Plugin--> ctags """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "let Tlist_Use_Right_Window = 1 let Tlist_Show_One_File=1 let Tlist_Exit_OnlyWindow=1 set completeopt=longest,menu """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """" source--> my source files """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "alias work for vim source ~/.vimrc_alias autocmd FileType systemverilog source ~/.vim/mysv.vim "auto work for verilog "autocmd FileType systemverilog,verilog source ~/.vim/auto/vlog_auto.vim "autocmd FileType systemverilog,verilog source ~/.vim/auto/uvm_auto.vim map <space> <c-W>w autocmd FileType systemverilog,verilog,perl,vim,c imap <tab> <c-P>