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
" Installation | |
" NeoBundle 'gist:mopp/6590603', { 'name': 'inOne.vim', 'script_type': 'plugin'} | |
let s:buf_name = 'AllInOne' | |
let s:signature = '=====DELIMITER=====' | |
function! s:write() | |
" echomsg 'call write' | |
call cursor(1, 0) | |
let now_line = 0 |
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
$ の行はターミナルで実行するコマンドです | |
まずcygwin内でvimを起動し.vimrcを作成 | |
$ vim ~/.vimrc | |
以下の囲われている所をコピペ | |
-------------------------------------------------- | |
set nocompatible " Be iMproved | |
if has('vim_starting') |
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
let lst = [ ['<', "smartchr#loop(' < ', ' << ', '<')" ], | |
\ ['>', "smartchr#loop(' > ', ' >> ', ' >>> ', '>')"], | |
\ ['+', "smartchr#loop(' + ', ' ++ ', '+')"], | |
\ ['-', "smartchr#loop(' - ', ' -- ', '-')"], | |
\ ['/', "smartchr#loop(' / ', '//', '/')"], | |
\ ['&', "smartchr#loop(' & ', ' && ', '&')"], | |
\ ['%', "smartchr#loop(' % ', '%')"], | |
\ ['*', "smartchr#loop(' * ', '*')"], | |
\ ['<Bar>', "smartchr#loop(' | ', ' || ', '|')"], | |
\ [',', "smartchr#loop(', ', ',')"]] |
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
“ NeoComplete | |
NeoBundle 'Shougo/neocomplete.vim' | |
NeoBundle 'Shougo/context_filetype.vim' | |
let g:neocomplete#enable_at_startup = 1 | |
“ NeoComplCache | |
NeoBundle 'Shougo/neocomplcache' | |
let g:neocomplcache_enable_at_startup = 1 |
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
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim | |
endif | |
call neobundle#rc() | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle ‘入れたいプラギン名’“ ←リポジトリ名 | |
filetype plugin indent on “ ← 必須 |
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
// インストールディレクトリを作成 | |
$ mkdir -p ~/.vim/bundle | |
// githubのリポジトリから引っ張ってくる | |
$ git clone git://github.com/Shougo/neobundle.vim | |
\ ~/.vim/bundle/neobundle.vim | |
// vimrcへ追記 |
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
set nocompatible | |
set number | |
set laststatus=2 | |
set statusline=%<%F\ %m%r%h%w%y%{'['.(&fenc!=''?&fenc:&enc).']['.&fileformat.']'}%=%l/%L,%c%V%8P | |
set cmdheight=2 " コマンドラインの行数 | |
set showcmd " 入力中のコマンド表示 | |
set showmatch " 括弧強調 | |
set showtabline=2 " タブバーを常に表示 | |
set backspace=2 " Backspaceの動作 |
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
NeoBundle 'Shougo/neosnippet' | |
“インサートモードのマッピング | |
imap <C-k> <Plug>(neosnippet_expand_or_jump) | |
smap <C-k> <Plug>(neosnippet_expand_or_jump) | |
set conceallevel=2 concealcursor=i |
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
function! g:vimconsole#hooks.on_logged(context) | |
call vimconsole#winopen() | |
" echomsg string(a:context) | |
endfunction | |
function! s:tester(i) | |
call vimconsole#log('This message is test '.a:i) | |
endfunction |
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
function! g:vimconsole#hooks.on_logged(context) | |
echomsg string(a:context) | |
endfunction | |
function! s:tester(i) | |
call vimconsole#log('This message is test '.a:i) | |
endfunction | |