Relative paths in session
This commit is contained in:
+3
-5
@@ -3,7 +3,7 @@ if &cp | set nocp | endif
|
|||||||
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
|
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
|
||||||
let v:this_session=expand("<sfile>:p")
|
let v:this_session=expand("<sfile>:p")
|
||||||
silent only
|
silent only
|
||||||
cd ~/Skolarbete/Prestandaoptimering/Projekt\ 1\ -\ Nibbles
|
exe "cd " . escape(expand("<sfile>:p:h"), ' ')
|
||||||
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
||||||
let s:wipebuf = bufnr('%')
|
let s:wipebuf = bufnr('%')
|
||||||
endif
|
endif
|
||||||
@@ -23,7 +23,6 @@ set nosplitright
|
|||||||
wincmd t
|
wincmd t
|
||||||
set winheight=1 winwidth=1
|
set winheight=1 winwidth=1
|
||||||
exe 'vert 1resize ' . ((&columns * 137 + 137) / 274)
|
exe 'vert 1resize ' . ((&columns * 137 + 137) / 274)
|
||||||
exe '2resize ' . ((&lines * 60 + 31) / 62)
|
|
||||||
exe 'vert 2resize ' . ((&columns * 136 + 137) / 274)
|
exe 'vert 2resize ' . ((&columns * 136 + 137) / 274)
|
||||||
argglobal
|
argglobal
|
||||||
setlocal fdm=manual
|
setlocal fdm=manual
|
||||||
@@ -40,7 +39,7 @@ if s:l < 1 | let s:l = 1 | endif
|
|||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
23
|
23
|
||||||
normal! 042|
|
normal! 033|
|
||||||
wincmd w
|
wincmd w
|
||||||
argglobal
|
argglobal
|
||||||
edit cnibbles.c
|
edit cnibbles.c
|
||||||
@@ -53,7 +52,7 @@ setlocal fml=1
|
|||||||
setlocal fdn=20
|
setlocal fdn=20
|
||||||
setlocal fen
|
setlocal fen
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 141 - ((41 * winheight(0) + 30) / 60)
|
let s:l = 141 - ((42 * winheight(0) + 30) / 61)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@@ -61,7 +60,6 @@ normal! zt
|
|||||||
normal! 041|
|
normal! 041|
|
||||||
wincmd w
|
wincmd w
|
||||||
exe 'vert 1resize ' . ((&columns * 137 + 137) / 274)
|
exe 'vert 1resize ' . ((&columns * 137 + 137) / 274)
|
||||||
exe '2resize ' . ((&lines * 60 + 31) / 62)
|
|
||||||
exe 'vert 2resize ' . ((&columns * 136 + 137) / 274)
|
exe 'vert 2resize ' . ((&columns * 136 + 137) / 274)
|
||||||
tabnext 1
|
tabnext 1
|
||||||
if exists('s:wipebuf')
|
if exists('s:wipebuf')
|
||||||
|
|||||||
Reference in New Issue
Block a user