02-06-2003
It looks like:
set shiftwidth=4
does the trick.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I use vi for my text editing. Is there a way to use smart indentation?
that is when adding a '{' or '}' that the editor will jump and advance, or any other thing like that?
thanks (1 Reply)
Discussion started by: sierra_aar
1 Replies
2. UNIX for Dummies Questions & Answers
I recently coded a typical ftp script looking like
ftp -n $hostname <<
user $user $pass
<commands..>
quit
!
I know the code fails when you try to indent it like:
ftp $hostname <<
user $user $pass
<commands..>
quit
!
Just for the sake of neat code, is there a... (4 Replies)
Discussion started by: yongho
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm working on a big project and all the CPP and header files are in mess with respect to indentation. I would like to indent whole file(s) at once (like ctrl-shift-f in eclipse). Is there anybody who knows how to do that in vi/vim?
thanks (2 Replies)
Discussion started by: SaTYR
2 Replies
4. Shell Programming and Scripting
Hi All,
I need a code to print those lines where there's NO indents on the 1st field
Example shown below.
I tried to use the below codes but i am not able to see the expected result.
Can any expert give any advise ?
My Code
cat filename| awk '$1 ~ /^+$/ {print $0}'
Input
1199 ... (7 Replies)
Discussion started by: Raynon
7 Replies
5. Solaris
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
6. Shell Programming and Scripting
Every now and then I have to indent the lines in my script to 4 space characters.
I generally do it line by line.
Is there an automated command in vi using which I can indent some set of lines to desired number of space characters in one go. (2 Replies)
Discussion started by: paragkalra
2 Replies
7. Shell Programming and Scripting
A space, a tab? Just currious what, why, you indent in x way?
Fwiw, I use vi, so kind'a currious how you vi folks approach indentation when writing code (eg python).
Disclosure, I'm just learning python and have never seen a language use indentation so formally (I like it too:) ). I just... (7 Replies)
Discussion started by: sas
7 Replies
8. Shell Programming and Scripting
hello everyone
how to parse excel file with indents ?
i was trying perl and there is Spreadsheet::ParseExcel::Format but i have no idea how to make it work
docs says $format->{Indent} but it's not working
also i was trying xls2csv and xlhtml but they don't care about indents at all :(
i... (1 Reply)
Discussion started by: tip78
1 Replies
LEARN ABOUT MOJAVE
curlopt_ssh_public_keyfile
CURLOPT_SSH_PUBLIC_KEYFILE(3) curl_easy_setopt options CURLOPT_SSH_PUBLIC_KEYFILE(3)
NAME
CURLOPT_SSH_PUBLIC_KEYFILE - set public key file for SSH auth
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_PUBLIC_KEYFILE,
char *filename);
DESCRIPTION
Pass a char * pointing to a filename for your public key. If not used, libcurl defaults to $HOME/.ssh/id_dsa.pub if the HOME environment
variable is set, and just "id_dsa.pub" in the current directory if HOME is not set.
If NULL (or an empty string) is passed, libcurl will pass no public key to libssh2, which then tries to compute it from the private key.
This is known to work with libssh2 1.4.0+ linked against OpenSSL.
The application does not have to keep the string around after setting this option.
DEFAULT
NULL
PROTOCOLS
SFTP and SCP
EXAMPLE
TODO
AVAILABILITY
The "" trick was added in 7.26.0
RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
SEE ALSO
CURLOPT_SSH_PRIVATE_KEYFILE(3), CURLOPT_SSH_AUTH_TYPES(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_SSH_PUBLIC_KEYFILE(3)