Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty result lines in Windows #252

Open
iyawnis opened this issue Sep 26, 2018 · 0 comments
Open

Empty result lines in Windows #252

iyawnis opened this issue Sep 26, 2018 · 0 comments

Comments

@iyawnis
Copy link

iyawnis commented Sep 26, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant