Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] vim - disable cap check
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
midnite
Apprentice
Apprentice


Joined: 09 Apr 2006
Posts: 256
Location: Hong Kong

PostPosted: Sun Jun 21, 2009 10:43 am    Post subject: [SOLVED] vim - disable cap check Reply with quote

i used to write in small letters. can i disable the capital letter check in vim? i guess it deals with the option spellcapcheck. Yet how to set? thanks :wink:
_________________
i love meaningful forums. thats why i am here =]


Last edited by midnite on Sun Jun 21, 2009 11:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 965
Location: Lund, Sweden

PostPosted: Sun Jun 21, 2009 10:46 am    Post subject: Reply with quote

No, learn to write proper english!

Or, you can try with :set nospellcapcheck - this is just a guess though.

edit:
:set spellcapcheck="" should do the trick.
_________________
#312470 @ http://counter.li.org/
Back to top
View user's profile Send private message
midnite
Apprentice
Apprentice


Joined: 09 Apr 2006
Posts: 256
Location: Hong Kong

PostPosted: Sun Jun 21, 2009 11:03 am    Post subject: Reply with quote

Raniz wrote:
No, learn to write proper english!

Or, you can try with :set nospellcapcheck - this is just a guess though.

edit:
:set spellcapcheck="" should do the trick.

Thanks for your reply =)

haha i know proper english should have caps. But for casual stuffs, i can have my own style =P it's no harm anyway
btw, for proper writing, i can switch it back on. Or, i don't think i will have the caps error when i intended to write something properly, as it is so obvious.

as i know spellcapcheck is set to [.?!]\_[\])'"' \t]\+ by default. If i do :set spellcapcheck="", i will loss this setting. i know i can do :set spellcapcheck="[.?!]\_[\])'"' \t]\+" to retrieve it. Yet, can i just toggle it for convenience?
_________________
i love meaningful forums. thats why i am here =]
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 965
Location: Lund, Sweden

PostPosted: Sun Jun 21, 2009 11:06 am    Post subject: Reply with quote

It is local to buffer and set when enabling spell checking so reloading your file and not setting it should be a simple way of resetting it, you could probably also disable and enable spell checking to reset it.

I don't think you can toggle it unless you make a script for it though, you can probably create a function in your .vimrc that does this for you - sadly my skills at vimscripting are pretty bad so I can't help you with this.
_________________
#312470 @ http://counter.li.org/
Back to top
View user's profile Send private message
midnite
Apprentice
Apprentice


Joined: 09 Apr 2006
Posts: 256
Location: Hong Kong

PostPosted: Sun Jun 21, 2009 11:29 am    Post subject: Reply with quote

Raniz wrote:
It is local to buffer and set when enabling spell checking so reloading your file and not setting it should be a simple way of resetting it, you could probably also disable and enable spell checking to reset it.

I don't think you can toggle it unless you make a script for it though, you can probably create a function in your .vimrc that does this for you - sadly my skills at vimscripting are pretty bad so I can't help you with this.

thanks!!!
now i have added the following lines in /etc/vim/vimrc
Code:
set spell spelllang=en_gb
set spellcapcheck=

and if i want the cap check back, i can just simply go the /etc/vim/vimrc and comment that line :wink:
_________________
i love meaningful forums. thats why i am here =]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum