From d17e4330057ae3fd1e5112de3cec93a409e63fb4 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Mon, 25 Mar 2013 22:21:53 +0800 Subject: vimrc: 修改區塊選取預設值以及 QuickFix 視窗快速鍵 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vimrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 1a97aa0..4917542 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,7 @@ let $ERRFILE="/tmp/fc0edaa9-1383-11e1-8659-000c760ae4c6.err" let $CFLAGS="-Wall -pipe -g" let $LDFLAGS="" +let g:quick_fix_window_on = 0 set bs=2 set ls=2 set ts=4 @@ -9,6 +10,7 @@ set cindent set hls set ru set nocp +set ve=block syntax on set background=light highlight Comment ctermfg=darkcyan @@ -27,8 +29,18 @@ function! SingleCompile() endif endfunction +function! ToggleQuickFixWindow() + if g:quick_fix_window_on + cclose + let g:quick_fix_window_on = 0 + else + copen + let g:quick_fix_window_on = 1 + endif +endfunction + map :set foldmethod=syntax -map :cl +map :call ToggleQuickFixWindow() map :cp map :cn map :tabp -- cgit