"show line number
set numberset autoindent
set smartindent"colorscheme set
syntax enablesyntax on "if has('gui_running')" set background=dark"else" set background=light"endif"set background=light
"set background=dark"colorscheme solarizedhi Normal guibg=#99cc99 guifg=Blackhi LineNr guibg=#003366 guifg=#99ccff ctermbg=7777 ctermfg=blueset cursorlinehi CursorLine cterm=NONE ctermbg=darkred ctermfg=white guibg=#66cc99 guifg=black "set font sizeset guifont=Courier\ 16set guioptions-=m "remove menu barset guioptions-=T "remove toolbarset guioptions-=r "remove right-hand scroll barset guioptions-=L "remove left-hand scroll bar</span>
set cc=85
set wrap
set tabstop=2set softtabstop=2set shiftwidth=2"Special setup for pythonautocmd FileType python setlocal tabstop=4 softtabstop=4 shiftwidth=4 "let tab display as >---, end of line display as -set listchars=tab:>-,eol:- "set list"use space instead tabset expandtab"nobackup file : x.sv~
set nobackup"set undo directory for all files
set undofileset undodir=~/.undodir"set for ctags,list all available match items when press ctrl+] or ":tag xx"
nmap <C-]> g<C-]>"save setup
let mapleader = "\<Space>""save and exitnmap <leader>w :w!<cr>nmap <leader>q :q!<cr>"split windows
nmap <leader>v :vs<cr>nmap <leader>s :sp<cr>"add line comment --//
"nmap <leader>c 0i//<Esc>"add line comment --#"nmap <leader>3 0i#<Esc>"ALL--->add different comment "//or #" for different type of fileautocmd FileType python,perl nnoremap <leader>c I#<Esc> autocmd FileType c,verilog_systemverilog nnoremap <leader>c I//<Esc> autocmd FileType vim nnoremap <leader>c I"<Esc> "remove the first character,like // #nmap <leader>d 0xx "open this file for editnmap <leader>e :tabnew ~/.vimrc<cr>"show pwd: current path
nmap <leader>p :pwd<cr>"Control 2/4 space for tab
nnoremap <Leader>2 :set tabstop=2 softtabstop=2 shiftwidth=2<CR>nnoremap <Leader>4 :set tabstop=4 softtabstop=4 shiftwidth=4<CR>
"set global tags path
set tags+=/home/xin.li01/self_labs/uvm-1.2/.tags"Cancel the function of up/down/left/rightnoremap <Up> <Nop>noremap <Down> <Nop>noremap <Left> <Nop>noremap <Right> <Nop>""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Common---Applications"Function definition path: ~/.vim/plugin/common_func.vim""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""map <F4> :call AddAuthor()<cr>""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Python---Applications"Function definition path: ~/.vim/plugin/python_func.vim"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""Set python file header "#! /usr/bin/env python3"
nmap <Leader>py 0i#! /usr/bin/env python3<CR>map <F2> :call Add_python_argparse()<cr>map <F3> :call Add_python_main_cond()<cr>