0
votes
1answer
25 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
0
votes
2answers
38 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
1
vote
1answer
37 views

How can I check if the cursor is at the end of a line?

Gentleman, Simple question about Vim! How can I check if the cursor is at the end of a line using a function in vimrc? []'s
0
votes
1answer
29 views

Should I bother moving stuff from vimrc to gvimrc?

Is is worth moving gui-related options out of my vimrc and into a gvimrc if there's only a couple such options? I'm kind of inclined to keep everything in one place and house gui options inside if ...
1
vote
1answer
183 views

How do I set the cursor to stop when it hits the end of a line in Vim?

(Disclamer: I'm new to Vim.) I've mistakenly managed to enable cursor movements to travel anywhere on the screen, i.e. beyond end of lines. This makes it very tedious to spot redundant whitespaces, ...
1
vote
2answers
365 views

Corrupt vimrc file

I installed janus for my macvim (I am running Snow Leopard) and everytime I go to edit the ~/.vimrc file I get these errors: Error detected while processing function Edit: line 7: E319: Sorry, the ...
0
votes
3answers
2k views

Mapping keys in VIM on Mac

I had a previous problem that was solved, but it seems I am stuck once again. I'm trying to reassign the keys for switching between Windows to be more intuitive. I've found that you should be able to ...
1
vote
1answer
131 views

Starting vim at top of the screen

I'm an avid MacVim user and every time I launch it the window starts about 2 rows too far down on the screen to where I have to drag it up to the top of my screen every time. Is there anything I can ...