Created
October 2, 2024 09:08
-
-
Save sheikhwaqas/3c68dc0cdc50358ccfae07e18a2da6fd to your computer and use it in GitHub Desktop.
My VIM Editor Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" General Indentation Options | |
set autoindent " New lines inherit the indentation of previous lines | |
set expandtab " Convert tabs to spaces | |
set shiftwidth=4 " When shifting, indent using four spaces | |
set tabstop=4 " Indent using four spaces | |
set softtabstop=4 " The amount of space added or removed by Tab or Backspace key | |
set smartindent " Auto-indent intelligently | |
set smarttab " Insert 'tabstop' number of spaces when the Tab keys is pressed | |
" Visual Formatting | |
set encoding=utf-8 " Set the file encoding to UTF-8 | |
syntax enable " Enable syntax highlighting | |
set background=dark " Set background for better color schemes | |
" UI Options | |
set ruler " Show cursor position | |
set cursorline " Highlight the current line | |
set number " Show line numbers | |
set showmatch " Highlight matching parentheses | |
set wrap " Soft wrap long lines | |
" Searching | |
set hlsearch " Highlight search results | |
set incsearch " Incrementally highlight matches as you type | |
set ignorecase " Ignore case while searching | |
set smartcase " Override ignorecase if search contains capital letters | |
" Clipboard and Mouse | |
set clipboard=unnamedplus " Use system clipboard for copy-pasting | |
set mouse=a " Enable mouse support | |
" Tab Completion | |
set wildmenu " Enable tab completion for commands | |
" Custom status line | |
set laststatus=2 | |
set statusline=%F\ %y\ %m\ %r\ %=Ln:%l/%L,\ Col:%c\ [%p%%] | |
" YAML-specific settings | |
autocmd FileType yml setlocal shiftwidth=2 tabstop=2 softtabstop=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment