Skip to content

Instantly share code, notes, and snippets.

@dieechtenilente
Created May 29, 2022 16:46
Show Gist options
  • Save dieechtenilente/bcf8ec18d3267fce79b982214432ac3d to your computer and use it in GitHub Desktop.
Save dieechtenilente/bcf8ec18d3267fce79b982214432ac3d to your computer and use it in GitHub Desktop.
Neat .vimrc
" #Disable mouse click input
set mouse=c
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" 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
"Set shift width to 4 spaces.
set shiftwidth=4
"Set tab width to 4 columns.
set tabstop=4
"Use space characters instead of tabs.
set expandtab
"Use highlighting when doing a search.
set hlsearch
"Set the commands to save in history default number is 20.
set history=1000
" Enable auto completion menu after pressing TAB.
set wildmenu
" Make wildmenu behave like similar to Bash completion.
set wildmode=list:longest
" There are certain files that we would never want to edit with Vim.
" Wildmenu will ignore files with these extensions.
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment