Linux 下 vim 开发 js 的配置,大家可以晒出自己的 vim 配置 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
myliang
V2EX    程序员

Linux 下 vim 开发 js 的配置,大家可以晒出自己的 vim 配置

  •  
  •   myliang
    myliang 2019-05-18 17:01:10 +08:00 3672 次点击
    这是一个创建于 2337 天前的主题,其中的信息可能已经有所发展或是发生改变。
    set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo " Plugin 'tpope/vim-fugitive' " plugin from http://vim-scripts.org/vim/scripts.html " Plugin 'L9' " Git plugin not hosted on GitHub " Plugin 'git://git.wincent.com/command-t.git' " git repos on your local machine (i.e. when working on your own plugin) " Plugin 'file:///home/gmarik/path/to/plugin' " The sparkup vim script is in a subdirectory of this repo called vim. " Pass the path to set the runtimepath properly. " Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} " Install L9 and avoid a Naming conflict if you've already installed a " different version somewhere else. " Plugin 'ascenator/L9', {'name': 'newL9'} Plugin 'tomasr/molokai' " Plugin 'altercation/vim-colors-solarized' Plugin 'kien/ctrlp.vim' Plugin 'easymotion/vim-easymotion' Plugin 'nathanaelkane/vim-indent-guides' Plugin 'Lokaltog/vim-powerline' " Plugin 'posva/vim-vue' " Plugin 'vim-syntastic/syntastic' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line set nocompatible " Disable vi-compatibility set laststatus=2 " Always show the statusline set encoding=utf-8 " Necessary to show Unicode glyphs set t_Co=256 " Explicitly tell Vim that the terminal supports 256 colors set ts=2 sw=2 set et nu hlsearch cursorline " molokai " syntax enable syntax on set background=dark " let g:molokai_original = 0 colorscheme molokai highlight Normal ctermbg=NONE highlight nonText ctermbg=NONE highlight Visual ctermbg=darkgrey " eslint " set statusline+=%#warningmsg# " set statusline+=%{SyntasticStatuslineFlag()} " set statusline+=%* " " " let g:syntastic_always_populate_loc_list = 1 " let g:syntastic_auto_loc_list = 1 " let g:syntastic_check_on_open = 1 " let g:syntastic_check_on_wq = 0 " let g:syntastic_Javascript_checkers = ['eslint'] " let g:syntastic_Javascript_eslint_exec = './node_modules/eslint/bin/eslint.js' " let g:syntastic_Javascript_eslint_exe = 'npm run lint --' " let g:ctrlp_root_markers = ['.gitignore'] let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn)|node_modules|dist|docs$', \ 'file': '\v\.(exe|so|dll)$', \ 'link': 'some_bad_symbolic_links', \ } " indent let g:indent_guides_start_level = 2 let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_guide_size = 1 " easymotion let g:EasyMotion_do_mapping = 0 " Disable default mappings " s{char}{char} to move to {char}{char} nmap s <Plug>(easymotion-overwin-f2) 
    16 条回复    2019-05-19 13:27:12 +08:00
    Aumujun
        1
    Aumujun  
       2019-05-18 17:18:15 +08:00
    ahonn
        2
    ahonn  
       2019-05-18 17:20:45 +08:00
    https://github.com/ahonn/dotfiles/tree/master/vim

    仓库里还有 tmux / fish / hammerspoon 之类的配置
    577322753
        3
    577322753  
       2019-05-18 17:52:37 +08:00 via Android
    vscode 是收费了吗?费这劲/div>
    PTLin
        4
    PTLin  
       2019-05-18 18:01:19 +08:00
    Vundle 已经过时了,现在 vim-plug 是好的替代品,主题推荐 space-vim-dark 和 gruvbox,补全我不写 js,不过你可以了解一下 coc.nvim,特别棒的补全插件,基本所有功能都有,powerline 也被 airline 比下去了。
    PTLin
        5
    PTLin  
       2019-05-18 18:03:33 +08:00
    @577322753 折腾 vim 蛮有意思的,当作日常娱乐也是不错的。
    ThomasZ
        7
    ThomasZ  
       2019-05-18 18:13:22 +08:00 via Android
    已经站到 vscode 的阵营了。。。
    myliang
        8
    myliang  
    OP
       2019-05-18 19:10:50 +08:00 via iPhone
    @577322753 vscode 也使用
    myliang
        9
    myliang  
    OP
       2019-05-18 19:13:38 +08:00 via iPhone
    @PTLin 能满足我的需求就行,自动补全我不使用 airline 的样式不是我喜欢的东西呵呵
    justin2018
        10
    justin2018  
       2019-05-18 22:21:49 +08:00
    SpaceVim 用别人弄好的~~
    Aumujun
        11
    Aumujun  
       2019-05-18 22:39:02 +08:00
    最烦在 vim 帖子下面那些回复 vscode, intelij 之类的言论, 你们点进来干嘛
    sw0rd3n
        12
    sw0rd3n  
       2019-05-18 23:11:36 +08:00 via iPhone
    CodingNaux
        13
    CodingNaux  
       2019-05-19 09:11:10 +08:00 via iPhone
    vim 是 hard 模式 vscode 是 easy 模式
    我选 vscode
    jeffhuen
        14
    jeffhuen  
       2019-05-19 10:03:22 +08:00 via Android
    之前我也折腾过 vim,实在是太累了,就只好去折腾自带 vim 模式的 sublime 更方便一些
    beginor
        15
    beginor  
       2019-05-19 11:14:06 +08:00 via Android
    我觉得 nano 更容易让人接受一点, 一般发行版都带上了
    leoatchina
        16
    leoatchina  
       2019-05-19 13:27:12 +08:00
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     6013 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 03:25 PVG 11:25 LAX 20:25 JFK 23:25
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86