Use tabs for indentation and spaces for alignment
This commit is contained in:
parent
c1155dfd3a
commit
bce6d644ed
1 changed files with 56 additions and 56 deletions
112
vimrc
112
vimrc
|
@ -13,8 +13,8 @@ set nocompatible
|
||||||
" ======================================================================
|
" ======================================================================
|
||||||
" Load Pathogen if Vim does not support packages.
|
" Load Pathogen if Vim does not support packages.
|
||||||
if !has("packages")
|
if !has("packages")
|
||||||
runtime pack/acp/opt/vim-pathogen/autoload/pathogen.vim
|
runtime pack/acp/opt/vim-pathogen/autoload/pathogen.vim
|
||||||
execute pathogen#infect('pack/acp/start/{}')
|
execute pathogen#infect('pack/acp/start/{}')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ======================================================================
|
" ======================================================================
|
||||||
|
@ -80,84 +80,84 @@ set wrap
|
||||||
" General settings for non-minimal Vim builds.
|
" General settings for non-minimal Vim builds.
|
||||||
|
|
||||||
if has("eval")
|
if has("eval")
|
||||||
" Protect commands that are only available when +eval is enabled.
|
" Protect commands that are only available when +eval is enabled.
|
||||||
" Technically only "if 1" would be required, as "has()" is provided
|
" Technically only "if 1" would be required, as "has()" is provided
|
||||||
" by +eval, but this is clearer.
|
" by +eval, but this is clearer.
|
||||||
command Q q
|
command Q q
|
||||||
command W w
|
command W w
|
||||||
command WQ wq
|
command WQ wq
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
let g:go_version_warning=0
|
let g:go_version_warning=0
|
||||||
let g:netrw_altv=1
|
let g:netrw_altv=1
|
||||||
let g:netrw_banner=0
|
let g:netrw_banner=0
|
||||||
let g:netrw_browse_split=4
|
let g:netrw_browse_split=4
|
||||||
let g:netrw_liststyle=3
|
let g:netrw_liststyle=3
|
||||||
let g:netrw_sort_sequence='[\/]$,*'
|
let g:netrw_sort_sequence='[\/]$,*'
|
||||||
let g:netrw_winsize=-28
|
let g:netrw_winsize=-28
|
||||||
let g:org_indent=0
|
let g:org_indent=0
|
||||||
let g:org_tag_column=78
|
let g:org_tag_column=78
|
||||||
" Set colour levels for different terminals.
|
" Set colour levels for different terminals.
|
||||||
if &term == "xterm-256color"
|
if &term == "xterm-256color"
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
elseif &term == "xterm"
|
elseif &term == "xterm"
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
elseif &term == "rxvt-unicode"
|
elseif &term == "rxvt-unicode"
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
else
|
else
|
||||||
set t_Co=16
|
set t_Co=16
|
||||||
endif
|
endif
|
||||||
colorscheme PaperColor
|
colorscheme PaperColor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ======================================================================
|
" ======================================================================
|
||||||
" Settings based on feature detection.
|
" Settings based on feature detection.
|
||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
autocmd BufRead,BufNewFile *.go set shiftwidth=8 tabstop=8
|
autocmd BufRead,BufNewFile *.go set shiftwidth=8 tabstop=8
|
||||||
autocmd BufRead,BufNewFile *.html set shiftwidth=2
|
autocmd BufRead,BufNewFile *.html set shiftwidth=2
|
||||||
autocmd BufRead,BufNewFile *.md set filetype=markdown tabstop=4
|
autocmd BufRead,BufNewFile *.md set filetype=markdown tabstop=4
|
||||||
autocmd BufRead,BufNewFile *.opml set shiftwidth=2
|
autocmd BufRead,BufNewFile *.opml set shiftwidth=2
|
||||||
autocmd BufRead,BufNewFile *.xml set shiftwidth=2
|
autocmd BufRead,BufNewFile *.xml set shiftwidth=2
|
||||||
autocmd BufRead,BufNewFile *.yml set shiftwidth=2
|
autocmd BufRead,BufNewFile *.yml set shiftwidth=2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("folding")
|
if has("folding")
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
if has("gui_gtk")
|
if has("gui_gtk")
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
set guifont=Iosevka\ Term\ Light\ 11,
|
set guifont=Iosevka\ Term\ Light\ 11,
|
||||||
\Liberation\ Mono\ 11,
|
\Liberation\ Mono\ 11,
|
||||||
\Monospace\ Regular\ 11
|
\Monospace\ Regular\ 11
|
||||||
elseif has("gui_win32")
|
elseif has("gui_win32")
|
||||||
set clipboard=unnamed
|
set clipboard=unnamed
|
||||||
set guifont=Source_Code_Pro:h9:cANSI:qDRAFT,
|
set guifont=Source_Code_Pro:h9:cANSI:qDRAFT,
|
||||||
\Consolas:h10:cANSI
|
\Consolas:h10:cANSI
|
||||||
endif
|
endif
|
||||||
set background=light
|
set background=light
|
||||||
set columns=88
|
set columns=88
|
||||||
set guioptions+=cm
|
set guioptions+=cm
|
||||||
set guioptions-=T
|
set guioptions-=T
|
||||||
set lines=40
|
set lines=40
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("patch-7.3.541")
|
if has("patch-7.3.541")
|
||||||
set formatoptions+=j
|
set formatoptions+=j
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("printer")
|
if has("printer")
|
||||||
set printheader=%t%h%m%=Page\ %N
|
set printheader=%t%h%m%=Page\ %N
|
||||||
set printoptions=paper:A4,number:y,syntax:n
|
set printoptions=paper:A4,number:y,syntax:n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("smartindent")
|
if has("smartindent")
|
||||||
set smartindent
|
set smartindent
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("syntax")
|
if has("syntax")
|
||||||
syntax on
|
syntax on
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ======================================================================
|
" ======================================================================
|
||||||
|
|
Loading…
Reference in a new issue