Re: Syntastic check for clang (LLVM) on windows with third party libraries

2016-01-24 Thread Pinaki
The issue has been solved. Please have a look here at 
https://github.com/scrooloose/syntastic/issues/1672
  



--
View this message in context: 
http://vim.1045645.n5.nabble.com/Syntastic-check-for-clang-LLVM-on-windows-with-third-party-libraries-tp5726705p5726710.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Syntastic check for clang (LLVM) on windows with third party libraries

2016-01-23 Thread Pinaki
I'm having a strange issue when using clang as my checker under syntastic
plugin on Win 7. I'm using official GVim74 and Windows 7 x64. Clang is
downloaded from  http://llvm.org/releases/download.html
  
and the version is LLVM 3.7.1.

Here is my configuration for syntastic plugin:
" ~
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_c_checkers=['gcc', 'cppcheck', 'splint', 'clang_check']
let g:syntastic_cpp_checkers=['gcc', 'cppcheck', 'clang_check']
let g:syntastic_c_compiler_options = '-W -Wall -Wextra -fsized-deallocation
-pedantic -ansi -std=c99 -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Wzero-as-null-pointer-constant
-Wformat=2 -Wformat-security -Wformat-signedness -Wformat-y2k
-Wnull-dereference  -Wconversion'
let g:syntastic_cpp_compiler_options = '-W -Wall -Wextra
-fsized-deallocation -pedantic -ansi -std=c99 -std=gnu++98 -std=gnu++11
-std=gnu++14 -stdlib=libc++ -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Wzero-as-null-pointer-constant
-Wformat=2 -Wformat-security -Wformat-signedness -Wformat-y2k
-Wnull-dereference  -Wconversion'
let g:syntastic_aggregate_errors = 1
let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_enable_signs=1
" let g:syntastic_cpp_include_dirs = ['libs/dir2/dir3', 'libs/dir2 ]
let g:syntastic_cpp_check_header = 1
let g:syntastic_cpp_remove_include_errors = 1
let g:syntastic_cpp_config_file = '$HOME/.syntastic_include_dir.txt'
let g:syntastic_cpp_config_file = '.syntastic_include_dir.txt'
let g:syntastic_c_config_file = '$HOME/.syntastic_include_dir.txt'
let g:syntastic_c_config_file = '.syntastic_include_dir.txt'
let g:syntastic_c_check_header = 1
let g:syntastic_cpp_check_header = 1
" ~

And here is my ".syntastic_include_dir.txt" in %USERPROFILE%

-I"C:\CODEBL~1\TDM-GC~1\include"
-I"C:\CODEBL~1\TDM-GC~1\lib\gcc\X86_64~1\51B983~1.0\include"
-I"C:\CODEBL~1\TDM-GC~1\lib\gcc\X86_64~1\51B983~1.0\include\C__~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\GL"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\GLFW"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\glm"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\glm\gtx"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\glm\gtc"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\sys"
-I"C:\xtralibs\appu"
-I"C:\xtralibs\yxml11"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\ACCUMU~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\ALGORI~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\align"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\archive"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\asio"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\assign"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\atomic"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\bimap"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\bind"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\chrono"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\CIRCUL~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\concept"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\CONCEP~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\config"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\CONTAI~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\context"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\convert"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\core"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\COROUT~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\COROUT~2"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\DATE_T~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\detail"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\DYNAMI~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\endian"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\EXCEPT~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\FILESY~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\FLYWEI~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\format"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\function"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\FUNCTI~2"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\FUNCTI~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\fusion"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\geometry"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\gil"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\graph"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\heap"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\icl"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\integer"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\INTERP~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\INTRUS~1"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\io"
-I"C:\CODEBL~1\TDM-GC~1\X86_64~1\include\boost\IOSTRE~1"

Re: How can I pass user input value to vimgrep?

2014-05-23 Thread Pinaki
Actually backward/forward-slash, space were needed and the script was not
working without them.
Finally I decided to put them in their own places. However I changed my
script a little and it is working as expected.
Here is it:

 Last Change: 2014-05-23  Friday: 12:03:38 PM
 ---Implementation of a simple feature
 ---Find in Files and Directories
 ---like Notepad++ -
 ---Created  Edited by Pinaki Sekhar Gupta
appugupta...@gmail.com
 ---Licence: No licence is better than
everything---



:menu Edit.Find\ in\ Files  :Esc:Esc:call Find_in_Files() Cr

function Find_in_Files()

 ---raw method-
 :vimgrep /GNU/ C:\CodeBlocks\TDM-GCC-64\include\*.txt
 :cw
 --

let what2find = inputdialog(search term, , cancel pressed)
let directory   = browsedir(Browse the directory,)
let filetype = inputdialog(filetype, , cancel pressed)
let forwardslash = /
let space =  

if has(win32) || has(win16) || has(win64)
 ==  MS Windows  ===
let wildcard = \\*.
elseif has(macunix) || has(unix) || has(mac) || has(os2) ||
has(beos)
 ==  Linux/OS-X/Unix  ===
let wildcard = \/*.
endif

if what2find !=   what2find != cancel pressed  directory !=  
 filetype !=  

  port to test whether the nested strings are
working or not

http://vim.1045645.n5.nabble.com/How-can-I-pass-user-input-value-to-vimgrep-td5721661.html
 :echom Hello,  . world
 Hello, world 
http://learnvimscriptthehardway.stevelosh.com/chapters/26.html
 echo forwardslash . what2find . forwardslash . space .
directory . wildcard . filetype

:execute vimgrep / . what2find . forwardslash . space .
fnameescape(directory) . wildcard . filetype
:cw

else
 process if user press okay
if what2find != cancel pressed  directory !=  cancel pressed
 filetype !=  cancel pressed

:execute vimgrep / . what2find . forwardslash . space .
fnameescape(directory) . wildcard . filetype
:cw

endif
endif
endfunction

I am still looking for an improvement suggestion so that it can search the
directory recursively, and more interestingly I want to look into the
extension-less files like C++'s 'iostream' etc, and Linux created text file
that does not have extension unless I give one.





--
View this message in context: 
http://vim.1045645.n5.nabble.com/How-can-I-pass-user-input-value-to-vimgrep-tp5721661p5721684.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
vim_use group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I pass user input value to vimgrep?

2014-05-22 Thread Pinaki
Thanks, following your advice finally the script started working.
Here is the changed script:


 Last Change: 2014-05-22  Thursday: 04:16:18 PM
 ---Implementation of a simple feature
 ---Find in Files and Directories
 ---like Notepad++ -
 ---Created  Edited by Pinaki Sekhar Gupta
appugupta...@gmail.com
 ---Licence: No licence is better than
everything---



:menu Edit.Find\ in\ Files  :Esc:Esc:call Find_in_Files() Cr

function Find_in_Files()

 ---raw method-
 :vimgrep /GNU/ C:\CodeBlocks\TDM-GCC-64\include\*.txt
 :cw
 --

let what2find = inputdialog(search term, , cancel pressed)
let directory   = browsedir(Browse the directory,)
let filetype = inputdialog(filetype, , cancel pressed)
let forwardslash = /
let space =  
let wildcard = *.
if what2find !=   what2find != cancel pressed  directory !=  
 filetype !=  

  port to test whether the nested strings are
working or not

http://vim.1045645.n5.nabble.com/How-can-I-pass-user-input-value-to-vimgrep-td5721661.html
 :echom Hello,  . world
 Hello, world 
http://learnvimscriptthehardway.stevelosh.com/chapters/26.html
 echo forwardslash . what2find . forwardslash . space .
directory . wildcard . filetype

:execute vimgrep / . what2find . forwardslash . space .
fnameescape(directory) . wildcard . fnameescape(filetype)
:cw

else
 process if user press okay
if what2find != cancel pressed  directory !=  cancel pressed
 filetype !=  cancel pressed

:execute vimgrep / . what2find . forwardslash . space .
fnameescape(directory) . wildcard . fnameescape(filetype)
:cw

endif
endif
endfunction











If you still have any improvement suggestion please inform..





--
View this message in context: 
http://vim.1045645.n5.nabble.com/How-can-I-pass-user-input-value-to-vimgrep-tp5721661p5721667.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
vim_use group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How can I pass user input value to vimgrep?

2014-05-21 Thread Pinaki
I am trying to write a small script to mimic the Notepad++ 's 'Find in Files'
feature.
First it collects information from the user e.g. search item, directory and
file-type,
then it should start performing.
I got stumbled somewhere, after searching the Internet a lot
I did not find any solution that worked in my case.
Here is the detail:

 Find_in_Files.vim
 ---Implementation of a simple feature
 ---Find in Files and Directories
 ---like Notepad++ -


:menu Edit.Find\ in\ Files  :Esc:Esc:call Find_in_Files() Cr

function Find_in_Files()

 ---raw method-
 :vimgrep /GNU/ C:\CodeBlocks\TDM-GCC-64\include\*.txt
 :cw
 --

let what2find = inputdialog(search term, , cancel pressed)
let directory   = browsedir(Browse the directory,)
let filetype = inputdialog(filetype, , cancel pressed)
if what2find !=   what2find != cancel pressed  directory !=  
 filetype !=  


 :exe !vimgrep /.what2find \b/   .directory \b\*. .filetype

 not working
:execute vimgrep /.what2find \b/   .directory \b\*.
.filetype
:cw
   also not working

else
process if user press okay
if what2find != cancel pressed  directory !=  cancel pressed
 filetype !=  cancel pressed
I will repeat the same here if something goes well
endif
endif
endfunction



This plug-in is working partially, all the problem comes when I pass a
variable value from the user input to vimgrep.
If there is any fix to this problem please let me know.





--
View this message in context: 
http://vim.1045645.n5.nabble.com/How-can-I-pass-user-input-value-to-vimgrep-tp5721661.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
vim_use group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.