summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMineralwaterXu <[email protected]>2020-07-11 13:45:03 +0800
committerMineralwaterXu <[email protected]>2020-07-11 13:45:03 +0800
commitaadb5a71ca1ec573da13b3228c459f414550ae60 (patch)
tree95430c693eaace173d98543d8209ca0e3987220c
parentc8bcccbba7a9f7f2529b9ea6f10dd196d8b0509a (diff)
modified nvim config
-rw-r--r--init.vim35
1 files changed, 35 insertions, 0 deletions
diff --git a/init.vim b/init.vim
index 5c121a7..a10ad8d 100644
--- a/init.vim
+++ b/init.vim
@@ -1,3 +1,38 @@
let mapleader=" "
syntax on
+set number
+set relativenumber
+set cursorline
+set wrap
+set showcmd
+set wildmenu
+set hlsearch
+exec "nohlsearch"
+set incsearch
+set ignorecase
+set smartcase
+
+noremap J 5j
+noremap K 5k
+noremap = nzz
+noremap - Nzz
+noremap <LEADER><CR> :nohlsearch<CR>
+
+map S :w<CR>
+map s <nop>
+map Q :q<CR>
+map R :source $MYVIMRC<CR>
+map sk :set nosplitbelow<CR>:split<CR>:set splitbelow<CR>
+map sj :set splitbelow<CR>:split<CR>
+map sh :set nosplitright<CR>:vsplit<CR>:set splitright<CR>
+map sl :set splitright<CR>:vsplit<CR>
+
+map <up> :res +5<CR>
+map <down> :res -5<CR>
+map <left> :vertical resize-5<CR>
+map <right> :vertical resize+5<CR>
+
+noremap s[ <C-w>t<C-w>K
+noremap s] <C-w>t<C-w>H
+
colorscheme koehler