V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  arakashic  ›  全部回复第 7 页 / 共 7 页
回复总数  125
1  2  3  4  5  6  7  
2016-02-27 07:30:20 +08:00
回复了 wentian 创建的主题 Vim 使用号称「Vim's rebirth for the 21st century」的 NeoVim 的感觉如何?
vim 已经卸载。 neovim 目前除了没有+lua 导致有一个插件不能用以外,已经能满足我的使用需求了。
2016-02-27 07:26:16 +08:00
回复了 haoc 创建的主题 Vim NeoVim 的 themes 正确使用姿势
如果你的 neovim 设置使用了 truecolor ( let $NVIM_TUI_ENABLE_TRUE_COLOR = 1 )的话,应该使用 theme 里的 gui color 。但是 neovim 在这种情况下不会设置 has("gui_running"),导致 colorscheme 不能正确使用 gui color 。这个暂时只能通过 patch colorscheme 来解决,具体可以参考我这个 commit , https://github.com/arakashic/nvim-colors-solarized/commit/ea1e3662fc98ac73e520710c2f5a1a691efb84dc 。只要你的 colorscheme 有 gui color 一般都可以这么干。

另外,用 tmux 的话要确保 tmux 有 truecolor 的 patch 。
2016-02-27 07:08:07 +08:00
回复了 wentian 创建的主题 Vim show 下你的 vim-bundle-plugins? ::)
" Plugin: Unite.vim and related {{{
let g:has_unite = 0
if count(g:myvimrc_bundle_groups, 'unite')
" Dependencies
NeoBundle 'Shougo/vimproc.vim', {
\ 'build': {
\ 'cygwin': 'make',
\ 'mac': 'make',
\ 'unix': 'make',
\ },
\ 'on_source' : 'unite',
\ }

" Unite
NeoBundle 'Shougo/unite.vim', {
\ 'on_cmd' : ['Unite']
\ }
NeoBundle 'Shougo/neomru.vim'
NeoBundle 'Shougo/unite-outline', {'on_unite' : 'outline'}
NeoBundle 'tsukkee/unite-help', {'on_unite' : 'help'}
NeoBundle 'thinca/vim-unite-history', {
\ 'on_unite' : ['history/command', 'history/search']}
NeoBundle 'osyo-manga/unite-filetype', {
\ 'on_unite' : 'filetype'}
NeoBundle 'osyo-manga/unite-quickfix', {
\ 'on_unite' : ['quickfix', 'location_list']}
NeoBundle 'osyo-manga/unite-fold', {'on_unite' : 'fold'}
NeoBundle 'tacroe/unite-mark', {'on_unite' : 'mark'}
" Unite plugin that provides command line completion
NeoBundle 'ujihisa/unite-locate', {'on_unite' : 'locate'}

" Unite plugin that provides spell suggestions
NeoBundle 'kopischke/unite-spell-suggest'
let g:has_unite = 1
endif
" }}}

" Plugin: TMUX integration {{{
" VIM-TMUX
NeoBundle 'christoomey/vim-tmux-navigator'
NeoBundle 'benmills/vimux', {'on_cmd' : ['VimuxPromptCommand']}
" }}}

" Session management
NeoBundle 'tpope/vim-obsession', {'on_cmd' : ['Obsession', 'Obsession!']}

" Bundle: completer and highlighter {{{
let g:has_ycm = 0
if count(g:myvimrc_bundle_groups, 'comp-ling')
NeoBundle 'Valloric/YouCompleteMe', {
\ 'build' : {
\ 'mac' : './install.py',
\ 'unix' : './install.py'
\ },
\ }
let g:has_ycm = 1
endif

let g:has_color_coded = 0
if count(g:myvimrc_bundle_groups, 'highlight-ling')
if !has('nvim')
NeoBundle 'jeaye/color_coded', {
\ 'frozen' : 1,
\ 'disabled' : !has('lua'),
\ 'build': {
\ 'unix': 'cmake . && make && make install',
\ 'mac': 'cmake . && make && make install',
\ },
\ 'on_ft' : ['c', 'cpp', 'objc', 'objcpp'],
\ 'build_commands' : ['cmake', 'make']
\ }
let g:has_color_coded = 1
else
NeoBundle 'bbchung/Clamp', {
\ 'on_ft' : ['c', 'cpp']}
endif
else
NeoBundle 'justinmk/vim-syntax-extra', {
\ 'on_ft' : ['c', 'flex', 'bison']}
NeoBundle 'octol/vim-cpp-enhanced-highlight', {
\ 'on_ft' : 'cpp'}
endif
" }}}

" Bundle: Utitlies and SCM {{{
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'tpope/vim-fugitive', {
\ 'on_cmd' : ['Gstatus', 'Gdiff', 'Gvdiff'],
\ 'on_path' : '.*'}
NeoBundle 'gregsexton/gitv', {'on_cmd' : 'Gitv'}
NeoBundle 'Xuyuanp/nerdtree-git-plugin', {
\ 'on_source' : ['vim-fugitive'] }

NeoBundle 'tpope/vim-repeat', {'on_source' : 'vim-surround'}
NeoBundle 'tpope/vim-surround'
NeoBundle 'tmhedberg/matchit', {
\ 'disabled' : has('nvim'),
\ 'on_ft' : ['xml', 'html', 'xhtml'],
\ }
NeoBundle 'Shougo/vimfiler.vim', {
\ 'depends' : 'Shougo/unite.vim',
\ 'on_cmd' : ['VimFilerTab', 'VimFiler', 'VimFilerExplorer']
\ }
NeoBundle 'scrooloose/nerdtree', {
\ 'on_cmd' : 'NERDTreeToggle'}
NeoBundle 'simnalamburt/vim-mundo', {'on_cmd' : ['GundoToggle']}
" Hexadecimal editor
NeoBundle 'Shougo/vinarise.vim', {
\ 'on_cmd' : ['Vinarise', 'VinariseDump']}

" list of tag
NeoBundle 'majutsushi/tagbar', {'on_cmd' : ['Tagbar']}
NeoBundle 'taglist.vim', {
\ 'on_ft' : ['tex', 'bib', 'vim'],
\ 'on_cmd' : 'Tlist',
\ }

" Easy to use
NeoBundle 'godlygeek/tabular', {'on_cmd' : 'Tabularize'}
NeoBundle 'arakashic/nerdcommenter', {'on_map' : ['<leader>cc', '<leader>cu']}
NeoBundle 'milkypostman/vim-togglelist', {
\ 'on_func' : ['ToggleLocationList', 'ToggleQuickfixList']}
NeoBundle 'rking/ag.vim', {
\ 'external_commands' : 'ag',
\ 'on_cmd' : 'Ag'}
NeoBundle 'dyng/ctrlsf.vim', {
\ 'external_commands' : 'ag',
\ 'on_cmd' : 'CtrlSF'}
NeoBundle 'arakashic/highlight.vim', {'on_ft' : ['log']}
NeoBundle 'sfiera/vim-emacsmodeline'
NeoBundle 'matze/vim-move'

" move and selection
NeoBundle 'terryma/vim-expand-region', {'on_map' : ['n', '+']}
NeoBundle 'terryma/vim-multiple-cursors', {'on_map' : ['n', '<F11>']}
NeoBundle 'Lokaltog/vim-easymotion', {'on_map' : '<leader><leader>'}
NeoBundle 'kana/vim-textobj-user', {
\ 'on_source' : ['vim-textobj-quote', 'vim-textobj-sentence', 'vim-textobj-latex']}

" coding
NeoBundle 'PeterRincker/vim-argumentative', {
\ 'on_ft' : ['c', 'cpp', 'java', 'python', 'sh', 'vim']
\ }
NeoBundle 'benekastah/neomake'
NeoBundle 'honza/vim-snippets'
NeoBundle 'SirVer/ultisnips'
NeoBundle 'Yggdroot/indentLine', {'on_ft' : ['python']}
" }}}


" Bundle: UI {{{
NeoBundle 'vim-airline/vim-airline', {
\ 'depends' : [ 'vim-airline/vim-airline-themes' ] }
NeoBundle 'kien/rainbow_parentheses.vim'
NeoBundle 'michaeljsmith/vim-indent-object'
NeoBundle 'nathanaelkane/vim-indent-guides'
NeoBundle 'mkitt/tabline.vim', {'on_cmd' : 'tab'}
NeoBundle 'kshenoy/vim-signature'
" }}}


" Bundle: file type tools {{{
NeoBundle 'vim-jp/cpp-vim', {'on_ft' : 'cpp'}
NeoBundle 'plasticboy/vim-markdown', {'on_ft' : ['markdown']}
NeoBundle 'arakashic/vim-latex', {
\ 'on_ft' : ['tex', 'bib'],
\ 'name' : 'vim-latex',
\ }
" Syntax highlights
NeoBundle 'arakashic/vim-slate', {'on_ft' : 'slate'}
NeoBundle 'elzr/vim-json', {'on_ft' : 'json'}
NeoBundle 'nickhutchinson/vim-systemtap', {'on_ft' : 'stp'}
NeoBundle 'mvolkmann/vim-tag-comment', {'on_ft' : ['html', 'xml', 'xhtml']}
" }}}


" Bundle: debugger {{{
if !has('nvim')
NeoBundle 'gilligan/vim-lldb', {
\ 'external-commands' : 'lldb',
\ 'disabled' : has('nvim'),
\ }
else
NeoBundle 'critiqjo/lldb.nvim', {
\ 'external-commands' : 'lldb',
\ 'disabled' : !has('nvim'),
\ }
endif
" }}}

" Bundle: Writing Plugins {{{
let g:has_writing = 0
if count(g:myvimrc_bundle_groups, 'writing')
NeoBundleLazy 'reedes/vim-pencil'
NeoBundleLazy 'reedes/vim-lexical'
NeoBundleLazy 'reedes/vim-litecorrect'
NeoBundleLazy 'reedes/vim-wordy'
NeoBundleLazy 'reedes/vim-textobj-quote', { 'depends' : ['vim-textobj-user'] }
NeoBundleLazy 'reedes/vim-textobj-sentence', { 'depends' : ['vim-textobj-user'] }
NeoBundleLazy 'rbonvall/vim-textobj-latex', { 'depends' : ['vim-textobj-user'] }
let g:has_writing = 1
endif
" }}}

" Bundle: tags, ctags {{{
let g:has_ctags_indexer = 0
if count(g:myvimrc_bundle_groups, 'ctags')
NeoBundle 'vimprj', {
\ 'on_ft' : ['c', 'cpp'],
\ }
NeoBundle 'DfrankUtil', { 'on_source' : 'vimprj' }
NeoBundle 'indexer.tar.gz', { 'on_source' : 'vimprj' }
let g:has_ctags_indexer = 1
endif
" }}}

" ColorSchemes {{{
NeoBundle 'arakashic/nvim-colors-solarized'
NeoBundle 'nanotech/jellybeans.vim'
NeoBundle 'lilydjwg/colorizer'
2016-02-25 11:15:39 +08:00
回复了 codecrash 创建的主题 Vim vim 的语法检查
这个取决于你设置的 linter 。你得找找 Racket 有没有静态分析的 linter 。 vim 不支持 async 的 plugin ,所以 syntastic 工作起来是比较影响使用。

你也可以考虑使用 neovim + neomake ,至少是 async 的。
2016-02-04 05:52:01 +08:00
回复了 spacehulk 创建的主题 Vim neovim 有人用吗
neovim 挺好的,我已经抛弃 vim 了
1  2  3  4  5  6  7  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2846 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 14:56 · PVG 22:56 · LAX 07:56 · JFK 10:56
Developed with CodeLauncher
♥ Do have faith in what you're doing.