Fixes for Linux
This commit is contained in:
3
vimrc
3
vimrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user