Pluma Manual2015-2020MATE Documentation Project2007GNOME Documentation Project200220032004Sun Microsystems2000Eric BaudaisMATE Documentation ProjectGNOME Documentation ProjectMATE Documentation ProjectMATE DesktopJoachimNoreikoGNOME Documentation ProjectGNOMEHalCanaryAdded the Shortcut Keys TableSun Java Desktop System Documentation TeamSun Microsystemsgdocteam@sun.comEricBaudaisGNOME Documentation Projectbaudais@okstate.eduBarisCicekProvided information from earlier revisions of the pluma application.GeorgeAjitProvided information about plugins.1.02000Eric Baudais baudais@okstate.eduGNOME Documentation Project2.0March 2002Sun GNOME Documentation TeamGNOME Documentation Project2.1June 2002Sun GNOME Documentation TeamGNOME Documentation Project2.2August 2002Sun GNOME Documentation TeamGNOME Documentation Project2.3September 2002Sun GNOME Documentation TeamGNOME Documentation Project2.4January 2003Sun GNOME Documentation TeamGNOME Documentation Project2.5March 2003Sun GNOME Documentation TeamGNOME Documentation Project2.6September 2003Sun GNOME Documentation TeamGNOME Documentation Project2.7March 2004Sun GNOME Documentation TeamGNOME Documentation Project2.8July 2015Sun Java Desktop System Documentation TeamGNOME Documentation Project2.9July 2006GNOME Documentation TeamGNOME Documentation Project3.0July 2015MATE Documentation TeamMATE Documentation ProjectThis manual describes version 1.10 of pluma.plumatext editorIntroductionThe pluma application enables you to create and edit text files.The aim of pluma is to be a simple and easy to use text editor. More powerful features can be enabled with different plugins, allowing a variety of tasks related to text-editing.Getting StartedStarting plumaYou can start pluma in the following ways:Applications menuChoose AccessoriesPluma Text Editor.Command lineExecute the following command: plumaBy default, when you open a text document in the file manager, pluma will start, and display the document.The pluma WindowWhen you start pluma, the following window is displayed:pluma WindowShows pluma main window.The pluma window contains the following elements:MenubarThe menus on the menubar contain all the commands you need to work with files in pluma.ToolbarThe toolbar contains a subset of the commands that you can access from the menubar.Display areaThe display area contains the text of the file that you are editing.StatusbarThe statusbar displays information about current pluma activity and contextual information about the menu items. The statusbar also displays the following information:Cursor position: the line number and column number where the cursor is located.Edit mode: If the editor is in insert mode, the statusbar contains the text INS. If the editor is in overwrite mode, the statusbar contains the text OVR. Press the Insert key to change edit mode.Side PaneThe side pane displays a list of open documents, and other information depending on which plugins are enabled.By default, the side pane is not shown. To show it, choose ViewSide Pane.Bottom PaneThe bottom pane is used by programming tools such as the Python Console plugin to display output.By default, the bottom pane is not shown. To show it, choose ViewBottom Pane.When you right-click in the pluma window, the application displays a popup menu. The popup menu contains the most common text editing commands.Like other MATE applications, actions in pluma can be performed in several ways: with the menu, with the toolbar, or with shortcut keys. Shortcuts keys common to all applications are listed in the User Guide.Running pluma from a Command LineYou can run pluma from a command line and open a single file or multiple files. To open multiple files from a command line, type the following command, then press Return:pluma file1.txt file2.txt file3.txtAlternatively, you can specify a URI instead of a filename.Refer to the pluma1 man page for more information on how to run pluma from a command line.Working with FilesCreating a New DocumentTo create a new document, choose FileNew. The application displays a new blank document in the pluma window.Opening a FileTo open a file, choose FileOpen to display the Open File dialog. Select the file that you want to open, then click Open. The file is displayed in the pluma window.The application records the paths and filenames of the five most recent files that you edited and displays the files as menu items on the File menu. You can also click on the Shows Recent Files menu icon. icon on the toolbar to display the list of recent files.You can open multiple files in pluma. The application adds a tab for each open file to the window. For more on this see .Saving a FileYou can save files in the following ways:To save changes to an existing file, choose FileSave.To save a new file or to save an existing file under a new filename, choose FileSave As. Enter a name for the file in the Save As dialog, then click Save.To save all the files that are currently open in pluma, choose DocumentsSave All.To close all the files that are currently open in pluma, choose DocumentsClose All.Working With TabsWhen more than one file is open, pluma shows a tab for each document above the display area. To switch to another document, click on its tab.To move a document to another pluma window, drag the tab corresponding to the file to the window you want to move it to.To move a document to a new pluma window, either drag its tab to the desktop, or choose DocumentsMove to New Window.Working with TextEditing TextYou can edit the text of a file in the following ways:Type new text from the keyboard. The blinking insertion cursor marks the point where new text appears. To change this, use the arrow keys on the keyboard or click with the mouse.To copy the selected text to the clipboard, choose EditCopy.To delete the selected text from the file and move the selected text to the clipboard, choose EditCut.To permanently delete the selected text from the file, choose EditDelete.To insert the contents of the clipboard at the cursor position, choose EditPaste. You must cut or copy text before you can paste text into the file, either from pluma or another application.To select all the text in a file, choose EditSelect All.Undoing and Redoing ChangesTo undo a change you have made, choose EditUndo. To reverse this action, choose EditRedo.Finding and ReplacingIn pluma, there are two ways of searching for text. You can use the Find dialog to search for a specific piece of text, or Incremental Search to highlight matching text as you type it.Finding TextTo search a file for a string of text, perform the following steps:Choose SearchFind to display the Find dialog.Type the string that you want to find in the Search for field. You can include special characters such as a new line or tab: see .Click Find to search the file for the first occurrence of the string after your current cursor position. If pluma finds the string, the application selects first occurrence of the string. Other occurrences of the string are highlighted.To find the next occurrence of the string, click Find or choose SearchFind Next. To find the previous occurrence of the text, choose SearchFind Previous.After you have closed the Find dialog, you can still move the selection to other occurrences of the text by choosing SearchFind Next and SearchFind Previous.To remove the highlighting from the text, choose SearchClear Highlight.Incremental SearchIncremental search highlights matching text in the document as you type it letter by letter. (This is similar to the search feature in several web browsers.)To start an incremental search, choose SearchIncremental Search. The search box appears at the top of the display area. Begin typing, and text that matches will be highlighted in the document. The first instance after the cursor position is also selected.To advance the selection to the next match while keeping the incremental search box open, press CtrlG. Press CtrlShiftG to go back to the previous match.You can also use the up and down arrow keys or the mouse wheel to move the selection between matches.Replacing TextTo search a file for a string, and replace the string with an alternative string, perform the following steps:Choose SearchReplace to display the Replace dialog.Type the string that you want to find, in the Search for field. You can include special characters such as a new line or tab: see .Type the string that you want to use to replace the string that you find, in the Replace with field.To examine each occurrence of the string before replacing it, click Find. If pluma finds the string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the next occurrence of the string, click Find again.To replace all occurrences of the string throughout the document, click Replace All.Find and Replace OptionsThe Find dialog and the Replace dialog both have the following options:Select the Match case option to only find occurrences of the string that match the case of the text that you type. For example, with Match case selected, "TEXT" will not match "text".Select the Match entire word only option to only find occurrences of the string that match the entire words of the text that you type. For example, with Match entire word only selected, "text" will not match "texture". Select the Search backwards option to search backwards towards the beginning of the document. Select the Wrap around option to search to one end of the document and then continue the search from the other end of the file. Special CharactersYou can include the following escape sequences in the text to find or replace to represent special characters:\nSpecifies a new line.\tSpecifies a tab character.\rSpecifies a carriage return.\\The backslash character itself must be escaped if it is being searched for.
For example, if you are looking for the "\n" literal, you will
have to type "\\n" in the Search for field. Or if you are
looking for a sequence of backslashes, you will have to double the number of
searched backslashes.Positioning the Cursor on a Specific LineTo position the cursor on a specific line in the current file, choose SearchGo to Line. The line number box appears at the top of the display area.Begin typing the number of the line that you want to move the cursor to and the document will scroll to the specified line.To dismiss the box and move the cursor to the specified line, press Return.PrintingSetting the Page OptionsTo set the page options, choose FilePage Setup to display the Page Setup dialog.The Page Setup dialog enables you to specify the following print options:General Tabbed SectionPrint syntax highlightingSelect this option to print syntax highlighting. For more information about syntax highlighting, see .Print page headersSelect this option to include a header on each page that you print. You cannot configure the header. Line NumbersSelect the Print line numbers option to include line numbers when you print a file.Use the Number every ... lines spin box to specify how often to print the line numbers, for example every 5 lines, every 10 lines, and so on.Text WrappingSelect the Enable text wrapping option to wrap text onto the next line, at a character level, when you print a file. The application counts wrapped lines as one line for line numbering purposes.Select the Do not split words over two lines option to wrap text onto the next line, at a word level, when you print a file.FontsBodyClick on this button to select the font used to print the body text of a file.Line numbersClick on this button to select the font used to print line numbers.Headers and footersClick on this button to select the font to use to print the headers and footers in a file. To reset the fonts to the default fonts for printing a file from pluma, click Restore Default Fonts.Printing a DocumentYou can use pluma to perform the following print operations:Print a document to a printer. Print the output of the print command to a file.If you print to a file, pluma sends the output of the file to a pre-press format file. The most common pre-press formats are PostScript and Portable Document Format (PDF).To preview the pages that you want to print, choose FilePrint Preview.To print the current file to a printer or a file, choose FilePrint to display the Print dialog.The Print dialog enables you to specify the following print options:Job Tabbed SectionPrint rangeSelect one of the following options to determine how many pages to print:AllSelect this option to print all the pages in the file.LinesSelect this option to print the specified lines only. Use the From and To spin boxes to specify the line range.SelectionSelect this option to print the selected text only. This option is only available if you select text.CopiesUse the Number of copies spin box to specify the number of copies of the file that you want to print.If you print multiple copies of the file, select the Collate option to collate the printed copies.Printer Tabbed SectionPrinterUse this drop-down list to select the printer to which you want to print the file.SettingsUse this drop-down list to select the printer settings.To configure the printer, click Configure. For example, you can enable or disable duplex printing, or schedule delayed printing, if this functionality is supported by the printer.LocationUse this drop-down list to select one of the following print destinations:CUPSPrint the file to a CUPS printer.If the selected printer is a CUPS printer, CUPS is the only entry in this drop-down list.lprPrint the file to a printer.FilePrint the file to a PostScript file.Click Save As to display a dialog where you specify the name and location of the PostScript file.CustomUse the specified command to print the file.Type the name of the command in the text box. Include all command-line arguments.StateThis functionality is not supported in this version of pluma.TypeThis functionality is not supported in this version of pluma.CommentThis functionality is not supported in this version of pluma.Paper Tabbed SectionPaper sizeUse this drop-down list to select the size of the paper to which you want to print the file.WidthUse this spin box to specify the width of the paper. Use the adjacent drop-down list to change the measurement unit.HeightUse this spin box to specify the height of the paper.Feed orientationUse this drop-down list to select the orientation of the paper in the printer.Page orientationUse this drop-down list to select the page orientation.LayoutUse this drop-down list to select the page layout. A preview of each layout that you select is displayed in the Preview area.Paper trayUse this drop-down list to select the paper tray.Programming FeaturesSeveral of pluma's features for programming are provided with plugins. For example, the Tag List plugin provides a list of commonly-used tags for different markup languages: see .Syntax HighlightingSyntax highlighting makes source code easier to read by showing different parts of the text in different colors.pluma chooses an appropriate syntax highlighting mode based on a document's type. To override the syntax highlighting mode, choose ViewHighlight Mode, then choose one of the following menu items:NormalDo not display any syntax highlighting.SourcesDisplay syntax highlighting to edit source code. Use the Sources submenu to select the source code type.MarkupDisplay syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type.ScriptsDisplay syntax highlighting to edit script code. Use the Scripts submenu to select the script code type.OthersDisplay syntax highlighting to edit other types of code. Use the Others submenu to select the code type.Piping the Output of a Command to a FileYou can use pluma to pipe the output of a command to a text file. For example, to pipe the output of an ls command to a text file, type ls | pluma, then press Return.The output of the ls command is displayed in a new text file in the pluma window.Alternatively, you can use the External tools plugin to pipe command output to the current file. Shortcut KeysUse shortcut keys to perform common tasks more quickly than with the mouse and menus. The following tables list all of pluma's shortcut keys.For more on shortcut keys, see the Desktop User Guide.TabsShortcuts for tabs:Shortcut KeyCommandCtrl + Alt + PageUpSwitches to the next tab to the left.Ctrl + Alt + PageDownSwitches to the next tab to the right.Ctrl + WClose tab.Ctrl + Shift + LSave all tabs.Ctrl + Shift + WClose all tabs. Alt + nJump to nth tab.FilesShortcuts for working with files:Shortcut KeyCommandCtrl + NCreate a new document.Ctrl + OOpen a document.Ctrl + LOpen a location.Ctrl + SSave the current document to disk.Ctrl + Shift + SSave the current document with a new filename.Ctrl + PPrint the current document.Ctrl + Shift + PPrint preview.Ctrl + WClose the current document.Ctrl + QQuit Pluma.EditShortcuts for editing documents:Shortcut KeyCommandCtrl + ZUndo the last action.Ctrl + Shift + ZRedo the last undone action .Ctrl + XCut the selected text or region and place it on the clipboard.Ctrl + CCopy the selected text or region onto the clipboard.Ctrl + VPaste the contents of the clipboard.Ctrl + ASelect all.Ctrl + DDelete current line.Alt + UpMove the selected line up one line.Alt + DownMove the selected line down one line.PanesShortcuts for showing and hiding panes:Shortcut KeyCommandF9Show/hide the side pane.Ctrl + F9Show/hide the bottom pane.SearchShortcuts for searching:Shortcut KeyCommandCtrl + FFind a string.Ctrl + GFind the next instance of the string.Ctrl + Shift + GFind the previous instance of the string.Ctrl + KInteractive search.Ctrl + HSearch and replace.Ctrl + Shift + KClear highlight.Ctrl + IGoto line.ToolsShortcuts for tools:Shortcut KeyCommandShift + F7Check spelling (with plugin).Alt + F12Remove trailing spaces (with plugin).Ctrl + TIndent (with plugin).Ctrl + Shift + TRemove Indent (with plugin).F8Run "make" in current directory (with plugin).Ctrl + Shift + DDirectory listing (with plugin).HelpShortcuts for help:Shortcut KeyCommandF1Open pluma's user manual.PreferencesTo configure pluma, choose EditPreferences. The Preferences dialog contains the following categories:View PreferencesText WrappingSelect the Enable text wrapping option to have long lines of text flow into paragraphs instead of running off the edge of the text window. This avoids having to scroll horizontallySelect the Do not split words over two lines option to have the text wrapping option preserve whole words when flowing text to the next line. This makes text easier to read.Line NumbersSelect the Display line numbers option to display line numbers on the left side of the pluma window. Current LineSelect the Highlight current line option to highlight the line where the cursor is placed. Right MarginSelect the Display right margin option to display a vertical line that indicates the right margin. Use the Right margin at column spin box to specify the location of the vertical line. Bracket MatchingSelect the Highlight matching bracket option to highlight the corresponding bracket when the cursor is positioned on a bracket character. Editor PreferencesTabsUse the Tab width spin box to specify the width of the space that pluma inserts when you press the Tab key. Select the Insert spaces instead of tabs option to specify that pluma inserts spaces instead of a tab character when you press the Tab key. Auto IndentationSelect the Enable auto indentation option to specify that the next line starts at the indentation level of the current line. File SavingSelect the Create a backup copy of files before saving option to create a backup copy of a file each time you save the file. The backup copy of the file contains a ~ at the end of the filename.Select the Autosave files every ... minutes option to automatically save the current file at regular intervals. Use the spin box to specify how often you want to save the file.Font & Colors PreferencesFontSelect the Use default theme font option to use the default system font for the text in the pluma text window. The Editor font field displays the font that pluma uses to display text. Click on the button to specify the font type, style, and size to use for text. Color SchemeYou can choose a color scheme from the list of color schemes. By default, the following color schemes are installed:ClassicClassic color scheme based on the gvim color scheme.CobaltBlue based color scheme.KateColor scheme used in the Kate text editor.OblivionDark color scheme using the Tango color palette.TangoColor scheme using the Tango color scheme.You can add a new color scheme by clicking on Add..., and selecting a color scheme fileYou can remove the selected color scheme by clicking on RemovePlugins PreferencesPlugins add extra features to pluma. For more information on plugins and how to use the built-in plugins, see .Enabling a PluginTo enable a pluma plugin, perform the following steps:Choose EditPreferences.Select the Plugins tab.Select the check box next to the name of the plugin that you want to enable.Click Close to close the Preferences dialog.Disabling a PluginA plugin remains enabled when you quit pluma. To disable a pluma plugin, perform the following steps:Choose EditPreferences.Select the Plugins tab. Deselect the check box next to the name of the plugin that you want to disable.Click Close to close the Preferences dialog. PluginsWorking with PluginsYou can add extra features to pluma by enabling plugins. A plugin is a supplementary program that enhances the functionality of an application. Plugins add new items to the pluma menus for the new features they provide.
Several plugins come built-in with pluma.To enable and disable plugins, or see which plugins are currently enabled, use the .The following plugins come built-in with pluma: allows you to change the case of the selected text.
shows the number of lines, words, and characters in the document.
allows you to execute external commands from pluma.
allows you to browse your files and folders in the side pane. adds or removes indentation from the selected lines.
adds the current date and time into a document.
allows you to set editing preferences for individual documents, and supports Emacs, Kate and Vim-style modelines.
allows you to run commands in the python programming language.
allows you to strip trailing whitespaces in your document after saving.
allows you to store frequently-used pieces of text and insert them quickly into a document.
arranges selected lines of text into alphabetical order.
corrects the spelling in the selected text, or marks errors automatically in the document.
lets you insert commonly-used tags for HTML and other languages from a list in the side pane.
For more information on creating plugins, see .Change Case PluginThe Change Case plugin changes the case of the selected text.The following items are added to the Edit menu when the Change Case plugin is enabled:Menu ItemActionExampleEditChange CaseAll Upper CaseChange each character to uppercase. This text becomes THIS TEXTEditChange CaseAll Lower CaseChange each character to lowercase. This Text becomes this textEditChange CaseInvert CaseChange each lowercase character to uppercase, and change each uppercase character to lowercase. This Text becomes tHIS tEXTEditChange CaseTitle CaseChange the first character of each word to uppercase. this text becomes This TextDocument Statistics PluginThe Document Statistics plugin counts the number of lines, words, characters with spaces, characters without spaces, and bytes in the current file. The plugin displays the results in a Document Statistics dialog. To use the Document Statistics plugin, perform the following steps:Choose ToolsDocument Statistics to display the Document Statistics dialog. The Document Statistics dialog displays the following information about the file:Number of lines in the current document.Number of words in the current document.Number of characters, including spaces, in the current document.Number of characters, not including spaces, in the current document.Number of bytes in the current document.You can continue to update the pluma file while the Document Statistics dialog is open. To refresh the contents of the Document Statistics dialog, click Update.External Tools PluginThe External Tools plugin allows you to execute external commands from pluma. You can pipe some content into a command and exploit its output (for example, sed), or launch a predefined command (for example, make).Use the External Tools Manager to create and edit commands. To run an external command, choose it from the Tools menu.Built-in CommandsThe following commands are provided with the External Tools plugin:BuildRuns make in the current document's directory.Directory ListingLists the contents of the current document's directory in a new document.Environment VariablesDisplays the environment variables list in the bottom pane.GrepSearches for a term in all files in the current document directory, using pattern matching. Results are shown in the bottom pane.Remove Trailing SpacesRemoves all spaces from the end of lines in the document.Defining a CommandTo add an external command, choose ToolsExternal Tools.In the External Tools Manager window, click New. You can specify the following details for the new command:DescriptionThis description is shown in the statusbar when the menu command is chosen.AcceleratorEnter a keyboard shortcut for the command.CommandsThe actual commands to be run. Several pluma environment variables can be used to pass content to these commands: see .InputThe content to give to the commands (as stdin): the entire text of the current document, the current selection, line, or word.OutputWhat to do with the output of the commands: display in the bottom pane, put in a new document, or place in the current document, at the end, at the cursor position, or replacing the selection or the entire document.ApplicabilityDetermines which sort of documents can be affected by the command, for example whether saved or not, and local or remote.Editing and Removing ToolsTo edit a tool, select it in the list and make changes to its properties.To rename a tool, click it again in the list.To restore a built-in tool that you have changed, press Revert.To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created yourself.VariablesYou can use the following variables in the Commands field of the command definition:PLUMA_CURRENT_DOCUMENT_URIPLUMA_CURRENT_DOCUMENT_NAMEPLUMA_CURRENT_DOCUMENT_SCHEMEPLUMA_CURRENT_DOCUMENT_PATHPLUMA_CURRENT_DOCUMENT_DIRPLUMA_DOCUMENTS_URIPLUMA_DOCUMENTS_PATHFile Browser Pane PluginThe File Browser Pane Plugin shows your files and folders in the side pane, allowing you to quickly open files.To view the File Browser, choose ViewSide Pane and then click on the tab showing the File Browser icon at the bottom of the side pane.Browsing your FilesThe File Browser tab initially shows your file manager bookmarks. To browse the contents of any item, double-click it.To show a parent folder, choose from the drop-down list, or press the up arrow on the File Browser's toolbar.To show the folder that contains the document you are currently working on, right-click in the file list and choose Set root to active document.Opening a FileTo open a file in pluma, double-click it in the file list.Creating Files and FoldersTo create a new, empty text file in the current folder shown in the browser, right-click in the file list and choose New File.To create a new folder in the current folder shown in the browser, right-click in the file list and choose New Folder.Indent Lines PluginThe Indent Lines plugin adds or removes space from the beginning of lines of text.To indent or unindent text, perform the following steps:Select the lines that you want to indent. To indent or unindent a single line, place the cursor anywhere on that line.To indent the text, choose EditIndent.To remove the indentation, choose EditUnindent.The amount of space used, and whether tab character or space characters are used, depends on the Tab Stops settings in the Editor Preferences: see .Insert Date/Time PluginThe Insert Date/Time plugin inserts the current date and time into a document. To use the Insert Date/Time plugin, perform the following steps:Choose EditInsert Date and Time. If you have not configured the Insert Date/Time plugin to automatically insert the date/time without prompting you for the format, pluma displays the Insert Date and Time dialog. Select the appropriate date/time format from the list. Click Insert to close the Insert Date and Time dialog. pluma inserts the date/time at the cursor position in the current file. If you have configured pluma to use one particular date/time format, the Insert Date and Time dialog is not displayed. The date/time is automatically entered at the cursor position in the current file. Configuring the Insert Date/Time PluginTo configure the Insert Date/Time plugin, perform the following steps:Choose EditPreferences.Select the Plugins tab.Select the Insert Date/Time plugin.Click Configure Plugin to display the Configure insert date/time plugin dialog.Select one of the options, as follows: To specify the date/time format each time you insert the date/time, select the Prompt for a format option.To use the same pluma-provided date/time format each time you insert the date/time, select the Use the selected format option, then select the appropriate format from the list. When you select this option, pluma does not prompt you for the date/time format when you choose EditInsert Date and Time.To use the same customized date/time format each time you insert the date/time, select the Use custom format option, then enter the appropriate format in the text box. Refer to the
strftime3
for more information on how to specify a custom format. When you select this option, pluma does not prompt you for the date/time format when you choose EditInsert Date and Time.
Click OK to close the Configure insert date/time plugin dialog.
To close the Preferences dialog, click Close.Modelines PluginThe Modelines plugin allows you to set preferences for individual documents. A modeline is a line of text at the start or end of the document with settings that pluma recognizes.Preferences set using modelines take precedence over the ones specified in the preference dialog.You can set the following preferences with modelines:Tab widthIndent widthInsert spaces instead of tabsText WrappingRight margin widthThe Modelines plugin supports a subset of the options used by other text editors Emacs, Kate and Vim.Emacs ModelinesThe first two lines of a document are scanned for Emacs modelines.The Emacs options for tab-width, indent-offset, indent-tabs-mode and autowrap are supported. For more information, see the GNU Emacs Manual.Kate ModelinesThe first and last ten lines a document are scanned for Kate modelines.The Kate options for tab-width, indent-width, space-indent, word-wrap and word-wrap-column are supported. For more information, see the Kate website.Vim ModelinesThe first and last three lines a document are scanned for Vim modelines.The Vim options for et, expandtab, ts, tabstop, sw, shiftwidth, wrap, and textwidth are supported. For more information, see the Vim website.Python Console PluginThe Python Console Plugin allows you to run commands in the python programming language from pluma. Enabling the plugin adds a tab to the bottom pane. This shows recent output and a command prompt field.Commands entered into the python console are not checked before they are run. It is therefore possible to hang pluma, for example by entering an infinite loop.Save Without Trailing Spaces PluginThe Save Without Trailing Spaces Plugin removes whitespace characters such as space (˽), tab (\t), carriage returns (\r) etc. from the end of a line. To use the Save Without Trailing Spaces plugin, perform the following steps:Enable the plugin as described in .When your document is ready, save it.You will see that any trailing whitespaces has been stripped after the document has been saved.Snippets PluginThe Snippets plugin allows you to store frequently-used pieces of text, called snippets, and insert them quickly into a document.Snippets are specific to the language syntax of the current document. For example, when you are working with an HTML document, you can choose from a list of snippets that are useful for HTML. In addition, some snippets are global, and are available in all documents.A number of built-in snippets are installed with pluma, which can be modified.Inserting SnippetsTo insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is usually the first few letters of the snippet, or something else that is short and easy to remember.Alternatively, press CtrlSpace to see a list of snippets you can insert.Adding SnippetsTo create a new snippet, do the following:Choose ToolsManage Snippets. The Snippets Manager window opens.The list of snippets is grouped by language. Select the language you want to add a snippet to, or a snippet in that language group. To add a snippet for all languages, choose Global at the top of the list. The syntax of the document you are currently working with is shown by default.Click New. A new snippet appears in the list.Enter the following information for the new snippet:NameEnter a name for the snippet in the text field within the snippet list. The name of a snippet serves only as a reminder of its purpose. You can change name of a snippet you create by clicking on it in the list.Snippet textEnter the text of the snippet in the Edit snippet text box. For special codes you can use, see .You can switch back to the document window to copy text without closing the Snippets Manager window.Tab TriggerEnter the tab trigger for the snippet. This is the text that you type before pressing Tab to insert the snippet.The tag must be either a single word comprising only letters, or any single character. The Tab trigger will highlight in red if an invalid tab trigger is entered.Shortcut keyType a shortcut key to use for inserting the snippet.Editing and Removing SnippetsTo edit a snippet, select it in the list and make changes to its text and activation properties.To rename a snippet, click it again in the list.To restore a built-in snippet that you have changed, press Revert.To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have created yourself.Snippet SubstitutionsIn addition to inserting stored text, a snippet can include customizable text, or mark spaces where you can add text once the snippet is inserted in your document.You can use the following placeholder codes in snippet text:Tab placeholders$n defines a tab placeholder, where n is any number from 1 upwards. ${n:default} defines a tab placeholder with a default value.A tab placeholder marks a place in the snippet text where you can add extra text after the snippet is inserted.To use tab placeholders, insert the snippet as normal. The cursor is placed at the first tab placeholder. Type text, and press Tab to advance to the next tab placeholder. The number in the placeholder code defines the order in which tab advances to each place in the text.Press ShiftTab to return to the previous tab placeholder. Pressing Tab when there are no more tab placeholders moves the cursor to the end of the snippet text, or to the end placeholder if it exists.Mirror placeholdersA repeated tab placeholder will mirror the placeholder already defined. This allows you to type in text only once that you want to appear several times in the snippet.End placeholder$0 defines the end placeholder. This allows you to finish working with the snippet with the cursor at a point other than the end of the snippet text.Environmental variablesEnvironmental variable such as $PATH and $HOME are substituted in snippet text. The following variables specific to pluma can also be used:$PLUMA_SELECTED_TEXTThe currently selected text.$PLUMA_FILENAMEThe full filename of the document, or an empty string if the document isn't saved yet.$PLUMA_BASENAMEThe basename of the filename of the document, or an empty string if the document isn't saved yet.$PLUMA_CURRENT_WORDThe word at the cursor's location in the document. When this variable is used, the current word will be replaced by the snippet text.Shell placeholders$(cmd) is replaced by the result of executing cmd in a shell. $(n:cmd) allows you to give this placeholder a reference, where n is any number from 1 upwards. Use $n to use the output from one shell placeholder as input in another.Python placeholders$<cmd> is replaced by the result of evaluating cmd in the python interpreter.$<a:cmd> specifies another python placeholder as a dependency, where a gives its order in the snippet. This allows you to use python functions defined in another snippet. To specify several dependencies, separate the numbers with commas thus: $<a,b:cmd>To use a variable in all other python snippets, declare it as global.Sort PluginThe Sort plugin arranges selected lines of text into alphabetical order.You cannot undo the Sort operation, so you should save the file before performing the sort. To revert to the saved version of the file after the sort operation, choose FileRevert.To use the Sort plugin, perform the following steps:Select the lines of text you want to sort.Choose EditSort. The Sort dialog opens.Choose the options you want for the sort:To arrange the text in reverse order, select Reverse order.To delete duplicate lines, select Remove duplicates.To ignore case sensitivity, select Ignore case.To have the sort ignore the characters at the start of the lines, set the first character that should be used for sorting in the Start at column spin box.To perform the sort operation, click Sort.Spell Checker PluginThe Spell Checker plugin checks the spelling in the selected text. You can configure pluma to check the spelling automatically, or you can check the spelling manually, in the specified language. The language setting, and the autocheck spelling properties, apply per document. To use the Spell checker plugin, perform the following steps:Choose ToolsSet Language to display the Set language dialog. Select the appropriate language from the list. Click OK to close the Set language dialog.To check the spelling automatically, choose ToolsAutocheck Spelling. To unset the automatic spell check, choose ToolsAutocheck Spelling again. When automatic spell checking is set, an icon is displayed beside the Autocheck Spelling menu item. Automatic spell checking is unset by default, each time pluma starts.Unknown spellings are displayed in a different color, and underlined. Right-click on an unknown spelling, then select Spelling Suggestions from the popup menu:To replace the unknown spelling with another spelling in the list, select the replacement spelling from the Spelling Suggestions popup menu.To add the unknown spelling to your personal dictionary, select Spelling SuggestionsAdd.To ignore all occurrences of the unknown spelling, so that they are no longer flagged as unknown but are not added to your personal dictionary, select Spelling SuggestionsIgnore All. The unknown word is ignored in the current pluma session only.To check the spelling manually, choose ToolsCheck Spelling.If there are no spelling errors, an Information dialog displays a message stating that the document does not contain misspelled words. Click OK to close the Information dialog.If there are spelling errors, the Check Spelling dialog is displayed:The Misspelled word is displayed at the top of the dialog.A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by selecting a spelling from the Suggestions list, or you can enter text directly into the Change to text box.To check the spelling of the text in the Change to text box, click Check Word. If this is a known word, the Suggestions list is replaced with the text (correct spelling). If the word is not known, new entries appear in the Suggestions list.To ignore the current occurrence of the unknown word, click Ignore. To ignore all occurrences of the unknown word, click Ignore All. The unknown word is ignored in the current pluma session only.To change the current occurrence of the unknown word to the text in the Change to text box, click Change. To change all occurrences of the unknown word to the text in the Change to text box, click Change All.To add the unknown word to your personal dictionary, click Add word.To close the Check Spelling dialog, click Close.Tag List PluginThe Tag List plugin allows you to insert common tags from a list in the side pane.To use the Tag List plugin, perform the following steps:Choose ViewSide Pane.By default, the side pane shows a tab containing a list of open documents. Click on the tab showing a + icon at the bottom of the side pane to show the tag list tab.Select the appropriate tag category from the drop-down list. For example, HTML - Tags.Scroll through the tag list to find the required tag.To insert a tag at the cursor position in the current file, double-click on the tag in the tag list. You can also insert a tag as follows:To insert a tag in the current file and change the focus from the side pane to the display area, press Return.To insert a tag in the current file and maintain the focus on the Tag list plugin window, press ShiftReturn.