AQ

BlogProjects

vim setup

November 28, 2024 (1mo ago)

" Basic Settings
set number            " Show line numbers
set relativenumber    " Show relative line numbers
set cursorline        " Highlight the current line
set scrolloff=8       " Keep 8 lines visible above and below the cursor
set signcolumn=yes    " Always show the sign column

Explanation:


" Tabs and Indentation
set tabstop=4         " A tab is equal to 4 spaces
set shiftwidth=4      " Indent by 4 spaces
set expandtab         " Convert tabs to spaces
set autoindent        " Copy indent from the current line

Explanation:


" Search Settings
set ignorecase        " Ignore case in searches
set smartcase         " Override ignorecase if uppercase is used
set hlsearch          " Highlight search results
set incsearch         " Show matches while typing

Explanation: