Closed zee0 closed 9 years ago
I have the exact same issue.
Which version of Vim are you running? Once inside Vim you can use the :version
command to find out. Also, can you run the Vim command :verbose set encoding?
and quote the output here?
Absolutely, sorry for the poor bug report.
Vim-notes installed via phatogen.
.vimrc
1 execute pathogen#infect()
2 syntax enable
3 set background=dark
4 colorscheme solarized
5 set number
6 nnoremap <C-n> :NERDTreeToggle<CR>
7 let g:NERDTreeDirArrows=0
8 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
9 nnoremap <C-t> :Unite -start-insert file_rec/async<cr>
10 nnoremap <C-y> :Unite grep:.<cr>
11 set encoding=utf-8
12 setglobal fileencoding=utf-8
13 augroup markdown
14 au!
15 au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown
16 augroup END
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 27 2014 15:35:49)
MacOS X (unix) version
Included patches: 1-430
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +comments +ex_extra +jumplist -mouseshape +path_extra +signs +textobjects +writebackup
+arabic +conceal +extra_search +keymap +mouse_dec +perl +smartindent +title -X11
+autocmd +cryptv +farsi +langmap -mouse_gpm +persistent_undo -sniff -toolbar -xfontset
-balloon_eval +cscope +file_in_path +libcall -mouse_jsbterm +postscript +startuptime +user_commands -xim
-browse +cursorbind +find_in_path +linebreak +mouse_netterm +printer +statusline +vertsplit -xsmp
++builtin_terms +cursorshape +float +lispindent +mouse_sgr +profile -sun_workshop +virtualedit -xterm_clipboard
+byte_offset +dialog_con +folding +listcmds -mouse_sysmouse +python +syntax +visual -xterm_save
+cindent +diff -footer +localmap +mouse_urxvt -python3 +tag_binary +visualextra -xpm
-clientserver +digraphs +fork() -lua +mouse_xterm +quickfix +tag_old_static +viminfo
+clipboard -dnd -gettext +menu +multi_byte +reltime -tag_any_white +vreplace
+cmdline_compl -ebcdic -hangul_input +mksession +multi_lang +rightleft -tcl +wildignore
+cmdline_hist +emacs_tags +iconv +modify_fname -mzscheme +ruby +terminfo +wildmenu
+cmdline_info +eval +insert_expand +mouse +netbeans_intg +scrollbind +termresponse +windows
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -F/usr/local/Frameworks -DMACOS_X_UNIX -Os -w -pipe -march=native -mmacosx-version-min=10.9
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: /usr/bin/clang -L. -L/usr/local/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -o vim -lm -lncurses -li
conv -framework Cocoa -fstack-protector -L/usr/local/lib -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE -lperl -framework Python -lruby
.2.0.0 -lobjc
:verbose set encoding
encoding=utf-8
Last set from ~/.vimrc
Dont know if you need any additional information regarding the hitting 'gf' as directed in the opening instructions only gives an error "Can't find file "Note" in path." issue.
Thanks
I don't quite get this bug report :-). Clearly things are not working as they are supposed to be, but it's not obvious to me what the cause is. To put it another way there seem to be lots of seemingly unrelated issues. I'll list a few of them in the hope that between the three of us we can narrow down the scope:
&encoding
isn't set to utf-8
(that's why I asked :-)g:notes_unicode_enabled
is set to false (0)g:notes_smart_quotes
is set to false (0)xolox#notes#currently_inside_snippet()
is brokenftplugin/notes.vim
script is just not being loaded at all...:version
shows +conceal
then URLs should be shortened as far as I can tell.syntax/notes.vim
but the actual concealing is enabled in ftplugin/notes.vim
so if the first script is loaded but the second isn't, that could explain (this and other issues). If you run the Vim command :setlocal conceallevel=3
inside a vim-notes buffer and URLs are suddenly shortened, that would be a dead giveaway that the first script is being loaded but the second isn't.gf
mapping not working, I just don't get. I don't see how that could work for me but not for you, unless ... the syntax/notes.vim
script is being loaded but the ftplugin/notes.vim
script is not being loaded.I'm starting to see a theme here: most of the issues could be explained by the file type plug-in not being loaded... I don't see how yet, but we'll get there eventually. To confirm my hypothesis please open a vim-notes buffer and run the following Vim command:
:runtime ftplugin/notes.vim
This should manually / forcefully load the file type plug-in, regardless of whether Vim has file type detection and plug-ins enabled and whether the file type is automatically and correctly applied (as it should be) or not.
I'm going to close this issue due to lack of feedback (for quite a few months now). If anyone feels up to it, feel free to reopen this issue with more information.
filetype plugin on
put that command in your .vimrc
i'm a bit confused as to why this doesn't work fully on my system. installed both the notes and misc packages. gvim on ubuntu.
opening a new note works fine, but then only half the syntaxes work. even going down to "Note taking syntax" and hitting 'gf' as directed in the opening instructions only gives an error "Can't find file "Note" in path."