PythonGroup
Welcome, Guest. Please login or register.
September 09, 2010, 12:40:04 AM

Login with username, password and session length
Search:     Advanced search
The Notify button enables registered members to subscribe to email notifications.
66 Posts in 17 Topics by 28 Members
Latest Member: nikhil
* Home Help Login Register
+  PythonGroup
|-+  Core Python Programming
| |-+  Core Python Programming (The Book)
| | |-+  tab settings in vim
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: tab settings in vim  (Read 324 times)
danns
Newbie
*
Offline Offline

Posts: 7


View Profile
« on: February 08, 2010, 08:39:07 PM »

If anyone is using vim and wants to set their tab and shiftwidth setting properly, as per the guidelines I recommend putting these values into your .vimrc file:

set tabstop=4
set shiftwidth=4
set expandtab
set nu  (for line numbers)
syntax on

any other suggestions?
Logged
bibimidi
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #1 on: February 08, 2010, 08:43:35 PM »

Those are the minimum and should be nough to get going, i think. The rest not listed are just further customizations. I'm not in my linux box right to show my .vimrc. But maybe next time  Grin
Logged
mak
Newbie
*
Offline Offline

Posts: 2



View Profile
« Reply #2 on: February 09, 2010, 02:49:36 AM »

any other suggestions?

Limit each line to 79 characters? (or 80)

set textwidth=79
Logged
comprookie2000
Administrator
Newbie
*****
Offline Offline

Posts: 48



View Profile WWW
« Reply #3 on: February 09, 2010, 07:18:59 AM »

I use a python.vim with ftplugin
http://vimdoc.sourceforge.net/htmldoc/filetype.html
http://www.vim.org/scripts/script.php?script_id=790
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!