I have some character maps for typing braces that I'd like to behave differently based on the file's extension - I imagine that would be pretty useful ability to have in general.
Any ideas on how to make this happen from my .vimrc or a plugin?
Thank you!
...
Hi,
I was wondering if it would be possible to run the vim spell checker while coding with PHP.
I can run it if I disable syntax highlighting, and it highlights almost all methods/function names because they are not English words.
So, my question is this, can I run the spell check on just the strings within PHP files?
For example,...
Okay guys, you're my only help :)
I have GVIM v. 7.3, Exuberant CTags 5.8, omnicppcomplete (0.41) - all latest, to be exact.
I'm trying to generate tags to use in VIM, but it seems to totally ignore data in tags file.
I've used ctags to generate tags file for bada framework - the file seems to be okay, class definitions present etc. I ...
I recently noticed how to configure bash to do case-insensitive filename completion (in /etc/inputrc, add: set completion-ignore-case on), now how do I get this in vim?
...
I like to use hlsearch but I hate to keep everything highlighted after searching, to solve this problem I could simply use :nohlsearch or an abbreviation of it but that is still to much effort so I decided to try to do that on pressing escape. What I came up with is:
nnoremap <ESC> :nohlsearch<CR>
This works exactly as I want it to in...
When I edit multiple files I oftentimes want to go back and forth between the last edited files. I know about :bn(ext) and :bp(revious) to switch between buffers but they don't keep the history of the last used files. Instead they use the order in which the files were opened. E.g., if I opened the files in this order
A, B, C
an my nav...
Say that I have this simple text in (g)Vim:
a b c
a b c
a b c
a b c
a b c
after changing to visual block selection mode how can I can select the whole 3rd column? Ctrl+V G selects whole text. I am looking for a keyboard shortcut for selecting a whole column selection, if any exist.
Thanks.
...
Is there a possibility to highlite current line with cursorline over folding highlite?
...
I have the following code in a vim file that it's auto sourced when editing php files. But I can't make it work.
"PHP config
if !exists("g:addPath")
let g:addPath = 1
let $PATH=$PATH.';C:\Program Files\Mozilla Firefox'
endif
function! MakeThisUrl()
let s:url='http://localhost/'
let s:url=s:url. expand('%')
return s:url
endfu...
When I try to do a git commit -a, I get a nice vim instance. I type in my message, do :wq, vim closes down and the terminal has the message,
Aborting commit due to empty commit message.
Pursuant to this question I made sure my core.editor says "gvim" (so does the user.editor, fwiw), but I still get that error message.
Does anyone ha...
In my .vimrc I have the following snippet:
if has('autocmd')
filetype plugin indent on
syntax on
but when I start vim it shows the following error:
Can't open file /usr/share/vim/syntax/syntax.vim
error seems to have occurred on syntax on line in .vimrc.
I do not have syntax.vim in path /usr/share/vim/syntax though I have...
Guys, I am learning vim and it is great. But the problem with vim/gvim is that it doesn't support any complex scripts like Devanāgarī. It is not rendered properly. See the screenshots below:
Rendering in Vim
Correct Rendering which is displayed gEdit/emacs/KWrite
Is there any way to make vim/gvim support complex scripts? This affe...
So I am giving Vim , a serious try for coding my python apps.
However Vim is proving so flexible, I was thinking to use it as my main editor at work (lawyer / legal documents) . The problem is that my mother tongue is not English but Greek. So I have mapped the ALT+SHIFT to change between English - Greek. The issue I am experience is t...
I have found a vi emulator for microsoft word here:
ViEmu
but I wanted to use vim to edit DOC or even rtf files. My question is , is this possible ?
Are they any other formats that preserve page/paragraph layout combatible with both Microsft Word and Vim ? I am also open to OpenOffice formats .
...
I was trying to be super productive and tried to mimic my vim profile to others by grabbing their .vim file from github. However, now vim and gvim are totally screwed up. syntax highlighting doesn't work, snipMate doesn't work and many other things.
How can I go back to square one? How do I completely remove vim and gvim and install...
I have visited Vim website , script section and found several synthax checkers for python. But which one to choose ? I would prefer something that supports python 3 as well, even though I code in python 2.6 currently.
Do all these checkers need a module like pychecker and pyflakes ?
I could install the most popular from scripts datab...
Hi Vim'ers
This i really a newbie question - but basically how do I enable a template for certain filetypes.
Basically I just want the template to insert a header of sorts, that is with some functions that I find usefull, and libraries loaded etc.
I intepret
:help templates
the way that I should place this in my vimrc
au BufNewFi...
I'm learning ruby on rails on a linux box and dusting off my VIM skills (skillz?).
When I got started on VIM way back in my c++ days, I had a friend with a great vimfiles folder that had tons of stuff to get started. Starting from scratch, vim is great, but it feels like it could be a lot better.
I currently have:
vim-ruby
buffer ...
is there anyway to delete every character on the same line as a cursor, all the way up to the cursor? for instance, I might have a line of code that looks like the following:
foo = [cursor] Bar.new
If my cursor is at the place holder above, is it possible to delete every whitespace character (without using regex?) so that ...
Hi all
Can someone recommend a good plugin for browsering the functions and variables of sources files in Gvim?
Best Regards,
...