When you install any software using apt install or apt-get install, the apt tool looks in the /etc/apt/sources.list file for available remote repository links. If you don't get the indentation put filetype indent on in your ~/.vimrc file and it will work. En Ubuntu, the /etc/apt/source.list file is a configuration file for the Advanced Packaging Tool (APT).This file saves all URLs of remote repositories from where software packages and applications are installed. This will work on any programming/scripting language given that the file's extension is correct Now whenever you press the hotkey, the current file will be saved and auto formatted. You can also setup a hotkey, I prefer Alt+Shift+F like Netbeans. "Output" is set to "Replace current document".Touch $CMD_FILE_NAME&echo "gg=G :wq! "$TMP_FILE_NAME > $CMD_FILE_NAME&(vim $GEDIT_CURRENT_DOCUMENT_NAME -s $CMD_FILE_NAME > /dev/null 2>/dev/null)&rm $CMD_FILE_NAME Next, add an "external tool" to Gedit from the "tools" menu and use the following code: #!/bin/sh Here is another workaround, you can use vim to auto indent and auto format your code from inside Gedit.
0 Comments
Leave a Reply. |