-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvimrc-essential.vim
54 lines (38 loc) · 2.09 KB
/
vimrc-essential.vim
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
" vimrc-essential.vim
set nocompatible " Vim (not vi) settings. Set early for side effects.
set autoindent " Copy indent from current line for new line.
set nosmartindent " 'smartindent' breaks right-shifting of # lines.
set hidden " Keep changed buffers without requiring saves.
set history=1000 " Remember this many command lines.
set ruler " Always show the cursor position.
set showcmd " Display incomplete commands.
set incsearch " Do incremental searching.
set hlsearch " Highlight latest search pattern.
set number " Display line numbers.
set visualbell t_vb= " Use null visual bell (no beeps or flashes).
set virtualedit=block " Allow virtual editing when in Visual Block mode.
set textwidth=0 " Don't auto-wrap lines except for specific filetypes.
set mouse=a " Enable mouse support if it's available.
set expandtab " Insert spaces for <Tab> press; use spaces to indent.
set smarttab " Tab respects 'shiftwidth', 'tabstop', 'softtabstop'.
set tabstop=2 " Set the visible width of tabs.
set softtabstop=2 " Edit as if tabs are 2 characters wide.
set shiftwidth=2 " Number of spaces to use for indent and unindent.
set shiftround " Round indent to a multiple of 'shiftwidth'.
set background=dark " Try to use colors suitable for a dark background.
set whichwrap+=<,>,[,] " Left/right arrows can move across lines.
set backspace=indent,eol,start " Backspace over everything in Insert mode.
set wildmode=longest,list " Complete to longest string, list matches.
" Remove the current directory from the backup directory list.
" Save backup files in the current user's ~/tmp directory, or in the
" system /tmp directory if that's not possible.
"
set backupdir-=.
set backupdir^=~/tmp,/tmp
" Enable filetype detection and syntax highlighting, so language-dependent
" plugins, indentation files, syntax highlighting, etc., are loaded for
" specific filetypes.
"
filetype plugin indent on
syntax on
" end vimrc-essential.vim