我的neovim配置

2020-07-08  本文已影响0人  弁慶

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

"                                  PlugList                                  "

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" Specify a directory for plugins

" - For Neovim: 'D:\Editor\Neovim\share\nvim\plugged'

" - Avoid using standard Vim directory names like 'plugin'

" Make sure you use single quotes

call plug#begin('D:\tools\Neovim\share\nvim\plugged')

" 状态栏的例子

Plug 'vim-airline/vim-airline'

Plug 'vim-airline/vim-airline-themes'

" 树形目录插件

Plug 'scrooloose/nerdtree'

" 输入法状态切换(暂不启用)

" Plug 'lilydjwg/fcitx.vim'

" 字体

" Plug 'powerline/fonts'

" Plug 'ryanoasis/nerd-fonts'

set guifont=Droid\ Sans\ Mono\ for\ Powerline:h11

call plug#end()

" 关于状态栏的小配置

" Powerline setting

let g:airline_theme='molokai'

let g:airline_powerline_fonts = 1

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

"                                  Better Defaults                          "

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" 默认工作目录

cd D:\code

" 显示行号

set number

" 搜索忽略大小写

set ignorecase

" 智能大小写

set incsearch

" 光标所在行高亮

set cursorline

" 显示括号匹配

set showmatch

" 设置Tab长度为4空格

set tabstop=4

" 设置自动缩进长度为4空格

set shiftwidth=4

" 继承前一行的缩进方式

set autoindent

" 设置粘贴模式

set paste

" 显示空格和tab键

set listchars=tab:>-,trail:-

" 显示光标所在位置

set ruler

" 让vimrc配置变更立即生效

autocmd BufWritePost $MYVIMRC source $MYVIMRC


字体配置参考:https://www.cnblogs.com/acbingo/p/4752212.html

其他配置参考:https://blog.csdn.net/qq_43497702/article/details/96485972

上一篇 下一篇

猜你喜欢

热点阅读