@@ -5,25 +5,35 @@ This repository contains a custom Vim configuration designed to enhance usabilit
55## Features
66
77- ** Search and Encoding** :
8- - Highlights all matches in search results.
8+ - Highlights all matches in search results ( ` hlsearch ` ) .
99 - Ignores case in search patterns (` ignorecase ` ).
10- - Sets file encoding to UTF-8.
11- - Disables incremental search (` noincsearch ` ).
10+ - Disables incremental search, highlighting matches only after pressing Enter (` noincsearch ` ).
11+ - Sets file encoding to UTF-8 (` encoding=utf8 ` ).
12+ - Always displays the status line at the bottom of the screen (` laststatus=2 ` ).
1213
1314- ** Mouse Support** :
14- - Enables mouse functionality if available.
15+ - Enables mouse functionality in visual mode (` set mouse=v ` ), if supported.
16+
17+ - ** Cursor Highlighting** :
18+ - Highlights the entire line where the cursor is positioned for better focus (` cursorline ` ).
19+
20+ - ** Vi Compatibility** :
21+ - Ensures Vim is not in compatibility mode with Vi, enabling modern features (` nocompatible ` ).
22+
23+ - ** Color Scheme** :
24+ - Sets the color scheme to ` codedark ` for a modern look.
1525
1626- ** Filetype-Specific Indentation** :
17- - HTML: 2 spaces for tabs and indentation.
18- - Python: 4 spaces for tabs and indentation.
19- - YAML: 2 spaces for tabs and indentation with custom indent keys.
27+ - ** HTML** : 2 spaces for tabs and indentation.
28+ - ** Python** : 4 spaces for tabs and indentation.
29+ - ** YAML** : 2 spaces for tabs and indentation with custom indent keys.
2030
2131- ** Autocommands** :
22- - Exits Insert mode if idle for a defined period.
23- - Automatically applies filetype-specific indentation.
32+ - Exits Insert mode automatically if idle for a defined period ( ` CursorHoldI ` ) .
33+ - Applies filetype-specific indentation settings when opening files .
2434
2535- ** Status Line** :
26- - Displays file information, working directory, and cursor position.
36+ - Displays detailed information, including file name, working directory, cursor position, and more .
2737
2838## Configuration Details
2939
@@ -32,14 +42,19 @@ syntax on
3242filetype plugin indent on
3343
3444" Search and encoding settings
35- set noincsearch " Disables incremental search
36- set ignorecase " Ignores case in search patterns
37- set encoding=utf8 " Sets file encoding to UTF-8
38- set laststatus=2 " Always display the status line
39- set hlsearch " Highlights all matches in search results
40- set showmatch " Highlights matching parenthesis/brackets
41-
42- " Mouse support
45+ set noincsearch " Disables incremental search; highlights only on Enter
46+ set ignorecase " Ignores case in search patterns for easier matching
47+ set encoding=utf8 " Sets file encoding to UTF-8 for better compatibility
48+ set laststatus=2 " Always displays the status line at the bottom of the screen
49+ set hlsearch " Highlights all matches for search results to improve visibility
50+ set showmatch " Briefly highlights matching parentheses, brackets, or braces
51+ set cursorline " Highlights the entire line where the cursor is positioned for better focus
52+ set nocompatible " Ensures Vim is not in Vi mode
53+
54+ " Color Scheme
55+ colorscheme codedark
56+
57+ " Enables mouse support if available
4358if has("mouse")
4459 set mouse=v " Enables mouse support in visual mode
4560endif
@@ -64,8 +79,8 @@ autocmd FileType html call HtmlConfig()
6479autocmd FileType python call PythonConfig()
6580autocmd FileType yaml,yml call YamlConfig()
6681
67- " Status line
82+ " Status line configuration
6883set statusline=\ File:\ %F%m%r%h\ %w\ \ Working\ Directory:\ %r%{getcwd()}%h\ -\ Line:\ %l\ -\ Column:\ %c
6984
7085" Prevent defaults.vim from overwriting these settings
71- let g:skip_defaults_vim = 1
86+ let g:skip_defaults_vim = 1
0 commit comments