Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vim-session
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GovanifY
vim-session
Commits
13d405d4
Commit
13d405d4
authored
13 years ago
by
Peter Odding
Browse files
Options
Downloads
Patches
Plain Diff
Ignore "No fold found" errors
parent
d9af5b1c
No related branches found
Branches containing commit
Tags
1.4.7
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
autoload/xolox/session.vim
+11
-2
11 additions, 2 deletions
autoload/xolox/session.vim
plugin/session.vim
+2
-2
2 additions, 2 deletions
plugin/session.vim
with
13 additions
and
4 deletions
autoload/xolox/session.vim
+
11
−
2
View file @
13d405d4
" Vim script
" Author: Peter Odding
" Last Change: June
4
, 2011
" Last Change: June
11
, 2011
" URL: http://peterodding.com/code/vim/session/
let
s:script
=
expand
(
'<sfile>:p:~'
)
...
...
@@ -101,7 +101,7 @@ function! xolox#session#save_state(commands) " {{{2
call
remove
(
lines
,
-1
)
endif
call
xolox#session#save_special_windows
(
lines
)
call
extend
(
a:commands
,
lines
)
call
extend
(
a:commands
,
map
(
lines
,
's:state_filter(v:val)'
)
)
return
1
finally
let
&
sessionoptions
=
ssop_save
...
...
@@ -109,6 +109,15 @@ function! xolox#session#save_state(commands) " {{{2
endtry
endfunction
function
!
s:state_filter
(
line
)
if
a:line
==
'normal zo'
" Silence "E490: No fold found" errors.
return
'silent! normal zo'
else
return
a:line
endif
endfunction
function
!
xolox#session#save_special_windows
(
session
)
"
{{{
2
" Integration between :mksession, :NERDTree and :Project.
let
tabpage
=
tabpagenr
()
...
...
This diff is collapsed.
Click to expand it.
plugin/session.vim
+
2
−
2
View file @
13d405d4
" Vim script
" Author: Peter Odding
" Last Change: June
4
, 2011
" Last Change: June
11
, 2011
" URL: http://peterodding.com/code/vim/session/
" Version: 1.4.
6
" Version: 1.4.
7
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3150 1 :AutoInstall: session.zip
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment