vim mappings for multiple files.

2012-08-06 1 min read Vim Tips

If you open multiple files in vim with command line option. Then the only way to move between the files is “:n” and “:N”. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use.

map  :N
map  :n

And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this:

Continue reading

cream bash ide – vim with bash support

2012-03-14 1 min read Fedora Linux Uncategorized

 

English: Screenshot of graphical vim (gvim) sh...
Image via Wikipedia

Here you can find the cream editor. This is basically vim editor with lots of customizations thus making it simpler for the users to use the editor directly.

This version already has the bash and perl support plugins and thus you can start using them as IDE without the need to add any plugins. It has a simple and advanced mode. In the simple mode you need not worry about all the modes of the vi/vim editor. How cool is that 🙂

Continue reading

Get yourself som new themes for vim

2012-02-15 1 min read Vim Tips

Well, you would already have some themes for your vim, by default. And if you did not like them then you would have added some of your own too (downloaded from vim.org). But, those are something, that you might not still like and want to make some changes.

Here’s, a new way to do it. Just go to the link mentioned below and click on Generate Dark or Generate Light. You can generate as many as you like and once you like the theme, simply click on vim in the bottom and download 🙂 BTW, you can generate textmate and Emacs theme as well.

Continue reading

g flag in :s useless in vim

2011-11-05 1 min read Vim Tips

Some time back there was a post on vim_use list about the “/g” flag for the search and replace functionality of the vim. And the response of “Tim Chase” on the same was very elaborate and interesting. I always knew that “/g” is only for replacing multiple occurrences on the same line, but here are few things that I did not know.

   :0/this/s//that

This one will only replace the first occurrence of this in the whole file.

Continue reading

debug call function() to debug a function in vim

2011-09-04 1 min read Vim Tips

Drawn in Autosketch + pasting in words from Excel
Image via Wikipedia

Have you ever wished that you could either see what is going on initially at the vim startup like you could do with C program in the gdm mode, but really did not want to go through gdb. Or rather you sometime felt that some function defined by some plugin is causing some issue and you wanted to debug just that function. Well you need not wish anymore, the functionality is already there.

Continue reading

vim autocomplete – automagically without tab.

2011-04-16 1 min read Learning Linux Vim Tips

Lets first do the setup in one line. Get my vim script downloader.

Use the script to add the script with script ID : :1879 (vim-autocomplpop) to your list of plugins for vim and you  are done.

 

If you are using snipmate, then make sure that you read the description of the plugin to add the required lines to the vimrc file to get the full functionality. You would love to type henceforth in your favourite editor. We will talk about more on Intellisense in few days time.. Chao till then.

Continue reading

what is vim in 6Kb..

2011-03-16 1 min read Learning Linux Vim Tips

If you thought that vim is very bloated and nothing abuot this editor can be small, then you are not alone. I was myself in the same bandwagon.

 

Well, I never thought that there could be anything about vim that can be explained in Kb’s, lest alone the complete vim features. But looks like vim.org had thought about this and thus came up with this. And here is the direct link to the vim in 6kb in English.

Continue reading
Older posts Newer posts