|TIPS(1)||FreeBSD General Commands Manual||TIPS(1)|
Some tips on using linux and UNIX!Welcome to `man tips`! These are tips written by tague!
:vsplit’ or ‘
:vsplit FILENAME’ to split the screen! You can switch betweeen split sections by typing Ctrl+W and then pressing an arrow key. If you have your mouse working in vim, you can also click to switch sections.
set mouse=a’ . This can be done from the in-editor command area (as ‘
:set mouse=a’ ), OR it can be placed in your ‘
~/.vimrc’ file, a file that specifies commands to run when vim is opened.
~/.vimrc’ file: ‘
set smartindent’ .
u’ key! To redo, type the command ‘
’: to enter the mode, followed by an exclamation mark ( ‘
!’ ) and the command you want to run. For example, if you're editing a script ‘
test.py’ , you can test it with ‘
:!python3 test.py’ without even leaving the editor!
:terminal’ command! You may only run commands while in insert mode, so make sure to hit ‘
i’ whenever switching back to it!
:vsplit’ , followed by ‘
:terminal’ , to split-screen a terminal with your editing area.
/usr/bin’ ), you'll need to specify a literal path, such as ‘
sh’ . You can change this using a special line called a `shebang` at the start of your script file. This takes the form of ‘
#!path’ , where ‘
path’ is the path to the program to run the script with.
bash’ is located at ‘
/bin/bash’ , but on others it's ‘
/usr/bin/bash’ ! To get around this, a program called ‘
env’ can be used. This program, which is rather consistently located in ‘
/usr/bin/env’ , will find and execute the command you pass to it.
bash’ , begin the file with:
python’ , begin the file with:
funny-manpages’ provides a nice collection of manpages with weird and wonderful contents... For your convenience, here they are.
|November 12, 2019||FreeBSD 11.3-STABLE|
Manpages sourced from FreeBSD, and from debian's funny-manpages package. Viewer developed by Ethan McTague.