From a327905a56eb969232d89d4a73f1e692c24df7f3 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 Oct 2021 02:26:26 +0300 Subject: nvim: turkify suite --- .config/nvim/init.vim | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 3e89aaa..b6a8acf 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -82,7 +82,8 @@ Plug 'junegunn/goyo.vim' Plug 'junegunn/limelight.vim' " thesaurus query & replacement Plug 'ron89/thesaurus_query.vim' - +" change ASCII text to Turkish text +Plug 'yigitsever/turkish-deasciifier.vim' " }}} prose, note taking " " movement, editing {{{ " @@ -325,6 +326,25 @@ let g:highlightedyank_highlight_duration = 200 "{{{ Mappings +" brute force deasciify everything +nnoremap tc TurkishDeasciifyForce() +xnoremap tc TurkishDeasciifyForce() +nnoremap tctc TurkishDeasciifyForce() .. '_' + +" use turkish-mode to selectively deasciify +nnoremap tr TurkishDeasciify() +xnoremap tr TurkishDeasciify() +nnoremap trtr TurkishDeasciify() .. '_' + +" ascii everything +nnoremap rt TurkishAsciify() +xnoremap rt TurkishAsciify() +nnoremap rtrt TurkishAsciify() .. '_' + +" https://stackoverflow.com/questions/4256697/vim-search-and-highlight-but-do-not-jump +nnoremap * :keepjumps normal! mi*`i +nnoremap # :keepjumps normal! mi#`i + " Save file as sudo on files that require root permission cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! -- cgit v1.2.3-70-g09d2