vimrc
vimrc ãæããããã¾ãããã£ã¦ãªããã©ã¾ã ããã§å°ã£ã¦ãªãã®ã§åé¡ãªãã使ããªããã§ããã®ãã¼ã Vim7 ã®ã¿ãæ©è½ã使ã£ã¦ããã㧠buffer é¢ä¿ç解ãã¦ãªããã ãã©ä»ã®ã¨ããå ¨ç¶å°ã£ã¦ãªãã :tabnew ã§éãã¦ãã¾ã« :tabdo ã§å¦çã㦠Vimperator ãªãã¼ãã¤ã³ãã«ãã¦ä½¿ãã¨ã¨ã¦ãç´ æ´ãããæãã
" " _vimrc " " set --------------------------------------------------------------------- " compatible mode off set nocompatible " Backup set backup " make backup file set writebackup " æ¸ãè¾¼ã¿æã«ããã¯ã¢ãããä½ã set backupdir=~/backup " ããã¯ã¢ãããã£ã¬ã¯ããªã®è¨å® set backupcopy=auto " ããã¯ã¢ãããã¡ã¤ã«ã®ä½ææ¹æ³ set backupext=~ " ããã¯ã¢ãããã¡ã¤ã«ã®æ«å°¾ã«ã¤ããããæå set noautowrite " èªåä¿åã off ã«ãã set noautowriteall " åä¸ " Display & Information set number " è¡çªå·è¡¨ç¤º set noruler " ã«ã¼ã½ã«ã®è¡,åæ°ãé表示 ( statusline ãè¨å®ããã®ã§ ) set title " å¦çãã¡ã¤ã«åãã¿ã¤ãã«ãã¼ã«è¡¨ç¤º set laststatus=2 " 常ã«ã¹ãã¼ã¿ã¹ã©ã¤ã³ã表示ãã set showmode " ã¢ã¼ã表示 set cmdheight=1 " ã³ãã³ãã©ã¤ã³ã¯ 1 è¡ã§ set background=light " æããèæ¯ã使ã set nolist " é表示æåã¯è¡¨ç¤ºããªãã¾ã¾ set showmatch " 対ã«ãªãã«ãã³ã強調表示 set scrolloff=3 " ã«ã¼ã½ã«ã®å¨ãã¯å¸¸ã« 3 è¡è¡¨ç¤º " ãã¡ã¤ã«åãã¢ã¼ããæåã³ã¼ããæ¹è¡ã³ã¼ããèªã¿åãå°ç¨ãã©ã°ãå¤æ´ãã©ã°ãåæ° : è¡æ° / å ¨è¡æ° [ ã«ã¼ã½ã«ä½ç½®ã® % ] set statusline=%t\ %y%{'['.(&fenc!=''?&fenc:&enc).':'.&ff.']'}%r%m%=%c:%l/%L[%3p%%] " Tab set tabstop=2 " ã¿ãå¹ set shiftwidth=2 " cindent ã << / >> ã®ã¤ã³ãã³ãå¹ set softtabstop=0 " tab ãã¼ãæ¼ããã¨ãã«æ¿å ¥ãããå¹ ã 0 㯠tabstop ã®è¨å® set autoindent " auto indent on set expandtab " ã¿ãã空ç½æåã«ç½®æãã " Search set incsearch " incremental search on set hlsearch " æ¤ç´¢èªã®ãã¤ã©ã¤ã set ignorecase " 大æåå°æåãåºå¥ããªã set smartcase " 大æåãå«ã¾ãã¦ããå ´åã¯åºå¥ãã set wrapscan " ãã¡ã¤ã«çµç«¯ã¾ã§ãã£ããæåã«æ»ã " Cursor set backspace=2 " indent,eol,start " Wild card set wildmenu " è£å®åè£è¡¨ç¤º set wildmode=longest:full " wildmenu + å ±éããæé·ã®æååã¾ã§è£å® " Syntax syntax enable " ã·ã³ã¿ã¯ã¹ãã¤ã©ã¤ãã使ã " highlight --------------------------------------------------------------- " å ¨è§ã¹ãã¼ã¹ãè¦è¦å highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=white match ZenkakuSpace /ã/ " autocmd ----------------------------------------------------------------- " vimperator 㧠syntax é©ç¨ autocmd Bufread,BufNewFile _vimperatorrc set filetype=vimperator " let --------------------------------------------------------------------- let maplocalleader='.' " map --------------------------------------------------------------------- " ã¿ã移å nmap <special> <C-h> gT nmap <special> <C-l> gt " ã¿ãå ¥ãæ¿ã " TabShift.vim plugin nmap <silent> <special> <C-p> :call TabShift(-1)<CR> nmap <silent> <special> <C-n> :call TabShift(1)<CR> " ã«ãã³ãã¯ã©ã¼ãã¼ã·ã§ã³ã¯å ã«å ¨é¨å ¥åããã¿ã¤ã inoremap <special> {} {}<LEFT> inoremap <special> () ()<LEFT> inoremap <special> [] []<LEFT> inoremap <special> "" ""<LEFT> inoremap <special> '' ''<LEFT> inoremap <special> <> <><LEFT>