mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Steal vimrc settings from vita.
This commit is contained in:
22
vimrc
22
vimrc
@@ -20,7 +20,19 @@ if filereadable(glob("~/.vim/bundle/Vundle.vim/README.md"))
|
|||||||
call vundle#end()
|
call vundle#end()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Whitespace options
|
" Setup paths
|
||||||
|
set backupdir=~/.cache/vim/backup//
|
||||||
|
set directory=~/.cache/vim/swap//
|
||||||
|
set undodir=~/.cache/vim/undo//
|
||||||
|
if !isdirectory($HOME . '/.cache/vim/swap')
|
||||||
|
silent !mkdir -p ~/.cache/vim/{backup,swap,undo}
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Make sure files get completely written, but don't write backups
|
||||||
|
set nobackup
|
||||||
|
set writebackup
|
||||||
|
|
||||||
|
" Whitespace/indent options
|
||||||
set autoindent
|
set autoindent
|
||||||
set copyindent
|
set copyindent
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
@@ -35,16 +47,20 @@ imap <S-Tab> <Esc><<A
|
|||||||
" Line numbering, ruler
|
" Line numbering, ruler
|
||||||
set number
|
set number
|
||||||
set ruler
|
set ruler
|
||||||
|
set cursorline
|
||||||
|
|
||||||
" File options
|
" File options
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
" Syntax highlighting and file types
|
" Syntax highlighting, look and feel
|
||||||
syntax on
|
syntax on
|
||||||
set background=dark
|
set background=dark
|
||||||
if !has('gui_running')
|
if has('gui_running')
|
||||||
|
set guifont=Inconsolata\ 11
|
||||||
|
else
|
||||||
let g:solarized_termcolors=256
|
let g:solarized_termcolors=256
|
||||||
endif
|
endif
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
|
" Enable filetype support
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
" Allow file modelines
|
" Allow file modelines
|
||||||
set modeline
|
set modeline
|
||||||
|
|||||||
Reference in New Issue
Block a user