diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index cdc2032..1f07c51 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -75,6 +75,8 @@ let g:markdown_fenced_languages = ['html', 'python', 'bash=sh'] let g:markdown_minlines = 1 autocmd FileType markdown set foldexpr=NestedMarkdownFolds() +au BufNewFile,BufRead *.conf setfiletype conf + " line numbers set number set ruler @@ -136,6 +138,8 @@ nnoremap :m-2 nnoremap :m+ inoremap :m-2 inoremap :m+ +vnoremap :m '>+1gv=gv +vnoremap :m '<-2gv=gv cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit!