Fixes for Linux

This commit is contained in:
2014-11-28 11:10:37 -05:00
parent 0d20b64aa0
commit 0852f25760
3 changed files with 11 additions and 7 deletions

3
vimrc
View File

@@ -6,12 +6,11 @@ let mapleader=","
call pathogen#infect()
call pathogen#helptags()
" # selecta
" Run a given vim command on the results of fuzzy selecting from a given shell
" command. See usage below.
function! SelectaCommand(choice_command, selecta_args, vim_command)
try
silent let selection = system(a:choice_command . " | selecta " . a:selecta_args)
let selection = system(a:choice_command . " | selecta " . a:selecta_args)
catch /Vim:Interrupt/
" Swallow the ^C so that the redraw below happens; otherwise there will be
" leftovers from selecta on the screen