当前位置:   article > 正文

简单的vim配置+下载好的插件(复制即用!)_vim插件下载

vim插件下载

速用!!!

我的vim配置和插件都在这里,直接克隆到用户目录下就可以直接使用啦。

https://github.com/zzzghttt/myVim

详细

vim重度使用患者,最近进实验室了,新搭的服务器上简单配置一下vim,记录一下,效果图:

不过该配置没有对C/C++或者python等语言进行配置,因为服务器上大概率用不到,想配置的可以去看看coc等插件,vim插件下载在这里:Vim Awesome

下面是我的~./config/nvim/init.vim文件,需要.vim/bundle。

  1. " ====== basic settings =====
  2. inoremap jj <ESC>
  3. set nu
  4. set relativenumber
  5. filetype on
  6. set history=1000
  7. set nocompatible
  8. set shiftwidth=4
  9. syntax on
  10. set autoindent
  11. set smartindent
  12. set tabstop=4
  13. set showmatch
  14. set guioptions-=T
  15. set vb t_vb=
  16. set hlsearch
  17. set ruler
  18. set incsearch
  19. let mapleader="\<SPACE>"
  20. "===== vim color scheme ======
  21. if $COLORTERM == 'gnome-terminal'
  22. set t_Co=256
  23. endif
  24. try
  25. colorscheme desert
  26. catch
  27. endtry
  28. set background=dark
  29. " ======= Plugin ========
  30. set rtp+=~/.vim/bundle/Vundle.vim
  31. call vundle#begin()
  32. " 此处添加所要安装的Vim插件, 插件需在begin、end之间
  33. Plugin 'VundleVim/Vundle.vim'
  34. Plugin 'scrooloose/nerdtree'
  35. Plugin 'easymotion/vim-easymotion'
  36. Plugin 'tpope/vim-surround'
  37. Plugin 'tomtom/tcomment_vim'
  38. Plugin 'vim-airline/vim-airline'
  39. call vundle#end()
  40. filetype plugin indent on
  41. map <LEADER>e :NERDTreeToggle<CR>
  42. " ====== Plugin configuration ======
  43. let g:tcomment_textobject_inlinecomment = ''
  44. nmap <LEADER>cn g>c
  45. vmap <LEADER>cn g>
  46. nmap <LEADER>cu g<c
  47. vmap <LEADER>cu g<
  48. set laststatus=2
  49. "永远显示状态栏
  50. let g:airline_powerline_fonts = 1
  51. " 支持 powerline 字体
  52. let g:airline#extensions#tabline#enabled = 1
  53. " 显示窗口tab和buffer
  54. " let g:airline_theme='moloai'
  55. " murmur配色不错
  56. if !exists('g:airline_symbols')
  57. let g:airline_symbols = {}
  58. endif
  59. let g:airline_left_sep = '▶'
  60. let g:airline_left_alt_sep = '❯'
  61. let g:airline_right_sep = '◀'
  62. let g:airline_right_alt_sep = '❮'
  63. let g:airline_symbols.linenr = '-'
  64. let g:airline_symbols.branch = '⎇'
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/216717
推荐阅读
相关标签
  

闽ICP备14008679号