Code Monkey home page Code Monkey logo

lh-vim's People

Watchers

 avatar

lh-vim's Issues

Local_vimrc.vim breaks modeline defined in source files.

What steps will reproduce the problem?
1. Install local_vimrc.vim
2. Start vim with a file in your home dire that has modeline values that are 
different from one in your .vimrc
3. Verify that modeline values are not set correctly


What version of the product are you using? On what operating system?
v1.9



Original issue reported on code.google.com by [email protected] on 4 Jan 2011 at 2:44

Error at loading a CPP file - lhCpp

What steps will reproduce the problem?
1. Install lhCpp
2. Open an empty a.cpp file (using GVim ; that might be the problem ?)
3. Have a look at the bottom of the screen

What is the expected output?
Nothing

What do you see instead?
An error message (approximated traduction from french) :
{{{
Error detected treating /home/[My
Name]/.vim/ftplugin/cpp/cpp_GotoFunctionImpl.vim :
line  302 :
E117: Fonction inconnue : lh#menu#DefToggleItem
}}}

How to fix the bug ?
Edit line 302 of file ftplugin/cpp/cpp_GotoFunctionImpl.vim to :
{{{
call lh#menu#def_toggle_item(s:FunctionPositionMenu)
}}}

Original issue reported on code.google.com by [email protected] on 14 May 2010 at 4:05

A flashing message.

What steps will reproduce the problem?
1. Install the SVN version
2. Start GVim on a C++ source / header file.

What is the expected output?
Nothing

What do you see instead?
A flashing message at launching GVim on a C++ source or header file, which
disappears just after appearing.

How to fix the bug ?
Edit the file after/plugin ; line 962 :
{{{
<  call lh#menu#DefToggleItem(s:AutoInsertMenu)
>  call lh#menu#def_toggle_item(s:AutoInsertMenu)
}}}

Sorry if I disturb you, I just want to help you fixing some bugs quicker :)

Original issue reported on code.google.com by [email protected] on 15 May 2010 at 6:19

  • Merged into: #23

Docs

Would you mind updating the wiki :)
This library looks fantastic but I don't see docs for how to use the more 
advanced features e.g. 
http://stackoverflow.com/questions/4080253/create-getter-and-setter-members-for-
a-c-class-in-vim 

Thanks!

Original issue reported on code.google.com by [email protected] on 15 Jul 2013 at 6:26

"lh#common#CheckDeps() is deprecated, use lh#common#check_deps() instead."

What steps will reproduce the problem?
1. Install lhCpp
2. Start GVim (maybe Vim does that mistake too)

What is the expected output?
Nothing

What do you see instead?
{{{
lh#common#CheckDeps() is deprecated, use lh#common#check_deps() instead.
lh#common#CheckDeps() is deprecated, use lh#common#check_deps() instead.
}}}

How to fix the issue ?
Replace (not valid diff file, written with my hand, I don't exactly know
standard format for diff files) :
{{{
@file autoload/lh/common.vim @ line 253
<  return lh#common#CheckDeps(a:Symbol, a:File, a:path, 'mu-template')
>  return lh#common#check_deps(a:Symbol, a:File, a:path, 'mu-template')
@file ftplugin/cpp/cpp_GotoFunctionImpl.vim @ line 276
<      \    !lh#common#CheckDeps('*Cpp_CurrentScope',
>      \    !lh#common#check_deps('*Cpp_CurrentScope',
      \         'cpp_FindContextClass.vim', 'ftplugin/cpp/',
      \                 'cpp_GotoFunctionImpl')
<      \ || !lh#common#CheckDeps(':CheckOptions',
>      \ || !lh#common#check_deps(':CheckOptions',
}}}

Original issue reported on code.google.com by [email protected] on 14 May 2010 at 5:29

  • Merged into: #23

lh#function does not support composition

What steps will reproduce the problem?
1. :UTRun tests/lh/function.vim 

What is the expected output? 
  SUITE<[lh-vim-lib] Testing lh#function plugin> 12/12 tests successfully
executed.


What do you see instead?
We cannot define a lh#function that references another lh#function.


Original issue reported on code.google.com by [email protected] on 7 May 2010 at 2:52

_vimrc_local.vim in paths containing spaces does not work

What steps will reproduce the problem?
1. Go into a folder with spaces.
2. Create a _vimrc_local.vim file.
3. Open vim.

What is the expected output?

The _vimrc_local.vim file should be loaded normally, without any error.

What do you see instead?

The error „E172: Only one file name allowed: source /home/cristi/spaced
path/_vimrc_local.vim”


What version of the product are you using? On what operating system?

1.7

Please provide any additional information below.

The problem occurs because the path is not escaped when constructing the
argument to „exe”, so that the „source” command thinks that spaces
represent filename separators.

The attached patch solved the problem.

Original issue reported on code.google.com by [email protected] on 13 May 2009 at 8:20

Attachments:

c-assign-in-condition.vim bad manual

part of this file:
"   Installation Method 1:
"       Need to manualy patch $VIMRUNTIME/syntax/cpp.vim.
"       Add
"           runtime! syntax/c-assign-in-condition.vim
"       or
"           runtime! syntax/cpp-*.vim syntax/cpp_*.vim
"       after the call to
"           runtime! syntax/c.vim
"   Installation Method 2: (prefer this one)
"       Define a {rtp}/syntax/cpp.vim (where {rtp} < $VIMRUNTIME) that
"       contains:
"           " This is the only valid way to load the C++ and C default syntax file.
"           so $VIMRUNTIME/syntax/cpp.vim
"           " Source C++ hooks
"           runtime! syntax/cpp-*.vim syntax/cpp_*.vim

Command
runtime! syntax/cpp-*.vim syntax/cpp_*.vim
is not sufficient, because this filename start with c-assign!

Original issue reported on code.google.com by [email protected] on 21 May 2009 at 11:59

Show all possible values with lh#menu#def_toggle_item

It shall be possible to directly choose the new value for a toggable option 
without cycling through every possible values till the desired one is reached.

For instance, a sub-menu may be activated (if requested), to show all possible 
values.

Original issue reported on code.google.com by [email protected] on 10 Dec 2010 at 12:02

Simplify the expansion of variables

In order to simplify Mu-template syntax, find a way to expand variables from 
placeholders.

We could use the same algorithm than the one used today for expansing: 
if the expansion successes
- then insert its result
- otherwise insert the text within the placeholder

A compatible mode with other TEPs may ned to be considered.

Original issue reported on code.google.com by [email protected] on 24 Jun 2011 at 4:56

[lhCpp] Do not expand "else" when it precedes an "if"

===What steps will reproduce the problem?===
1. type "if foo<esc>"
2. continue with "Ielse<space>"

===What is the expected output? ===
{{{
        else if (foo)
        {
            «»
        }
        «»
}}}

===What do you see instead?===
{{{
        else
        {

        }
        «»if (foo)
        {
            «»
        }
        «»
}}}

Original issue reported on code.google.com by [email protected] on 1 Oct 2008 at 2:39

[lhBrackets] Brackets definitions are still active after toggling them, and changing the current buffer

What steps will reproduce the problem?
1. Toggle the brackets
2. change to a new buffer

What is the expected output? 
- The bracket mappings should not be active in the new buffer

What do you see instead?
- They are active


If the bracket definitions are toggled again, then if we move back to the
original buffer and toggle them again, a error will occur.

Original issue reported on code.google.com by [email protected] on 23 Oct 2008 at 1:31

c-assign-in-condition false alarm

What steps will reproduce the problem?
1. Edit any cpp file and have c-assign-in-condition configured
2. put this text into main:
int i;
    if ( i != 5) {
    }
3.  Part != 5 is now underlined

I think simple fix to regex can solve this.

Original issue reported on code.google.com by [email protected] on 21 May 2009 at 12:04

Unset variables used at each template-file level

When new variables are set/assigned with `:let`, they are never `:unlet`.

There is a need to detect classical patterns to (i.e. uses of `:let`) in order 
to automatically release most resources. For other resources, a finalize hook 
may be defined.

This feature could be exploited to push/pop arguments to functions calls.


Original issue reported on code.google.com by [email protected] on 24 Jun 2011 at 5:03

N/A

What steps will reproduce the problem?
1. Install
2.
3.

What is the expected output?

What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 14 May 2010 at 5:10

g:mt_IDontWantTemplatesAutomaticallyInserted value not being retaining value from .vimrc

What steps will reproduce the problem?
1. set let g:mt_IDontWantTemplatesAutomaticallyInserted = 1 in .vimrc
2. open new vim instance
3. echo g:mt_IDontWantTemplatesAutomaticallyInserted

What is the expected output?
1

What do you see instead?
0

What version of the product are you using? On what operating system?
2.1.0 on WinXP

Please provide any additional information below.
commenting out the following line in after/plugin/mu-template.vim fixes the 
issue: 1047.
call lh#menu#def_toggle_item(s:AutoInsertMenu)

Original issue reported on code.google.com by [email protected] on 9 Dec 2010 at 4:57

Template's filenames are absolute

What steps will reproduce the problem?
1. Install the SVN version of lhCpp (r175)
2. Create a new header file in dir/a.hpp
3. Have a look at the second line of the file

What is the expected output?
/**@file       dir/a.hpp

What do you see instead?
/**@file       /home/myself/programs/test_vim_issue/dir/a.hpp

So file names are absolute, and I think it is not the normal behavior

Original issue reported on code.google.com by [email protected] on 16 May 2010 at 10:50

[Defect] Find_in_parents does not work under cygwin

Calling

lh#path#find_in_parents('/cygdrive/d/_P/tesfile', ['_vimrc_local.vim'], 
'file,dir', '^/\=$\|^[A-Za-z]:\+$\|^//$\|^\\\\$\|^[/\\]home[/\\]uidw8099$')

prints the warning:

The current file '/cygdrive/d/_P/testfile' seems to be in a non-existent 
directory: ''

It seems that the last_valid_path is wrong. This could stem from the fact that 
when opening the file the path is "~/d/_P/testfile" and "d" is a symlink to 
"/cygdrive/d".

Original issue reported on code.google.com by [email protected] on 11 Sep 2014 at 12:26

:Toggle on real variable name and on real values

The toggle-command `:Toggle` shall be able to work directly on real variable 
names (and not symbolic variable names built from the menu), and on real values 
(and not their textual equivalent).

This mode could be activated by banging the command -> `:Toggle!`

Original issue reported on code.google.com by [email protected] on 9 Dec 2010 at 11:58

lh#cpp#file#HeaderName shall be able to return a path relative to a specific directory and not to the current path.

What steps will reproduce the problem?
1. mu-template 2.0.3 + patched a.vim from lh-cpp
2. The following files: root/inc/foo.h, root/src/cpp/foo.cpp, 
3. Have a local vimrc in root that sets:
{{{
let b:sources_root = expand('<sfile>:p:h')
let g:alternateSearchPath = 'reg:#/src/cpp#/inc#,reg:#/inc#/src/cpp#'
}}}
4. edit root/src/cpp/foo.cpp
5. change directory to root/src/cpp/
6. `:echo lh#cpp#file#HeaderName(expand('%:p'))`

What is the expected output? 
`root/inc/foo.h`

What do you see instead?
`/absolute/path/to/root/inc/foo.h`

_Conclusion_
The path returned shall be made relative to `b:sources_root`. May be it
shall be an option that mu-template could take advantage of.
The error actually appears when first creating, from within vim, foo.cpp
from src/cpp/.

Original issue reported on code.google.com by [email protected] on 20 May 2010 at 10:59

[lhBrackets] the -escapable option of :Brackets should be re-though

We should be able to distinguish and treat accordingly the following cases:
1. "foo\"bar", in C strings
2. \{foo\}, in LaTeX ; '\(foo\)' in VimL

In the first case, the backslash (or any other specifiable character)
should prevent the mappings from expanding.

In the second case, the backslash (or even '\%' in VimL case) triggers the
expansion of the closing pair prefixed by a backslash.


The first case could be fixed with something like
`-context=function(NoStringNorCommentsNorBackslash')`. Is it an acceptable
workaround ? 

Original issue reported on code.google.com by [email protected] on 24 Oct 2008 at 10:02

:Toggle {var} {value}

The toggle-menu command `:Toggle` shall permit to directly set the value of the 
variable.

It shall also support auto-completion.

Original issue reported on code.google.com by [email protected] on 9 Dec 2010 at 11:55

[lhBrackets] delete both bracket characters on <del>, <bs>, x

Emacs' [http://mumble.net/~campbell/emacs/paredit.el Paredit] has some neat
behaviours: on <del>, <bs>, it deletes both brackets characters.

What will be supported
- <bs> and <del> in normal and insert mode
- x and X in normal mode
- a way to execute the deletion without triggering the deletion of both
bracket characters

What won't be supported
- the deletion of several characters that contain a brackets characters
won't remove the pair from the text

What need more thinking:
- changing the pair of brackets characters is not very ergonomic
- what if we are within a peculiar context like comments/string ?

Original issue reported on code.google.com by [email protected] on 19 Jan 2009 at 2:00

lh-vim-lib-2.2.5.vba broken

What steps will reproduce the problem?
1. Download lh-vim-lib-2.2.5.vba
2. Open it using vim
3. ":so %"
4. Start vim again

Then I get the following errors:

Error detected while processing /home/myhome/.vim/plugin/let.vim:
line   25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
Error detected while processing /home/myhome/.vim/plugin/lhvl.vim:
line   24:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
Error detected while processing /home/tiziano/.vim/plugin/ui-functions.vim:
line  248:
E15: Invalid expression: 
E15: Invalid expression: {
line  249:
E492: Not an editor command:       ¥ "variable": "ui_type",
line  250:
E492: Not an editor command:       ¥ "idx_crt_value": 1,
line  251:
E492: Not an editor command:       ¥ "values": ['gui', 'text', 'fte'],
line  252:
E492: Not an editor command:       ¥ "menu": { "priority": '500.2700', "name": 
'&Plugin.&LH.&UI type'}
line  253:
E492: Not an editor command:       ¥}
line  255:
E121: Undefined variable: s:OptionData
E116: Invalid arguments for function lh#menu#def_toggle_item
Press ENTER or type command to continue

Original issue reported on code.google.com by [email protected] on 27 Jun 2012 at 12:41

Function call depth is higher than 'maxfuncdepth' in lh#path#find_in_parents in autoload\lh\path.vim

What steps will reproduce the problem?
1. Use local_vimrc.vim plugin with _local_vimrc.vim file in project base dir 
(on network drive (H:))
2. cd into project base dir via bash script
3. start vim from bash script

What is the expected output?
nothing, or output of found _local_vimrc.vim file

What do you see instead?
"Error detected while processing function 
<SNR>17_Main..lh#path#find_in_parents..#lh#path#find_in_parents.. [and so on]
..#lh#path#find_in_parents:
line  24:
E132: Function call depth is higher  than 'maxfuncdepth'
E734: Wrong variable type for +=
line 43:
E132: Function call depth is higher  than 'maxfuncdepth'

What version of the product are you using? On what operating system?
latest lh-vim
vim 7.4 (gvim portable, run from usb drive (F:))
windows

Please provide any additional information below.
I believe the problem is in path.vim starting at line 481.
the recursive call is done before checking the current directory.
Although the _local_vimrc.vim file is in the base dir, the function checks all 
parent dirs (and will not find anything there).
Since there are too many parent dirs the script fails before reaching the break 
criteria.
Please add a 'maxdepth' to the brake criteria

Original issue reported on code.google.com by [email protected] on 11 Aug 2014 at 8:26

lh#list#Match() not needed

IMHO lh#list#Match() is not needed, since match() already accepts a list as the 
first argument:
    :h match()

What version of the product are you using? On what operating system?
lh-vim-lib, list.vim v2.2.6

Original issue reported on code.google.com by [email protected] on 8 Dec 2011 at 1:52

Line-wise surrounding messes the order to the lines

What steps will reproduce the problem?
1. open a C++ file with several lines
2. select 2 lines in the middle
3. surround with the "group-dox" template

What is the expected output? 
The lines selected shall be surrounded with //@{ and //@}, and the original 
order of the lines shall be kept

What do you see instead?
The first line after the lines selected is moved before the surrounded lines, 
and is joined with the first line from the template-file.

Original issue reported on code.google.com by [email protected] on 3 Apr 2012 at 5:52

Surrounding templates

It should be possible to surround a selection with a template.


Typical steps :
1. select text
2. hit v_CTRL-R_TAB (configurable)
3. type/select the name of the template to use

What is the expected output? 
The selection will be dispatched in the template visual-placeholders


This feature should also be accessible programmatically.


Original issue reported on code.google.com by [email protected] on 24 Jun 2011 at 9:41

mu-template is unable to take local vimrc defintions into account when opening new files.

What steps will reproduce the problem?
1. Have a _vimrc_local.vim that defines a variable b:foo used in a
{ft}.template file
2. vim foo.{ft}

What is the expected output? What do you see instead?
mu-template should have been able to use b:foo, alas it is not defined yet
when the template is expanded.

mu-template shall be able to force the execution of local vimrc plugins, or
any other similar plugins like project.vim, before expanding the template.


Original issue reported on code.google.com by [email protected] on 7 May 2010 at 3:00

Can't install lh-vim-lib, searchInRuntime, and bracketing-system on archlinux

What steps will reproduce the problem?
Install lh-vim-lib, searchInRuntime, and bracketing-system

in order to install mu-template for vim 7.2


What is the expected output?
No error msg!

What do you see instead?
http://img708.yfrog.com/i/screenshotne.png/

1.
      removed 2 files
2.
      Vimball Archive
3.
      extracted <doc/searchInRuntime.txt>: 283 lines
   4.
      wrote /home/mo/.vim/doc/searchInRuntime.txt
   5.
      extracted <plugin/searchInRuntime.vim>: 677 lines
   6.
      wrote /home/mo/.vim/plugin/searchInRuntime.vim
   7.
      Error detected while processing function vimball#Vimball:
   8.
      line 154:
   9.
      E154: Duplicate tag "lhvl#syntax" in file
/home/mo/.vim/doc/lh-vim-lib.txt
  10.
      did helptags
  11.



When opening a test file (1.c) :

#
"1.c" [New File]
#
Error detected while processing function
<SNR>31_TemplateOnBufNewFile..<SNR>31_Template..<SNR>31_LoadTemplate:
#
line 6:
#
E121: Undefined variable: g:mt_templates_dirs
#
E116: Invalid arguments for function
lh#path#GlobAsList(g:mt_templates_dirs, a:templatepath)
#
E15: Invalid expression: lh#path#GlobAsList(g:mt_templates_dirs,
a:templatepath)


Original issue reported on code.google.com by [email protected] on 18 Feb 2010 at 4:40

Attachments:

lhBrackets requires lh-dev

after/ftplugin/c/c_brackets.vim from lhBrackets/lh-map-tools uses 
lh#dev#option#get and thus generates some errors when opening/creating c files 
while brackets-addon-info.txt is missing the dependency on lh-dev

Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 7:22

Template surrounding is called multiple times

What steps will reproduce the problem?
1. open a C++ file with several lines of codes
1. select several lines
2. Execute a template-file
3. Enter the template-file name "group" or "if"

What is the expected output? 
The user is requested to enter the name of the template-file once

What do you see instead?
The user is requested once per line selected

Original issue reported on code.google.com by [email protected] on 3 Apr 2012 at 5:49

problems using UT with vim-addon-manager

I'm trying to use your UT vim addon with the vim-addon-manager system.  It 
works by getting the VCS system, in this case SVN, to check out the addon from 
the URL given in the -addon-info file.

What steps will reproduce the problem?
1. $ svn co 'http://code.google.com/p/lh-vim/source/browse/#svn/BTW/trunk'
2.
3.

What is the expected output?
Whatever svn does when a checkout works correctly.

What do you see instead?
svn: URL 'http://code.google.com/p/lh-vim/source/browse/#svn/BTW/trunk' is not 
properly URI-encoded


What version of the product are you using? On what operating system?
N/A

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 8:51

lh-cpp options shall follow new lh-dev+local_vimrc way

lh-cpp options are expected to be defined in the cpp_options.vim files.
Alas this approach doesn't cope well with project specific settings nor with 
multi-languages options.

One of the features of lh-dev is to provide a framework for these kinds of 
options.

lh-cpp options policy shall migrate to lh-dev+local_vimrc policy.

Original issue reported on code.google.com by [email protected] on 21 Mar 2012 at 2:03

Cannot define function in mu-template file

What steps will reproduce the problem?
1. write the following template file
VimL: function! s:echo(str)
VimL:   echo a:str
VimL: endfunction
2. save it in after/template/echo.template
3. execute :MuTemplate echo

What is the expected output?
No error

What do you see instead?
Error detected while processing function 
<SNR>49_TemplateAndJump..<SNR>49_Template..<SNR>49_InterpretLines..<SNR>49_Inter
pretCommand:
line    6:
E126: Missing :endfunction


What version of the product are you using? On what operating system?
Linux Ubuntu 8.04
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun 12 2009 07:07:08)
Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47, 50-56, 
58-64, 66-73, 75, 77-92, 94-107, 109, 202, 234-237
Mu-Template 2.0.3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Aug 2010 at 11:33

lh-map-tools: Customizable Surround() behavior

I often like this kind of behavior:
Select a few lines in visual mode, hit '{' which surrounds the code
with braces, but also two newlines (one before and one after the
selected lines). Additionally, the selected lines should be shifted to
the right (as if you would do '>' in visual mode). And possibly put
the cursor before the opening '{' :)


Original issue reported on code.google.com by [email protected] on 26 Feb 2008 at 8:56

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.