blob: 36583bcea017b4b80adc9010e3eecccf98556e6e (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
" Basic vim configuration for development environment
" Enable syntax highlighting
syntax on
" Enable line numbers
set number
" Enable relative line numbers for easier navigation
set relativenumber
" Set tab width to 4 spaces
set tabstop=4
set shiftwidth=4
set expandtab
" Enable auto-indentation
set autoindent
set smartindent
" Enable incremental search
set incsearch
" Highlight search results
set hlsearch
" Case-insensitive search unless uppercase is used
set ignorecase
set smartcase
" Show matching brackets
set showmatch
" Enable mouse support
set mouse=a
" Set backspace behavior
set backspace=indent,eol,start
" Show current line and column
set ruler
" Enable file type detection
filetype on
filetype plugin on
filetype indent on
" Set color scheme (if available)
colorscheme default
" Enable visual bell instead of beep
set visualbell
" Set encoding
set encoding=utf-8
" Show command in status line
set showcmd
" Enable wildmenu for command completion
set wildmenu
" Set status line
set laststatus=2
set statusline=%F%m%r%h%w\ [%l,%c]\ [%L\ lines]
" Rust specific settings
autocmd FileType rust setlocal tabstop=4 shiftwidth=4 expandtab
" Python specific settings
autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab
" JavaScript/TypeScript settings
autocmd FileType javascript,typescript setlocal tabstop=2 shiftwidth=2 expandtab
" YAML settings
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 expandtab
|