Coder Social home page Coder Social logo

vim-pad's Introduction

vim-pad

A quick notetaking plugin for vim.

It offers a similar way of managing notes to the one made popular by tools like Notational Velocity, where file management is removed from the notetaking workflow, being replaced by searching and sorting facilities, and where the creation and searching of notes is integrated.

Notes in vim-pad are free-form; in fact it tries to make it easy to use any format you want. It works great along other plugins like VimOutliner and quicktask.

IMPORTANT: vim-pad requires a reasonably recent version of Vim (7.4 is recommended) with +python (+python3 also works in devel) and +conceal support. Check if the flags are enabled in :version. Currently, it also requires either a grep with perl regexes support, which might not be the case under OSX, ack, ag or pt. Windows is not supported.

screen1

screen2

screen3

Branches

  • devel contains the development version of the plugin.

Pull requests are to be done over devel. When submitting a bug, please tag the affected versions.

Configuration and Usage

IMPORTANT: you must set the g:pad#dir variable to a valid path. It is recommended to use an empty folder for this.

Creating a note

To create a new note you can either execute

    :Pad new

or press <Shift-Escape> (<leader>n in the terminal)

Listing the notes

To list the notes, use

    :Pad ls

or press <Control-Escape> (<leader><esc> in the terminal). Press <Enter> to open the note in the current line (you'll see this line is highlighted).

Searching

If you are looking for something in particular within your notes, you'll want to use vim-pad search utilities.

Open the notes list and press <S-f>. You'll see the prompt has changed to

>>

You can now type a query. You'll see the list changes when you type, since it's filtering. Once you have finished searching, press <Enter> to finish the query, and then open the note as you've done before. You'll see the query is highlighted.

Other ways to search

You can search non interactively, but without opening the notes list, with <leader>ss . Pressing <Enter> after finishing the query will show the list of matching notes.

More on creating notes

There is yet another way to search for notes: If you press <leader>s<leader> in any window, an interactive search will start. This is pretty similar to <leader>ss, but it will also allow the user to create a new note if the query is not found. If so, pressing <Enter> will open a new note with the query pre-appended. This is a pretty convenient way of creating a new note very quick and keep adding to it. If you don't need to open the note afterwards, you can use <Leader>s! instead (even quicker!).

Using different types of files for notes

Have you noticed that sitcky notes come both blank and pre-filled? Well, that is because not all notes (like people) are born the same! You shouldn't have to conform to any particular format. vim-pad does not impose any.

That said, it uses markdown by default, because it is a very good general purpose format (also because vim comes with support for it by default). You can change this default to your hearts desire by setting the g:pad#default_format variable. For example, you can make your notes be LaTeX by default:

    :let g:pad#default_format = "tex"

To change a particular note's format, you'll have to add a modeline. Doing so by hand is tiresome, so you can press <localleader>+m to add one. You'll be prompted for a filetype. Select one and press <Enter>. Voilá! The modeline is added, and the filetype is set.

Tags

If you write labels starting with # or @ in your file, they will be treated like tags when you list the notes.

Sorting

Sometimes you'll want to sort the notes in the list. For example, you might want to sort alphabetically all the notes you have titled "recipe:...". To do this, press <S-s> while the list is open, select the sorting method and press <Enter>.

NOTE: Sorting won't undo a query you have previously entered, so you can search for all notes mentioning "chicken" and then sort them alphabetically.

Deleting notes, using sub-folders and archiving

Soon, you'll have a mess of notes. Let's see what you can do about it...

Deleting notes

From the notes list, select a note you want to delete and then press dd. You'll be prompted to confirm.

If you are editing a note and discover you don't want it anymore (what were you thinking!), you can press <localleader><Del>.

Moving into sub-folders

Perhaps you'll want to organize the notes in groups. One option is to use tags, which we've seen before, but that requires writing the tags in the files, and you might not want that. Another option is to place your notes into topic folders. You can do it manually (and vim-pad will show you the folders when listing the notes), but there are better ways from within vim.

From the list, select a note and press +f . You'll be prompted for a folder name to put the note in. If the folder doesn't exist, vim-pad will create it.

NOTE: Pressing the same combo within a note, with <localleader> prepended, does the same.

NOTE: You can have subfolders to your subfolders.

If you want to move notes back to the root notes dir, you can use -f (<localleader>-f within the note).

Archiving

If you are an avid note-taker, you'll soon have a very large list of notes. But some notes you simply don't want to have around all the time. For example, you could have monthly TODO lists, or notes for proyects you've finished already, etc. You want to keep this stuff, but keep it "away" too. For this, vim-pad features an archive system. Any note in the special "archive/" folder will be treated as archived, and won't be shown normaly by :Pad ls. To list the archive, you have to put a ! after the command, like this

    :Pad! ls

To put things on the archive, you can use +a (in both the list and the notes).

Local notes

So far, you've seen how to manage a global list of notes. But sometimes when you work in a project, you want to keep notes about it which are only relevant to it, and might not want to see them in the global list. For this, vim-pad has the ability to detect local notes, which are saved in a folder in the current dir. By default, this folder will be called "notes", but that can be changed by setting the g:pad#local_dir variable.

To create a local note, use

    :Pad! new

(notice the bang !).

To create a local note about the file you are currently working on, use

    :Pad this

Some extras

For formatting your notes, you might want to check some of these plugins:

Some of these also have note management utilities, but I think you'll prefer vim-pad ;)

For the full documentation, please consult

    :help vim-pad

If you have vim-tutor-mode, you can read a tutorial on using vim-pad (it is basically equivalent to this README, but with exercises) with

    :Tutor pad

vim-pad's People

Contributors

00dani avatar abudden avatar al3xandru avatar amuelli avatar bgbnbigben avatar brianmartin avatar derekbrokeit avatar equalsraf avatar fmoralesc avatar jlmaccal avatar jonuts avatar mauromorales avatar ohle avatar sharat87 avatar skrobul avatar smutch avatar wxcafe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-pad's Issues

Some hotkeys already mapped

I get the following warning at Vim launch:

[vim-pad] <leader>s in normal mode is already mapped.
[vim-pad] <leader>n in normal mode is already mapped.
Press ENTER or type command to continue

Ideally, the plugin wouldn't show the warning by default, and the Readme would document those hotkeys needing to be (re)assigned.

Mapping to delete pad doesn't work for me

delete_pad is mapped to <delete> in the plugin buffer. This just closes the buffer for me without deleting. Perhaps there's a difference between vim versions/architecture?

Is there any way to make that configurable? FWIW, I changed it locally to dd and it works fine, but would like a way to keep in sync with your changes.

request for both global and project based save system

currently vim-pad is on global note taking system

it would be awesome, if vim-pad able to detect current working file and save the notes in the project folder ( I am using proj to manage projects ). instead of the date in list pads, it uses the file name.

and if we are working on a empty file, it will use the default global directory and time based organising.

Only works if vim compiled with python

I think this should be brought out clearly in the documentation. I spent a lot of time wondering why it was not working in my terminal. I could not even call ":OpenPad". only ":help vim-pad" worked.

Finally, went through the source code and decided to check in in my MacVim. Works there. I was about to abandon it before trying MacVim. Please specify in your docs that python is a prerequisite.

Thanks.

Configuration of display in pad pane?

The screenshots show |

Instead, I have something like this:

/Users/username/Google Drive/vimpad/1354399578664566 @ 4m and 23s ago │ /⸥ Let us create a second note here↲

The path takes too much space and I don't know how to get rid of it. I couldn't find the option in the documentation.

Feature request: Refining queries

It would be very nice if one could refine the active query to incrementally "dig down" through the notes. For example, one might want to look both for a keyword in a note's title and for the presence of one or more tags.

Feature request: Reference other notes

Pretty much as in the title.

Suggested syntax would be something like note:X, where X is a unique query, and then maybe j or something can exist as a keybinding to run + open the referenced note iff the cursor is over a word starting with "note:" and the search for join(split(cursor, ":")[1:], ":") returns one single entry

E319: Sorry, the command is not available in this version:

Hi,

whenever I start vim I get the following error message:

$ vim
Error detected while processing /home/username/.dotfiles/vim/vundles/vim-pad/plugin/pad.vim:
line  128:
E319: Sorry, the command is not available in this version: pyfile /home/username/.dotfiles/vim/vundles/vim-pad/plugin/pad.py
line  130:
E319: Sorry, the command is not available in this version: python pad=Pad()
Press ENTER or type command to continue

I have the latest version of vim-pad installed, that is provided here. My plugins are managed by vundle.

My versions:

$ python --version
Python 2.7.2

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15)
Included patches: 1-202, 204-222, 224-322
Compiled by 'http://www.opensuse.org/'
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent 
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path 
+find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv 
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
+mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse 
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra -perl
 +persistent_undo +postscript +printer +profile -python -python3 +quickfix 
+reltime +rightleft -ruby +scrollbind +signs +smartindent +sniff +startuptime 
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white 
-tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands 
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore 
+wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard 
-xterm_save 
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/current"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe -fno-strict-aliasing -fstack-protector-all      
Linking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim       -lm -lnsl  -lncurses -lacl -lattr -ldl           

Cheers.

Pad command without args prints a stacktrace

When I execute :Pad command I get a stack trace:

Error detected while processing function pad#PadCmd:
line    2:
E684: list index out of range: 0
E15: Invalid expression: arg_data[0] =~ '\(new\|ls\|this\)'
Press ENTER or type command to continue

May be a more informative error message should be produced?

Error SearchPads in Cygwin

I use vim-pad in Cygwin, and when I run ":py pad.search_pads()" I get this error:

File "", line 1, in
NameError: name 'pad' is not defined

Anything I should check here?

Copyright information

As of the posting of this issue:

  1. there is no copyright license in the README;
  2. there are no other license files in the repository's top directory;
  3. A grep --directories=recurse -i copyright . from the top directory returns no useful result.

Might I kindly ask what and where this project's copyright license is?

Error while deleting an edited message.

Got this error message after performing in edited note.
I use pathogen. Don't know if it matters but I'll say it just to be safe.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/igor/Dropbox/.vim/bundle/fmoralesc-vim-pad-03ed3d4/plugin/pad.py", line 114, in pad_delete
    vim.command("unmap <leader><delete>")
vim.error

Autogenerated filename avoid using non alphanumeric characters

Hi,

First of all - magnificent plug! Thanks for making it :)

The problem lies in pad filename autogeneration. Here are my steps to produce it:

  • I've created a new note, first line was: Vim pad bindings:'
  • saved it
  • after saving the file vim-pad called it vim_pad_bindings: - notice the colon in the end
  • I invoked pad search with Leader+s and got a python exception that file vim_pad_bindings does not exist (colon was removed probably by os.path or something).

Failure mode for MacVim is counterintuitive

When installing for the first time, if your pad_dir is not set, you get an error message that prevents startup. In the shell this is fine, but when starting MacVim, opening any buffer fails silently, in a way that looks like MacVim is broken. This will be likely confusing to most people.

Conflict with unite.vim plugin

I'm honestly not sure which plugin has the problem, or if it's my lack of VI skills, but if you load unite:vim and vim-pad, then run:

:Unite file

and select a file (which tries to close the buffer, which is what I think is the issue), vim-pad throws this error:

Error detected while processing function pad#UpdatePad:
line 1:
Traceback (most recent call last):
File "", line 1, in
File "/home/bdillahu/.vim/bundle/vim-pad/plugin/padlib/pad_local.py", line 17, in update
modified = bool(int(vim.eval("b:pad_modified")))
vim.error: invalid expression
E121: Undefined variable: b:pad_modified
E15: Invalid expression: b:pad_modified
Error detected while processing function unite#action#do..unite#all_quit_session..unite#view#_
quit:
line 49:
E171: Missing :endif
Error detected while processing function unite#action#do:
line 50:
E171: Missing :endif

g:pad_open_in_split doesn't open if file not saved

Seems if you have g:pad_open_in_split set to open in the main window, and the file already in the main window isn't saved, it just ignores the open action and leaves you there.

I see this is safe (obviously don't want to lose edits), but any options here? Maybe a "do you want to save" question, or open in another buffer or something?

Not sure what I suggest, but wanted to mention it.

New API proposal

I was thinking of clustering the commands (ListPads, OpenPad) under a single entrypoint, (:Pad), and a command abbreviation (:pad) which would work like this

:pad n  # like PadOpen

:pad o id  # like PadOpen id

:pad ls  # like ListPads

:pad s query  # like ListPads query

I was thinking of using python's argparse library to support this.

Highlight search term when note opened

I'm not sure if this is possible (well, it's vim, so anything is possible, right? :-)) - anyway, if you search for a term and select a note and open it, could it (optionally) already have that search term "highlighted" and jumped to the first hit?

Maybe I'm missing an existing feature.

Setting to define max whitespace between characters in list view

I've been using vim-pad for a little while but I have encountered a problem. I am using https://github.com/jceb/vim-orgmode to format the notes I am writing in vim-pad. vim-orgmode lets you insert tags into headers automatically, it spaces them out (with tabs) so they sit at the end of the line width. This causes some quirky behaviour in vim-pad.

vim-pad displays all the whitespace between the actual heading and the tags meaning that in most situations only some of the first line is visible in the view as the rest is pushed way over to the right.
2014-01-29-221029_1920x1080_scrot

vim-pad also inserts all this whitespace into the automatic file name. This seems to prevent vim-pad being able to open the note (and makes some crazy long filenames). In the above image 'test note' won't actually open if I select it and hit enter.

I don't know if its an easy solution to implement but I think that an option to enable a truncation function that ignores any consecutive spaces or tabs greater than a set limit when displaying the list and setting filenames would be a good solution, at least for this case. Though maybe I am using vim-pad wrong?

Conceal does not seem to work for the pad list

I have python and conceal support in my vim, and vim-pad worked fine
with conceal in the previous version. When I upgraded to the recent git
version this does not work anymore. In the pad list all entries are shown
with the full directory path making them hard to read. I have checked
the syntax file, but did not find a clue there. Is there something else
I can check here?

no results in search with macvim grep or ack on a mac (10.9.4)

vim version:

lithium% mvim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 21 2014 14:54:22)
MacOS X (unix) version
Included patches: 1-258
Compiled by Bjorn Winckler <[email protected]>
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_binary
+arabic          +find_in_path    -mouse_sysmouse  +tag_old_static
+autocmd         +float           +mouse_urxvt     -tag_any_white
+balloon_eval    +folding         +mouse_xterm     -tcl
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +fullscreen      -mzscheme        +textobjects
+cindent         -gettext         +netbeans_intg   +title
+clientserver    -hangul_input    +odbeditor       +toolbar
+clipboard       +iconv           +path_extra      +transparency
+cmdline_compl   +insert_expand   +perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con_gui  -lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
+dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     +xim
+emacs_tags      +mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
+farsi           +mouse_netterm   +syntax
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib  -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm -lncurses  -liconv -framework Cocoa   -fstack-protector -L/usr/local/lib  -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE -lperl -framework Python   -framework Ruby

ack:

lithium% ack --version
ack 2.12
Running under Perl 5.16.2 at /usr/bin/perl

.vimrc:

let g:pad_dir = "~/text/"
let g:pad_search_backend = "ack"

results:

When using Shift-F, typing any character leads to [NEW] and that character.

Bug: g:pad_dir with a space in it makes code unhappy

If you g:pad_dir to something with a space in it in your vimrc:

let g:pad_dir = "~/spacey\ directory/vimpad"

then things just don't work. n does not actually open a new split pane, though the file type does change to markdown. And ... it doesn't create a file name for it .. So everything is a mess.

Import existing notes

I want to migrate from NV to Vim-Pad, but I can't import all my notes from NV. The Pad List only shows the ones I've just created, though in the default dir there are more notes.

Invisible timestamp

Just tried vim-pad. For some reason the timestamp in the pad list under the cursor is showing up invisible (or not showing up, as the case may be). The text is actually there -- if I move my cursor over it I can see each character in turn.

I tried switching color scheme to elflord (random choice) and could then see the timestamps, so maybe it's a weirdness of my color scheme? I'm using rdark.

NameError: name 'Pad' is not defined

This looks like a great plugin, but it pops up this error when I open vim:

Error detected while processing /home/eater/.vim/bundle/vim-pad/plugin/pad.vim:
line 65:
/home/eater/.vim/bundle/vim-pad/plugin/pad.py:156: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "", line 1, in
File "/home/eater/.vim/bundle/vim-pad/plugin/pad.py", line 156
with open(join(expanduser(self.save_dir), pad)) as pad_file:
^
SyntaxError: invalid syntax
line 66:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Pad' is not defined

Open_in_split for list

It seems that let g:pad#open_in_split = 0 is only respected for creating new notes. It would be nice if this setting would allow me to open my file list in the full window as well. I'd also be fine with a different variable for each one. There are times I like to open my list in the entire window.

Also, thanks for your amazing work on this! I really enjoy it!

Searching for part of filename

Is there an option to have the "find" look for the filename also? If you have "do not allow rename" then there may be items in the filename not in the text.

`Pad! ls` stops showing archived notes

When running Pad! ls (with bang) to list all notes including archived ones, as
soon as you do anything (search, archive notes, unarchive notes, …), the
archived notes disappear from the view.

vim-pad

mchris.myBox.vim>vim
Fatal Python error: GC object already tracked

Vim: Caught deadly signal ABRT
Vim: Finished.
Vim: Double signal, exiting
Segmentation fault
mchris.myBox..vim>pwd
/u/mchris/.vim
mchris.myBox..vim>ls /.vim/bundle/
minibufexpl.vim nerdcommenter NrrwRgn snipmate.vim TeTrIs.vim vim-easymotion vim-pad vim-powerline
neocomplcache nerdtree perl-support.vim taglist.vim textobj-word-column.vim vimoutliner vim-perforce
mchris.myBox.
>vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 24 2012 10:31:02)
Compiled by [email protected]
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent
+listcmds +localmap +lua +menu +mksession +modify_fname +mouse -mouseshape
+mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang +mzscheme +netbeans_intg -osfiletype
+path_extra +perl +persistent_undo +postscript +printer +profile +python
-python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 +xfontset -xim
+xsmp_interact +xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_FORTIFY_SOURCE=1 -DMZ_PRECISE_GC -DINCLUDE_MZSCHEME_BASE -I/usr/include/plt -DMZSCHEME_COLLECTS=/usr/lib/plt/collects -I/usr/lib64/ruby/1.8/x86_64-linux -DRUBY_VERSION=18
Linking: gcc -L/usr/software/lib64 -L/usr/software/lib -L/usr/lib64 -I/usr/software/include/racket -I/usr/software/include -o vim-7.3 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lelf -lnsl -lselinux -lacl -lattr -lgpm -L/usr/software/lib -llua /usr/lib/libmzscheme3m.a -Wl,-E -L/usr/software/lib -L/usr/lib64 -L/lib64 -L/usr/lib64 -L/usr/lib -L/lib /usr/software/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib/python2.4/config/ -lpython2.4 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -lruby -lpthread -ldl -lcrypt -lm
mchris.myBox..vim>echo 'works fine'
works fine
mchris.myBox..vim>vim -u NONE -U NONE

I installed vim-pad via BundleInstall; and it bombed out immediately with the python error. Plugins I have installed are listed...

Not the best debugging i know, but listing bug report quickly. Might update with debugging when I have time... (selective plugin disable to narrow it down..)

Provide fallbacks for when grep isn't available

This might happen in both OSX and Windows. Currently under OSX the user needs to install grep and vim via homebrew, which is a bit of a hassle. Creating some fallback for this case is preferred to failing silently (also, notify the user the fallback is going to be used).

<leader>n in insert-mode is a bad choice for a shortcut

The default for is the backslash. So n becomes \n which is used quite often if you want to output something with a newline.

I will now change the configuration of to ",", which means I will have to relearn a lot of finger-knowledge.

Question is whether this shortcut is even necessary. Do I really have to be able to start a new note from within insert-mode?

Apart from that great plugin! Continue the great work!

How does tagging work?

I'd appreciate if this could be clarified. The documentation mentions that notes can be sorted by tags, but I couldn't find how this information is extracted/assigned to a note.

Several issues under Windows

I haven't been much experimenting with vim-pad after this, so I'll just describe what I did, and what happened

My configuration:
_vimrc
\vimfiles (with pathogen) \bundle\ ... here is where the plugins go ...

I cloned vim-pad into \bundle\ and put vim-pad path (as described in help) in c:\documents and settings\ldigas\desktop\home_notes\

Upon starting gvim, my _vimrc was gone (obvious because of gvim look) and its contents were copied into a file in
c:\documents and settings\ldigas\432543534534345. <-- a filename of similar name ...

Is this the desired behaviour? What could be the possible reasons for this?

Include archive utilities

  • ListPads with a bang includes the notes saved in an auxiliary archive.
  • SearchPads with a bang searches including the entries in the archive.
  • From the pad buffer or from a file, + archives a note.

Shift-F does not seem to actually search (and neither does <Leader-s>)

I open the pad with and I see four notes.
I press and I get the '>>' prompt.

Regardless of what I type in there, I instantly get the [NEW] tag and it creates a new note -- even if I try to begin with the first character of one of my notes, or if I retype the entire title of a note.

If I am in normal mode and I type , I get the '>>>' prompt but regardless of what I type in there, I don't get a search result - the pad window does not even open.

Open notes in the "main" window

It feels strange to me that notes open in the search window at the bottom (or right). It would, I think, make more sense to work like NERDTree or other navigation-type plugins, where selected content opens up in the "main" window.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.