Spell checking only *.txt files in Vim
So vim 7 has native spell checking- which is great if you remember to turn it on. Enabling it in your .vimrc is fine if all you view is written text files, but annoying when it’s running while working on code.
That’s why I created this little snippet of sunshine:
add this to ~/.vimrc:
au BufNewFile,BufRead *.txt call ConfigureTxtFile() func! ConfigureTxtFile() setlocal spell spelllang=en_us set wrapmargin=80 set textwidth=80 endfunction
I also use it to set my text width and wrap margins. You can have it match other types of files as well and create new functions- I plan on using this to set .py files to use space-replaced tabs. As I go forward I might have it do something a bit more fancy.
79 comments
… [Trackback]
[…] Find More on|Find More|Read More Informations here|There you can find 90647 additional Informations|Infos on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More on|Read More|Read More Informations here|There you will find 61598 additional Informations|Informations on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More on|Read More|Read More Infos here|There you will find 46556 more Infos|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More here|Find More|Find More Infos here|Here you can find 60918 additional Infos|Infos on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More on|Find More|Read More Infos here|Here you will find 6819 additional Infos|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More on|Find More|Read More Informations here|Here you can find 28169 more Informations|Informations to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Read More Infos here|Here you can find 7068 additional Infos|Informations to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More here|Find More|Find More Informations here|There you will find 38525 additional Informations|Informations to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More on|Read More|Read More Informations here|Here you can find 72740 more Informations|Informations on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Find More Informations here|Here you will find 81718 additional Informations|Informations on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Find More Infos here|There you will find 2739 more Infos|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Find More Infos here|There you can find 410 more Infos|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More on|Find More|Read More Informations here|There you will find 36514 more Informations|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More on|Read More|Read More Infos here|Here you can find 59174 more Infos|Informations on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Find More Informations here|There you will find 70121 more Informations|Infos on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More on|Read More|Read More Infos here|Here you can find 44360 additional Infos|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Read More Infos here|There you can find 46876 additional Infos|Informations to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Read More Infos here|There you can find 77707 additional Infos|Informations on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More here|Find More|Read More Informations here|Here you can find 80164 additional Informations|Infos on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More on|Find More|Read More Infos here|There you can find 60011 more Infos|Informations on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More here|Find More|Read More Infos here|Here you will find 43014 more Infos|Infos to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here|Read More|Find More Infos here|There you will find 8906 more Infos|Informations to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Information to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More here to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More Info here to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More Info here to that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Read More on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Find More here on that Topic: morgajel.net/2007/08/06/215 […]
… [Trackback]
[…] Info to that Topic: morgajel.net/2007/08/06/215 […]