summaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim50
1 files changed, 5 insertions, 45 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 3757748..6907a74 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -10,49 +10,9 @@ if has('mouse')
set mouse=a
endif
-set nocompatible
-set hidden
-set wildmenu
-set showcmd
-set hlsearch
-set ignorecase
-set smartcase
-set backspace=indent,eol,start
-set autoindent
-set nostartofline
-set ruler
-set laststatus=0
-set confirm
-set visualbell
-set t_vb=
-set cmdheight=2
-set number
-set relativenumber
-set notimeout ttimeout ttimeoutlen=200
-set pastetoggle=<F11>
-set shiftwidth=4
-set softtabstop=4
-set expandtab
-set incsearch
-
-map Y y$
-nnoremap <C-L> :nohl<CR><C-L>
-nnoremap n nzzzv
-nnoremap N Nzzzv
-
-" inoremap kj <Esc>
-inoremap , ,<c-g>u
-inoremap . .<c-g>u
-inoremap [ [<c-g>u
-inoremap ! !<c-g>u
-inoremap ? ?<c-g>u
-
-nnoremap <expr> k (v:count > 5 ? "m'" . v:count : "") . 'k'
-nnoremap <expr> j (v:count > 5 ? "m'" . v:count : "") . 'j'
-
-nnoremap <SPACE> <Nop>
-let mapleader=" "
+if has('persistent_undo')
+ set undodir=$HOME/.vim/undo
+ set undofile
+endif
-colorscheme default
-highlight CursorLineNr cterm=bold ctermfg=Yellow
-highlight LineNr ctermfg=Brown
+lua require 'init'