-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_vimrc
More file actions
71 lines (51 loc) · 1.21 KB
/
Copy pathdot_vimrc
File metadata and controls
71 lines (51 loc) · 1.21 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
" no need to be compatible
set nocompatible
" skips startup message
set shortmess=atI
" use os clipboard (`+clipboard`)
set clipboard=unnamed
" allows cursor keys in insert mode
set esckeys
" allows backspace in insert mode
set backspace=indent,eol,start
" optimizes for fast terminal connections
set ttyfast
" enhances command-line completion
set wildmenu
" uses UTF-8 without BOM
set encoding=utf-8 nobomb
" enables line numbers
set number
" enables syntax highlighting
if has('syntax')
syntax on
endif
" highlights current line
set cursorline
" soft tabs, 4 chars
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
" highlights searches
set hlsearch
" ignores case of searches, unless search string contains uppercase chars
set ignorecase
set smartcase
" highlights dynamically as pattern is typed
set incsearch
" always shows status line
set laststatus=2
" shows the cursor position
set ruler
" shows the current mode
set showmode
" shows the filename in the window titlebar
set title
" shows the (partial) command as it’s being typed
set showcmd
" buffer switching
noremap <silent> [b :bprevious<CR>
noremap <silent> ]b :bnext<CR>
noremap <silent> [B :bfirst<CR>
noremap <silent> ]B :blast<CR>