PythonGroup
Welcome,
Guest
. Please
login
or
register
.
September 09, 2010, 12:40:04 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
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
]
Author
Topic: tab settings in vim (Read 324 times)
danns
Newbie
Offline
Posts: 7
tab settings in vim
«
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
Posts: 13
Re: tab settings in vim
«
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
Logged
mak
Newbie
Offline
Posts: 2
Re: tab settings in vim
«
Reply #2 on:
February 09, 2010, 02:49:36 AM »
Quote from: danns on February 08, 2010, 08:39:07 PM
any other suggestions?
Limit each line to 79 characters? (or 80)
set textwidth=79
Logged
comprookie2000
Administrator
Newbie
Offline
Posts: 48
Re: tab settings in vim
«
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
http://linuxcrazy.com
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Core Python Programming
-----------------------------
=> Core Python Programming (The Book)
Loading...