-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
62 lines (55 loc) · 1.14 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
56
57
58
59
60
61
62
"general
set ignorecase
set history=100
set so=7 "autoscroll 7 lines from the top and bottom
set ruler
set backspace=2
set noswapfile
set laststatus=2
set hidden
"appearance
set t_Co=256
color koehler
syntax on
set synmaxcol=500
set number
set relativenumber
set nowrap
set list listchars=tab:->,eol:$
set cursorline
set cursorcolumn
hi CursorLine cterm=NONE ctermbg=236
hi CursorColumn cterm=NONE ctermbg=236
hi Normal ctermbg=256
set hlsearch
set mps+=<:>
"indentation
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent
set smartindent
set smarttab
set expandtab
"autocomplete filenames to the longest possible name, show additional matches in status bar
set wildmode=longest:full
set wildmenu
"folding
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=1
" mappings
imap jk <Esc>
let mapleader = " "
map <Leader>f :lgrep -r -i --include *
map <Leader>e :e **/
map <Leader>E :E<CR>
map <Leader>t :tabnew<Return>
map <Leader>w :w<Return>
map <Leader>lo :lopen<Return>
map <Leader>lc :lclose<Return>
map <Leader>ln :lnext<Return>
map <Leader>lp :lprevious<Return>
set pastetoggle=<F12>
" ADD CUSTOM CHANGES HERE FOR EACH BRANCH