From ba34edd8ae828162f70d78fa09fbab96c12e80b4 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 7 Apr 2023 22:47:48 +0200 Subject: [PATCH] Clean up functions --- .vimrc | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.vimrc b/.vimrc index 9886537..ae7d35e 100644 --- a/.vimrc +++ b/.vimrc @@ -37,10 +37,6 @@ let g:netrw_banner = 0 " }}} -" https://alok.github.io/2018/04/26/using-vim-s-conceal-to-make-languages-more-tolerable/ -fu! ToggleConceal() - if (&cole == 0) | se cole =2 | else | set cole =0 | endif -endfu " Folds {{{ " Insert date @@ -49,19 +45,11 @@ fu! Today() endfu set foldmethod=marker -" Add command line functions names -com! -nargs=0 Today :call Today() -com! -nargs=0 ToggleLineNumbers :call ToggleLineNumbers() -com! -nargs=0 ToggleConceal :call ToggleConceal() augroup filetype_vim autocmd! autocmd FileType vim setlocal foldmethod=marker augroup END -" Setup Man command for reading man pages -if exists(":Man") != 2 - source $VIMRUNTIME/ftplugin/man.vim -endif augroup filetype_python autocmd! autocmd FileType python setlocal foldmethod=indent @@ -111,8 +99,8 @@ ino | " " " Search nn / :noh nn f :Ag -" Line numbers -nn n :call ToggleRnu() +" Toggle line numbers +nn n :set nu! rnu! " Vim configuration nn ec :split $MYVIMRC nn so :so %