HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vi settings
Operating System - HP-UX
1831614
Members
2144
Online
110027
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2007 04:30 AM
12-07-2007 04:30 AM
vi settings
Hi everyone,
I usually work with vim on 11.23 and I type everytime ":set paste" to enable the correct paste of formatted text in vim.
I found out that the same command is not available in the default HP-UX vi editor.
Someone knows if it's possible pasting formatted text into vi?
I usually work with vim on 11.23 and I type everytime ":set paste" to enable the correct paste of formatted text in vim.
I found out that the same command is not available in the default HP-UX vi editor.
Someone knows if it's possible pasting formatted text into vi?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2007 04:46 AM
12-07-2007 04:46 AM
Re: vi settings
vim is a vi lookalike but with many enhancements. All the options that can be set are listed in the ex man page under Editor options. vi is a full screen wrapper for the ex editor, thus the interaction between the two. The ":" character is the link between the two.
To set new default values for vi, create the file: $HOME/.exrc where you can change many different features. Here are some popular ones:
set nows ic autoindent autowrite wrapmargin=2set sh=/usr/bin/sh report=1 showmode
Depending on the terminal emulator you are using, you can even assign an action to the function keys using the map keyword. Here are a couple of useful commands:
map #1 :set noai wm=0
map #2 !}exec adjust -m60
map #3 !}exec adjust -m72
The f1 key (#1 above) turns off the automatic indent feature and also turns off the wrap-margin (split by word at end of line) feature. The f2 and f3 keys will take the current line and following text to a paragraph break and adjust (based on trailing words) the right margin to less than or equal to 60 or 72 characters. This is done by piping the paragraph into the adjust program.
Note that 'formatted' text is not really meaningful for a plain ASCII editor. tabs are about the only formatting option and even these depend on a display or printer that agrees on where the tab stops are located.
Bill Hassell, sysadmin
To set new default values for vi, create the file: $HOME/.exrc where you can change many different features. Here are some popular ones:
set nows ic autoindent autowrite wrapmargin=2set sh=/usr/bin/sh report=1 showmode
Depending on the terminal emulator you are using, you can even assign an action to the function keys using the map keyword. Here are a couple of useful commands:
map #1 :set noai wm=0
map #2 !}exec adjust -m60
map #3 !}exec adjust -m72
The f1 key (#1 above) turns off the automatic indent feature and also turns off the wrap-margin (split by word at end of line) feature. The f2 and f3 keys will take the current line and following text to a paragraph break and adjust (based on trailing words) the right margin to less than or equal to 60 or 72 characters. This is done by piping the paragraph into the adjust program.
Note that 'formatted' text is not really meaningful for a plain ASCII editor. tabs are about the only formatting option and even these depend on a display or printer that agrees on where the tab stops are located.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2007 04:48 AM
12-07-2007 04:48 AM
Re: vi settings
hi,
you can as well install vim.
http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.1/
Do not forget to check for all the dependencies:
atk cairo expat fontconfig freetype gettext glib2 gtk+2 jpeg libXft libXrender libiconv libpng ncurses pango tiff zlib
hope this helps!
kind regards
yogeeraj
you can as well install vim.
http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.1/
Do not forget to check for all the dependencies:
atk cairo expat fontconfig freetype gettext glib2 gtk+2 jpeg libXft libXrender libiconv libpng ncurses pango tiff zlib
hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2007 06:14 AM
12-07-2007 06:14 AM
Re: vi settings
I have tried erasing $HOME/.exrc and now both vi & vim works fine for me (about pasting formatted text).
I have already installed vim, but using source code instead of depot.
Thank you very much.
I have already installed vim, but using source code instead of depot.
Thank you very much.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP