-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
44 lines (35 loc) · 756 Bytes
/
vimrc
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
" ~/.vimrc (configuration file for vim)
" Use mouse if possible
if has('mouse')
set mouse=a
endif
" Display
syntax enable
set number
set cursorline
set laststatus=2
set t_Co=256
set linebreak
set scrolloff=3
set wildmenu
" Only redraw when necessary
set lazyredraw
" Open new splits below and right
set splitbelow
set splitright
" Text editing
set backspace=indent,eol,start
" Indentation
filetype plugin indent on
set tabstop=2
set shiftwidth=2
set expandtab
"" Auto indent pasted text
nnoremap p p=`]<C-o>
nnoremap P P=`]<C-o>
" Case sensitivity of searches
set ignorecase
set smartcase
set incsearch
" Set files with extension .mdwn to be recognized as markdown
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown