-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
34 lines (24 loc) · 646 Bytes
/
.vimrc
File metadata and controls
34 lines (24 loc) · 646 Bytes
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
" small vimrc
" colored syntax with non-standard color scheme
syntax on
color desert
highlight LineNr ctermfg=DarkGrey
" tabs as four spaces (personal preference)
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set nu
set nowrap
set autoindent
" save with double backslash \\
nmap \\ :w<CR>
" capital D in command mode to delete to previous line end
nmap D kJ
" capital B to return to previous buffer
nmap B :b#<CR>
" color column 80, 100
set colorcolumn=80,100
highlight ColorColumn ctermbg=234
" automatically fold doc comments in Rust
autocmd FileType rust setlocal foldmethod=expr foldexpr=getline(v:lnum)=~'^\s*///'