Wednesday, August 22, 2012

Re: gedit to gvim/vim teething issues

Thanks for the fast replies. I have since tried snipmate and yes that is exactly what I am looking for. Awesome, cause I use lots of snips daily.

nnoremap ,cd :cd %:p:h<CR>:pwd<CR>
nmap <silent> <leader>te :!/usr/bin/xfce4-terminal<CR>
With these two mapped keys I can switch the current VIM window to the $PWD of the file I am currently editing and then execute the command to run a terminal in the directory. Almost perfect, but while in terminal the gVim file is unavailable. Is there a way to run the terminal concurrent with the opened file so I can edit the file, run commands in the terminal to edit the file and back and forth like that?

also, it seems like gVim gets hung up when I run a sed command let's say on the file. I get a message box informing me the file has changed with the options to hit ok or load file. But often enough gVim gets hung up puking back an 814 error and I have to quit out and re-open my files. I had this sorta problem with gedit where it would crash frequently opening and editing large text (500K-5Mb+ on the extreme end). I turned to gVim hoping it will be better able to handle such large files. My only other alternative until then has been to use mousepad/leafpad, and that is pretty bare bones text editing there.

Registers does sound like what I must be looking for and I will certainly check out yanking if that helps me to more visually access past copy/paste items.

yeah I use sed so much to edit html files I try to escape as little as I can get away with and so sed -ri functionality is what I am looking for. I will also look at the \v \V options to see if I can make some palpable transition.

well again thanks for the quick replies as I wade my way thru things here. I am sure I can track down most of this in the manuals and I will continue my forage thru, but I just needed to get a quick fix on a few things to get the ball rolling again while I slowly kill the urge to open gedit to get things done.

I did find the 1600 or so wikiTips that all look like they will be useful at some point.

cheers

--
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

No comments:

Post a Comment