Created
November 10, 2012 15:16
-
-
Save anonymous/4051376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ** vimrc reading @ 2012/11/10 {{{ | |
" https://github.com/kazuph/dotfiles/blob/master/_vimrc | |
set grepprg=ack\ -a | |
NeoBundle 'bkad/CamelCaseMotion' | |
" Enable omni completion. | |
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS | |
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags | |
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS | |
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete | |
" autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete | |
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | |
let g:neocomplcache_min_syntax_length = 2 | |
let g:neocomplcache_keyword_patterns['default'] = '\h\w*' | |
let g:yankring_manual_clipboard_check = 0 | |
let g:yankring_max_history = 30 | |
let g:yankring_max_display = 70 | |
" Yankの履歴参照 | |
nmap ,y ;YRShow<CR> | |
" =と押して = となるようにする他 | |
NeoBundle "kana/vim-smartchr" | |
inoremap <expr> = smartchr#loop(' = ', ' == ', '=') | |
inoremap <expr> , smartchr#one_of(', ', ',') | |
set autoread | |
set modelines=0 | |
set display=uhex | |
nnoremap 0 ^ | |
nnoremap 9 $ | |
" visualmodeでインテントを><の連打で変更できるようにする | |
vnoremap < <gv | |
vnoremap > >gv | |
" OSのクリップボードを使用する | |
set clipboard+=unnamed | |
" ** }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment