Skip to content

larioj/plum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

135b189 · Oct 5, 2021
Oct 5, 2021
Sep 26, 2021
Jun 4, 2019
Apr 12, 2021

Repository files navigation

Plum

Vim 8.2 required. Execute action based upon the content under cursor.

Demo

# lines starting with ': ' are treated as vim expressions
: echo 'hello'

# lines starting with '$ ' are treated as terminal expressions
$ echo hello

# you can execute muliline expressions
$ echo \
    hello

# you can execute heredocs
$ cat <<EOF
  hey there
EOF

$HOME/.vimrc

Installation Instructions

Install using Vundle or Pathogen

Note that vim8 is required for the terminal actions.

Recomended Configuration In .vimrc

set mouse=a
call plum#SetMouseBindings()
nnoremap , :call plum#Plum()<cr>
let g:plum_actions = [
      \ plum#term#Terminal(),
      \ plum#vim#Execute(),
      \ plum#tree#OpenFso(),
      \ plum#fso#OpenFso(),
      \ ]

Don't want to use the mouse?

nnoremap , :call plum#Plum()<cr>
let g:plum_actions = [
      \ plum#term#Terminal(),
      \ plum#vim#Execute(),
      \ plum#tree#OpenFso(),
      \ plum#fso#OpenFso(),
      \ ]

Releases

No releases published

Packages

No packages published