Fixed initialization function for vim, added nifyd to xinerama

This commit is contained in:
Austen Adler 2014-11-16 15:07:53 -05:00
parent 5074e3b835
commit 07768574b3
3 changed files with 38 additions and 13 deletions

View File

@ -5,4 +5,5 @@ LP_ENABLE_SSH_COLORS=1
LP_USER_ALWAYS=0 LP_USER_ALWAYS=0
LP_ENABLE_OHMYGIT=1 LP_ENABLE_OHMYGIT=1
LP_ENABLE_BATT=1 LP_ENABLE_BATT=1
LP_ENABLE_JOBS=0
# vim: ft=sh: # vim: ft=sh:

View File

@ -226,7 +226,11 @@ inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
let loaded_matchit=1 let loaded_matchit=1
let g:UltiSnipsEditSplit="vertical" let g:UltiSnipsEditSplit="vertical"
filetype off filetype off
call plug#begin('~/.vim/plugged') if has("win32")
call plug#begin('~/vimfiles/plugged')
else
call plug#begin('~/.vim/plugged')
endif
"Plug 'Floobits/floobits-vim' "Plug 'Floobits/floobits-vim'
"Plug 'tsaleh/vim-matchit' "Plug 'tsaleh/vim-matchit'
"Plug 'Shougo/neosnippet' "Plug 'Shougo/neosnippet'
@ -353,15 +357,33 @@ endif
silent! colorscheme fruity silent! colorscheme fruity
nnoremap <Leader>W :%s/\s\+$//<cr>:let @/=''<cr> nnoremap <Leader>W :%s/\s\+$//<cr>:let @/=''<cr>
function! Initialize() function! Initialize()
silent !mkdir -p ~/.vim/autoload if has("win32")
silent !mkdir -p ~/.vim/plugin if empty(glob("~/_vim/autoload/plug.vim"))
silent !mkdir -p ~/.vim/backup cd ~
silent !mkdir -p ~/.vim/undo silent !mkdir vimfiles
silent !mkdir -p ~/.vim/tmp cd vimfiles
if empty(glob("~/.vim/autoload/plug.vim")) silent !mkdir autoload
!curl -fLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim silent !mkdir plugin
silent !mkdir backup
silent !mkdir undo
silent !mkdir tmp
cd autoload
silent !powershell -command "& { iwr https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -OutFile plug.vim }"
silent! so ~/_vimrc
silent! PlugInstall
q
endif
else
if empty(glob("~/.vim/autoload/plug.vim"))
silent !mkdir -p ~/.vim/autoload
silent !mkdir -p ~/.vim/plugin
silent !mkdir -p ~/.vim/backup
silent !mkdir -p ~/.vim/undo
silent !mkdir -p ~/.vim/tmp
silent !curl -fLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
silent! so ~/.vimrc
silent! PlugInstall
q
endif
endif endif
silent! so ~/.vimrc
silent! PlugInstall
q
endfunction endfunction

View File

@ -28,8 +28,10 @@ xrandr --output VIRTUAL3 --off
#2 monitors #2 monitors
x11vnc -clip 1280x800+640+0 -xrandr -forever x11vnc -clip 1280x800+640+0 -xrandr -forever nifyd
x11vnc -clip 1280x800+1920+0 -xrandr -forever x11vnc -clip 1280x800+1920+0 -xrandr -forever nifyd
smon ./s
xrandr --newmode "1280x800_60.00" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync xrandr --newmode "1280x800_60.00" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync