xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

almost none of the key mappings work. documentation doesn't work. #81

Closed zee0 closed 9 years ago

zee0 commented 10 years ago

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."

DONE, TODO, XXX work.
# header works.
*bold* works.
_italic_ works.
file paths work.

lists do not work. [tab, *, +, -]
*** does not enter a page break.
urls are not shortened [http://]
smart quotes "" '' do not work.
-- doesn't work.
-> and <- don't work.

screenshot from 2014-08-26 12 46 04

sekel commented 10 years ago

I have the exact same issue.

xolox commented 10 years ago

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?

sekel commented 10 years ago

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

xolox commented 10 years ago

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:

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.

xolox commented 9 years ago

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.

eb0t commented 4 years ago

filetype plugin on
put that command in your .vimrc