Update vimrc
This commit is contained in:
parent
37fbba625d
commit
869762c9ae
|
@ -3,8 +3,9 @@
|
|||
set -e
|
||||
|
||||
if [ ! -d "~/.vim" ]; then
|
||||
echo "Syncing user dictionary" && cp ~/.vim/spell/* ~/.dotfiles/vim/spell/
|
||||
echo "Syncing user colors" && cp ~/.vim/colors/* ~/.dotfiles/vim/colors/
|
||||
echo "Syncing user dictionary" && cp -r ~/.vim/spell ~/.dotfiles/vim/
|
||||
echo "Syncing user colors" && cp -r ~/.vim/colors ~/.dotfiles/vim/
|
||||
echo "Syncing after directory" && cp -r ~/.vim/after ~/.dotfiles/vim/
|
||||
echo "Syncing templates" && cp -r ~/.vim/templates ~/.dotfiles/vim/
|
||||
echo "Syncing ftdetect" && cp -r ~/.vim/ftdetect ~/.dotfiles/vim/
|
||||
fi
|
||||
|
|
0
install.sh → install
Executable file → Normal file
0
install.sh → install
Executable file → Normal file
12
vimrc
12
vimrc
|
@ -218,8 +218,8 @@ set cursorcolumn
|
|||
" Store temporary files in a central spot. Make sure these directories exist on disk.
|
||||
set backup
|
||||
set backupcopy=yes
|
||||
set directory=X://tmp//vim// " For swap files.
|
||||
set backupdir=X://tmp//vim//
|
||||
set directory=X://cache//vim// " For swap files.
|
||||
set backupdir=X://cache//vim//
|
||||
:au BufWritePre * let &bex = '.' . strftime("%Y-%m-%d-%T") . '.bak'
|
||||
set writebackup
|
||||
|
||||
|
@ -297,10 +297,6 @@ augroup campoCmds
|
|||
" Jump to last cursor position unless it's invalid or in an event handler.
|
||||
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||
|
||||
" Language identation.
|
||||
autocmd FileType ruby,haml,eruby,yaml,html,javascript,rust,go set ai sw=2 sts=2 et
|
||||
autocmd FileType python,qml set sw=4 sts=4 et
|
||||
|
||||
" Indent HTML <p> tags.
|
||||
autocmd FileType html,eruby if g:html_indent_tags !~ '\\|p\>' | let g:html_indent_tags .= '\|p\|li\|dt\|dd' | endif
|
||||
|
||||
|
@ -722,7 +718,9 @@ let g:campo_theme_use_rainbow_parens = 1
|
|||
"let s:dark_theme = 'campo-dark-grey-blue'
|
||||
"let s:dark_theme = 'campo-dark-greyscale'
|
||||
let s:dark_theme = 'campo-simple-dark'
|
||||
let s:light_theme = 'campo-light'
|
||||
|
||||
"let s:light_theme = 'campo-light'
|
||||
let s:light_theme = 'campo-simple-light'
|
||||
|
||||
execute "autocmd ColorScheme " . s:dark_theme . " call ReloadRainbow()"
|
||||
execute "autocmd ColorScheme " . s:light_theme . " call ReloadRainbow()"
|
||||
|
|
Loading…
Reference in New Issue
Block a user