|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
常见GVIM设置:
.cshrc set:
umask 022
set history=100
set savehist=100
set filec
set nobeep
set noclobber
set notify
set autolist
alias rmf 'rm -rf'
alias cp 'cp '
alias mv 'mv '
alias g 'gvim'
alias la 'ls -la'
alias s 'source'
alias .. 'cd ..; ls'
alias ... 'cd ../../ ; ls'
//************************************************************************************************//
.vim set:
set number
set ts=4
set autochdir
set tabstop=4
set shiftwidth=4
set encoding=utf-8
set softtabstop=4
set smarttab
set expandtab
colorscheme evening
filetype on
filetype indent on
filetype plugin indent on
let mapleader = ","
set hls
"map <C-C> "+y<CR>
"map <C-V> "+p<CR>
set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮,trail:␣
set showbreak=↪
set history=1024
set smartcase
set showmatch
set guifont=Monospace\ 12
set nobackup
set noswapfile
set cursorline
set cursorcolumn
set showcmd
set ruler
set showmatch
set autoindent
set cindent
syntax enable
syntax on
noremap <silent><Leader>/ :nohls<CR>
nmap <silent> <leader>hh :set invhlsearch<CR>
noremap <c-a> <home>
noremap <c-e> <end>
"set autoread
"set binary
"set incsearch
"set laststatus=2
"set list
"set nolazyredraw
"set modelines=0
"set noeol
"set relativenumber
"set numberwidth=3
"set colorcolumn=+1
"set ignorecase
"set smartcase
"set showmatch
"set gdefault
"set hlsearch
autocmd BufNewFile *.v,*.sv,*.cpp,*.c,*.h,*.py exec ":call Setfilehead()"
func Setfilehead()
call append(0, '/**************************************************************/')
call append(1, '// ')
call append(2, '// Copyright 2000 - 2020 Alibaba, INC - All Rights Reserved')
call append(3, '// File name : '.expand("%"))
call append(4, '// Module name : '.expand("%"))
call append(5, '// Data : '.strftime("%Y-%m-%d %H:%M:%S"))
call append(6, '// Author : Zhen.He (laohe.hz@alibaba-inc.com)' )
call append(7, '// ')
call append(8, '// Description : This is ....')
call append(9, '/*************************************************************/')
call append(10, ' ')
call append(11, ' ')
call append(12, 'module name (')
call append(13, ' // Input signal')
call append(14, ' input clk ,')
call append(15, ' ')
call append(16, ' // Output signal')
call append(17, ' output a ,')
call append(18, ' ')
call append(19, '); ')
call append(20, '/*************************************************************/')
call append(21, '// Define wire and reg')
call append(22, '/*************************************************************/')
call append(23, ' ')
call append(24, ' ')
call append(25, 'endmodule')
endfunc
" set fast map
iabbrev regalw always @ (posedge clk or negedge rstn) begin<CR>if(rstn == 0)begin<CR>a <= 'b0;<CR>end<CR>else begin<CR>a <= ;<CR>end<CR>end<CR>
iabbrev cmbalw always @ ( * ) begin<CR>if(a == 1'b1) begin<CR>b = ;<CR>end<CR>else begin<CR>b = ;<CR>end<CR>end<CR>
autocmd BufNewFile,BufRead *.upf set syntax=tcl
autocmd BufNewFile,BufRead *.tcl set syntax=sdc
autocmd BufNewFile,BufRead *.log set syntax=sdc
autocmd BufNewFile,BufRead *.vpl set syntax=verilog
autocmd BufNewFile,BufRead *.sv set syntax=verilog
autocmd BufNewFile,BufRead *.svh set syntax=verilog
autocmd BufNewFile,BufRead *.svi set syntax=verilog
autocmd BufNewFile,BufRead *.bundle set syntax=perl
set backspace=indent,eol,start
|
|