aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-04 19:17:01 +0800
committerGuangxiong Lin <[email protected]>2022-06-05 11:41:04 +0800
commit47be6a508c4150f8ef2627ae185c650c081c6bbf (patch)
tree49656b4c2ffcc6adae8df89f4c9747287663311f /.vimrc
parent8c54a7ae533b5e07e978c705f3790eff054196c0 (diff)
downloaddotfiles-47be6a508c4150f8ef2627ae185c650c081c6bbf.tar.gz
dotfiles-47be6a508c4150f8ef2627ae185c650c081c6bbf.tar.bz2
dotfiles-47be6a508c4150f8ef2627ae185c650c081c6bbf.zip
Add more plugins for nvim
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc16
1 files changed, 7 insertions, 9 deletions
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 <leader>
+let mapleader=','
+let maplocalleader='\'
nnoremap <leader>cd :cd %:p:h<CR> :pwd<CR>
nnoremap <c-g><c-g> <Esc>
cnoremap <C-G> <C-C>