dmenu.vim

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dmenu.vim
Log | Files | Refs

commit 0a1984f3db815f200c3b643761c447295f8d37e6
parent d13471cad2fcaf09c3829105d68cbebf0e62a4d7
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Tue, 28 Jun 2016 10:09:29 -0700

Change double quotes to single

Diffstat:
plugin/dmenu.vim | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/plugin/dmenu.vim b/plugin/dmenu.vim @@ -3,7 +3,7 @@ " Version: 1.0 " License: Vim License. See :help license -if exists("g:loaded_dmenu") +if exists('g:loaded_dmenu') finish endif let g:loaded_dmenu = 1 @@ -12,30 +12,30 @@ let s:save_cpo = &cpo set cpo&vim " global varibles {{{1 -if !exists("g:dmenu_cmd") - let g:dmenu_cmd = "dmenu -i -l 20" +if !exists('g:dmenu_cmd') + let g:dmenu_cmd = 'dmenu -i -l 20' endif -if !exists("g:dmenu_ls") - let g:dmenu_ls = "find -type f -printf '%P\n' | tail -n +2" +if !exists('g:dmenu_ls') + let g:dmenu_ls = 'find -type f -printf "%P\n" | tail -n +2' endif -if !exists("g:dmenu_git_ls") - let g:dmenu_git_ls= "git ls-files" +if !exists('g:dmenu_git_ls') + let g:dmenu_git_ls= 'git ls-files' endif " functions {{{1 " return true if vim is in a git repository function! s:is_git_repo() - call system("git rev-parse") + call system('git rev-parse') return v:shell_error ? 0 : 1 endfunction " launches dmenu with input and opens selection with given vim cmd function! s:dmenu_open(input, cmd) - let file = system("echo -e '" . a:input . "' | " . g:dmenu_cmd . " -p :" . a:cmd) + let file = system('echo -e "' . a:input . '" | ' . g:dmenu_cmd . ' -p :' . a:cmd) if !empty(file) - execute a:cmd . " " . file + execute a:cmd . ' ' . file endif endfunction @@ -48,8 +48,8 @@ endfunction " switch to already loaded buffer with cmd function! s:dmenu_buf(cmd) let bufs = range(1, bufnr('$')) " get open buffers - call filter(bufs, "buflisted(v:val)") " remove unlisted buffers - let files = map(copy(bufs), "bufname(v:val)") " convert numbers to names + call filter(bufs, 'buflisted(v:val)') " remove unlisted buffers + let files = map(copy(bufs), 'bufname(v:val)') " convert numbers to names call s:dmenu_open(join(files, '\n'), a:cmd) endfunction