summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2021-01-02 15:22:53 +0000
committerPeter2021-01-02 15:22:53 +0000
commit8bb80686f5b5b1489c69a64581aae5faa0c0143b (patch)
treeecc61b84bd9f51a85f499d9b352c3158bbfd5ded
parentc4d44dd03a6e20c01caf0dbd2e1e06c5b47a2952 (diff)
downloaddotfiles-8bb80686f5b5b1489c69a64581aae5faa0c0143b.tar.gz
dotfiles-8bb80686f5b5b1489c69a64581aae5faa0c0143b.tar.bz2
dotfiles-8bb80686f5b5b1489c69a64581aae5faa0c0143b.zip
Change vim keybinds, add spellchecking
-rw-r--r--.config/nvim/init.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 4bc605c..d52df30 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -15,8 +15,9 @@ set titlestring=%f\ %m
syntax on
" Key remapping
-inoremap <C-H> <C-W>
-inoremap <C-Del> X<Esc>ce<del>
+map <C-H> <C-W>
+map <C-Del> X<Esc>ce<del>
+map <F8> :setlocal spell! spelllang=en_gb<CR>
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e