Update nvim config to behave like a text editor
This commit is contained in:
@@ -5,6 +5,24 @@ set shiftwidth=2
|
||||
set expandtab
|
||||
set noshowmode
|
||||
|
||||
" Normal mode remap
|
||||
nnoremap <Up> gk
|
||||
nnoremap <Down> gj
|
||||
|
||||
" Visual mode remap
|
||||
xnoremap <Up> gk
|
||||
xnoremap <Down> gj
|
||||
|
||||
" Insert mode remap
|
||||
" https://vimdoc.sourceforge.net/htmldoc/insert.html#Insert
|
||||
" Using CTRL-O for temporary move to Normal mode
|
||||
inoremap <Up> <C-\><C-O>gk
|
||||
inoremap <Down> <C-\><C-O>gj
|
||||
|
||||
inoremap <C-BS> <C-W>
|
||||
" Line Break
|
||||
set linebreak
|
||||
|
||||
call plug#begin()
|
||||
Plug 'tpope/vim-sensible'
|
||||
Plug 'ap/vim-css-color'
|
||||
|
||||
Reference in New Issue
Block a user