因為經常改變工作環境,所以在這裡記錄一下我的.vimrc檔案和.emacs檔案的內容。
vimrc的配置檔案,主要是設定語法高亮,和tab鍵的寬度,個人喜歡設定為4個空格的分量。
" set tab widthset tabstop=4
set softtabstop=4
set shiftwidth=4
" set expandtab
set expandtab
set tags=./tags
highlight search ctermbg=darkblue
color elflord
"設定ctags路徑
let tlist_ctags_cmd = '/usr/bin/ctags'
"啟動vim後自動開啟taglist視窗
let tlist_auto_open = 0
"不同時顯示多個檔案的tag,僅顯示乙個
let tlist_show_one_file = 1
"taglist為最後乙個視窗時,退出vim
let tlist_exit_onlywindow = 1
"taglist視窗顯示在右側,預設為左側
let tlist_use_right_window =1
"設定taglist視窗大小
"let tlist_winheight = 100
let tlist_winwidth = 40
"設定taglist開啟關閉的快捷鍵f8
noremap :tlisttoggle"更新ctags標籤檔案快捷鍵設定
noremap :!ctags -r
emacs配置檔案的內容,主要是設定tab鍵的寬度和c語言的自動對齊。
;; tab and space;; when true, emacs use mixture of tab and space to achieve offset
(setq-default indent-tabs-mode nil)
;; control length used to offset.
(setq-default c-basic-offset 4)
;; control how emacs explain tab.
(setq-default tab-width 4)
emacs 常用配置
1,顯示行號 global linum mode 1 2,當前行高亮 global hl line mode 1 3,背景色調整 custom set faces custom set faces was added by custom.if you edit it by hand,you coul...
Emacs 的安裝和配置
關於emacs 的安裝和配置,網上已經有很多文章介紹,對於初學者最痛苦的莫過於解決方案分布太廣,需要一一尋找。我把各種需要用到的資料彙總一下,方便大家參考,也方便自己以後查閱。基本上下面幾個 就能滿足初學者的要求。emacs 簡單教程 中文 emacs 的簡單設定 windows 上配置emacs ...
vim常用的配置
syntax enable syntax on set relativenumber set autoindent set tabstop 4 set expandtab 使用4個空格代替tab鍵對於已儲存的檔案,可以使用下面的方法進行空格和tab的替換 tab替換為空格 set ts 4 set ...