Skip to content

Instantly share code, notes, and snippets.

@yigger
Created December 7, 2018 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yigger/e858229ec7c8bd35e2caff69f3a02112 to your computer and use it in GitHub Desktop.
Save yigger/e858229ec7c8bd35e2caff69f3a02112 to your computer and use it in GitHub Desktop.
nvim.rc
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Declare the list of plugins.
Plug 'tpope/vim-sensible'
Plug 'junegunn/seoul256.vim'
Plug 'https://github.com/vim-scripts/fcitx.vim.git'
Plug 'posva/vim-vue'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'altercation/vim-colors-solarized'
Plug 'scrooloose/nerdtree'
Plug 'vim-ruby/vim-ruby'
Plug 'tpope/vim-rails'
Plug 'godlygeek/tabular'
Plug 'mileszs/ack.vim'
Plug 'tpope/vim-commentary'
" Plug 'valloric/youcompleteme'
Plug 'Yggdroot/LeaderF', { 'do': './install.sh' }
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
syntax enable
set background=dark
colorscheme solarized
let g:solarized_termcolors=256
set t_Co=256
set cursorline
set nu!
set ai
set mouse=a
set cursorline " 高亮显示当前行
set autoread
set noswapfile
set virtualedit=block,onemore
set wildmenu
if has("gui_running")
set guifont=Droid\ Sans\ Mono\ Nerd\ Font\ Complete:h18 " 设置字体
set guioptions-=m " 隐藏菜单栏
set guioptions-=T " 隐藏工具栏
set guioptions-=L " 隐藏左侧滚动条
set guioptions-=r " 隐藏右侧滚动条
set guioptions-=b " 隐藏底部滚动条
set showtabline=0 " 隐藏Tab栏
set guicursor=n-v-c:ver5 " 设置光标为竖线
endif
autocmd FileType vue syntax sync fromstart
map <C-n> :NERDTreeToggle<CR>
map <F1> :Leaderf rg -e
map <F2> :LeaderfFilePattern
map <F3> :LeaderfLineAll <CR>
map <F8> :w<CR>
nmap  <Plug>CommentaryLine
map  :tabnew<CR>
map <F33> :tabn<CR>
map <F34> :tabp<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment