-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xvimrc
86 lines (72 loc) · 2.6 KB
/
.xvimrc
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" CJAPPL .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" .OO
" .OOOO
" .OOOO'
" OOOO' .-~~~~-.
" OOO' / (o)(o)
" .OOOOOO `O .OOOOOOO. / .. |
" .OOOOOOOOOOOO OOOOOOOOOO/\ \____/
" .OOOOOOOOOOOOOOOOOOOOOOOO/ \\ ,\_/
" .OOOOOOO%%OOOOOOOOOOOOO(#/\ /.
" .OOOOOO%%%OOOOOOOOOOOOOOO\ \\ \/OO.
" .OOOOO%%%%OOOOOOOOOOOOOOOOO\ \/OOOO.
" OOOOO%%%%OOOOOOOOOOOOOOOOOOO\_\/\OOOOO
" OOOOO%%%OOOOOOOOOOOOOOOOOOOOO\###)OOOO
" OOOOOO%%OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
" OOOOOOO%OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
" `OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO'
" .-~~\OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO'
" / _/ `\(#\OOOOOOOOOOOOOOOOOOOOOOOOOOOO'
" / / \ / `~~\OOOOOOOOOOOOOOOOOOOOOOOOOO'
"|/' `\// \\ \OOOOOOOOOOOOOOOOOOOOOOOO'
" `-.__\_,\OOOOOOOOOOOOOOOOOOOOO'
" `OO\#)OOOOOOOOOOOOOOOOOOO'
" `OOOOOOOOO''OOOOOOOOO'
" `""""""' `""""""'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set line numbers
set number
" Sets how many lines of history VIM has to remember
set history=100
" Enable filetype plugins
filetype plugin on
filetype indent on
" Set to auto read when a file is changed from the outside
set autoread
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
" Fast saving
nmap ,w :w!<cr>
" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" " => VIM user interface
" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set 7 lines to the cursor - when moving vertically using j/k
set scrolloff=3
" Turn on the WiLd menu
set wildmenu
" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Highlight search results
set hlsearch
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Moving around, tabs, windows and buffers
" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Treat long lines as break lines (useful when moving around in them)
"map j gj
"map k gk
" Useful mappings for managing tabs
map <leader>tn :tabnew<cr>
map <leader>tc :tabclose<cr>
" Splits
map <leader>v :vs<cr>