Created
February 14, 2013 12:15
-
-
Save netmarkjp/4952408 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| """neobundle | |
| " install | |
| " install -d ~/.vim/bundle | |
| " git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim | |
| " | |
| " when add new NeoBundle, exec | |
| " vim -c 'NeoBundleInstall' | |
| " | |
| " to update plugins | |
| " vim -c 'NeoBundleInstall!' | |
| " required for vundle | |
| set nocompatible | |
| if has('vim_starting') | |
| set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
| endif | |
| call neobundle#rc(expand('~/.vim/bundle/')) | |
| " neobundle packages | |
| NeoBundle 'Shougo/neocomplcache' | |
| NeoBundle 'Shougo/neosnippet' | |
| NeoBundle 'Shougo/unite.vim' | |
| NeoBundle 'jmcantrell/vim-virtualenv' | |
| NeoBundle 'davidhalter/jedi-vim' | |
| NeoBundle 'fuenor/qfixhowm' | |
| NeoBundle 'chriskempson/vim-tomorrow-theme' | |
| " required for neobundle | |
| filetype plugin indent on | |
| NeoBundleCheck | |
| """plugin settings | |
| "" neosnippet | |
| " Plugin key-mappings. | |
| "imap <C-k> <Plug>(neosnippet_expand_or_jump) | |
| "smap <C-k> <Plug>(neosnippet_expand_or_jump) | |
| " SuperTab like snippets behavior. | |
| imap <expr><TAB> neosnippet#expandable() <Bar><bar> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" | |
| smap <expr><TAB> neosnippet#expandable() <Bar><bar> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | |
| " For snippet_complete marker. | |
| if has('conceal') | |
| set conceallevel=2 concealcursor=i | |
| endif | |
| "let g:neosnippet#snippets_directory='~/.vim/bundle/snipmate-snippets/snippets' | |
| "" Unite.vim | |
| "unite prefix key. | |
| nnoremap [unite] <Nop> | |
| nmap <C-x> [unite] | |
| "インサートモードで開始 | |
| let g:unite_enable_start_insert = 1 | |
| "最近開いたファイル履歴の保存数 | |
| let g:unite_source_file_mru_limit = 50 | |
| "file_mruの表示フォーマットを指定。空にすると表示スピードが高速化される | |
| let g:unite_source_file_mru_filename_format = '' | |
| "開いていない場合はカレントディレクトリ | |
| nnoremap <silent> [unite]f :<C-u>UniteWithBufferDir -buffer-name=files file<CR> | |
| "バッファ一覧 | |
| nnoremap <silent> [unite]b :<C-u>Unite buffer<CR> | |
| "レジスタ一覧 | |
| nnoremap <silent> [unite]r :<C-u>Unite -buffer-name=register register<CR> | |
| "最近使用したファイル一覧 | |
| nnoremap <silent> [unite]m :<C-u>Unite file_mru<CR> | |
| ""jedi | |
| let g:jedi#auto_initialization = 1 | |
| let g:jedi#rename_command = "<leader>R" | |
| let g:jedi#popup_on_dot = 1 | |
| let g:jedi#auto_vim_configuration = 0 | |
| autocmd FileType python let b:did_ftplugin = 1 | |
| set completeopt+=longest | |
| set completeopt-=preview | |
| "" qfixhowm | |
| "Howmコマンドキーマップ | |
| let QFixHowm_Key = '<C-c>' | |
| "Howmコマンドの2ストローク目キーマップ | |
| let QFixHowm_KeyB = ',' | |
| "テンプレート表示後のカーソル移動 | |
| let QFixHowm_Cmd_NewEntry = "$" | |
| "メニュー画面で表示する最近のメモの数 | |
| let QFixHowm_MenuRecent = 10 | |
| "メニュー画面のプレビュー("i"でOn/Off) | |
| let QFixHowm_MenuPreview = 1 | |
| "エントリを自動整形しない | |
| let QFixHowm_Autoformat = 0 | |
| "QFixGrepの検索時にカーソル位置の単語を拾わない | |
| let MyGrep_DefaultSearchWord = 0 | |
| "QFixHowmの検索時にカーソル位置の単語を拾わない | |
| let QFixHowm_DefaultSearchWord = 0 | |
| """generic | |
| set history=1000 | |
| set tabstop=4 | |
| set expandtab | |
| set nobackup | |
| set noerrorbells | |
| set visualbell t_vb= | |
| set wildmode=list:longest | |
| if exists('&ambiwidth') | |
| set ambiwidth=double | |
| endif | |
| "set list | |
| set listchars=tab:»-,trail:_,eol:↲,extends:»,precedes:« | |
| ""view | |
| set number | |
| set hlsearch | |
| nmap <Esc><Esc> :nohlsearch<CR><Esc> | |
| syntax on | |
| ""search | |
| set ignorecase | |
| set smartcase | |
| set wrapscan | |
| set incsearch | |
| ""edit | |
| set virtualedit+=block | |
| if $HOSTNAME == "bb-x201s" | |
| set clipboard=unnamedplus | |
| else | |
| set clipboard=unnamed | |
| endif | |
| cmap <C-S-v> <C-r>* | |
| "" indent | |
| set smartindent | |
| set indentexpr= | |
| au FileType rst setlocal indentkeys= | |
| inoremap <S-Tab> <C-O><LT><LT> | |
| nnoremap <Tab> >> | |
| nnoremap <S-Tab> <LT><LT> | |
| vnoremap <Tab> > | |
| vnoremap <S-Tab> <LT> | |
| ""newline without autoindent | |
| imap <C-j> <CR><Esc><Home>i | |
| " タブ切り替え | |
| map <C-Tab> gt | |
| map <C-S-Tab> gT | |
| map! <C-Tab> <ESC>gt | |
| map! <C-S-Tab> <ESC>gT | |
| " ESCキーを2回押すと終了する | |
| au FileType unite nnoremap <silent> <buffer> <ESC><ESC> :q<CR> | |
| au FileType unite inoremap <silent> <buffer> <ESC><ESC> <ESC>:q<CR> | |
| " C-g でも終了する | |
| au FileType unite nnoremap <silent> <buffer> <C-g> :q<CR> | |
| au FileType unite inoremap <silent> <buffer> <C-g> <ESC>:q<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment