Font and Font Size in gvim
Friday, April 2, 2010
Edit ~/.gvimrc and put the following lines:
set guifont=*
set guifont=Courier\ 10\ Pitch\ 12
Here "Courier 10 Pitch" is the name of the font and 12 is the font size.
Edit ~/.gvimrc and put the following lines:
set guifont=*
set guifont=Courier\ 10\ Pitch\ 12
Here "Courier 10 Pitch" is the name of the font and 12 is the font size.
When you are "lessing" a file, just type :gv to open the file in vim for editing. Upon quitting vim, it will return back to the less-view.
Read more...Normally, to copy from inside vim 'yy' and 'p' works. But if you are copying from an external application (say web browser or some other editor) it will not work. The easiest way is to do Edit->Paste.
But, to make life easier, we can remap it. Put this in ~/.vimrc
map
map
Now Ctrl+c and Ctrl+v works for copy paste in vim.
If you are somewhere in the code between a #if and a #endif: