![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2007
Beans: 6
|
Problem with indenting in vim
Hey guys,
I have problem I can't figure out. I just installed feisty and compiz fusion on my computer. I'm a vim user but I've never run into a problem like this. When I use visual mode to highlight some code, I usually use == to fix the indentation of my code. On this computer, there has been some unusual behavior. After highlighting some text, I press = the first time, the status bar of vim tells gives the message "12 lines filtered" or whatever number of lines I've highlighted. Pressing = again inserts the following line into my code: "indent:Standard input:2:Error:Unexpected end of file" No matter how many times in the past my code was messy or just wrong, vim never gave me this message. Any ideas on how to fix it? I was messing around with customizing xterm previously, could this have something to do with it? I believe I downloaded a friend's .Xdefault file or wherever the configuration for xterm is located. Should I delete the file? Also, a random vim/xterm question, how the heck do I get color syntax highlighting to work? Many Thanks, John Kim Ubuntu nubbin. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2007
Beans: 6
|
Re: Problem with indenting in vim
forgot to post my .vimrc, here it is:
set nocompatible "set autoindent set smartindent set tabstop=4 set shiftwidth=4 "set shiftround set expandtab set showmatch set vb t_vb= set ruler set incsearch if &term =~ "xterm" if has("terminfo") set t_Co=8 set t_Sf=<Esc>[3%p1%dm set t_Sb=<Esc>[4%p1%dm else set t_Co=8 set t_Sf=<Esc>[3%dm set t_Sb=<Esc>[4%dm endif endif |
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2007
Beans: 6
|
Re: Problem with indenting in vim
Should I take this to the vim forums?
|
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2007
Beans: 6
|
Re: Problem with indenting in vim
Problem solved, It was kind of silly but I was unaware that ubuntu came installed with vim-tiny.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|