-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc-light
51 lines (41 loc) · 1.55 KB
/
.vimrc-light
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
scriptencoding utf-8
set encoding=utf-8
" Behavior
if has('gui_running')
set guifont=DejaVu\ Sans\ Mono\ 9
source $VIMRUNTIME/mswin.vim
behave mswin
endif
set nocompatible " Use Vim defaults (much better!)
set hidden " Keep changes to the buffers without writing them to the file
set ignorecase " Ignore case
" Display
set showmode " Show edit mode
set ruler " Show the ruler
"set number " Show the line
set showmatch " Show matching parenthesis
set incsearch " Incremental search
set hlsearch " Highlight search
"set list " Show non-printable characters
set linebreak
set showbreak=>
set tabstop=4 " tab stop : tell how many columns a tab counts for
set shiftwidth=4 " shift width : tell how many columns text is indented with the reindent operations (<< and >>)
set softtabstop=4 " soft tab stop : tell how many spaces a <Tab> or a <BS> counts for
set expandtab " expand tab to spaces
set autoindent " auto indent depending on the file type
"set smartindent " recognize the "if" and other stuff to indent correctly
" causes '#' to the beginning of the line and insensitive to '>>' & '<<'
highlight normal guibg=#333333 guifg=grey
set background=dark
" Coding
set listchars=eol:$,trail:·
syntax enable
set foldmethod=indent " fold blocks based on indentation (classes, methods, etc.)
"set foldlevelstart=20
" unfold all
filetype plugin indent on
autocmd BufRead,BufNewFile /etc/nginx/*.conf setfiletype conf
autocmd FileType html,htmlcheetah,rst,xhtml setlocal tabstop=2 shiftwidth=2 softtabstop=2
autocmd FileType python setlocal indentkeys-=<:>
set nofoldenable