在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1916|回复: 0

[原创] 个人工作站设置

[复制链接]
发表于 2021-4-19 20:24:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

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


您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-11-17 04:57 , Processed in 0.013669 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表