V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  nouh  ›  全部回复第 7 页 / 共 12 页
回复总数  238
1  2  3  4  5  6  7  8  9  10 ... 12  
2012-08-28 18:11:29 +08:00
回复了 shellex 创建的主题 问与答 coffeescript的报错信息反馈问题
2012-08-28 18:07:31 +08:00
回复了 shellex 创建的主题 问与答 coffeescript的报错信息反馈问题
用vim-coffeescript插件,然后加上这个配置
vnoremap <leader>c <esc>:'<,'>:CoffeeCompile<CR>
nnoremap <leader>c :CoffeeCompile<CR>
command -nargs=1 C CoffeeCompile | :<args>
2012-08-27 23:41:02 +08:00
回复了 adow 创建的主题 Vim 才发现原来mac os x 下的vim 是不能"+y 复制到剪贴板的
textmate的威力在于不必折腾的统一的补全方式(press esc)和强大的snippets(tab it)
2012-08-27 23:39:13 +08:00
回复了 adow 创建的主题 Vim 才发现原来mac os x 下的vim 是不能"+y 复制到剪贴板的
不要用系统自带的vim,用homebrew编译出来的
brew install macvim --head --override-system-vim
2012-08-27 23:35:24 +08:00
回复了 laskuma 创建的主题 Vim 请教下neocomplcache设置问题
有neocomplcache还要什么supertab呢,同类型的东西用一个终极的就可以了,贴下我的配置吧,自动弹出补全菜单,snippet仍然用的是snipmate的,snippets会显示在补全菜单里,有比较明显的标识区别与其他的补全。 触发补全仍然是tab,上关键字是enter, 轮转菜单是tab

let g:neocomplcache_enable_at_startup = 1
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Use camel case completion.
let g:neocomplcache_enable_camel_case_completion = 1
" Use underbar completion.
let g:neocomplcache_enable_underbar_completion = 1
" Set minimum syntax keyword length.
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'

" Define dictionary.
let g:neocomplcache_dictionary_filetype_lists = {
\ 'default' : '',
\ 'vimshell' : $HOME.'/.vimshell_hist',
\ 'scheme' : $HOME.'/.gosh_completions'
\ }

" Define keyword.
if !exists('g:neocomplcache_keyword_patterns')
let g:neocomplcache_keyword_patterns = {}
endif
let g:neocomplcache_keyword_patterns['default'] = '\h\w*'

" Plugin key-mappings.
imap <C-k> <Plug>(neocomplcache_snippets_expand)
smap <C-k> <Plug>(neocomplcache_snippets_expand)
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-l> neocomplcache#complete_common_string()

" SuperTab like snippets behavior.
"imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"

" Recommended key-mappings.
" <CR>: close popup and save indent.
"inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
inoremap <expr><silent> <CR> <SID>my_cr_function()
"use <CR> to choose the candidate under cursor
function! s:my_cr_function()
return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
endfunction

inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
imap <expr><Tab> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : "\<C-n>"
" <TAB>: completion.
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-j> neocomplcache#close_popup()
inoremap <expr><C-e> neocomplcache#cancel_popup()


" AutoComplPop like behavior.
let g:neocomplcache_enable_auto_select = 1

" 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 xml setlocal omnifunc=xmlcomplete#CompleteTags
2012-08-12 15:01:20 +08:00
回复了 Livid 创建的主题 Markdown 有没有能够支持用 Markdown 来写的幻灯片工具呢?
landslide+1
2012-07-26 00:27:23 +08:00
回复了 MartianZ 创建的主题 分享创造 fakeThunder - OS X迅雷离线非官方客户端[Beta]
@MartianZ 还是无法正常登陆是怎么回事
把这个装上试试,看看snippets够不够用 https://github.com/scrooloose/snipmate-snippets
1  2  3  4  5  6  7  8  9  10 ... 12  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2502 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 16:01 · PVG 00:01 · LAX 09:01 · JFK 12:01
Developed with CodeLauncher
♥ Do have faith in what you're doing.