摘要: emacsConfig/switch-file-setting.el 1 (defun switch-c () 2 (global-set-key (kbd "") 'ffap) 3 (global-set-key [f11] 'ff-find-other-file) 4 ) 5 (add-hook 'c-mode-hook 'switch-c) 6 7 (defun switch-cpp () 8 (global-set-key (kbd "") 'ffap) 9 (global-set-key [f11] &# 阅读全文
posted @ 2014-01-07 21:16 自由出土文物 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 安装sr-speedbar,这样的话,speedbar就内嵌到emacs里面了emacsConfig/speedbar-setting.el(require 'sr-speedbar) (setq speedbar-show-unknown-files t) (setq speedbar-use-images nil) (setq sr-speedbar-width 20)(setq sr-speedbar-auto-refresh t) (setq sr-speedbar-right-side nil) (setq speedbar-tag-hierarchy-method n... 阅读全文
posted @ 2014-01-07 21:15 自由出土文物 阅读(973) 评论(0) 推荐(0) 编辑
摘要: ~/emacsConfig/gtags-setting.el 1 (if (eq system-type 'darwin) 2 (add-to-list 'load-path "/usr/local/Cellar/global/6.2.9/share/gtags") 3 ) 4 5 (require 'gtags) 6 7 (add-hook 'c-mode-common-hook 'gtags-mode) 8 (add-hook 'c++-mode-common-hook 'gtags-mode) 9 (add-ho 阅读全文
posted @ 2014-01-07 21:13 自由出土文物 阅读(2445) 评论(0) 推荐(0) 编辑
摘要: emacsConfig/etags-setting.el 1 (require 'auto-complete-etags) 2 3 (setq ac-sources (append '(ac-source-etags) ac-sources)) 4 5 ;定义全局变量 6 (defvar etags-src-dir nil) 7 (defvar etags-saved-tagfile-name nil) 8 (defvar etags-language-type nil) 9 10 11 (defun etags-update ()12 "Make ETAGS inc 阅读全文
posted @ 2014-01-07 21:12 自由出土文物 阅读(1608) 评论(0) 推荐(0) 编辑
摘要: emacsConfig/dir-setting.el1 (setq default-directory "~/" ) 阅读全文
posted @ 2014-01-07 21:11 自由出土文物 阅读(255) 评论(0) 推荐(0) 编辑
摘要: emacsConfig/code-style-setting.el1 (add-hook 'c-mode-common-hook ( lambda() ( c-set-style "java" ) ) ) 2 (add-hook 'c++-mode-common-hook ( lambda() ( c-set-style "java" ) ) ) 阅读全文
posted @ 2014-01-07 21:09 自由出土文物 阅读(415) 评论(0) 推荐(0) 编辑
摘要: vimConfig/plugin/vim-powerline-setting.vim1 let g:Powerline_symbols = 'fancy' 阅读全文
posted @ 2014-01-07 20:45 自由出土文物 阅读(284) 评论(0) 推荐(0) 编辑
摘要: vimConfig/plugin/ui-setting.vim 1 let os = substitute(system('uname'), "\n", "", "") 2 if os == "Darwin" 3 winpos 100 0 4 set lines=45 columns=160 5 elseif os == "Linux" 6 winpos 120 0 7 set lines=43 columns=170 8 endif 9 10 colorscheme molok 阅读全文
posted @ 2014-01-07 20:44 自由出土文物 阅读(285) 评论(0) 推荐(0) 编辑
摘要: vimConfig/plugin/tagbar-setting.vim1 let g:tagbar_width=402 3 map :TagbarToggle4 map! :TagbarToggle 阅读全文
posted @ 2014-01-07 20:43 自由出土文物 阅读(344) 评论(0) 推荐(0) 编辑
摘要: vimConfig/plugin/nerdTree-setting.vim1 let g:NERDTree_title="[NERDTree]" 2 3 nmap :NERDTree 阅读全文
posted @ 2014-01-07 20:42 自由出土文物 阅读(122) 评论(0) 推荐(0) 编辑
摘要: vimConfig/plugin/general-operation.vim 1 "快速关闭 2 map :q:q:q:q 3 "映射复制、粘贴、剪贴ctrl+c ctrl+v ctrl+x 4 "map "+pa 5 map! "+pa 6 map "+y 7 map "+x 8 " 映射全选 ctrl+a 9 map ggVG10 map! ggVG11 "ctrl+s为保存12 map :w13 map! :wa14 "ctrl+z撤销15 map :u16 map! :ua17 &quo 阅读全文
posted @ 2014-01-07 20:41 自由出土文物 阅读(238) 评论(0) 推荐(0) 编辑
摘要: vimConfig/plugin/codeFold-setting.vim1 "--fold setting--2 set foldmethod=syntax " 用语法高亮来定义折叠3 set foldlevel=100 " 启动vim时不要自动折叠代码4 set foldcolumn=2 " 设置折叠栏宽度 阅读全文
posted @ 2014-01-07 20:40 自由出土文物 阅读(415) 评论(0) 推荐(0) 编辑
摘要: BundlenInstall安装autoComplPopvimConfig/plugin/autoComplPop-setting.vim1 "autocomplpop 设置2 let g:AutoComplPop_IgnoreCaseOption=13 set ignorecase4 let g:acp_behaviorKeywordCommand="\\" 阅读全文
posted @ 2014-01-07 20:39 自由出土文物 阅读(790) 评论(0) 推荐(0) 编辑
摘要: BundlenInstall安装auto-pairsvimConfig/plugin/auto-pairs-setting.vim1 let g:autopairsflymode=1 阅读全文
posted @ 2014-01-07 20:38 自由出土文物 阅读(200) 评论(0) 推荐(0) 编辑
摘要: vimConfig/install/install.sh1 git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle2 3 cp ./_vimrc.vim ~/.vimrc4 echo "Install success!";vimConfig/install/remove.sh1 rm -rf ~/.vim/bundle2 rm ~/.vimrc3 echo "remove success!";vimConfig/install/_vimrc.vim 1 set nocompa 阅读全文
posted @ 2014-01-07 20:36 自由出土文物 阅读(501) 评论(0) 推荐(0) 编辑