Changeset 33515 for dotfiles/vim/from_kyushu/.vim
- Timestamp:
- 05/23/09 04:34:24 (4 years ago)
- Files:
-
- 1 modified
-
dotfiles/vim/from_kyushu/.vim/plugin/quickrun.vim (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vim/from_kyushu/.vim/plugin/quickrun.vim
r32603 r33515 27 27 call s:open_result_buffer('quicklaunch_list') 28 28 " FIXME: use s:write_result_buffer 29 setlocal modifiable 30 silent % delete _ 31 call append(0, '') 32 for i in range(10) 33 if exists('g:quicklaunch_commands[i]') 34 call append(line('$'), i . ': ' . g:quicklaunch_commands[i]) 35 else 36 call append(line('$'), i . ': <Nop>') 37 endif 38 endfor 39 silent 1 delete _ 40 setlocal nomodifiable 29 silent % delete _ 30 call append(0, '') 31 for i in range(10) 32 if exists('g:quicklaunch_commands[i]') 33 call append(line('$'), i . ': ' . g:quicklaunch_commands[i]) 34 else 35 call append(line('$'), i . ': <Nop>') 36 endif 37 endfor 38 silent 1 delete _ 41 39 endfunction 42 40 … … 103 101 setlocal nobuflisted 104 102 setlocal buftype=nofile 105 setlocal nomodifiable106 103 setlocal noswapfile 107 104 setfiletype quickrun … … 123 120 124 121 function! s:write_result_buffer(loading_message, command) 125 setlocal modifiable 126 silent % delete _ 127 call append(0, a:loading_message) 128 redraw 129 silent % delete _ 130 call append(0, '') 131 execute a:command 132 silent 1 delete _ 133 setlocal nomodifiable 122 silent % delete _ 123 call append(0, a:loading_message) 124 redraw 125 silent % delete _ 126 call append(0, '') 127 execute a:command 128 silent 1 delete _ 134 129 endfunction 135 130 … … 170 165 autocmd Filetype c call s:set_quickrun_command('function __rungcc__() { gcc $1 && ./a.out } && __rungcc__') 171 166 autocmd Filetype cpp call s:set_quickrun_command('function __rungpp__() { g++ $1 && ./a.out } && __rungpp__') 172 autocmd Filetype objc call s:set_quickrun_command('function __rungcc__() { gcc $1 && ./a.out } && __rungcc__') 167 autocmd Filetype eruby call s:set_quickrun_command('erb -T -') 168 autocmd Filetype gnuplot call s:set_quickrun_command('gnuplot') 173 169 autocmd Filetype haskell call s:set_quickrun_command('runghc') 174 170 autocmd Filetype io call s:set_quickrun_command('io') 175 171 autocmd Filetype javascript call s:set_quickrun_command('js') 172 autocmd Filetype mkd call s:set_quickrun_command('function __mkd__() { rpeg-markdown $1 > /tmp/__markdown.html; open /tmp/__markdown.html } && __mkd__') 173 autocmd Filetype objc call s:set_quickrun_command('function __rungcc__() { gcc $1 && ./a.out } && __rungcc__') 176 174 autocmd Filetype perl call s:set_quickrun_command('perl') 177 175 autocmd Filetype php call s:set_quickrun_command('php') 178 176 autocmd Filetype python call s:set_quickrun_command('python') 179 autocmd Filetype ruby call s:set_quickrun_command('ruby1.9') 177 autocmd Filetype r call s:set_quickrun_command('R --no-save --slave <') 178 autocmd Filetype ruby call s:set_quickrun_command('ruby') 180 179 autocmd Filetype scala call s:set_quickrun_command('scala') 181 180 autocmd Filetype scheme call s:set_quickrun_command('gosh') 182 181 autocmd Filetype sed call s:set_quickrun_command('sed') 183 182 autocmd Filetype sh call s:set_quickrun_command('sh') 184 autocmd Filetype gnuplot call s:set_quickrun_command('gnuplot')185 autocmd Filetype eruby call s:set_quickrun_command('erb -T -')186 autocmd Filetype r call s:set_quickrun_command('R --no-save --slave <')187 183 augroup END 188 184
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)