Skip to content

Instantly share code, notes, and snippets.

@aktentasche
Last active November 4, 2021 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aktentasche/05215522b27d6cc61d1f51291ff34c7b to your computer and use it in GitHub Desktop.
Save aktentasche/05215522b27d6cc61d1f51291ff34c7b to your computer and use it in GitHub Desktop.
my vimrc
echo "
\" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
\" Enable plugins and load plugin for the detected file type.
filetype plugin on
\" Load an indent file for the detected file type.
filetype indent on
\" Turn syntax highlighting on.
syntax on
\" Highlight cursor line underneath the cursor horizontally.
set cursorline
\" Highlight cursor line underneath the cursor vertically.
set cursorcolumn
set number
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != \"i\" | set rnu | endif
autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
augroup END
" > ~/.aktentasche_vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment