Lines Matching refs:put_line
108 if (put_line(fd, "%argdel") == FAIL) in ses_arglist()
216 if (put_line(fd, "wincmd _ | wincmd |") == FAIL in ses_win_rec()
217 || put_line(fd, fr->fr_layout == FR_COL in ses_win_rec()
237 if (frc != NULL && put_line(fd, "wincmd w") == FAIL) in ses_win_rec()
280 if (put_line(fd, "wincmd =") == FAIL) in ses_winsizes()
325 if (put_line(fd, "argglobal") == FAIL) in put_view()
385 if (put_line(fd, "enew") == FAIL) in put_view()
472 || put_line(fd, "if s:l < 1 | let s:l = 1 | endif") == FAIL in put_view()
473 || put_line(fd, "keepjumps exe s:l") == FAIL in put_view()
474 || put_line(fd, "normal! zt") == FAIL in put_view()
481 if (put_line(fd, "normal! 0") == FAIL) in put_view()
494 || put_line(fd, "if s:c > 0") == FAIL in put_view()
499 || put_line(fd, "else") == FAIL in put_view()
501 || put_line(fd, "endif") == FAIL) in put_view()
629 if (put_line(fd, "let v:this_session=expand(\"<sfile>:p\")") == FAIL) in makeopens()
637 if (put_line(fd, "silent only") == FAIL) in makeopens()
640 && put_line(fd, "silent tabonly") == FAIL) in makeopens()
646 if (put_line(fd, "exe \"cd \" . escape(expand(\"<sfile>:p:h\"), ' ')") in makeopens()
666 …if (put_line(fd, "if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''") == FA… in makeopens()
668 if (put_line(fd, " let s:wipebuf = bufnr('%')") == FAIL) in makeopens()
670 if (put_line(fd, "endif") == FAIL) in makeopens()
674 if (put_line(fd, "set shortmess=aoO") == FAIL) in makeopens()
710 if (put_line(fd, "set stal=2") == FAIL) in makeopens()
728 if (tp->tp_next != NULL && put_line(fd, "tabnew") == FAIL) in makeopens()
730 if (first_tabpage->tp_next != NULL && put_line(fd, "tabrewind") == FAIL) in makeopens()
772 if (need_tabnext && put_line(fd, "tabnext") == FAIL) in makeopens()
787 if (need_tabnext && put_line(fd, "tabnext") == FAIL) in makeopens()
793 if (put_line(fd, "let s:save_splitbelow = &splitbelow") == FAIL in makeopens()
794 || put_line(fd, "let s:save_splitright = &splitright") in makeopens()
797 if (put_line(fd, "set splitbelow splitright") == FAIL) in makeopens()
801 if (put_line(fd, "let &splitbelow = s:save_splitbelow") == FAIL in makeopens()
802 || put_line(fd, "let &splitright = s:save_splitright") in makeopens()
823 if (put_line(fd, "wincmd t") == FAIL) in makeopens()
833 if (put_line(fd, "let s:save_winminheight = &winminheight") == FAIL in makeopens()
834 || put_line(fd, "let s:save_winminwidth = &winminwidth") in makeopens()
837 if (put_line(fd, "set winminheight=0") == FAIL in makeopens()
838 || put_line(fd, "set winheight=1") == FAIL in makeopens()
839 || put_line(fd, "set winminwidth=0") == FAIL in makeopens()
840 || put_line(fd, "set winwidth=1") == FAIL) in makeopens()
871 if (nr > 1 && put_line(fd, "wincmd w") == FAIL) in makeopens()
903 if (restore_stal && put_line(fd, "set stal=1") == FAIL) in makeopens()
930 if (put_line(fd, "if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0") in makeopens()
933 if (put_line(fd, " silent exe 'bwipe ' . s:wipebuf") == FAIL) in makeopens()
935 if (put_line(fd, "endif") == FAIL) in makeopens()
937 if (put_line(fd, "unlet! s:wipebuf") == FAIL) in makeopens()
947 if (put_line(fd, "let &winminheight = s:save_winminheight") == FAIL in makeopens()
948 || put_line(fd, "let &winminwidth = s:save_winminwidth") == FAIL) in makeopens()
953 if (put_line(fd, "let s:sx = expand(\"<sfile>:p:r\").\"x.vim\"") == FAIL in makeopens()
954 || put_line(fd, "if filereadable(s:sx)") == FAIL in makeopens()
955 || put_line(fd, " exe \"source \" . fnameescape(s:sx)") == FAIL in makeopens()
956 || put_line(fd, "endif") == FAIL) in makeopens()
1105 || put_line(fd, "let v:this_session = Save_VV_this_session") in write_session_file()
1107 || put_line(fd, "unlet Save_VV_this_session") == FAIL); in write_session_file()
1228 (void)put_line(fd, "version 6.0"); in ex_mkrc()
1233 if (put_line(fd, "let SessionLoad = 1") == FAIL) in ex_mkrc()
1243 (void)put_line(fd, "if !&cp | set cp | endif"); in ex_mkrc()
1245 (void)put_line(fd, "if &cp | set nocp | endif"); in ex_mkrc()
1267 …if (put_line(fd, "let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-… in ex_mkrc()
1312 if (put_line(fd, "let &g:so = s:so_save | let &g:siso = s:siso_save") in ex_mkrc()
1316 if (no_hlsearch && put_line(fd, "nohlsearch") == FAIL) in ex_mkrc()
1319 if (put_line(fd, "doautoall SessionLoadPost") == FAIL) in ex_mkrc()
1323 if (put_line(fd, "unlet SessionLoad") == FAIL) in ex_mkrc()
1328 if (put_line(fd, "\" vim: set ft=vim :") == FAIL) in ex_mkrc()
1407 put_line(FILE *fd, char *s) in put_line() function