mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Empty result lines in Windows #252

Open iyawnis opened 6 years ago

iyawnis commented 6 years ago

Using gVIM 8.1, and ack.vim installed using Vundle.

This is what I see when I search:

capture

the number of lines match the results, and when there are no results I only see one line. The results come up correctly when I run the same command on powershell. Also, typing :sh will also bring up powershell.

Any suggestions why I may be getting this?

$MYVIMRC

set shell=C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe
set guifont=Menlo:h11:cANSI:qDRAFT
colorscheme desert

set nocompatible
filetype off
set tabstop     =4
set softtabstop =4
set shiftwidth  =4
set expandtab
set encoding=utf-8
set nu
set hls
set wildignore+=*.swp,*.pyc
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab

syntax on

set rtp+=$HOME/Vim/vimfiles/bundle/Vundle.vim/
call vundle#begin('$HOME/Vim/vimfiles/bundle/')

Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'nvie/vim-flake8'
Plugin 'kien/ctrlp.vim'
Plugin 'mileszs/ack.vim'

call vundle#end()

let python_highlight_all=1
let g:ackprg = 'ag --vimgrep'

filetype plugin indent on
au BufNewFile,BufRead *.py
    \ set tabstop=4 |
    \ set softtabstop=4 |
    \ set shiftwidth=4 |
    \ set expandtab |
    \ set autoindent |
    \ set fileformat=unix

" Removes trailing spaces
function TrimWhiteSpace()
   %s/\s*$//
     ''
endfunction

set list listchars=trail:.,extends:>
autocmd FileWritePre * call TrimWhiteSpace()
autocmd FileAppendPre * call TrimWhiteSpace()
autocmd FilterWritePre * call TrimWhiteSpace()
autocmd BufWritePre * call TrimWhiteSpace()

No results:

capture