diff options
-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 | ||