-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
executable file
·90 lines (67 loc) · 1.91 KB
/
Copy pathvimrc
File metadata and controls
executable file
·90 lines (67 loc) · 1.91 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
" save undos over vim sessions
if !isdirectory($HOME."/.vim/undo")
call mkdir($HOME."/.vim/undo", "", 0777)
endif
set undodir=~/.vim/undo
set undofile
" use Cyberpunk Scarlet Protocol Adjusted colors
set termguicolors " enable true color
syntax enable " keep syntax highlighting
" load color scheme
colorscheme cyberpunk_scarlet_protocol_adjusted
" make background transparent if ghostty handles it
hi Normal guibg=NONE ctermbg=NONE
" enable line numeration
set nu
" sets how many lines of history VIM has to remember
set history=1000
" set to auto read when a file is changed from the outside
set autoread
au FocusGained,BufEnter * checktime
" turn on wildmenu with completion preference to the longest, most common command
set wildmenu
set wildmode=longest:full,full
" always show current position
set ruler
" allow movements Left and Right to move over wrapped lines
set whichwrap=b,s,<,>,[,]
" case-insensitive search
set ignorecase
" highlight search results
set hlsearch
" better search behaviour
set incsearch
" show matching brackets
set showmatch
" set blinking speed of matching bracket (in tenth of sec)
set mat=2
" set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
" use Unix as the standard file type
set ffs=unix,dos,mac
" disable backup
set nobackup
set nowb
set noswapfile
" display whitespace characters (tabs, trailing spaces, non breaking spaces, ...)
set list listchars=tab:→\ ,trail:·,nbsp:⎵,precedes:<,extends:>
" show break
let &showbreak = '↳ '
" use 2 spaces instead of tab
set expandtab
set shiftwidth=2
set tabstop=2
" be smart with indets and tabs
set smarttab
set ai
set si
" always show the status line
set laststatus=2
" format the status line
set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c
function! HasPaste()
if &paste
return 'PASTE MODE '
endif
return ''
endfunction