diff --git a/nvim/init.vim b/nvim/init.vim index 11ac42b..4278db6 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -56,6 +56,14 @@ map l " Always show the status line set laststatus=2 +" Moving lines +nnoremap :m .+1== +nnoremap :m .-2== +inoremap :m .+1==gi +inoremap :m .-2==gi +vnoremap :m '>+1gv=gv +vnoremap :m '<-2gv=gv + " Keyboard layouts let s:english_upper = 'QWERTYUIOPASDFGHJKLZXCVBNM' let s:russian_upper = 'ЙЦУКЕНГШЩЗФЫВАПРОЛДЯЧСМИТЬ' @@ -70,10 +78,10 @@ let s:georgian_lower_map = s:georgian_lower . ';' . s:english_lower let s:langmap = s:russian_upper_map . ',' . s:georgian_upper_map . ',' . s:russian_lower_map . ',' . s:georgian_lower_map let &langmap = s:langmap -autocmd BufNewFile,BufRead *.tsx set syntax=typescript +autocmd BufNewFile,BufRead *.tsx set syntax=typescript +autocmd BufNewFile,BufRead *.repub set syntax=markdown -autocmd BufNewFile,BufRead /home/kotovalexarian/dotfiles/dwm/* set noexpandtab tabstop=4 shiftwidth=4 autocmd BufNewFile,BufRead /home/kotovalexarian/repos/global/PolytreeDE/polytreewm/src/* set noexpandtab tabstop=4 shiftwidth=4 -autocmd BufNewFile,BufRead /home/kotovalexarian/repos/friflex/bristol_backend/* set colorcolumn=135 -autocmd BufNewFile,BufRead /home/kotovalexarian/repos/global/tailix/*.c set expandtab tabstop=4 shiftwidth=4 -autocmd BufNewFile,BufRead /home/kotovalexarian/repos/global/tailix/*.h set expandtab tabstop=4 shiftwidth=4 +autocmd BufNewFile,BufRead /home/kotovalexarian/repos/global/tailix/*.c set expandtab tabstop=4 shiftwidth=4 +autocmd BufNewFile,BufRead /home/kotovalexarian/repos/global/tailix/*.h set expandtab tabstop=4 shiftwidth=4 +autocmd BufNewFile,BufRead /home/kotovalexarian/repos/global/leqsikoni/database/*.sql set expandtab tabstop=4 shiftwidth=4