21
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vimrcの最大公約数的な部分

Last updated at Posted at 2012-12-26
set encoding=utf-8
set t_co=256
"インデント
filetype plugin indent on
"文字の設定
set guifont=Osaka-Mono:h14
"ルーラーの設定
set number
"IMを無効化
set imdisable           
au GUIEnter * winpos 0 0
"set lines=162 columns=205
"クリップボード連携
set clipboard=unnamed
"検索時に大文字を含んでいたら大/小を区別
set smartcase
"新しい行を作ったときに高度な自動インデントを行う
set smartindent
"行頭の余白内で Tab を打ち込むと、'shiftwidth' の数だけインデントする。
set smarttab
"インクリメンタルサーチを行う
set incsearch
"バックアップなし
set nobackup
"スワップファイルなし
set noswapfile

"全角スペースを視覚化
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=#666666
au BufNewFile,BufRead * match ZenkakuSpace / /


noremap gh ^
noremap gl $
noremap gv :tabnew ~/.vimrc<CR>
nnoremap gd :!python closure-library/closure/bin/build/depswriter.py --root_with_prefix="apps ../../../apps" --output_file=javascript/deps.js<CR>
nnoremap gw <C-w><C-w><CR>
nnoremap gr :source ~/.vimrc<CR>
nnoremap <C-r> :%s/
nnoremap <C-p> :!python ~/test.py<CR>
inoremap { {}<LEFT>
inoremap [ []<LEFT>
inoremap ( ()<LEFT>
inoremap " ""<LEFT>
inoremap ' ''<LEFT>
inoremap <tab> <Space><Space>
if &t_Co > 1
syntax enable
endif
set cursorline
set autoindent
set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
setlocal ts=2
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal smarttab
setlocal smartindent
setlocal expandtab
" Use ClipBoard
set guicursor=n-v-c:blinkwait1-blinkoff1-blinkon1
set nowrap
""silent!source ~/vimbook.vim
set vb t_vb=
command! -nargs=1 Grep vimgrep <args> **/*.php|ccl
nnoremap <C-h> :Grep
nnoremap <C-p> :cprevious<CR>   " 前へ
nnoremap <C-n> :cnext<CR>       " 次へ
nnoremap <C-g> :<C-u>cfirst<CR> " 最初へ
21
21
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?