-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
38 lines (29 loc) · 864 Bytes
/
Copy path.vimrc
File metadata and controls
38 lines (29 loc) · 864 Bytes
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
set nocompatible
"set backspace to be able to delete previous characters
set bs=2
"Enable line numbering, taking up 6 spaces
set number
set smartindent
set tabstop=2 "set tab character to 4 characters
"set expandtab "turn tabs into whitespace
set shiftwidth=2 "indent width for autoindent
filetype indent on "indent depends on filetype
"Turn on incremental search with ignore case (except explicit caps)
set incsearch
set ignorecase
set smartcase
"Informative status line
set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%)]
"Set color scheme
"set t_Co=256
colorscheme desert
syntax enable
"Enable indent folding
set foldenable
"set fdm=indent
"Set space to toggle a fold
nnoremap <space> za
"Hide buffer when not in window (to prevent relogin with FTP edit)
set bufhidden=hide
"Have 3 lines of offset (or buffer) when scrolling
set scrolloff=3