.vimrc/.cshrc

"show line number
set number

"colorscheme set
syntax enable
colorscheme solarized

"set font size
set guifont=Courier\ 12

set cc=85

set wrap
set tabstop=4
set softtabstop=4

"use space instead tab
set expandtab

"nobackup file : x.sv~
set nobackup

"set undo directory for all files
set undofile
set 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 exit
nmap <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 :0#//<Esc>

"open this file for edit
nmap <leader>e :tabnew ~/.vimrc<cr>

"show pwd: current path
nmap <leader>p :pwd<cr>

"set global tags path
set tags+=~/self_lab/lab/uvm-1.2_src/tags


"Cancel the function of up/down/left/right
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>

###set color and prompt for terminal in .cshrc
set color_off ="%{\e[0m%}"
set color_red ="%{\e[31m%}"
set color_green ="%{\e[32m%}"
set color_green_bg ="%{\e[42m%}"
set color_light_blue="%{\e[36m%}"
set color_blue_bg="%{\e[44m%}"
set prompt ="[$color_red%n@$color_red%m:$color_off$color_green_bg%/$color_off]>"

猜你喜欢

转载自www.cnblogs.com/bky-lxin/p/9253008.html