summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorYigit Sever2021-10-06 02:26:26 +0300
committerYigit Sever2021-10-06 02:26:26 +0300
commita327905a56eb969232d89d4a73f1e692c24df7f3 (patch)
treeb770eadc868cac5769d3709452e9dd416958b6d9 /.config/nvim
parent5e022ee5ebe6c162044169225b274365b32c49e1 (diff)
downloaddotfiles-a327905a56eb969232d89d4a73f1e692c24df7f3.tar.gz
dotfiles-a327905a56eb969232d89d4a73f1e692c24df7f3.tar.bz2
dotfiles-a327905a56eb969232d89d4a73f1e692c24df7f3.zip
nvim: turkify suite
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim22
1 files changed, 21 insertions, 1 deletions
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'
82Plug 'junegunn/limelight.vim' 82Plug 'junegunn/limelight.vim'
83" thesaurus query & replacement 83" thesaurus query & replacement
84Plug 'ron89/thesaurus_query.vim' 84Plug 'ron89/thesaurus_query.vim'
85 85" change ASCII text to Turkish text
86Plug 'yigitsever/turkish-deasciifier.vim'
86" }}} prose, note taking " 87" }}} prose, note taking "
87 88
88" movement, editing {{{ " 89" movement, editing {{{ "
@@ -325,6 +326,25 @@ let g:highlightedyank_highlight_duration = 200
325 326
326"{{{ Mappings 327"{{{ Mappings
327 328
329" brute force deasciify everything
330nnoremap <expr> <Leader>tc TurkishDeasciifyForce()
331xnoremap <expr> <Leader>tc TurkishDeasciifyForce()
332nnoremap <expr> <Leader>tctc TurkishDeasciifyForce() .. '_'
333
334" use turkish-mode to selectively deasciify
335nnoremap <expr> <Leader>tr TurkishDeasciify()
336xnoremap <expr> <Leader>tr TurkishDeasciify()
337nnoremap <expr> <Leader>trtr TurkishDeasciify() .. '_'
338
339" ascii everything
340nnoremap <expr> <Leader>rt TurkishAsciify()
341xnoremap <expr> <Leader>rt TurkishAsciify()
342nnoremap <expr> <Leader>rtrt TurkishAsciify() .. '_'
343
344" https://stackoverflow.com/questions/4256697/vim-search-and-highlight-but-do-not-jump
345nnoremap * :keepjumps normal! mi*`i<CR>
346nnoremap # :keepjumps normal! mi#`i<CR>
347
328" Save file as sudo on files that require root permission 348" Save file as sudo on files that require root permission
329cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! 349cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
330 350