-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (44 loc) · 1.07 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
" Reload config on save
autocmd! bufwritepost .vimrc source ~/.vimrc
" View
set number
set ruler
set scrolloff=3
set background=dark
colorscheme wombat
syntax on
filetype on
filetype plugin on
filetype indent on
set encoding=utf-8
" Set the mapleader to ,
let mapleader = ","
" Use vim settings rather than vi settings
set nocompatible
" Share the clipboard with the os
set clipboard=unnamed
" Get a $ at the end of the changed block
set cpoptions+=$
" Whitespace
set nowrap
set list listchars=tab:\ \ ,trail:·
" Indentation
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
""autocmd VimEnter * :IndentGuidesEnable
""let g:indent_guides_auto_colors = 0
""autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
""autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
set selectmode=mouse
" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Key mapping
map <Leader>n <plug>NERDTreeTabsToggle<CR>
map <Leader>c <c-_><c-_>
let g:EasyMotion_leader_key = '<Leader>m' " avoid conflict with Command-T