-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
59 lines (59 loc) · 1.64 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
" Set syntax on
syntax on
" Indent automatically depending on filetype
filetype indent plugin on
" Autoindent code blocks
set autoindent
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed
" Highlight current line
" set cursorline
" Insert spaces when tab is pressed.
set expandtab
" One of the most important options to active. Allows you to switch from an
" unsaved buffer without saving it first. Also allows you to keep an undo
" history for multiple files. Vim will complain if you try to quit without
" saving, and swap files wll keep you safe if your computer crashes.
set hidden
" Highlight search
set hls
" Highlight matching braces!
set showmatch
" Highlight dynamically as pattern is typed
set incsearch
" Wrap text instead of being on one line
set lbr
" Make Vim more useful
set nocompatible
" Disable error bells
set noerrorbells
" Turn off line numbering with "set nonu", on with "set nu"
set nonu
" Show cursor position on the last line of the screen or in the status line.
set ruler
" Number of spaces used for indentation.
set shiftwidth=2
" Don’t show the intro message when starting Vim
set shortmess=atI
set cmdheight=2
" Number of spaces to insert for a tab.
set tabstop=2
" Show the filename in the window titlebar
set title
" Enable 256 colors in Vim
set t_Co=256
" Enhance command-line completion
set wildmenu
" Select colorscheme
colorscheme grb256
" Add comment keys
source ~/.vim/comments.vim
" Highlight .less as .css
au BufNewFile,BufRead *.less set filetype=css
" lvimrc settings
let g:localvimrc_ask=0
" auto reload file if changed
set autoread
au CursorHold * checktime
" show linenumbers
" :set number