breakat option in vim


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users breakat option in vim
# 1  
Old 02-22-2010
breakat option in vim

Hi,

I am used to work in vim editor. I have moved to a different organisation and there is one setting in vim that I wish to change.

Open vim and give ":se all" on command line. Scroll and look for "breakat" setting. It is set as follows in my current organisation-
Code:
breakat= ^I!@*-+;:,./?

I want to change this. I dont want "-" in the word break list. This helps me to navigate through the code. Pressing "*" on any word makes vim search for that word in the file. I work in COBOL and 99% of the words we use have "-". Presence of "-" in the breakat list passes partial word to vim for search.

Thanks.

Last edited by Scott; 02-23-2010 at 07:49 AM.. Reason: Code tags
# 2  
Old 02-23-2010
If you want to change it use the
Code:
:set set breakat  String 
Where 
       String contains all the character which you want as a break 
for ex: 
           String =":-()" ;

Hope you know this will not work in Vi editor.
# 3  
Old 02-23-2010
Thanks for the reply, but sorry its not working. Is it working for you?


Code:
:set set breakat "@+"
E518: Unknown option: set  
:set set breakat ="@+"
E518: Unknown option: set  
 
:set breakat="@+"

This one is accepted by vim, but its not serving the purpose. Still the word is broken at "-". Also, after doing this I dont get the "breakat" option in ":set all" also.

Last edited by Scott; 02-23-2010 at 07:49 AM.. Reason: Please use code tags
# 4  
Old 02-23-2010
Please let me know that whether you are using Vi or Vim

---------- Post updated at 06:53 AM ---------- Previous update was at 06:43 AM ----------

To make this option work I think we should enable the linebreak
for ex :
Code:
:set lbr 
:set breakat="characters"

This will work.
# 5  
Old 02-23-2010
I am using vim.

I have set the lbr option, but still its breaking at "-".

Can you tell me what characters you have in your breakat?
# 6  
Old 02-24-2010
I have used @+ as a characters ,
Also use :set showbreak
# 7  
Old 03-02-2010
Does anyone have any other way out?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unrecognized option: sparc-sun-Solaris2.10/bin/as: unrecognized option `-m32'

Hi, I installed some packages required by an app built with python. But when I try python setup.py install, I get the following error: /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32' Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies

2. UNIX for Advanced & Expert Users

Vim :f

Can someone please tell me what this does? :f word I thought that was the way to save files with a different name but after a quick google search I saw it was like this. :w filename (4 Replies)
Discussion started by: cokedude
4 Replies

3. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

4. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

5. UNIX for Advanced & Expert Users

vim

Does anyone know the fast way to go to tab/2 distance in vim. I mean set four spaces. (1 Reply)
Discussion started by: mirusnet
1 Replies

6. UNIX and Linux Applications

Help with Vim

How do I use compilers and syntax highlighting in (g)Vim? Specifically, I need a Common Lisp compiler and a C++ compiler. Thanks in advance! (Note: Disregard my other topic.) (1 Reply)
Discussion started by: led3234
1 Replies

7. UNIX for Advanced & Expert Users

About Vim

Hello, what is the maximum size of a file that we can open using vim. (3 Replies)
Discussion started by: nagalenoj
3 Replies

8. Shell Programming and Scripting

option followed by : taking next option if argument missing with getopts

Hi all, I am parsing command line options using getopts. The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument. Below is the script: while getopts :hd:t:s:l:p:f: opt do case "$opt" in -h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies

9. UNIX for Dummies Questions & Answers

Need some help with vim

I use vim for writing code. I was using nano but found that vim is a much advanced editor. I am trying to achieve something like this: When trying a loop or a function, I generally type: function name() {} Now when I take my cursor one position to the left and press the return key, it give... (4 Replies)
Discussion started by: Legend986
4 Replies

10. Solaris

Vim 7.0

I want to install VIM 7.0 from sunfreeware.com onto a server. The security guys are giving me a hard time because they found this security vulnerability. http://xforce.iss.net/xforce/xfdb/6259 This vulnerability came out in 2001, and it looks like it was mostly for linux, but I cant be... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
Login or Register to Ask a Question