Previously I was on Ubuntu with vim/cscope.
Now I changed to CentOS due to team requirement, which also has vim and cscope:
vim version: 8.0
cscope version: 15.6
Then I went to c project, and cscope -R. I was in the cursed-based GUI, the search is ok with that GUI.
The issue is when I was in one file, and tried to use vim command like :cs find g xxxx.
It seems no reaction at all, the cursor just went back to where it was and no search result came up. That works good in previous Ubuntu
Anyone can help? Thanks
Related
I installed PyCharm on Ubuntu 18.04 by extracting the tarball into /etc/ and creating a shortcut through the Tools menu.
I installed IdeaVim through the marketplace, and the Vim plug-in is working as expected.
Now I want to import my vim settings from my .vimrc. I just copied the .vimrc to ~/.ideavimrc and reloaded my IDE. However, my remappings are not working. I tried sourcing the rc file using :source ~/.ideavimrc, but this doesn't work either.
The only content of my .ideavimrc file is this line:
xnoremap p pgvy
I really hate the paste-setting of vim, so I need this remapping and I'm lost. Thanks for the help.
This was an actual bug with Idea VIM plugin and the .ideavimrc file, found here.
It has been resolved since.
My installation of vim is behaving strangely (which I suspect started happening after I upgraded the distribution to 16.04 from 14.04).
The issue is that whenever I open a file vim edits it and replaces the first character with a g. For example if I have a file foo.txt with content:
stack
over
flow
And if I open the file with $ vim foo.txt, vim opens it with content:
gtack
over
flow
Note that I already reinstalled vim and it didn't help.
Thanks to the tips from Ingo Karkat I was able to figure out that this was a problem with the version of ssh client (MobaXterm) I was using.
As I updated the client to 9.4, the normal behavior has been restored.
In vim 7.3 on OSX, if I type
vim ~/myfiles
vim will put me into the Vim File Explorer for that directory, and I can open or rename files.
In vim 7.4 on Ubuntu, I get the unhelpful error message
"~/myfiles" is a directory
Looking through the compiled options (vim --version) and online documentation, I see no obvious way to activate this functionality through, say, a command-line or compile-time option. It is such a great feature of vim that I'm surprised it is not enabled on the version of vim available in the Linux package.
Use the :E command for the explorer mode.
The ability to edit a directory like this depends on a plugin. Most of the time, that plugin is the "netrw" plugin provided with Vim in the official runtime files. In Ubuntu (and Debian) you install that runtime separately so that every Vim package can use it rather than duplicating functionality. Try installing the vim-runtime package, and maybe a more feature-full Vim while you are at it, if you have not already done so.
To summarize and answer my own question...
File explorer functionality is actually provided by a plug-in, "netrw", which seems not to be installed by default in the two or three versions of vim I tried via apt-get.
Installing NERDTree solved the problem brilliantly - it can do so much more than the default explorer. I have not yet figured out how to rename a file using NERDTree - something that is easy with 'netrw', but that is a minor irritant and there is probably a way to do it.
I installed Vim 7.4 in a Windows 8 machine and it was working fine. After installing all plugins in my .vimrc, GVIM crashed and it wouldn't open again. I could manage to use VIM from cmd but not without some errors. My first try was to reeinstall GVIM completely. After reinstalling, it worked fine but if I also reinstall my plugins it would crash and not open again. What should I do?
I removed all plugins and installed one by one until I got the error, which was with the Ultisnips plugin. I happen to know that this plugin requires VIM with Python support, which my VIM probably wouldn't have. To test this, run vim --version and look for a +python (or run echo has("python") from inside GVIM and look for a output of 1). In my case, it was -python, which was confusing, since I have Python installed. According to this answer, you need to install Python after installing VIM, so I did it and it worked.
So i'm rocking a VIM version 6.3.82 on rhel 4.9... which i'd imagine is the biggest culprit. (no chance of an upgrade any time soon)
I downloaded the latest Rails.vim and have installed this many times on my home machine.
I try the command :Rails! and i Get "e493: Not an editor command."
In my .vimrc i've added
set nocompatible
syntax on
filetype plugin indent on
Am i doomed with a dated vim to use most any plugins? Am i missing something in my .vimrc to enable vim plugins?
Any direction is appreciated. :p-
TIA,
Kirby
You'll need to use an old version of Rails.vim it looks like. The last version that worked with Vim 6 is version 2.1:
http://www.vim.org/scripts/script.php?script_id=1567
You may be able to compile your own version of vim in your home directory if you want to use the latest Vim and Rails.vim.