GithubHelp home page GithubHelp logo

mizuchi / vim-ranger Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 3.0 26 KB

A vim plugin which uses ranger to explore your filesystem and to open files and directories.

Home Page: http://www.vim.org/scripts/script.php?script_id=5127

License: Other

Vim Script 100.00%

vim-ranger's People

Contributors

codeindulgence avatar mizuchi 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

Watchers

 avatar  avatar  avatar  avatar

vim-ranger's Issues

async

If we are using tmux (or vim-conque, maybe neovim), I think it's possible to open ranger in another tmux pane (or another tab). we could edit and explore in parallel. In the end it we opened file in ranger, vim will receive a signal to open the file. This is just an idea, currently I have no time to implement it.

Ranger doesn't start with gvim

Hi,

I use gvim, v7.4.778 on Archlinux. I have Ranger and vim-ranger installed by this dotfile. It is working fine in terminal ViM.

Opening gvim et calling vim-ranger doesn't open the explorer and there are no error messages.

Unable to use C-F* hotkeys and ':' history after using ranger session

Hi! Thanks for plugin.

After exiting ranger session by 'q' or opening file from it, I can't use C-F* hotkeys, like C-F10 and so on, they just not work. Also, when I try arrow-up/arrow-down : history (observing latest cmd mode commands) - this also not work.

Do you have same problems?

ranger-stable 1.6.1

Python 3.4.2 (default, Oct 18 2014, 11:13:55) 
[GCC 4.8.3]
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 11 2015 10:15:27)
Included patches: 1-658
Modified by Gentoo-9999
Compiled by portage@workstation
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     +tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
+clientserver    -hangul_input    +netbeans_intg   +title
+clipboard       +iconv           +path_extra      -toolbar
+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/dyn      +viminfo
+cscope          +lispindent      +python3/dyn     +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      +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_interact
+eval            +mouse_dec       +startuptime     +xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H     -march=bdver2 -O2 -pipe -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/usr/include  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_LARGEFILE64_SOURCE=1  
Linking: x86_64-pc-linux-gnu-gcc   -L. -Wl,-O1 -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -Wl,-E  -Wl,-O1 -L/usr/local/lib -Wl,--as-needed -o vim    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm -ldl  -L/usr/lib -lluajit-5.1 -Wl,-E -Wl,-O1 -Wl,--as-needed  -L/usr/lib64/perl5/5.20.2/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc   -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby22 -lpthread -lgmp -ldl -lcrypt -lm  -L/usr/lib64 

on_exit requires 3 arguments

Hello, Mizuchi,
From recently change on Neovim, on_exit requires 3 arguments.
fatih/vim-go#1144

If you have some time, please apply below patch.

diff --git a/plugin/ranger.vim b/plugin/ranger.vim
index 551d7a8..fba1da0 100644
--- a/plugin/ranger.vim
+++ b/plugin/ranger.vim
@@ -33,8 +33,8 @@ function! s:RangerChooserForAncientVim(dirname)
 endfunction

 function! s:RangerChooserForNeoVim(dirname)
-    let callback = {'tempname': tempname()}
-    function! callback.on_exit()
+    let s:callback = {'tempname': tempname()}
+    function! s:callback.on_exit(id, exit_status, event) dict abort
         try
             if filereadable(self.tempname)
                 let names = readfile(self.tempname)
@@ -45,8 +45,8 @@ function! s:RangerChooserForNeoVim(dirname)
             endif
         endtry
     endfunction
-    let cmd = 'ranger --choosefiles='.callback.tempname.' '.shellescape(a:dirname)
-    call termopen(cmd, callback)
+    let cmd = 'ranger --choosefiles='.s:callback.tempname.' '.shellescape(a:dirname)
+    call termopen(cmd, s:callback)
     startinsert
 endfunction

Open ranger in Conque Shell

If the conque shell plugin is installed, open ranger in conque shell instead of another shell. I feel this is neat but not very useful.

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.