|
Revision 15996, 1.5 kB
(checked in by ukstudio, 5 years ago)
|
|
jsの辞書追加。ほかごにょごにょと
|
| Line | |
|---|
| 1 | set background=dark |
|---|
| 2 | colorscheme xoria256 |
|---|
| 3 | |
|---|
| 4 | set nocompatible |
|---|
| 5 | syntax on |
|---|
| 6 | filetype on |
|---|
| 7 | filetype indent on |
|---|
| 8 | filetype plugin on |
|---|
| 9 | |
|---|
| 10 | set tabstop=2 |
|---|
| 11 | set shiftwidth=2 |
|---|
| 12 | set softtabstop=2 |
|---|
| 13 | set expandtab |
|---|
| 14 | |
|---|
| 15 | set nu |
|---|
| 16 | set smartindent |
|---|
| 17 | set cursorline |
|---|
| 18 | set hlsearch |
|---|
| 19 | set laststatus=2 |
|---|
| 20 | set backspace=indent,eol,start |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | "<TAB>で補完 |
|---|
| 24 | function InsertTabWrapper() |
|---|
| 25 | if pumvisible() |
|---|
| 26 | return "\<c-n>" |
|---|
| 27 | endif |
|---|
| 28 | let col = col('.') - 1 |
|---|
| 29 | if !col || getline('.')[col -1] !~ '\k\|<\|/' |
|---|
| 30 | return "\<tab>" |
|---|
| 31 | elseif exists('&omnifunc') && &omnifunc == '' |
|---|
| 32 | return "\<c-n>" |
|---|
| 33 | else |
|---|
| 34 | return "\<c-x>\<c-o>" |
|---|
| 35 | endif |
|---|
| 36 | endfunction |
|---|
| 37 | inoremap <tab> <c-r>=InsertTabWrapper()<cr> |
|---|
| 38 | |
|---|
| 39 | " rails.vim |
|---|
| 40 | let g:rails_level=4 |
|---|
| 41 | let g:rails_default_file="app/controllers/application.rb" |
|---|
| 42 | |
|---|
| 43 | " rubycomplete.vim |
|---|
| 44 | let g:rubycomplete_buffer_loading = 1 |
|---|
| 45 | let g:rubycomplete_rails = 1 |
|---|
| 46 | let g:rubycomplete_classes_in_global = 1 |
|---|
| 47 | |
|---|
| 48 | " autocomplpop.vim |
|---|
| 49 | let g:AutoComplPop_IgnoreCaseOption = 1 |
|---|
| 50 | |
|---|
| 51 | let g:AutoComplPop_BehaviorKeywordLength = 1 |
|---|
| 52 | let g:AutoComplPop_BehaviorFileLength = 1 |
|---|
| 53 | let g:AutoComplPop_BehaviorRubyOmniMethodLength = 1 |
|---|
| 54 | let g:AutoComplPop_BehaviorRubyOmniSymbolLength = 1 |
|---|
| 55 | let g:AutoComplPop_BehaviorPythonOmniLength = 1 |
|---|
| 56 | let g:AutoComplPop_BehaviorHTMLOmniLength = 1 |
|---|
| 57 | let g:AutoComplPop_BehaviorCssOmniPropertyLength = 1 |
|---|
| 58 | let g:AutoComplPop_BehaviorCssOmniValueLength = 1 |
|---|
| 59 | |
|---|
| 60 | " 辞書 |
|---|
| 61 | autocmd FileType javascript let g:AutoComplPop_CompleteOption = '.,w,b,u,t,i,k~/.vim/dict/javascript.dict' |
|---|
| 62 | |
|---|
| 63 | " Greasemonkey用テンプレート |
|---|
| 64 | autocmd BufNewFile *.user.js 0r $HOME/.vim/template/greasemonkey.txt |
|---|
| 65 | |
|---|