I'm encountering a series of UltiSnips errors after sourcing a vim session file. These errors do not appear if I edit a file before restoring my session. However, if I restore a session from a blank gvim instance (I'm on Windows 8.1) I encounter the following errors:
"hello.go" 7L, 128C
Error detected while processing C:\Users\John Rinehart\vimfiles\bundle\ultisnips\autoload\UltiSnips.vim:
line 15:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named UltiSnips
Error detected while processing function UltiSnips#FileTypeChanged:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
"go.vimrc" 5L, 250C
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
Error detected while processing function UltiSnips#FileTypeChanged:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
My vim version is as follows:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 22 2015 21:36:18)
MS-Windows 32-bit GUI version
Included patches: 1-979
Compiled by jrinehar@JRINEHAR
Huge version with GUI. Features included (+) or not (-):
+acl +digraphs +libcall +profile +textobjects
+arabic -directx +linebreak +python/dyn +title
+autocmd -dnd +lispindent -python3 +toolbar
+balloon_eval -ebcdic +listcmds +quickfix +user_commands
+browse +emacs_tags +localmap +reltime +vertsplit
++builtin_terms +eval +lua/dyn +rightleft +virtualedit
+byte_offset +ex_extra +menu -ruby +visual
+cindent +extra_search +mksession +scrollbind +visualextra
+clientserver +farsi +modify_fname +signs +viminfo
+clipboard +file_in_path +mouse +smartindent +vreplace
+cmdline_compl +find_in_path +mouseshape -sniff +wildignore
+cmdline_hist +float +multi_byte_ime/dyn +startuptime +wildmenu
+cmdline_info +folding +multi_lang +statusline +windows
+comments -footer -mzscheme -sun_workshop +writebackup
+conceal +gettext/dyn +netbeans_intg +syntax -xfontset
+cryptv -hangul_input -ole +tag_binary -xim
+cscope +iconv/dyn +path_extra +tag_old_static -xterm_save
+cursorbind +insert_expand -perl -tag_any_white +xpm_w32
+cursorshape +jumplist +persistent_undo -tcl
+dialog_con_gui +keymap -postscript -tgetent
+diff +langmap +printer -termresponse
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: gcc -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i386 -Wall -Ic:/lua/include -Ic:/lua -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL="lua53.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DFEAT_XPM_W32 -I xpm/x86/include -I xpm/x86/../include -O3 -fomit-frame-pointer -freg-struct-return -s
Linking: gcc -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i386 -Wall -Ic:/lua/include -Ic:/lua -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL="lua53.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DFEAT_XPM_W32 -I xpm/x86/include -I xpm/x86/../include -O3 -fomit-frame-pointer -freg-struct-return -s -mwindows -o gvim.exe -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion -lwsock32 -Lxpm/x86/lib -lXpm -lole32 -luuid
I use Vundle to manage my plugins and my vimrc file(s) can be found on my github page: https://github.com/fuzzybear3965/vimrc. My Python version is 2.7.9.
@fuzzybear3965: Please, provide sequence of vim commands that evaluates to error.
F3. This is the only key that I have to press immediately after opening a Vim instance. I have the following defined in my vimrc file:
nmap <F3> :wa<CR>:source $HOME/vim_session<CR> " Load session from file
@fuzzybear3965: Can you reduce test scenario to minimal reproduceable on your workstation vimrc and sequence of actions (e.g. opening file a.go, :mksession ..., ...)?
@fuzzybear3965: Because I cannot reproduce it.
@fuzzybear3965: ping.
@seletskiy I'm very sorry to leave this for so long. Since we last spoke I have changed Vim versions (I compile the latest version with patches daily) and I have (possibly) changed which plugins I use with Vim (I used Vundle to manage my Vim plugins).
I can no longer reproduce this error, myself. I remember that this behavior was occurring whenever I loaded a Vim session which had an active buffer of the latex filetype. Today, I have created a reasonably active vim session (editing latex files, java files, go files - any filetype that I may have been working on at the time that would have stimulated the string of errors given in the first post). Everything works great. So, I guess this issue can be marked as closed. I'm also sorry that I didn't track the changes to my Vim set-up. I hope no one else in the future has this problem.
Note: If you have this issue in the future, please check my vimrc files. I pushed today's version of my vimrc files to Github. These files represent a working configuration. My most recent Vim version is as follows:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 24 2016 15:33:15)
MS-Windows 32-bit GUI version
Included patches: 1-1172
Compiled by jrinehar@JRINEHAR
Huge version with GUI. Features included (+) or not (-):
+acl +eval +mouseshape +tag_binary
+arabic +ex_extra +multi_byte_ime/dyn +tag_old_static
+autocmd +extra_search +multi_lang -tag_any_white
+balloon_eval +farsi -mzscheme -tcl
+browse +file_in_path +netbeans_intg -tgetent
++builtin_terms +find_in_path -ole -termresponse
+byte_offset +float +path_extra +textobjects
+cindent +folding -perl +title
+clientserver -footer +persistent_undo +toolbar
+clipboard +gettext/dyn -postscript +user_commands
+cmdline_compl -hangul_input +printer +vertsplit
+cmdline_hist +iconv/dyn +profile +virtualedit
+cmdline_info +insert_expand +python/dyn +visual
+comments +jumplist -python3 +visualextra
+conceal +keymap +quickfix +viminfo
+cryptv +langmap +reltime +vreplace
+cscope +libcall +rightleft +wildignore
+cursorbind +linebreak -ruby +wildmenu
+cursorshape +lispindent +scrollbind +windows
+dialog_con_gui +listcmds +signs +writebackup
+diff +localmap +smartindent -xfontset
+digraphs +lua/dyn -sniff -xim
-directx +menu +startuptime -xterm_save
-dnd +mksession +statusline +xpm_w32
-ebcdic +modify_fname -sun_workshop
+emacs_tags +mouse +syntax
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: gcc -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i686 -Wall -Ic:/lua/include -Ic:/lua -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL="lua51.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL="python27.dll" -DFEAT_XPM_W32 -I xpm/x86/include -I xpm/x86/../include -O3 -fomit-frame-pointer -freg-struct-return -s
Linking: gcc -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i686 -Wall -Ic:/lua/include -Ic:/lua -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL="lua51.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL="python27.dll" -DFEAT_XPM_W32 -I xpm/x86/include -I xpm/x86/../include -O3 -fomit-frame-pointer -freg-struct-return -s -mwindows -o gvim.exe -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion -lwsock32 -Lxpm/x86/lib -lXpm -lole32 -luuid
Currently I reproduce the same error in vagrant-ubuntu-trusty-64 environment when I try to open new file from vim started without arguments. Some useful parts of my Vagrantfile:
Vagrant.configure(2) do |config|
config.ssh.forward_agent = true
config.vm.box = "ubuntu/trusty64"
# issue can be reproduced on default Virtualbox synced folders backend
# nfs just works faster
config.vm.synced_folder "..", "/home/vagrant/workspace", type: "nfs"
end
# vim:et sw=2 ft=ruby
My dotfiles are https://github.com/DXist/dotfiles. They require ansible and make for provisioning. You may run make to do full environment setup (takes some time) and make update_vim to install NeoBundle plugins.
@DXist, @fuzzybear3965: Can you post session file, which triggers error?
@seletskiy , just open new file with :e /tmp/test.py inside vim with welcome screen to reproduce the error in my environment.
@DXist: Is it reproduceable with _only_ UltiSnips plugin enabled?
@seletskiy , yes it is. I commented out all NeoBundle calls except UltiSnips and got the same error when open empty /tmp/test.py. Also I tried to open /tmp/test file to disable impact of my config for python filetype. I got similar traceback when I hit c-j and activate UltiSnips#ExpandSnippetOrJump function.
@DXist, @fuzzybear3965: Sorry, currently I have no time to track down that problem. Personally I do not use sessions. However, I will gladly merge PR if you will find the problem and fix it.
@seletskiy, I don't use this old Debian environment any more so I don't have interest in this issue too.
@DXist: OK, thanks for the reply.
Hey, sorry to be out of this loop for so long, you guys. Actually, this issue comes up, still, and I'm not sure how I ever avoided it being a problem, before, when I claimed that I could not reproduce it. I will take a look into this to see if I can fix this. My VimScript powers are pretty limited, though. I will document my progress on addressing this bug, below.
.vimrc nmapnmap <F2> :wa<CR>:mksession! $HOME/vim_session<CR> " Write session to file
:wqa to save the 0-byte file to disk.nmap <F3> :wa<CR>:source $HOME/vim_session<CR> " Load session from file
The following output is generated.
Already only one window
Error detected while processing C:/Users/John Rinehart/vim_session:
line 157:
E480: No match: *
"test.txt" [New File]
Error detected while processing C:/Users/John Rinehart/vimfiles/bundle/ultisnips/autoload/UltiSnips.vim:
line 15:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named UltiSnips
Error detected while processing function UltiSnips#FileTypeChanged:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
~/vim_session)let SessionLoad = 1
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
inoremap <Plug>(emmet-anchorize-summary) =emmet#util#closePopup()
=emmet#anchorizeURL(1)
inoremap <Plug>(emmet-anchorize-url) =emmet#util#closePopup()
=emmet#anchorizeURL(0)
inoremap <Plug>(emmet-remove-tag) =emmet#util#closePopup()
=emmet#removeTag()
inoremap <Plug>(emmet-split-join-tag) :call emmet#splitJoinTag()
inoremap <Plug>(emmet-toggle-comment) =emmet#util#closePopup()
=emmet#toggleComment()
inoremap <Plug>(emmet-image-size) =emmet#util#closePopup()
=emmet#imageSize()
inoremap <Plug>(emmet-move-prev-item) :call emmet#moveNextPrevItem(1)
inoremap <Plug>(emmet-move-next-item) :call emmet#moveNextPrevItem(0)
inoremap <Plug>(emmet-move-prev) :call emmet#moveNextPrev(1)
inoremap <Plug>(emmet-move-next) :call emmet#moveNextPrev(0)
inoremap <Plug>(emmet-balance-tag-outword) :call emmet#balanceTag(-1)
inoremap <Plug>(emmet-balance-tag-inward) :call emmet#balanceTag(1)
inoremap <Plug>(emmet-update-tag) =emmet#util#closePopup()
=emmet#updateTag()
inoremap <Plug>(emmet-expand-word) =emmet#util#closePopup()
=emmet#expandAbbr(1,"")
inoremap <Plug>(emmet-expand-abbr) =emmet#util#closePopup()
=emmet#expandAbbr(0,"")
inoremap <silent> <C-Tab> =UltiSnips#ListSnippets()
imap <F1> <F1>a
map! <S-Insert> *
snoremap <silent> c
xnoremap <silent> :call UltiSnips#SaveLastVisualSelection()
gvs
snoremap <silent> :call UltiSnips#ExpandSnippet()
snoremap "_c
vmap "*d
vmap c <Plug>(emmet-code-pretty)
vmap m <Plug>(emmet-merge-lines)
nmap A <Plug>(emmet-anchorize-summary)
nmap a <Plug>(emmet-anchorize-url)
nmap k <Plug>(emmet-remove-tag)
nmap j <Plug>(emmet-split-join-tag)
nmap / <Plug>(emmet-toggle-comment)
nmap i <Plug>(emmet-image-size)
nmap N <Plug>(emmet-move-prev)
nmap n <Plug>(emmet-move-next)
vmap D <Plug>(emmet-balance-tag-outword)
nmap D <Plug>(emmet-balance-tag-outword)
vmap d <Plug>(emmet-balance-tag-inward)
nmap d <Plug>(emmet-balance-tag-inward)
nmap u <Plug>(emmet-update-tag)
nmap ; <Plug>(emmet-expand-word)
vmap , <Plug>(emmet-expand-abbr)
nmap , <Plug>(emmet-expand-abbr)
xmap S <Plug>VSurround
vmap [% [%m'gv``
vmap \x :!tidy -q -i --show-errors 0
nnoremap <silent> \` :let @/=""
vmap ]% ]%m'gv``
vmap a% [%v]%
nmap cS <Plug>CSurround
nmap cs <Plug>Csurround
nmap ds <Plug>Dsurround
vmap gx <Plug>NetrwBrowseXVis
nmap gx <Plug>NetrwBrowseX
xmap gS <Plug>VgSurround
nmap ySS <Plug>YSsurround
nmap ySs <Plug>YSsurround
nmap yss <Plug>Yssurround
nmap yS <Plug>YSurround
nmap ys <Plug>Ysurround
vnoremap <silent> <Plug>NetrwBrowseXVis :call netrw#BrowseXVis()
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#BrowseX(expand((exists("g:netrw_gx")? g:netrw_gx : '<cfile>')),netrw#CheckIfRemote())
vnoremap <Plug>(emmet-code-pretty) :call emmet#codePretty()
vnoremap <Plug>(emmet-merge-lines) :call emmet#mergeLines()
nnoremap <Plug>(emmet-anchorize-summary) :call emmet#anchorizeURL(1)
nnoremap <Plug>(emmet-anchorize-url) :call emmet#anchorizeURL(0)
nnoremap <Plug>(emmet-remove-tag) :call emmet#removeTag()
nnoremap <Plug>(emmet-split-join-tag) :call emmet#splitJoinTag()
nnoremap <Plug>(emmet-toggle-comment) :call emmet#toggleComment()
nnoremap <Plug>(emmet-image-size) :call emmet#imageSize()
nnoremap <Plug>(emmet-move-prev-item) :call emmet#moveNextPrevItem(1)
nnoremap <Plug>(emmet-move-next-item) :call emmet#moveNextPrevItem(0)
nnoremap <Plug>(emmet-move-prev) :call emmet#moveNextPrev(1)
nnoremap <Plug>(emmet-move-next) :call emmet#moveNextPrev(0)
vnoremap <Plug>(emmet-balance-tag-outword) :call emmet#balanceTag(-2)
nnoremap <Plug>(emmet-balance-tag-outword) :call emmet#balanceTag(-1)
vnoremap <Plug>(emmet-balance-tag-inward) :call emmet#balanceTag(2)
nnoremap <Plug>(emmet-balance-tag-inward) :call emmet#balanceTag(1)
nnoremap <Plug>(emmet-update-tag) :call emmet#updateTag()
nnoremap <Plug>(emmet-expand-word) :call emmet#expandAbbr(1,"")
vnoremap <Plug>(emmet-expand-abbr) :call emmet#expandAbbr(2,"")
nnoremap <Plug>(emmet-expand-abbr) :call emmet#expandAbbr(3,"")
nnoremap <Plug>(JavaComplete-Imports-AddSmart) :call javacomplete#imports#Add(1)
nnoremap <Plug>(JavaComplete-Imports-Add) :call javacomplete#imports#Add()
nnoremap <Plug>(JavaComplete-Imports-RemoveUnused) :call javacomplete#imports#RemoveUnused()
nnoremap <Plug>(JavaComplete-Imports-AddMissing) :call javacomplete#imports#AddMissing()
nnoremap <silent> <Plug>SurroundRepeat .
snoremap <silent> <Del> c
snoremap <silent> <BS> c
snoremap <silent> <C-Tab> :call UltiSnips#ListSnippets()
nmap <F9> <Plug>(vimtex-compile-toggle)
nmap <F1> :call ResizeWindow()
nmap <F3> :wa
:source $HOME/vim_session
" Load session from file
nmap <F2> :wa
:mksession! $HOME/vim_session
" Write session to file
vmap <C-Del> "*d
vmap <S-Del> "*d
vmap <C-Insert> "*y
vmap <S-Insert> "-d"*P
nmap <S-Insert> "*P
imap S <Plug>ISurround
imap s <Plug>Isurround
inoremap <silent> =UltiSnips#ExpandSnippet()
imap <Plug>Isurround
imap A <Plug>(emmet-anchorize-summary)
imap a <Plug>(emmet-anchorize-url)
imap k <Plug>(emmet-remove-tag)
imap j <Plug>(emmet-split-join-tag)
imap / <Plug>(emmet-toggle-comment)
imap i <Plug>(emmet-image-size)
imap N <Plug>(emmet-move-prev)
imap n <Plug>(emmet-move-next)
imap D <Plug>(emmet-balance-tag-outword)
imap d <Plug>(emmet-balance-tag-inward)
imap u <Plug>(emmet-update-tag)
imap ; <Plug>(emmet-expand-word)
imap , <Plug>(emmet-expand-abbr)
let &cpo=s:cpo_save
unlet s:cpo_save
set autochdir
set autoindent
set backspace=indent,eol,start
set backupext=.bak
set display=lastline
set encoding=utf-8
set expandtab
set fileencodings=ucs-bom,utf-8,default,latin1
set guifont=Consolas:h10:cANSI
set guioptions=
set helplang=En
set hlsearch
set incsearch
set laststatus=2
set ruler
set runtimepath=~/vimfiles,~\\vimfiles\\bundle\\Vundle.vim,~\\vimfiles\\bundle\\vimtex,~\\vimfiles\\bundle\\vim-snippets,~\\vimfiles\\bundle\\ultisnips,~\\vimfiles\\bundle\\vim-surround,~\\vimfiles\\bundle\\mru,~\\vimfiles\\bundle\\vim-javacomplete2,~\\vimfiles\\bundle\\vim-go,~\\vimfiles\\bundle\\nerdtree,~\\vimfiles\\bundle\\emmet-vim,~\\vimfiles\\bundle\\matchit,~\\vimfiles\\bundle\\vim-airline,~\\vimfiles\\bundle\\vim-airline-themes,C:\\Program\ Files\ (x86)\\vim/vimfiles,C:\\Program\ Files\ (x86)\\vim,C:\\Program\ Files\ (x86)\\vim/vimfiles/after,~/vimfiles/after,~/vimfiles/bundle/Vundle.vim,~\\vimfiles\\bundle\\Vundle.vim/after,~\\vimfiles\\bundle\\vimtex/after,~\\vimfiles\\bundle\\vim-snippets/after,~\\vimfiles\\bundle\\ultisnips/after,~\\vimfiles\\bundle\\vim-surround/after,~\\vimfiles\\bundle\\mru/after,~\\vimfiles\\bundle\\vim-javacomplete2/after,~\\vimfiles\\bundle\\vim-go/after,~\\vimfiles\\bundle\\nerdtree/after,~\\vimfiles\\bundle\\emmet-vim/after,~\\vimfiles\\bundle\\matchit/after,~\\vimfiles\\bundle\\vim-airline/after,~\\vimfiles\\bundle\\vim-airline-themes/after
set shellslash
set shiftwidth=3
set softtabstop=3
set tabstop=3
set termencoding=latin1
set textwidth=80
set timeoutlen=300
set undodir=~/vimfiles/undodir
set undofile
set window=34
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
let v:this_session=expand("<sfile>:p")
silent only
cd ~/
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
badd +0 ~/test.txt
argglobal
silent! argdel *
edit ~/test.txt
set splitbelow splitright
set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
argglobal
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal backupcopy=
setlocal balloonexpr=
setlocal nobinary
setlocal nobreakindent
setlocal breakindentopt=
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal colorcolumn=
setlocal comments=fb:-,fb:*
setlocal commentstring=
setlocal complete=.,w,b,u,t,i
setlocal concealcursor=
setlocal conceallevel=0
setlocal completefunc=
setlocal nocopyindent
setlocal cryptmethod=
setlocal nocursorbind
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'text'
setlocal filetype=text
endif
setlocal fixendofline
set foldcolumn=4
setlocal foldcolumn=4
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=2
setlocal imsearch=2
setlocal include=
setlocal includeexpr=
setlocal indentexpr=
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal lispwords=
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal modeline
setlocal modifiable
setlocal nrformats=bin,octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norelativenumber
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=3
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=3
setlocal spell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en_us
setlocal statusline=%!airline#statusline(1)
setlocal suffixesadd=
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'text'
setlocal syntax=text
endif
setlocal tabstop=3
setlocal tagcase=
setlocal tags=
setlocal textwidth=80
setlocal thesaurus=
setlocal undofile
setlocal undolevels=-123456
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 16) / 33)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
tabnext 1
if exists('s:wipebuf')
silent exe 'bwipe ' . s:wipebuf
endif
unlet! s:wipebuf
set winheight=1 winwidth=20 shortmess=filnxtToO
let s:sx = expand("<sfile>:p:r")."x.vim"
if file_readable(s:sx)
exe "source " . fnameescape(s:sx)
endif
let &so = s:so_save | let &siso = s:siso_save
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :
Note that the session file seems to be generated with many nonprintable characters. I thought this may be the source of the error, so I decided to remove the plugins emmet-vim and vim-javacomplete2 that seemed to have a bunch of these unprintable characters associated with them in the session file. I then repeated the above steps.
The following is the generated session file. No errors were generated on restoring my session! I have since tried the above steps with more difficult sessions (different file types in different windows) and I haven't had a problem. I will try enabling these plugins 1-by-1 to see if either the java plugin or the emmet plugin is solely responsible. Note that the generated vim_session file still has nonprintable characters. So, that may/may not be the source of the problem.
~/vim_session)let SessionLoad = 1
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
inoremap <silent> <C-Tab> =UltiSnips#ListSnippets()
imap <F1> <F1>a
map! <S-Insert> *
snoremap <silent> c
xnoremap <silent> :call UltiSnips#SaveLastVisualSelection()
gvs
snoremap <silent> :call UltiSnips#ExpandSnippet()
snoremap "_c
vmap "*d
xmap S <Plug>VSurround
vmap [% [%m'gv``
vmap \x :!tidy -q -i --show-errors 0
nnoremap <silent> \` :let @/=""
vmap ]% ]%m'gv``
vmap a% [%v]%
nmap cS <Plug>CSurround
nmap cs <Plug>Csurround
nmap ds <Plug>Dsurround
vmap gx <Plug>NetrwBrowseXVis
nmap gx <Plug>NetrwBrowseX
xmap gS <Plug>VgSurround
nmap ySS <Plug>YSsurround
nmap ySs <Plug>YSsurround
nmap yss <Plug>Yssurround
nmap yS <Plug>YSurround
nmap ys <Plug>Ysurround
vnoremap <silent> <Plug>NetrwBrowseXVis :call netrw#BrowseXVis()
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#BrowseX(expand((exists("g:netrw_gx")? g:netrw_gx : '<cfile>')),netrw#CheckIfRemote())
nnoremap <silent> <Plug>SurroundRepeat .
snoremap <silent> <Del> c
snoremap <silent> <BS> c
snoremap <silent> <C-Tab> :call UltiSnips#ListSnippets()
nmap <F9> <Plug>(vimtex-compile-toggle)
nmap <F1> :call ResizeWindow()
nmap <F3> :wa
:source $HOME/vim_session
" Load session from file
nmap <F2> :wa
:mksession! $HOME/vim_session
" Write session to file
vmap <C-Del> "*d
vmap <S-Del> "*d
vmap <C-Insert> "*y
vmap <S-Insert> "-d"*P
nmap <S-Insert> "*P
imap S <Plug>ISurround
imap s <Plug>Isurround
inoremap <silent> =UltiSnips#ExpandSnippet()
imap <Plug>Isurround
let &cpo=s:cpo_save
unlet s:cpo_save
set autochdir
set autoindent
set backspace=indent,eol,start
set backupext=.bak
set display=lastline
set encoding=utf-8
set expandtab
set fileencodings=ucs-bom,utf-8,default,latin1
set guifont=Consolas:h10:cANSI
set guioptions=
set helplang=En
set hlsearch
set incsearch
set laststatus=2
set ruler
set runtimepath=~/vimfiles,~\\vimfiles\\bundle\\Vundle.vim,~\\vimfiles\\bundle\\vimtex,~\\vimfiles\\bundle\\vim-snippets,~\\vimfiles\\bundle\\ultisnips,~\\vimfiles\\bundle\\vim-surround,~\\vimfiles\\bundle\\mru,~\\vimfiles\\bundle\\vim-go,~\\vimfiles\\bundle\\nerdtree,~\\vimfiles\\bundle\\matchit,~\\vimfiles\\bundle\\vim-airline,~\\vimfiles\\bundle\\vim-airline-themes,C:\\Program\ Files\ (x86)\\vim/vimfiles,C:\\Program\ Files\ (x86)\\vim,C:\\Program\ Files\ (x86)\\vim/vimfiles/after,~/vimfiles/after,~/vimfiles/bundle/Vundle.vim,~\\vimfiles\\bundle\\Vundle.vim/after,~\\vimfiles\\bundle\\vimtex/after,~\\vimfiles\\bundle\\vim-snippets/after,~\\vimfiles\\bundle\\ultisnips/after,~\\vimfiles\\bundle\\vim-surround/after,~\\vimfiles\\bundle\\mru/after,~\\vimfiles\\bundle\\vim-go/after,~\\vimfiles\\bundle\\nerdtree/after,~\\vimfiles\\bundle\\matchit/after,~\\vimfiles\\bundle\\vim-airline/after,~\\vimfiles\\bundle\\vim-airline-themes/after
set shellslash
set shiftwidth=3
set softtabstop=3
set suffixes=.bak,~,.o,.h,.info,.swp,.obj,.log,.aux,.bbl,.out,.blg,.brf,.cb,.dvi,.fdb_latexmk,.fls,.idx,.ilg,.ind,.inx,.pdf,.synctex.gz,.toc,.asv
set tabstop=3
set termencoding=latin1
set textwidth=80
set timeoutlen=300
set undodir=~/vimfiles/undodir
set undofile
set window=34
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
let v:this_session=expand("<sfile>:p")
silent only
cd ~\Documents\JohnsPersonalFiles\Software\WebProjects\pong.js
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
badd +1 ~/test.txt
badd +1 ~/test.tex
badd +1 ~/Documents/JohnsPersonalFiles/MOOCs/Coursera/Machine\ Learning/Week\ 2\ -\ Assignment\ 1/machine-learning-ex1/ex1/ex1.m
badd +0 ~/Documents/JohnsPersonalFiles/Software/WebProjects/pong.js/main.js
argglobal
silent! argdel *
edit ~/Documents/JohnsPersonalFiles/Software/WebProjects/pong.js/main.js
set splitbelow splitright
wincmd _ | wincmd |
split
wincmd _ | wincmd |
split
2wincmd k
wincmd w
wincmd w
set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
exe '1resize ' . ((&lines * 11 + 17) / 35)
exe '2resize ' . ((&lines * 10 + 17) / 35)
exe '3resize ' . ((&lines * 10 + 17) / 35)
argglobal
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal backupcopy=
setlocal balloonexpr=
setlocal nobinary
setlocal nobreakindent
setlocal breakindentopt=
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal cindent
setlocal cinkeys=0{,0},0),:,!^F,o,O,e,0]
setlocal cinoptions=j1,J1
setlocal cinwords=if,else,while,do,for,switch
setlocal colorcolumn=
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
setlocal commentstring=//%s
setlocal complete=.,w,b,u,t,i
setlocal concealcursor=
setlocal conceallevel=0
setlocal completefunc=
setlocal nocopyindent
setlocal cryptmethod=
setlocal nocursorbind
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'javascript'
setlocal filetype=javascript
endif
setlocal fixendofline
set foldcolumn=4
setlocal foldcolumn=4
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=croql
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=2
setlocal imsearch=2
setlocal include=
setlocal includeexpr=
setlocal indentexpr=
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal lispwords=
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal modeline
setlocal modifiable
setlocal nrformats=bin,octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=javascriptcomplete#CompleteJS
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norelativenumber
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=3
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=3
setlocal nospell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en
setlocal statusline=%!airline#statusline(1)
setlocal suffixesadd=
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'javascript'
setlocal syntax=javascript
endif
setlocal tabstop=3
setlocal tagcase=
setlocal tags=
setlocal textwidth=80
setlocal thesaurus=
setlocal undofile
setlocal undolevels=-123456
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 5) / 11)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
wincmd w
argglobal
edit ~/Documents/JohnsPersonalFiles/MOOCs/Coursera/Machine\ Learning/Week\ 2\ -\ Assignment\ 1/machine-learning-ex1/ex1/ex1.m
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal backupcopy=
setlocal balloonexpr=
setlocal nobinary
setlocal nobreakindent
setlocal breakindentopt=
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal colorcolumn=
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
setlocal commentstring=/*%s*/
setlocal complete=.,w,b,u,t,i
setlocal concealcursor=
setlocal conceallevel=0
setlocal completefunc=
setlocal nocopyindent
setlocal cryptmethod=
setlocal nocursorbind
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=
setlocal expandtab
if &filetype != 'matlab'
setlocal filetype=matlab
endif
setlocal fixendofline
set foldcolumn=4
setlocal foldcolumn=4
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=2
setlocal imsearch=2
setlocal include=
setlocal includeexpr=
setlocal indentexpr=GetMatlabIndent(v:lnum)
setlocal indentkeys=!,o,O=end,=case,=else,=elseif,=otherwise,=catch
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal lispwords=
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal modeline
setlocal modifiable
setlocal nrformats=bin,octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norelativenumber
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=3
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=3
setlocal nospell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en
setlocal statusline=%!airline#statusline(2)
setlocal suffixesadd=.m
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'matlab'
setlocal syntax=matlab
endif
setlocal tabstop=3
setlocal tagcase=
setlocal tags=
setlocal textwidth=80
setlocal thesaurus=
setlocal undofile
setlocal undolevels=-123456
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 5) / 10)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 04|
wincmd w
argglobal
edit ~/test.tex
let s:cpo_save=&cpo
set cpo&vim
imap <buffer> <silent> <F7> <Plug>(vimtex-cmd-create)
inoremap <buffer> <silent> <Plug>(vimtex-delim-close) =vimtex#delim#close()
inoremap <buffer> <silent> <Plug>(vimtex-cmd-create) =vimtex#cmd#create()
omap <buffer> <silent> % <Plug>(vimtex-%)
xmap <buffer> <silent> % <Plug>(vimtex-%)
nmap <buffer> <silent> % <Plug>(vimtex-%)
omap <buffer> <silent> [[ <Plug>(vimtex-[[)
omap <buffer> <silent> [] <Plug>(vimtex-[])
xmap <buffer> <silent> [[ <Plug>(vimtex-[[)
xmap <buffer> <silent> [] <Plug>(vimtex-[])
nmap <buffer> <silent> [[ <Plug>(vimtex-[[)
nmap <buffer> <silent> [] <Plug>(vimtex-[])
nmap <buffer> <silent> \lm <Plug>(vimtex-imaps-list)
nmap <buffer> <silent> \lv <Plug>(vimtex-view)
nmap <buffer> <silent> \lY <Plug>(vimtex-labels-toggle)
nmap <buffer> <silent> \ly <Plug>(vimtex-labels-open)
nmap <buffer> <silent> \lT <Plug>(vimtex-toc-toggle)
nmap <buffer> <silent> \lt <Plug>(vimtex-toc-open)
nmap <buffer> <silent> \lG <Plug>(vimtex-status-all)
nmap <buffer> <silent> \lg <Plug>(vimtex-status)
nmap <buffer> <silent> \lC <Plug>(vimtex-clean-full)
nmap <buffer> <silent> \lc <Plug>(vimtex-clean)
nmap <buffer> <silent> \le <Plug>(vimtex-errors)
nmap <buffer> <silent> \lK <Plug>(vimtex-stop-all)
nmap <buffer> <silent> \lk <Plug>(vimtex-stop)
nmap <buffer> <silent> \lo <Plug>(vimtex-compile-output)
nmap <buffer> <silent> \ls <Plug>(vimtex-toggle-main)
nmap <buffer> <silent> \lx <Plug>(vimtex-reload)
nmap <buffer> <silent> \lI <Plug>(vimtex-info-full)
nmap <buffer> <silent> \li <Plug>(vimtex-info)
omap <buffer> <silent> ][ <Plug>(vimtex-][)
omap <buffer> <silent> ]] <Plug>(vimtex-]])
xmap <buffer> <silent> ][ <Plug>(vimtex-][)
xmap <buffer> <silent> ]] <Plug>(vimtex-]])
nmap <buffer> <silent> ][ <Plug>(vimtex-][)
nmap <buffer> <silent> ]] <Plug>(vimtex-]])
omap <buffer> <silent> ap <Plug>(vimtex-ap)
xmap <buffer> <silent> ap <Plug>(vimtex-ap)
omap <buffer> <silent> a$ <Plug>(vimtex-a$)
xmap <buffer> <silent> a$ <Plug>(vimtex-a$)
omap <buffer> <silent> ae <Plug>(vimtex-ae)
xmap <buffer> <silent> ae <Plug>(vimtex-ae)
omap <buffer> <silent> ad <Plug>(vimtex-ad)
xmap <buffer> <silent> ad <Plug>(vimtex-ad)
omap <buffer> <silent> ac <Plug>(vimtex-ac)
xmap <buffer> <silent> ac <Plug>(vimtex-ac)
nmap <buffer> <silent> csc <Plug>(vimtex-cmd-change)
nmap <buffer> <silent> cse <Plug>(vimtex-env-change)
nmap <buffer> <silent> cs$ <Plug>(vimtex-env-change-math)
nmap <buffer> <silent> dsc <Plug>(vimtex-cmd-delete)
nmap <buffer> <silent> dse <Plug>(vimtex-env-delete)
nmap <buffer> <silent> ds$ <Plug>(vimtex-env-delete-math)
omap <buffer> <silent> ip <Plug>(vimtex-ip)
xmap <buffer> <silent> ip <Plug>(vimtex-ip)
omap <buffer> <silent> i$ <Plug>(vimtex-i$)
xmap <buffer> <silent> i$ <Plug>(vimtex-i$)
omap <buffer> <silent> ie <Plug>(vimtex-ie)
xmap <buffer> <silent> ie <Plug>(vimtex-ie)
omap <buffer> <silent> id <Plug>(vimtex-id)
xmap <buffer> <silent> id <Plug>(vimtex-id)
omap <buffer> <silent> ic <Plug>(vimtex-ic)
xmap <buffer> <silent> ic <Plug>(vimtex-ic)
vmap <buffer> <silent> tsd <Plug>(vimtex-delim-toggle-modifier)
nmap <buffer> <silent> tsd <Plug>(vimtex-delim-toggle-modifier)
nmap <buffer> <silent> tse <Plug>(vimtex-env-toggle-star)
omap <buffer> <silent> { <Plug>(vimtex-{)
xmap <buffer> <silent> { <Plug>(vimtex-{)
nmap <buffer> <silent> { <Plug>(vimtex-{)
omap <buffer> <silent> } <Plug>(vimtex-})
xmap <buffer> <silent> } <Plug>(vimtex-})
nmap <buffer> <silent> } <Plug>(vimtex-})
nnoremap <buffer> <SNR>99_(v) v
nnoremap <buffer> <SNR>99_(V) V
xnoremap <buffer> <silent> <SNR>99_(vimtex-%) :call vimtex#motion#find_matching_pair(1)
xnoremap <buffer> <silent> <SNR>99_(vimtex-}) :call vimtex#motion#next_paragraph(0,1)
xnoremap <buffer> <silent> <SNR>99_(vimtex-{) :call vimtex#motion#next_paragraph(1,1)
xnoremap <buffer> <silent> <SNR>99_(vimtex-]]) :call vimtex#motion#next_section(0,0,1)
xnoremap <buffer> <silent> <SNR>99_(vimtex-][) :call vimtex#motion#next_section(1,0,1)
xnoremap <buffer> <silent> <SNR>99_(vimtex-[]) :call vimtex#motion#next_section(1,1,1)
xnoremap <buffer> <silent> <SNR>99_(vimtex-[[) :call vimtex#motion#next_section(0,1,1)
nmap <buffer> <silent> <F7> <Plug>(vimtex-cmd-create)
nnoremap <buffer> <Plug>(vimtex-view) :call b:vimtex.viewer.view('')
nnoremap <buffer> <Plug>(vimtex-toc-toggle) :call vimtex#toc#toggle()
nnoremap <buffer> <Plug>(vimtex-toc-open) :call vimtex#toc#open()
onoremap <buffer> <silent> <Plug>(vimtex-ap) :call vimtex#text_obj#paragraphs(0)
onoremap <buffer> <silent> <Plug>(vimtex-ip) :call vimtex#text_obj#paragraphs(1)
xnoremap <buffer> <silent> <Plug>(vimtex-ap) :call vimtex#text_obj#paragraphs(0)
xnoremap <buffer> <silent> <Plug>(vimtex-ip) :call vimtex#text_obj#paragraphs(1)
onoremap <buffer> <silent> <Plug>(vimtex-a$) :call vimtex#text_obj#inline_math(0)
onoremap <buffer> <silent> <Plug>(vimtex-i$) :call vimtex#text_obj#inline_math(1)
xnoremap <buffer> <silent> <Plug>(vimtex-a$) :call vimtex#text_obj#inline_math(0)
xnoremap <buffer> <silent> <Plug>(vimtex-i$) :call vimtex#text_obj#inline_math(1)
onoremap <buffer> <silent> <Plug>(vimtex-ae) :call vimtex#text_obj#environments(0)
onoremap <buffer> <silent> <Plug>(vimtex-ie) :call vimtex#text_obj#environments(1)
xnoremap <buffer> <silent> <Plug>(vimtex-ae) :call vimtex#text_obj#environments(0)
xnoremap <buffer> <silent> <Plug>(vimtex-ie) :call vimtex#text_obj#environments(1)
onoremap <buffer> <silent> <Plug>(vimtex-ad) :call vimtex#text_obj#delimiters(0)
onoremap <buffer> <silent> <Plug>(vimtex-id) :call vimtex#text_obj#delimiters(1)
xnoremap <buffer> <silent> <Plug>(vimtex-ad) :call vimtex#text_obj#delimiters(0)
xnoremap <buffer> <silent> <Plug>(vimtex-id) :call vimtex#text_obj#delimiters(1)
onoremap <buffer> <silent> <Plug>(vimtex-ac) :call vimtex#text_obj#commands(0)
onoremap <buffer> <silent> <Plug>(vimtex-ic) :call vimtex#text_obj#commands(1)
xnoremap <buffer> <silent> <Plug>(vimtex-ac) :call vimtex#text_obj#commands(0)
xnoremap <buffer> <silent> <Plug>(vimtex-ic) :call vimtex#text_obj#commands(1)
xnoremap <buffer> <silent> <SNR>102_(vimtex-[[) :call vimtex#motion#next_section(0,1,1)
xnoremap <buffer> <silent> <SNR>102_(vimtex-[]) :call vimtex#motion#next_section(1,1,1)
xnoremap <buffer> <silent> <SNR>102_(vimtex-][) :call vimtex#motion#next_section(1,0,1)
xnoremap <buffer> <silent> <SNR>102_(vimtex-]]) :call vimtex#motion#next_section(0,0,1)
nnoremap <buffer> <silent> <Plug>(vimtex-[[) :call vimtex#motion#next_section(0,1,0)
nnoremap <buffer> <silent> <Plug>(vimtex-[]) :call vimtex#motion#next_section(1,1,0)
nnoremap <buffer> <silent> <Plug>(vimtex-][) :call vimtex#motion#next_section(1,0,0)
nnoremap <buffer> <silent> <Plug>(vimtex-]]) :call vimtex#motion#next_section(0,0,0)
xnoremap <buffer> <silent> <SNR>102_(vimtex-{) :call vimtex#motion#next_paragraph(1,1)
xnoremap <buffer> <silent> <SNR>102_(vimtex-}) :call vimtex#motion#next_paragraph(0,1)
nnoremap <buffer> <silent> <Plug>(vimtex-{) :call vimtex#motion#next_paragraph(1,0)
nnoremap <buffer> <silent> <Plug>(vimtex-}) :call vimtex#motion#next_paragraph(0,0)
xnoremap <buffer> <silent> <SNR>102_(vimtex-%) :call vimtex#motion#find_matching_pair(1)
nnoremap <buffer> <silent> <Plug>(vimtex-%) :call vimtex#motion#find_matching_pair()
nnoremap <buffer> <SNR>102_(V) V
nnoremap <buffer> <SNR>102_(v) v
nnoremap <buffer> <Plug>(vimtex-lacheck) :call vimtex#latexmk#lacheck()
nnoremap <buffer> <Plug>(vimtex-status-all) :call vimtex#latexmk#status(1)
nnoremap <buffer> <Plug>(vimtex-status) :call vimtex#latexmk#status(0)
nnoremap <buffer> <Plug>(vimtex-clean-full) :call vimtex#latexmk#clean(1)
nnoremap <buffer> <Plug>(vimtex-clean) :call vimtex#latexmk#clean(0)
nnoremap <buffer> <Plug>(vimtex-errors) :call vimtex#latexmk#errors()
nnoremap <buffer> <Plug>(vimtex-stop-all) :call vimtex#latexmk#stop_all()
nnoremap <buffer> <Plug>(vimtex-stop) :call vimtex#latexmk#stop()
nnoremap <buffer> <Plug>(vimtex-compile-output) :call vimtex#latexmk#output()
nnoremap <buffer> <Plug>(vimtex-compile-toggle) :call vimtex#latexmk#toggle()
nnoremap <buffer> <Plug>(vimtex-compile-ss) :call vimtex#latexmk#compile_ss(0)
nnoremap <buffer> <Plug>(vimtex-compile) :call vimtex#latexmk#compile()
nnoremap <buffer> <Plug>(vimtex-labels-toggle) :call vimtex#labels#toggle()
nnoremap <buffer> <Plug>(vimtex-labels-open) :call vimtex#labels#open()
nnoremap <buffer> <Plug>(vimtex-imaps-list) :call vimtex#imaps#list()
nnoremap <buffer> <silent> <Plug>(vimtex-env-toggle-star) :call vimtex#env#toggle_star()
nnoremap <buffer> <silent> <Plug>(vimtex-env-change-math) :call vimtex#env#change_prompt('env_math')
nnoremap <buffer> <silent> <Plug>(vimtex-env-delete-math) :call vimtex#env#delete('env_math')
nnoremap <buffer> <silent> <Plug>(vimtex-env-change) :call vimtex#env#change_prompt('env')
nnoremap <buffer> <silent> <Plug>(vimtex-env-delete) :call vimtex#env#delete('env')
xnoremap <buffer> <silent> <Plug>(vimtex-delim-toggle-modifier) :call vimtex#delim#toggle_modifier_visual()
nnoremap <buffer> <silent> <Plug>(vimtex-delim-toggle-modifier) :call vimtex#delim#toggle_modifier()
nnoremap <buffer> <silent> <Plug>(vimtex-cmd-create) :call vimtex#cmd#create()
nnoremap <buffer> <silent> <Plug>(vimtex-cmd-change) :call vimtex#cmd#change()
nnoremap <buffer> <silent> <Plug>(vimtex-cmd-delete) :call vimtex#cmd#delete()
nnoremap <buffer> <Plug>(vimtex-toggle-main) :VimtexToggleMain
nnoremap <buffer> <Plug>(vimtex-reload) :VimtexReload
nnoremap <buffer> <Plug>(vimtex-info-full) :VimtexInfo!
nnoremap <buffer> <Plug>(vimtex-info) :VimtexInfo
inoremap <buffer> <silent> <expr> @vr vimtex#imaps#wrap_math('vr', '\varrho')
inoremap <buffer> <silent> <expr> @vq vimtex#imaps#wrap_math('vq', '\vartheta')
inoremap <buffer> <silent> <expr> @vk vimtex#imaps#wrap_math('vk', '\varkappa')
inoremap <buffer> <silent> <expr> @vf vimtex#imaps#wrap_math('vf', '\varphi')
inoremap <buffer> <silent> <expr> @ve vimtex#imaps#wrap_math('ve', '\varepsilon')
inoremap <buffer> <silent> <expr> @Y vimtex#imaps#wrap_math('Y', '\Psi')
inoremap <buffer> <silent> <expr> @X vimtex#imaps#wrap_math('X', '\Xi')
inoremap <buffer> <silent> <expr> @W vimtex#imaps#wrap_math('W', '\Omega')
inoremap <buffer> <silent> <expr> @U vimtex#imaps#wrap_math('U', '\Upsilon')
inoremap <buffer> <silent> <expr> @S vimtex#imaps#wrap_math('S', '\Sigma')
inoremap <buffer> <silent> <expr> @Q vimtex#imaps#wrap_math('Q', '\Theta')
inoremap <buffer> <silent> <expr> @P vimtex#imaps#wrap_math('P', '\Pi')
inoremap <buffer> <silent> <expr> @L vimtex#imaps#wrap_math('L', '\Lambda')
inoremap <buffer> <silent> <expr> @F vimtex#imaps#wrap_math('F', '\Phi')
inoremap <buffer> <silent> <expr> @D vimtex#imaps#wrap_math('D', '\Delta')
inoremap <buffer> <silent> <expr> @G vimtex#imaps#wrap_math('G', '\Gamma')
inoremap <buffer> <silent> <expr> @x vimtex#imaps#wrap_math('x', '\xi')
inoremap <buffer> <silent> <expr> @z vimtex#imaps#wrap_math('z', '\zeta')
inoremap <buffer> <silent> <expr> @w vimtex#imaps#wrap_math('w', '\omega')
inoremap <buffer> <silent> <expr> @u vimtex#imaps#wrap_math('u', '\upsilon')
inoremap <buffer> <silent> <expr> @y vimtex#imaps#wrap_math('y', '\psi')
inoremap <buffer> <silent> <expr> @t vimtex#imaps#wrap_math('t', '\tau')
inoremap <buffer> <silent> <expr> @s vimtex#imaps#wrap_math('s', '\sigma')
inoremap <buffer> <silent> <expr> @r vimtex#imaps#wrap_math('r', '\rho')
inoremap <buffer> <silent> <expr> @q vimtex#imaps#wrap_math('q', '\theta')
inoremap <buffer> <silent> <expr> @p vimtex#imaps#wrap_math('p', '\pi')
inoremap <buffer> <silent> <expr> @n vimtex#imaps#wrap_math('n', '\nu')
inoremap <buffer> <silent> <expr> @m vimtex#imaps#wrap_math('m', '\mu')
inoremap <buffer> <silent> <expr> @l vimtex#imaps#wrap_math('l', '\lambda')
inoremap <buffer> <silent> <expr> @k vimtex#imaps#wrap_math('k', '\kappa')
inoremap <buffer> <silent> <expr> @i vimtex#imaps#wrap_math('i', '\iota')
inoremap <buffer> <silent> <expr> @h vimtex#imaps#wrap_math('h', '\eta')
inoremap <buffer> <silent> <expr> @g vimtex#imaps#wrap_math('g', '\gamma')
inoremap <buffer> <silent> <expr> @f vimtex#imaps#wrap_math('f', '\phi')
inoremap <buffer> <silent> <expr> @e vimtex#imaps#wrap_math('e', '\epsilon')
inoremap <buffer> <silent> <expr> @d vimtex#imaps#wrap_math('d', '\delta')
inoremap <buffer> <silent> <expr> @c vimtex#imaps#wrap_math('c', '\chi')
inoremap <buffer> <silent> <expr> @b vimtex#imaps#wrap_math('b', '\beta')
inoremap <buffer> <silent> <expr> @a vimtex#imaps#wrap_math('a', '\alpha')
inoremap <buffer> <silent> <expr> @qH vimtex#imaps#wrap_math('qH', '\Rightarrow')
inoremap <buffer> <silent> <expr> @qh vimtex#imaps#wrap_math('qh', '\rightarrow')
inoremap <buffer> <silent> <expr> @qL vimtex#imaps#wrap_math('qL', '\Leftarrow')
inoremap <buffer> <silent> <expr> @ql vimtex#imaps#wrap_math('ql', '\leftarrow')
inoremap <buffer> <silent> <expr> @qK vimtex#imaps#wrap_math('qK', '\Uparrow')
inoremap <buffer> <silent> <expr> @qk vimtex#imaps#wrap_math('qk', '\uparrow')
inoremap <buffer> <silent> <expr> @qJ vimtex#imaps#wrap_math('qJ', '\Downarrow')
inoremap <buffer> <silent> <expr> @qj vimtex#imaps#wrap_math('qj', '\downarrow')
inoremap <buffer> <silent> <expr> @E vimtex#imaps#wrap_math('E', '\exists')
inoremap <buffer> <silent> <expr> @A vimtex#imaps#wrap_math('A', '\forall')
inoremap <buffer> <silent> <expr> @) vimtex#imaps#wrap_math(')', '\supset')
inoremap <buffer> <silent> <expr> @( vimtex#imaps#wrap_math('(', '\subset')
inoremap <buffer> <silent> <expr> @] vimtex#imaps#wrap_math(']', '\supseteq')
inoremap <buffer> <silent> <expr> @[ vimtex#imaps#wrap_math('[', '\subseteq')
inoremap <buffer> <silent> <expr> @>= vimtex#imaps#wrap_math('>=', '\geq')
inoremap <buffer> <silent> <expr> @<= vimtex#imaps#wrap_math('<=', '\leq')
inoremap <buffer> <silent> <expr> @> vimtex#imaps#wrap_math('>', '\rangle')
inoremap <buffer> <silent> <expr> @< vimtex#imaps#wrap_math('<', '\langle')
inoremap <buffer> <silent> <expr> @* vimtex#imaps#wrap_math('*', '\times')
inoremap <buffer> <silent> <expr> @. vimtex#imaps#wrap_math('.', '\cdot')
inoremap <buffer> <silent> <expr> @\ vimtex#imaps#wrap_math('\', '\setminus')
inoremap <buffer> <silent> <expr> @= vimtex#imaps#wrap_math('=', '\equiv')
inoremap <buffer> <silent> <expr> @8 vimtex#imaps#wrap_math('8', '\infty')
inoremap <buffer> <silent> <expr> @6 vimtex#imaps#wrap_math('6', '\partial')
inoremap <buffer> <silent> <expr> @0 vimtex#imaps#wrap_math('0', '\emptyset')
inoremap <buffer> <silent> @@ @
imap <buffer> <silent> ]] <Plug>(vimtex-delim-close)
let &cpo=s:cpo_save
unlet s:cpo_save
setlocal keymap=
setlocal noarabic
setlocal autoindent
setlocal backupcopy=
setlocal balloonexpr=
setlocal nobinary
setlocal nobreakindent
setlocal breakindentopt=
setlocal bufhidden=
setlocal buflisted
setlocal buftype=
setlocal nocindent
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
setlocal cinoptions=
setlocal cinwords=if,else,while,do,for,switch
setlocal colorcolumn=
setlocal comments=sO:%\ -,mO:%\ \ ,eO:%%,:%
setlocal commentstring=%%s
setlocal complete=.,w,b,u,t,i
setlocal concealcursor=
setlocal conceallevel=0
setlocal completefunc=
setlocal nocopyindent
setlocal cryptmethod=
setlocal nocursorbind
setlocal nocursorcolumn
setlocal nocursorline
setlocal define=\\\\\\([egx]\\|char\\|mathchar\\|count\\|dimen\\|muskip\\|skip\\|toks\\)\\=def\\|\\\\font\\|\\\\\\(future\\)\\=let\\|\\\\new\\(count\\|dimen\\|skip\\|muskip\\|box\\|toks\\|read\\|write\\|fam\\|insert\\)\\|\\\\\\(re\\)\\=new\\(boolean\\|command\\|counter\\|environment\\|font\\|if\\|length\\|savebox\\|theorem\\(style\\)\\=\\)\\s*\\*\\=\\s*{\\=\\|DeclareMathOperator\\s*{\\=\\s*
setlocal dictionary=
setlocal nodiff
setlocal equalprg=
setlocal errorformat=%-P**%f,%-P**\"%f\",%E!\ LaTeX\ %trror:\ %m,%E%f:%l:\ %m,%E!\ %m,%Z<argument>\ %m,%Cl.%l\ %m,%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#,%+W%.%#\ at\ lines\ %l--%*\\d,%+WLaTeX\ %.%#Warning:\ %m,%+WPackage\ natbib\ Warning:\ %m\ on\ input\ line\ %l%.,%+W%.%#%.%#Warning:\ %m,%-C(biblatex)%.%#in\ t%.%#,%-C(biblatex)%.%#Please\ v%.%#,%-C(biblatex)%.%#LaTeX\ a%.%#,%-Z(biblatex)%m,%-Z(babel)%.%#input\ line\ %l.,%-C(babel)%m,%-C(hyperref)%.%#on\ input\ line\ %l.,%-G%.%#
setlocal expandtab
if &filetype != 'tex'
setlocal filetype=tex
endif
setlocal fixendofline
set foldcolumn=4
setlocal foldcolumn=4
setlocal foldenable
setlocal foldexpr=0
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldmarker={{{,}}}
setlocal foldmethod=manual
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldtext=foldtext()
setlocal formatexpr=
setlocal formatoptions=tcq
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
setlocal grepprg=
setlocal iminsert=2
setlocal imsearch=2
setlocal include=\\v\\\\%(input|include)\\{
setlocal includeexpr=substitute(substitute(v:fname,\ '\\\\space',\ '',\ 'g'),'^.\\{-}{\"\\?\\|\"\\?}.*',\ '',\ 'g')
setlocal indentexpr=VimtexIndent()
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e,[,(,{,),},],&,=item
setlocal noinfercase
setlocal iskeyword=@,48-57,_,192-255
setlocal keywordprg=
setlocal nolinebreak
setlocal nolisp
setlocal lispwords=
setlocal nolist
setlocal makeprg=
setlocal matchpairs=(:),{:},[:]
setlocal modeline
setlocal modifiable
setlocal nrformats=bin,octal,hex
set number
setlocal number
setlocal numberwidth=4
setlocal omnifunc=vimtex#complete#omnifunc
setlocal path=
setlocal nopreserveindent
setlocal nopreviewwindow
setlocal quoteescape=\\
setlocal noreadonly
setlocal norelativenumber
setlocal norightleft
setlocal rightleftcmd=search
setlocal noscrollbind
setlocal shiftwidth=3
setlocal noshortname
setlocal nosmartindent
setlocal softtabstop=3
setlocal spell
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
setlocal spellfile=
setlocal spelllang=en_us
setlocal statusline=%!airline#statusline(3)
setlocal suffixesadd=.tex
setlocal swapfile
setlocal synmaxcol=3000
if &syntax != 'tex'
setlocal syntax=tex
endif
setlocal tabstop=3
setlocal tagcase=
setlocal tags=
setlocal textwidth=80
setlocal thesaurus=
setlocal undofile
setlocal undolevels=-123456
setlocal nowinfixheight
setlocal nowinfixwidth
setlocal wrap
setlocal wrapmargin=0
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 5) / 10)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 02|
wincmd w
exe '1resize ' . ((&lines * 11 + 17) / 35)
exe '2resize ' . ((&lines * 10 + 17) / 35)
exe '3resize ' . ((&lines * 10 + 17) / 35)
tabnext 1
if exists('s:wipebuf')
silent exe 'bwipe ' . s:wipebuf
endif
unlet! s:wipebuf
set winheight=1 winwidth=20 shortmess=filnxtToO
let s:sx = expand("<sfile>:p:r")."x.vim"
if file_readable(s:sx)
exe "source " . fnameescape(s:sx)
endif
let &so = s:so_save | let &siso = s:siso_save
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :
They seem to, each, generate UltiSnips errors when they are individually included. So, it was pure luck that I decided to remove both and it fixed my problem. I needed to remove both and not just one plugin. At this point, I'm going to investigate why :mksession is adding weird, nonprintable characters to my session file. I think that's the best line of attack. The fault may lie in the courts of UltiSnips and/or vim. I'll be in touch.
Non-printable chars are OK in the session file, I guess. They are raw
representation of escape sequences and control-key sequences.
On Apr 1, 2016 10:32 PM, "John Rinehart" [email protected] wrote:
At this point, I'm going to investigate why :mksession is adding weird,
nonprintable characters to my session file. I think that's the best line of
attack. The fault may lie in the courts of UltiSnips and/or vim. I'll be in
touch.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/SirVer/ultisnips/issues/627#issuecomment-204461615
But, why are there weird newlines, bel, shift in, cancel characters, etc.? I've identified a number of the control-key sequences from this table. It doesn't seem that these should be there. You can see a screenshot of some of the session file here.
I confirm the same problem on OS X / Vim 7.4.1755. Here is the warning that I get when I try to restore a saved session:
"bootstrap.bat" [noeol] 76L, 1714C
Error detected while processing /Users/dt/.vim/bundle/ultisnips/autoload/UltiSnips.vim:
line 15:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named UltiSnips
Error detected while processing function UltiSnips#FileTypeChanged:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
"docs/_includes/ibbr/ibbr-off-canvas-nav.html" 195L, 14131C
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'UltiSnips_Manager' is not defined
I have been having the same issue. I just learned about how to use mksession, but once I restore I get similar explosion
The error messages you guys are seeing are actually due to a bug in the Vim source code for session script generation. This is a known issue. Refer to: vim/vim#3466.
Basically, when the 'runtimepath' setting gets too long (i.e., when you have a lot of plugins), it gets cut off when written to your session script. You then load the session script, and Vim can't find some of the Python modules it needs to load. @johnrichardrinehart, this is why you didn't get any errors when you removed those plugins. You just made your 'runtimepath' shorter.
Hopefully, this problem will be fixed soon, there is a patch, but it seems that more work is needed... not sure on a timeline.
For now, you can get around the problem with something like:
let g:my_rtp = &rtp
source Session.vim
let &rtp = g:my_rtp
This may not always work. Really, the bug just needs to be fixed in Vim so that sessions work as expected.
Looks like Bram just merged the patch that fixes this. So, this should no longer be a problem for users who keep Vim up-to-date.
UPDATE: The patch that was merged seems to not actually fix the problem on Microsoft Windows. Hopefully, this will be addressed. In any case, the cause of this issue is pretty clear.
I just installed ultisnips today and I'm experiencing a similar issue that's definitely related to :mksession. If I type a single key before sourcing a saved session, the issue does not exist. However, in that case ultisnips also doesn't work. If I then source my _vimrc again, ultisnips works and I don't receive any errors.
If I source my session immediately, without typing a single key in insert mode, I receive the following error on every single key I type, quickly filling the screen:
Error detected while processing TextChangedI Autocommands for "*":
E117: Unknown function: UltiSnips#TrackChange
My OS: Windows 7 Home Premium, Version 6.1 (Build 7601: Service Pack 1)
output of :version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 7 2018 11:30:35)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-565
Compiled by micbou <[email protected]>
Huge version with GUI. Features included (+) or not (-):
+acl +byte_offset +conceal -dnd +float +keymap +menu +num64 +python/dyn +startuptime +terminal +vertsplit +windows
+arabic +channel +cryptv -ebcdic +folding +lambda +mksession +ole +python3/dyn +statusline -tgetent +virtualedit +writebackup
+autocmd +cindent +cscope +emacs_tags -footer +langmap +modify_fname +packages +quickfix -sun_workshop -termresponse +visual -xfontset
+autochdir +clientserver +cursorbind +eval +gettext/dyn +libcall +mouse +path_extra +reltime +syntax +textobjects +visualextra -xim
+autoservername +clipboard +cursorshape +ex_extra -hangul_input +linebreak +mouseshape +perl/dyn +rightleft +tag_binary +timers +viminfo +xpm_w32
+balloon_eval +cmdline_compl +dialog_con_gui +extra_search +iconv/dyn +lispindent +multi_byte_ime/dyn +persistent_undo +ruby/dyn +tag_old_static +title +vreplace -xterm_save
-balloon_eval_term +cmdline_hist +diff +farsi +insert_expand +listcmds +multi_lang -postscript +scrollbind -tag_any_white +toolbar -vtp
+browse +cmdline_info +digraphs +file_in_path +job +localmap +mzscheme/dyn +printer +signs +tcl/dyn +user_commands +wildignore
++builtin_terms +comments +directx +find_in_path +jumplist +lua/dyn +netbeans_intg +profile +smartindent -termguicolors +vartabs +wildmenu
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
defaults file: "$VIMRUNTIME\defaults.vim"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_TERMINAL -DFEAT_NETBEANS_INTG -DFEAT_JOB_CHANNEL -DFEAT_XPM_W32 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /arch:IA32 /MD -DFEAT_OLE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DGLOBAL_IME -DFEAT_MBYTE -DFEAT_GUI_W32 -DFEAT_DIRECTX -DDYNAMIC_DIRECTX -DFEAT_DIRECTX_COLOR_EMOJI -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl86t.dll\" -DDYNAMIC_TCL_VER=\"8.6\" -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua53.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python37.dll\" -DFEAT_MZSCHEME -I "C:\Racket\include" -DMZ_PRECISE_GC -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libracket3m_bkrfgg.dll\" -DDYNAMIC_MZGC_DLL=\"libracket3m_bkrfgg.dll\" -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl526.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=25 -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby250.dll\" -DFEAT_HUGE /Fd.\ObjGXOULYHTRZi386/ /Zi
Linking: link /nologo /subsystem:windows /opt:ref /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib netapi32.lib uuid.lib /machine:i386 gdi32.lib version.lib winspool.lib comctl32.lib advapi32.lib shell32.lib netapi32.lib /machine:i386 msvcrt.lib oleaut32.lib user32.lib /nodefaultlib:lua53.lib /STACK:8388608 /nodefaultlib:python27.lib /nodefaultlib:python37.lib "C:\ActiveTcl\lib\tclstub86.lib" WSock32.lib xpm\x86\lib-vc14\libXpm.lib /PDB:gvim.pdb -debug
output of :scriptnames:
1: ~\_vimrc
2: C:\Program Files (x86)\Vim\vim81\autoload\netrw_gitignore.vim
3: C:\Program Files (x86)\Vim\vim81\ftoff.vim
4: ~\vimfiles\bundle\Vundle.vim\autoload\vundle.vim
5: ~\vimfiles\bundle\Vundle.vim\autoload\vundle\config.vim
6: C:\Program Files (x86)\Vim\vim81\filetype.vim
7: ~\vimfiles\bundle\vim-tasks\ftdetect\tasks.vim
8: ~\vimfiles\bundle\ultisnips\ftdetect\snippets.vim
9: C:\Program Files (x86)\Vim\vim81\menu.vim
10: C:\Program Files (x86)\Vim\vim81\autoload\paste.vim
11: C:\Program Files (x86)\Vim\vim81\ftplugin.vim
12: C:\Program Files (x86)\Vim\vim81\indent.vim
13: C:\Program Files (x86)\Vim\vim81\syntax\syntax.vim
14: C:\Program Files (x86)\Vim\vim81\syntax\synload.vim
15: C:\Program Files (x86)\Vim\vim81\syntax\syncolor.vim
16: ~\vimfiles\bundle\ctrlp.vim\plugin\ctrlp.vim
17: ~\vimfiles\bundle\ctrlp.vim\autoload\ctrlp\mrufiles.vim
18: ~\vimfiles\bundle\omnisharp-vim\plugin\OmniSharp.vim
19: ~\vimfiles\bundle\ultisnips\plugin\UltiSnips.vim
20: ~\vimfiles\bundle\ultisnips\autoload\UltiSnips\map_keys.vim
21: ~\vimfiles\bundle\vim-snippets\plugin\vimsnippets.vim
22: C:\Program Files (x86)\Vim\vim81\plugin\getscriptPlugin.vim
23: C:\Program Files (x86)\Vim\vim81\plugin\gzip.vim
24: C:\Program Files (x86)\Vim\vim81\plugin\logiPat.vim
25: C:\Program Files (x86)\Vim\vim81\plugin\manpager.vim
26: C:\Program Files (x86)\Vim\vim81\plugin\matchparen.vim
27: C:\Program Files (x86)\Vim\vim81\plugin\netrwPlugin.vim
28: C:\Program Files (x86)\Vim\vim81\plugin\rrhelper.vim
29: C:\Program Files (x86)\Vim\vim81\plugin\spellfile.vim
30: C:\Program Files (x86)\Vim\vim81\plugin\tarPlugin.vim
31: C:\Program Files (x86)\Vim\vim81\plugin\tohtml.vim
32: C:\Program Files (x86)\Vim\vim81\plugin\vimballPlugin.vim
33: C:\Program Files (x86)\Vim\vim81\plugin\zipPlugin.vim
34: C:\Program Files (x86)\Vim\vim81\pack\dist\opt\matchit\plugin\matchit.vim
35: ~\vimfiles\bundle\ultisnips\after\plugin\UltiSnips_after.vim
36: ~\_gvimrc
37: ~\vimfiles\colors\solarized.vim
38: ~\Desktop\Computer Science\Projects\BWSort\BWSort.vim
39: C:\Program Files (x86)\Vim\vim81\scripts.vim
40: ~\vimfiles\bundle\vim-tasks\ftplugin\tasks.vim
41: ~\vimfiles\bundle\vim-tasks\indent\tasks.vim
42: ~\vimfiles\bundle\vim-tasks\syntax\tasks.vim
43: C:\Program Files (x86)\Vim\vim81\syntax\markdown.vim
44: C:\Program Files (x86)\Vim\vim81\syntax\html.vim
45: C:\Program Files (x86)\Vim\vim81\syntax\javascript.vim
46: C:\Program Files (x86)\Vim\vim81\syntax\vb.vim
47: C:\Program Files (x86)\Vim\vim81\syntax\css.vim
48: ~\vimfiles\bundle\ctrlp.vim\autoload\ctrlp\utils.vim
49: ~\vimfiles\bundle\omnisharp-vim\ftplugin\cs\OmniSharp.vim
50: ~\vimfiles\bundle\omnisharp-vim\autoload\OmniSharp.vim
51: ~\vimfiles\bundle\omnisharp-vim\autoload\OmniSharp\py.vim
52: ~\vimfiles\bundle\omnisharp-vim\autoload\OmniSharp\util.vim
53: ~\vimfiles\bundle\omnisharp-vim\autoload\OmniSharp\proc.vim
54: C:\Program Files (x86)\Vim\vim81\ftplugin\cs.vim
55: ~\vimfiles\bundle\omnisharp-vim\indent\cs.vim
56: C:\Program Files (x86)\Vim\vim81\indent\cs.vim
57: C:\Program Files (x86)\Vim\vim81\syntax\cs.vim
58: C:\Program Files (x86)\Vim\vim81\syntax\xml.vim
59: C:\Program Files (x86)\Vim\vim81\syntax\dtd.vim
60: C:\Program Files (x86)\Vim\vim81\ftplugin\markdown.vim
61: C:\Program Files (x86)\Vim\vim81\ftplugin\html.vim
62: C:\Program Files (x86)\Vim\vim81\autoload\htmlcomplete.vim
@CrispyDrone could you please provide a full repro case? I am unable to trigger this problem with just the provided information.
@SirVer I'm now on windows 10 and I have not been able to reproduce it yet, in fact I just spend an hour trying to reproduce it.
If I ever experience the same or a similar issue I will let you know, but for now you can consider my problem handled :)
Thanks!