Loading... ## gvim ## 全屏显示: `Alt+F10` 转跳到当前行行尾: `$ or End` 转跳到当前行行首: `0` 转跳到文本开始: `gg` **.vimrc** ```vim "============== basic setting============= set nocompatible set number " 隐藏滚动条" set guioptions-=r set guioptions-=L set guioptions-=b "隐藏顶部标签栏" set showtabline=0 "设置字体" set guifont=Monospace\ 14 "set guifont=Monaco:h13 syntax on let g:solarized_termcolors=256 "solarized主题设置在终端下的设置" set wrap "设置折行" set fileformat=unix "设置以unix的格式保存文件" set cindent "设置C样式的缩进格式" set tabstop=4 "设置table长度" set shiftwidth=4 "同上" set showmatch "显示匹配的括号" set scrolloff=5 "距离顶部和底部5行" set laststatus=2 "命令行为两行" set fenc=utf-8 "文件编码" set backspace=2 set selection=exclusive set selectmode=mouse,key set matchtime=5 set ignorecase "忽略大小写" set incsearch set hlsearch "高亮搜索项" set noexpandtab "不允许扩展table" set whichwrap+=<,>,h,l set autoread set cursorline "突出显示当前行" set cursorcolumn "突出显示当前列" "================= NERDTree setting ========== " set shortcuts nnoremap <C-n> :NERDTree<CR> " Exit Vim if NERDTree is the only window remaining in the only tab. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif "================ systemverilog highlifht setting https://github.com/nachumk/systemverilog.vim ========= "Enable matchit runtime macros/matchit.vim if v:version < 800 "Start pathogen execute pathogen#infect() endif "Turn on syntax highlighting syntax on "Enable filetype detection filetype plugin indent on "Enable folding based on indent (on 8.0 and greater versions) if v:version >= 800 set foldmethod=indent set foldnestmax=10 set nofoldenable set foldlevelstart=10 endif ``` ## perforce ## **Basic** 打开文件 ```bash p4 open filename ``` 编辑文件 ``` p4 edit filename ``` 提交文件(修改description,尽量详细) ``` p4 submit filename ``` **删除workspace(删除client)** 1. 先查看是否有opened的文件 ``` p4 opened ``` 2. 若有opened的文件,则需要revert它们 ``` p4 revert ``` 3. 删除client ``` p4 client -d client_name ``` 4. 删除本地文件 **查看已经创建的client** ``` p4 clients | grep "username" ``` **查看当前client信息** ``` p4 client -o ``` **查看changes信息** ``` p4 changes ... ``` 最后修改:2022 年 09 月 13 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏