-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
42 lines (35 loc) · 1.69 KB
/
.vimrc
File metadata and controls
42 lines (35 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
" Basic settings for simplicity
set nocompatible " Be iMproved, required for modern Vim
filetype plugin indent on " Enable filetype plugins and indentation
syntax enable " Enable syntax highlighting
" Display settings
colorscheme habamax " Color scheme
set number " Show line numbers
set cursorline " Highlight current line
set showmatch " Highlight matching brackets
set ruler " Show cursor position
" Search settings
set hlsearch " Highlight search results
set incsearch " Incremental search
set ignorecase " Ignore case in search
set smartcase " Override ignorecase if search has uppercase
" Indentation and tabs
set expandtab " Use spaces instead of tabs
set shiftwidth=4 " Number of spaces for indent
set tabstop=4 " Number of spaces per tab
set softtabstop=4 " Number of spaces in tab when editing
set autoindent " Auto indent new lines
set smartindent " Smart autoindenting
" Other pragmatic settings
set hidden " Allow switching buffers without saving
set wildmenu " Enhanced command-line completion
set backspace=indent,eol,start " Backspace over everything in insert mode
set encoding=utf-8 " Set encoding to UTF-8
" No backups or swaps for simplicity
set nobackup
set nowritebackup
set noswapfile
" File formatting
set endofline " Ensure file ends with newline
set fixendofline " Auto-fix missing newline on save
autocmd BufWritePre * %s/\s\+$//e " Strip trailing whitespace