diff options
author | Yigit Sever | 2021-10-06 02:26:26 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-06 02:26:26 +0300 |
commit | a327905a56eb969232d89d4a73f1e692c24df7f3 (patch) | |
tree | b770eadc868cac5769d3709452e9dd416958b6d9 | |
parent | 5e022ee5ebe6c162044169225b274365b32c49e1 (diff) | |
download | dotfiles-a327905a56eb969232d89d4a73f1e692c24df7f3.tar.gz dotfiles-a327905a56eb969232d89d4a73f1e692c24df7f3.tar.bz2 dotfiles-a327905a56eb969232d89d4a73f1e692c24df7f3.zip |
nvim: turkify suite
-rwxr-xr-x | .config/nvim/init.vim | 22 |
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' | |||
82 | Plug 'junegunn/limelight.vim' | 82 | Plug 'junegunn/limelight.vim' |
83 | " thesaurus query & replacement | 83 | " thesaurus query & replacement |
84 | Plug 'ron89/thesaurus_query.vim' | 84 | Plug 'ron89/thesaurus_query.vim' |
85 | 85 | " change ASCII text to Turkish text | |
86 | Plug '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 | ||
330 | nnoremap <expr> <Leader>tc TurkishDeasciifyForce() | ||
331 | xnoremap <expr> <Leader>tc TurkishDeasciifyForce() | ||
332 | nnoremap <expr> <Leader>tctc TurkishDeasciifyForce() .. '_' | ||
333 | |||
334 | " use turkish-mode to selectively deasciify | ||
335 | nnoremap <expr> <Leader>tr TurkishDeasciify() | ||
336 | xnoremap <expr> <Leader>tr TurkishDeasciify() | ||
337 | nnoremap <expr> <Leader>trtr TurkishDeasciify() .. '_' | ||
338 | |||
339 | " ascii everything | ||
340 | nnoremap <expr> <Leader>rt TurkishAsciify() | ||
341 | xnoremap <expr> <Leader>rt TurkishAsciify() | ||
342 | nnoremap <expr> <Leader>rtrt TurkishAsciify() .. '_' | ||
343 | |||
344 | " https://stackoverflow.com/questions/4256697/vim-search-and-highlight-but-do-not-jump | ||
345 | nnoremap * :keepjumps normal! mi*`i<CR> | ||
346 | nnoremap # :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 |
329 | cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! | 349 | cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! |
330 | 350 | ||