commit 4f11cfe6d30c34cd2067239a047ec02a8e133558
parent 9d3c4f745f6ea900c994f6931e376645b341ef59
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 15 May 2019 11:54:31 +0200
vim: mappings, digraphs
Former-commit-id: f137dac774de257b81a79c1ba8eef72d94ed30ca
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/vim/map.vimrc b/vim/map.vimrc
@@ -70,7 +70,7 @@ nnoremap <leader>mm :<C-u>marks<CR>:normal! `
nnoremap <leader>ml :<C-u>marks a-z<CR>:normal! `
" Switch between relative and absolute line num
-nnoremap <leader>n :call ToggleNumber()<CR>
+nnoremap <leader># :call ToggleNumber()<CR>
" Map '0' to act as '^' on first press and '0' on second
nnoremap <expr> <silent> 0 col('.') == match(getline('.'),'\S')+1 ? '0' : '^'
@@ -100,6 +100,7 @@ nnoremap <leader>ny "_y
nnoremap <leader>nd "_d
vnoremap <leader>y "*y
vnoremap <leader>d "*d
+vnoremap <leader>n "_
" This should be a plugin but for now...
" time (hh:mm-hh:mm) to duration in hours
diff --git a/vim/symbols.vimrc b/vim/symbols.vimrc
@@ -6,7 +6,6 @@ execute "digraphs is " . 0x1D62
execute "digraphs ks " . 0x2096
execute "digraphs ls " . 0x2097
execute "digraphs ms " . 0x2098
-execute "digraphs ns " . 0x2099
execute "digraphs os " . 0x2092
execute "digraphs ps " . 0x209A
execute "digraphs rs " . 0x1D63
@@ -17,5 +16,6 @@ execute "digraphs vs " . 0x1D65
execute "digraphs xs " . 0x2093
execute "digraphs \\|- " . 0x22A2
execute "digraphs \\|=" . 0x22A8
-execute "digraphs mm" . 0x2133
execute "digraphs \\|!" . 0x22AD
+execute "digraphs nS " . 0x207F
+execute "digraphs ns " . 8345