about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-11-08 16:05:30 +0000
committerDavid Morgan <djm_uk@protonmail.com>2024-11-08 16:05:30 +0000
commitc533588b8d754231c1e0be800c6d8eb29067662a (patch)
treec9f767f5292629dbdcaf40d7461763f321d56217
parent2b1f9ee4d0cdbeac782033eb2a4ba3ab644cb9ef (diff)
downloaddotfiles-c533588b8d754231c1e0be800c6d8eb29067662a.tar.gz
Add more bindings to vimrc
-rw-r--r--nix-conf/home/includes/common.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix
index 17d9a0d..960a74c 100644
--- a/nix-conf/home/includes/common.nix
+++ b/nix-conf/home/includes/common.nix
@@ -177,6 +177,14 @@ in
       set pastetoggle=<F2>
       nmap <silent> <F3> :silent nohlsearch<CR>
       imap <silent> <F3> <C-o>:silent nohlsearch<CR>
+      nmap <silent> <F4> :silent setlocal spell spelllang=en_gb<CR>
+      imap <silent> <F4> <C-o>:silent setlocal spell spelllang=en_gb<CR>
+      nmap <silent> <F5> :silent setlocal nospell<CR>
+      imap <silent> <F5> <C-o>:silent setlocal nospell<CR>
+      nmap <silent> <F6> :silent set diffopt+=iwhite<CR>
+      imap <silent> <F6> <C-o>:silent set diffopt+=iwhite<CR>
+      nmap <silent> <F7> :silent set diffopt-=iwhite<CR>
+      imap <silent> <F7> <C-o>:silent set diffopt-=iwhite<CR>
     '';
     plugins = [
       pkgs.vimPlugins.sensible