Re: Vim tip (was Re: Suspend/Resume issues - Custom scripts notrunning? Mouse frozen?)
But why should we do all these handy..
when we have plugins already. check it out.
On Mon, Mar 2, 2009 at 5:52 PM, Andrew McGlashan <email@example.com>
Excellent Chris, I put them into my /etc/vim/vimrc.local file along with the following useful mods:
Chris Bannister wrote:
If you use vim for your editing, put this in your .vimrc file:
" automatically give executable permissions if file begins with #! and
" contains '/bin/' in the path
if getline(1) =~ "^#!"
if getline(1) =~ "/bin/"
silent !chmod a+x <afile>
au BufWritePost * call ModeChange()
map <F10> :set paste<CR>
:map <F11> :set nopaste<CR>
:imap <F10> <C-O>:set paste<CR>
:imap <F11> <nop>
" Added this setting for swp file location, so as not to adjust
" date/times of actual directory holding the file(s) being edited
" reference: http://www.vim.org/tips/tip.php?tip_id=20
" - this works even if the working directory is writeable..
Now I want to find some more gems like this... you have inspired me.
Broadband Solutions now including VoIP