Skip to content

Instantly share code, notes, and snippets.

@Samk13
Created July 15, 2022 11:40
Show Gist options
  • Save Samk13/9df6fe1d90fe9eb895436c003b04c7a9 to your computer and use it in GitHub Desktop.
Save Samk13/9df6fe1d90fe9eb895436c003b04c7a9 to your computer and use it in GitHub Desktop.
Simple Vim configuration with no plugins
"Vim configuration file
" Enable moouse support
set mouse=a
" Enable syntax
syntax on
" Enable line numbers
set number
" highlight current line
set cursorline
:highlight Cursorline cterm=bold ctermbg=black
" Enable highlight search pattern
set hlsearch
" Enable smartcase search sensitivity
set ignorecase
set smartcase
" Indentation using spaces
" tabstop: width of tab charachter
" softtabstop: fine tune the amount of whitespce to added
" shiftwidth: when on use space instead of tab
" textwidth: text wrap width
" autoindent: autoindent in new line
"set tabstop=4
"set softtabstop=4
"set shiftwidth=4
"set textwidth=79
"set expandtab
"set autoindent
" Show the matching part of pairs [] {} and ()
"set showmatch
" remove trailing white spaces from Python files
autocmd BufWritePre *.py :%s/\s\+$//e
" Enable color themes
if !has('gui_running')
set t_Co=256
endif
"Enable true colors support
"set termguicolors
" Vim colorscheme
colorscheme desert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment