From 47be6a508c4150f8ef2627ae185c650c081c6bbf Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 4 Jun 2022 19:17:01 +0800 Subject: Add more plugins for nvim --- .vimrc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 4f25b5d..6ec5036 100644 --- a/.vimrc +++ b/.vimrc @@ -28,20 +28,17 @@ if has('python3') elseif has('python') endif -if has('nvim') - set packpath^=~/.vim - set packpath+=~/.vim/after - set runtimepath^=~/.vim - set runtimepath+=~/.vim/after -endif - " GUI set guioptions-=m set guioptions-=T set guioptions-=r set guioptions+=c -set guifont=DejaVu\ Sans\ Mono\ 12 +if has('nvim') + set guifont=Dejavu\ Sans\ Mono:h12 +else + set guifont=DejaVu\ Sans\ Mono\ 12 +endif if has('macunix') set guifont=Monaco:h16 endif @@ -131,7 +128,8 @@ set directory=~/.vim/.swp// set tags=./.tags;,.tags " mapping -let mapleader=',' " change the key +let mapleader=',' +let maplocalleader='\' nnoremap cd :cd %:p:h :pwd nnoremap cnoremap -- cgit v1.2.3