This page will contain useful information pertaining to the use and administration of Linux installations. In the meantime, this .vimrc
setting will be useful when editing configuration files with vim:
set nocompatible " be iMproved, required
set fileformat=unix
" Highlight searches
set hlsearch
"set fileencodings=utf-8
set ruler
syntax on
"set incsearch
set ignorecase
"set smartcase
set modeline
set modelines=5
filetype plugin indent on
" Try Satori color scheme
" colorscheme satori
" Try sonoma colorscheme
" colorscheme sonoma
" Turn off auto comment format
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" Convert tabs to spaces.
" If you want real tabs, use Ctrl-v<Tab> to insert real tab.
" Use command :retab to change all tabs to current setting(s).
set tabstop=4
set shiftwidth=4
set expandtab
" Makefiles use real TABs
autocmd FileType make setlocal noexpandtab
" Python
" Powerline stuff
set rtp+=/usr/local/lib/python3.9/site-packages/powerline/bindings/vim
" Always show statusline
set laststatus=2
" Use 256 colors
set t_Co=256
" Turn on line numbering
"set number
" vim: set syntax=vim:
Enjoy!