-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc_no_folding
96 lines (67 loc) · 2.22 KB
/
.vimrc_no_folding
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
87
88
89
90
91
92
93
94
95
96
" Ensure Vim goodies and enhancements are active
" This also ensures there are no conflicts with our later options
set nocompatible
" set foldmethod=syntax
" set foldlevelstart=1
" Enable mouse scrolling, clicking, etc.
set mouse=a
" Tell Vim to use 256 colors in case we're in a color-gimped terminal
" This has to be set before you set your colorscheme
set t_Co=256
colors Tomorrow-Night-Bright
" This is for syntax-highlighting and tells Vim to attempt to determine
" the type of file being edited
filetype plugin on
" Tell Vim how many columns wide a tab should be
set tabstop=2
" Force Vim to insert spaces when you press Tab while in insert mode.
" Prevents Vim from using tab characters at all.
set expandtab
set shiftwidth=2
" Tells Vim how many spaces to use when you press Tab in insert mode.
set softtabstop=2
" Vim will copy the indentation from the previous line
set autoindent
" Vim will not wrap code/text when the editor width is exceeded
set nowrap
" Highlight search to highlight all instances of the searched-for string
set hls
" Turn on line numbers
set number
" Perform case-insensitive searches.
set ignorecase
" If one or more letters in the search string are upper-case, the search
" will be case-sensitive, instead.
set smartcase
" Turn on incremental search
set incsearch
" When split-opening files vertically, the new file opens to the right
" of the active file.
set splitright
" When split-opening files horizontally, the new file opens below the
" active file.
set splitbelow
" Turn on high-lighting of the line and column where the cursor is,
" respectively.
set cursorline
set cursorcolumn
" MAPPINGS --------------------------------------------------------------- {{{
nnoremap <space> i<space><space>
vnoremap <space> <space>
nnoremap o o<Esc>
" }}}
" VIMSCRIPT -------------------------------------------------------------- {{{
if version >= 703
set undodir=~/.vim/backup
set undofile
set undoreload=10000
endif
" }}}
" STATUS LINE ------------------------------------------------------------ {{{
" Clear status line when vimrc is reloaded.
set statusline=
" Status line right side.
set statusline+=\ row:\ %l\ col:\ %c\ %f\ %m\ %r\ %y
" Show the status on the second to last line.
set laststatus=2
" }}}