On Friday, January 17, 2020 at 4:01:09 PM UTC-6, Erhy wrote:
>
> Hallo!
> My task is, to convert many files encoding in latin1 to UTF-8
>
> I know the sequence which works:
>
> open a file
> set set fileencoding=utf-8
> set bomb
> wrtite to another file
>
> but there are problems with the argume
> Although nowhere stated explicitly, I believe Vims python implementation
> is not exactly compatible with conda. Please try with a normal python
> distribution.
>
>
> Best,
> Christian
> --
> Man soll die lieben, über die man befielt, aber man soll es ihnen
> nicht sagen.
> --
I had to change computers recently. In my previous computer I was compiling vim
with python to avoid this issue also, but I had no time to compile it yet
so I downloaded a 64 bit build of vim for windows:
MS-Windows 64-bit console version
Included patches: 1-1649
Compiled by appveyor@APPVYR-WIN
When in netrw if I press 't' it will open the file in new tab.
If I select multiple lines with visual mode and press 't' nothing will open.
What would be a good mapping for opening a file in the background?
Do some of the other file manager plugins do this already?
Thanks!
--
--
You received
>
> That is a reasonable request. If the "start" packages were not loaded
> then :packadd can also look there.
>
When I saw these replies I thought, "well now I have some vacation days, this
is a good time to try to go and implement this".
But I see Bram already added it himself, so Thank Y
On Monday, August 14, 2017 at 11:16:50 PM UTC-5, Tony Mechelynck wrote:
> On Tue, Aug 15, 2017 at 5:44 AM, skeept wrote:
> > I have some plugins in the locations:
> >
> >
> > ~/.vim/pack/bundle/start
> > ~/.vim/pack/bundle/opt
> >
> > if I start
I have some plugins in the locations:
~/.vim/pack/bundle/start
~/.vim/pack/bundle/opt
if I start vim with
vim --noplugins
vim -u NONE
then I can load plugins from opt but not from start.
So if a plugin say, unimpaired is in
~/.vim/pack/bundle/opt
I can load it with
packadd unimpaired
(and
> In your first attempt, should be . See :help key-notation.
Thank you!
--
--
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
I tried the following mapping for searching for the current line:
nnoremap gsl /=getline('.')
unfortunately this actually searchs for the string I give it literally.
So I defined instead the mapping
nnoremap gsl /^R=getline('.')^M
where ^R is obtained with typing ctrl-v followed by ctrl-r and
>
> Is this working for anyone?
>
> I had to re-install gvim7.4 and use that as the default program.
I had exactly the same problem. I followed the instructions in the first answer
in this link to solve the issue. It works for me now.
http://superuser.com/questions/655600/i-cant-set-a-pro
Hi Dominique and Luc,
thanks you for the advice. I agree that it is not a good idea to blindly
replace everything. The most common case for me is probably static_cast so I
would do that by default.
> In lh-cpp (*), I have 3 mappings that transform C casts into C++ casts -- and
> 6 more to cas
There is a switch in g++ that warns about c style casts.
I will try to fix those but there are plenty in the project where I am working.
Can someone recommend a function that would allow to do this in vim?
Or outside vim, can anyone recommend a tool that would be useful in doing this?
Thank you!
On Thursday, August 27, 2015 at 5:14:29 AM UTC-6, Yukihiro Nakadaira wrote:
> On Thu, Aug 27, 2015 at 7:30 PM, skeept wrote:
> When viewing the attached file with gvim I get the screenshot attached.
>
> I am using Terminus font but i think it is possible to see this with other
Hi All,
I use vim as much as possible, but today I saw a coworker do something
interesting with TextPad.
He would use find with a string or regular expression. Then he can mark all
matching lines.
He can repeat the process with several strings.
After that he would copy all the marked lines and
>
> what version are you using, as with my version it works as expected
>
>
>
> :call unite# will complete with functions that start unite# and
>
> not at the beginning of the list as in your case.
>
Hi Chris,
my current vim version is 7.4.265, compiled this morning.
I can reproduce the beh
Hi all,
is there a setting that I can use that will allow me to complete a function
with # in the name?
The current situation is as follows:
Suppose I want to call a function called unite#custom#alias()
If I type
:call unite
and hit multiple times then eventually matching completions will c
When I use :e file I can use to give me completions matching the file
name I am typing if it has the same case.
Is there a setting to allow completion even if the the case does not match?
Regards,
Jorge
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your
>
> The : in your mappings is what ends visual mode.
>
> You can't avoid this, but you can go back into visual mode with the same
> region as you had, simply by adding 'gv' to the end of your mapping.
>
> :help gv
Thanks Ben,
I modified my function and mappings to the following:
function! Ju
I have the following function and mappings:
function! JumpToNextNonMatching(direction)
let flags = ''
if a:direction == -1
let flags = flags . 'b'
endif
let ntimes = max([v:count, 1])
let i = 1
while i <= ntimes
let i = i + 1
let curr_line = getline('.')
let spattern =
Is there a way of enabling swap files for files say less than 10Mb but
disabling swap files for files or larger sizes?
Thanks,
Jorge
--
--
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 ht
Following some vim tip, I can copy all the lines matching TODO to a register u
with
quq -- clear register u
:g/TODO/y U -- append of the lines matching TODO to register u
is there a similar way that I can append the line matching and the line
following the matching line, for each line t
If I select a region with some strings and reformat the region with gq some of
the strings there will be split in different lines...
This causes compilation error.
Right now what happens is
"This is a quite long string"
==>
"This is a quite
long string"
The final result should be
"this is a qu
>
> Think about adding a configurable function (like status line) and be
>
> done forever.
>
> Marc Weber
This should be the best way to go about it.
Jorge
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For
>
> When using Vim in a console (be it Windows cmd.exe, Cygwin bash, the
>
> Linux text console, Mac Terminal, or any of a number of emulators
>
> displaying through X11 such as xterm, mlterm, konsole, gnome-terminal,
>
> etc., Vim has no knowledge of the font face, the terminal does it all.
I have this command in my vimrc which I got from the internet:
command! Kwbd let kwbd_bn= bufnr("%")|enew|exe "bdel ".kwbd_bn|unlet kwbd_bn
this keeps the view but I would prefer to have another buffer from the list
opened in the window instead of a new one. If no other buffer in the list then
For anyone interested the way I solved this was the following:
I noticed that the linking step when compiling was done with:
cc -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o
tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o
attacher.o pty.o p
>
> Also, it's possible that screen is linked to the legacy termcap library on
> Solaris rather than /usr/lib/termcap (which sym-links to libcurses). You
> can check that using ldd. If it's linked to the legacy termcap library,
> you can't use TERMINFO to fix it.
>
Thanks for the info.
ldd scr
I am trying to use vim in a computer sunos computer
uname -a:
SunOS cmc01 5.10 Generic_142910-17 i86pc i386 i86pc
At this point I was able to compile ncurses, screen and vim.
I can only login to the machine from the work laptop.
If ssh into the machine and use vim with the vim setting t_Co=256 t
Hi,
I recall someone having a(non-official) copy of the vim sources on github.
This is useful for me because I can download the sources as a zip file. The
network configurations of the place where I work don't allow to clone directly
from googlecode (or from other places either).
Could someone
What would be a good way of viewing the mappings that are only local to the
current buffer?
Regards,
Jorge
--
--
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.
On Friday, January 25, 2013 5:57:30 PM UTC-5, Adolfo Olivera wrote:
> Hello List,
>
> Does anyone have some examples on mappings to switch windows
> faster CTRL-W, h and CTRL-W, l ?
I use the mappings
nmap
nmap
this makes the movement between windows very convenient (tab + hjk
On Monday, January 14, 2013 3:57:27 PM UTC-5, Jack Gates wrote:
> On Mon, Jan 14, 2013 at 3:55 PM, stosss wrote:
>
> > On Mon, Jan 14, 2013 at 3:49 PM, skeept < wrote:
>
> >> Hi I was reading some documentation and I came across
>
> >>
>
>
Hi I was reading some documentation and I came across
|v_aquote| a" extend highlighted area with a double
In my case I start visual mode and type a" but nothing seems to happen. Is this
supposed to surround the visual selection with "?
I tried this with vim -u NONE --noplug
On Saturday, January 12, 2013 2:46:34 PM UTC-5, David Fishburn wrote:
> On Jan 12, 2013, at 12:10 PM, skeept wrote:
>
>
>
> >>
>
> >
>
> > Would it be possible to define a mapping for p that, when in visual mode
> > checks if I have sp
On Friday, January 11, 2013 10:00:37 PM UTC-5, skeept wrote:
> On Friday, January 11, 2013 8:32:44 PM UTC-5, Tim Chase wrote:
> > On 01/11/13 19:26, skeept wrote:
> >
> > > If I have something stored in a specific register say register z
> >
> > > and sele
On Friday, January 11, 2013 8:32:44 PM UTC-5, Tim Chase wrote:
> On 01/11/13 19:26, skeept wrote:
>
> > If I have something stored in a specific register say register z
>
> > and select something visual then I try to paste over it with "zp
>
> > b
If I have something stored in a specific register say register z
and select something visual then I try to paste over it with "zp
but this doesn't seem to do anything...
Is there a easy way of accomplishing this?
Regards,
Jorge
--
You received this message from the "vim_use" maillist.
Do not to
>
> 'scrolloff' is a global option, :setlocal can be used to change a global
>
OK, I understand why this is the case now.
I will remove that setting from the autocommand.
Thank you.
Jorge.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the t
Hi,
I have the following autocommand
"set readonly files to autoread
autocmd BufRead,BufNewFile * if &readonly == 1 | setlocal autoread so=0
\ sbo+=ver,hor | endif
I usually set so=2 in my vimrc. After I use vim help the value of so is changed
in all buffers to be 0.
I am sure tha
>
> >
>
> > snippet def "def"
>
> > def ${1:${VISUAL:foo}}
>
> > {${2}} ${3:{${4}}} ${5:{${6}}}
>
> > $0
>
> > endsnippet
>
>
>
> This does not work for me. The optional text is not surrounded by
>
> braces.
It should work (it works for me), but you have to hit twice (the first
one
On Friday, November 2, 2012 9:50:51 AM UTC-4, Charles Campbell wrote:
> skeept wrote:
>
> > Thank you very much! With the help of your plugin HILINKS and your
>
> > last suggestion I was finally able to get it to work. The version I
>
> > have in my config file
On Friday, November 2, 2012 5:44:35 PM UTC-4, Marco wrote:
> Hi,
>
>
>
> I discovered the plugin ultisnips and like it a lot. However, I have
>
> problems setting up the snippets (BTW: I don't know python). I need
>
> a snippet that has two mandatory arguments and several optional ones
>
> (n
On Wednesday, October 31, 2012 5:45:57 PM UTC-4, DrChip wrote:
> xxx wrote:
>
> > I would really appreciate a specific example on how to acomplish this.
>
> > My last try is syn region texComment matchgroup=texStatement
>
> > start='{tabular}{' end='}' \ contains=@NoSpell but it doesn't work..
On Tuesday, October 16, 2012 3:10:38 PM UTC-4, Charles Campbell wrote:
> > I would gladly put the specific rules in my after/ftplugin, but
>
> unfortunately I don't know exactly what to put there. Could you please
>
> tell me what specifically I would put there or point me for some files
>
>
On Tuesday, October 16, 2012 11:51:23 AM UTC-4, Charles Campbell wrote:
> skeept wrote:
>
> > On Tuesday, January 15, 2008 2:35:06 PM UTC-5, (unknown) wrote:
>
> >> Hi!
>
> >> I am using the built in spellcheck for vim 7 and I want to use it with
>
&
On Tuesday, January 15, 2008 2:35:06 PM UTC-5, (unknown) wrote:
> Hi!
> I am using the built in spellcheck for vim 7 and I want to use it with
> Latex-files. There are some fillips which are irritating me.
> So, for example if I have a table defined as:
>
> \begin{tabular}{c}
> ...
>
> The c in t
When using a function from a plugin, say F1() I want to check if the result is
not the empty string, if it is call some other function, F2(), if it is not
execute the string resulting from function F1().
Calling F1() has a side effect like moving the cursor around so I don't want to
call it more
Hi, I use the snippet plugin ultisnips.
Assume I have two snippets:
snippet snip1 "snippet1" !w
( $1 - $2 )$0
endsnippet
snippet snip2 "snippet2" !w
[ $1 - $2 ]$0
endsnippet
I use to expand the snippets and move forward to the next placeholder:
inoremap =UltiSnips_ExpandSnippetOrJump()
I also
On Saturday, August 25, 2012 10:02:30 AM UTC-4, Michael Henry wrote:
> All,
>
>
>
> I'm interested in compiling Vim for Windows. Ideally, I'd like
>
> to replicate the "Vim Without Cream" build associated with the
>
> "Cream" project:
>
> http://cream.sourceforge.net/
>
>
>
> The Cream FA
>
>
> The following mapping works:
>
>
>
> imap :call SelectImapOrUlti()
>
>
>
> I'm not 100% sure why =SelectImapOrUlti() doesn't work,
>
> but I guess because it's only meant to insert text.
>
>
>
> Btw. the LaTeX-Suite might not be the best solution. Here's what
>
> the bot vi
On Monday, August 20, 2012 6:23:53 PM UTC-4, Simon Ruderich wrote:
> On Mon, Aug 20, 2012 at 01:42:04PM -0700, skeept wrote:
>
> > Hi,
>
> >
>
> > Suppose I have two functions Func1 and Func2. I would like to
>
> > know if it is possible to define a i
Hi,
Suppose I have two functions Func1 and Func2. I would like to know if it is
possible to define a imap that first calls Func1
(imap :call Func1())
if the cursor moves as a result of this call then we are done, otherwise it
would call Func2 after calling Func1.
Thank you.
--
You received
I tried this on Windows 7, vista and on Linux.
If I have a window maximized vertically, then open a new tab (say :tab he)
and then close that tab, so the tab line disappears the gvim window loses a
line.
I would like it to keep its original size since I had it vertically maximized
to start with.
On Monday, July 16, 2012 4:13:23 PM UTC-5, Douglas Mayle wrote:
> Thanks for the tip on , I hadn't known about it!
>
>
> Long story short, I was using 'autoclose' to do what delimitmate
> does, and was looking to add the CR expansion myself. It turns out that
> delimitmate does everythin
On Friday, July 13, 2012 10:13:22 AM UTC-5, Ben Fritz wrote:
> On Friday, July 13, 2012 8:16:44 AM UTC-5, skeept wrote:
> >
> > what I would like to have is
> > if has("win32") and shell.find('bash')
> >= 0
> > "
On Thursday, July 12, 2012 8:28:52 AM UTC-5, skeept wrote:
> > is it possible for you to turn off the HTML formatting in whatever
> client you're using? It isn't translating properly on the Google
> Groups interface. I don't know what it looks like in an email.
>
> is it possible for you to turn off the HTML formatting in whatever client
> you're using? It isn't translating properly on the Google Groups interface. I
> don't know what it looks like in an email.
Sorry about that, I am just using the page in google groups to write the
message, google grou
> Generally, mixing Cygwin and non-Cygwin programs always causes trouble.
>
> In your case, I suspect, Vim fails to create temporary files for the diff.
> So please show us the output of :echo tempname() from Cygwin vim and
> gvim.
>
> Is this directory accessible from gvim/Cygwin vim (consider
Hi,
I am trying to start vimdiff from a cygwin shell but it is not working properly.
I start it with
gvimdiff.bat file1 file2
and the error messages I get is:
E810: Cannot read or write temp files
E97: Cannot create diffs
I tried setting different values for the TMP variable in _vimrc, somethi
On Sunday, June 17, 2012 9:53:43 PM UTC-5, AndyHancock wrote:
> On Jun 17, 10:13 pm, Tony Mechelynck
> wrote:
> >On 18/06/12 03:44, AndyHancock wrote:
> >>On Jun 17, 8:16 pm, Tony Mechelynck
> > wrote:
> >>>On 17/06/12 22:14, AndyHancock wrote:
> I'm encountering the following error attem
> experts:
> this might be an old topic...but surprisingly I don't get a good answer
> from google easily...
> in my work I use linux and I already swapped the esc/caps with xmodmap, so I
> don't have issue to do it for the whole computer (not just for vim).
>
>
> but from time to time I need
On Tuesday, June 12, 2012 12:22:44 PM UTC-5, Ben Fritz wrote:
> On Tuesday, June 12, 2012 10:38:34 AM UTC-5, skeept wrote:
> > Hi,
> >
> > I am working with someones elses file, some of them are readonly so I
> > cannot really just read read of the annyoying ^M in th
Hi,
I am working with someones elses file, some of them are readonly so I cannot
really just read read of the annyoying ^M in the end of the line.
Some lines have this charather others don't.
Even if I do
set ff=dos they are still changing.
I was thinking that it should be possible to hide thes
If I have a latex table with long line I always enter newline after //
But if I select the table visually and use the Q command to format it
puts the // in the middle of the text.
I would like to know if there is an option to tell vim not format the table,
but enter a newline after it sees a //.
Hi,
in my vimrc I have
map
This is very convenient for all the window commands (like close, go to
previous, go to top, etc...)
but it seems that this prevents me from using the ctrl_i command. So
if I type ctrl_o then I cannot go
back just by typing ctrl_i.
Is there another way of using this fe
Thanks!
On Feb 11, 4:01 pm, Gary Johnson wrote:
> On 2012-02-11, skeept wrote:
> > If I type
> > :set lines?
>
> > I get the width of the current terminal.
> > I would like to know if there is a way of getting the width of the
> > current window.
>
> &g
If I type
:set lines?
I get the width of the current terminal.
I would like to know if there is a way of getting the width of the
current window.
The reason I would like to do this is that I would like to set up my
statusline in such a way that
some information is only displayed if the width of t
I have been updating my vim windows with Yongwei's build (http://
wyw.dcweb.cn/#download) listed in
http://www.vim.org/download.php but it the last two weeks I wasn't
able to access this page.
What I like in the binary that is provided there is that it was
compiled against python 2.7, while cream
68 matches
Mail list logo