aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2015-06-04 16:08:30 -0400
committerTeddy Wing2015-06-04 16:08:30 -0400
commit69ad4ca3e49bdaac3d53e7f4929f252b17836c1d (patch)
treef2493fa063b6d30261ca58ce715d20a33c878c7d /ftplugin
parent9ec85f7fa5e118c0630e6b6457b71e80e57fa5dd (diff)
downloaddotvim-69ad4ca3e49bdaac3d53e7f4929f252b17836c1d.tar.bz2
vimrc: Add <leader>or mapping
Add a mapping to open the current file in `ranger`, the console file explorer. I already have a similar command to open the current file in Finder, but these days I find ranger a bit more pleasant to use, particularly if I'm already in the console. It's definitely more keyboard-friendly. This came about because I was trying to copy a file and the built-in Vim methods for doing so that I know of were more complicated than I wanted. 1. Use :saveas [filename] This method does the right thing in copying but the copy goes to Vim's :pwd. I wanted it to go to the same directory the file was in. 2. Use Netrw The mf mt mc commands were a little confuddling to me. It makes sense when copying a file to a directory, but how do I duplicate a file in the same directory? 3. Use :shell Opens a shell, but in Vim's :pwd, not in the current file's directory. Maybe I should make a mapping for this.
Diffstat (limited to 'ftplugin')
0 files changed, 0 insertions, 0 deletions